How to disable Chrome PDF viewer navigation widgets? - javascript

Chrome recently changed their PDF viewer's navigation widgets. Instead of a subtle rectangle in the lower-right corner, there's now a pair of bubbles and a large bar (screenshot below).
This is no good. Is there any way to keep these widget from appearing when I move my mouse?

To solve the issue, just append #toolbar=0 to your file path.
Documentation Reference for my Answer (Read this): https://www.adobe.com/content/dam/acom/en/devnet/acrobat/pdfs/pdf_open_parameters.pdf

Related

JS Code to enable "Draw mode" and show PDF Annotation Colors while in PDF Fullscreen Mode on Edge

I do a lot of presentations with PDF slides where I annotate (by that I mean draw lines freehand with a pen) the slides while showing them. One of the best tools for this (on Windows) is the Edge browser. You can smoothly draw lines and erase them easily.
However when the browser is in PDF fullscreen mode (not F11 nor not the Maximize button... you get to "PDF Fullscreen mode" by clicking the icon in the upper right with a diagonal line with arrow heads on both ends). When you are in this mode, you cannot access the annotation tools, you can only move forward and back through the slides.
What I would like to do is program a keyboard shortcut (activating it with my macropad) to enable "Draw" mode (while in fullscreen) and another shortcut to pull up the color menu selector.
I imagine this should be as simple as writing some JS and sticking it in a bookmark but my search fu is lacking. I'm not sure I've seen anyone do this.
You should not need much code more than a simple few lines of HTML, here are different types of iFrame in Full screen Edge. So main thing to note is that the right one has no means to annotate the center one is fairly limited, but the Left one is the "The Full Monty".
Write your inline frame to show pdf as almost full screen area (allowing for the toolbar) you can have it pop up or pin it, then save a collection in the browser bar to access easily.
Here note the use of dual sidebars allows to include more than just one iframe so you can compare/display two sources just by sliding up and down. The toolbars can get a bit "glitchy" with dual frames as they both respond to one set of mouse operations, so best if you pin them (optional), otherwise you need to part exit full screen mode (not a problem) to refresh both frames as one.
So here both PDF img can be annotated separately in full screen mode to show two aspects if neede, or put 2 views of same document side by side.
<body translate="no">
<div id="doc1"><iframe src="1.pdf"></iframe></div>
<div id="doc2"><iframe src="2.pdf"></iframe></div>
</body>
Finally whilst in full screen mode using favorites allows you to touch top EDGE (pun) to jump to other PDF collections or external media

Scrolling Behavior of Background Image on Deployed Website Is Erratic. It Is Supposed To Be Stationery, Expected Behavior On Local Build

Built a Jekyll website based on a 3-party theme (MASSIVELY).
Code of website available here: https://git.ikrypto.club/FNB_Japan/FNBJapan
When you visit the deployed website, the background image does not remain constant as expected (You can kind of see the expected behavior on the theme demo, https://iwiedenm.github.io/jekyll-theme-massively/ (Edit: This is actually a better example, https://massively.ghost.io/ ). Basically, the background image is expected to remain constant, and the foreground should scroll with the user.).
You can witness the difference in behavior if you go on our website, https://fnb-japan.info .
However, when the code is ran locally and built with
bundle exec jekyll serve
The background image does not move (as expected). What's happening and how can I remedy it?
Note: It appears that this problem only appears on FF Nightly, and not Chrome
Edit: This appears to be a problem with Firefox Nightly, as opposed to the website. This question is technically resolved.
Edit 2: It appears that the problem persists, and is due to a bad implementation of parallax scrolling causing parallax to flicker.
Edit 3: This problem only occurs once the window is of a certain width, and the difference isn'ta ctually between local/deployed but rather different window sizes.
The background div (#bg)
is being transformed by
this code in the bundled parallax plugin (as evident from setting a "break on attribute modification" on the bg element in the Chrome inspector), which in kind seems to be activated by this invocation:
// Background.
$wrapper._parallax(0.925);
Removing those lines should get rid of the parallax effect too.

Windows 8 Style Start Screen Tiles for Website

I'm working on a project that gives people a new browser homepage to be displayed when they open their browser window or new tab. This page will have icons/tiles to popular websites and at some point their own customised websites.
What I want to do is to have tiles that look like that of Windows 8 and have the flip and zoom to full screen effect that they do in the real Windows 8 start screen upon clicking on it, where it will show the icon and site title while the page loads.
I'm not looking to load the site into the homepage, as it will direct them to the site being clicked on, but until they get to the site, it will show the icon and site title on the screen.
Any suggestions as to how this can be achieved along with some examples would be awesome.
Thank you in advance for your time, and I look forward to your response.
There's a pseudo-class if you want to have fullscreen specific styles.
https://developer.mozilla.org/es/docs/Web/CSS/:fullscreen
I think most of your problems will be: selecting a grid system or thechnique to layout those tiles. The zoom and flip effects should be done with the transform property.
Checkout what I've found: http://metroui.org.ua/tiles.html (A style guide with win8 components)
Here's another example by the amazing Sara Soueidan: sarasoueidan . com/demos/windows8-animations (couldn't paste the link because of my low reputation points)
If you need JS or you want to just go with cross-browsers compatibilities, check out this lib. It's just great: GSAP
Pro Tip: this is going to be your friend: backface-visibility: hidden;

Javascript zoom effect?

We got this assignment from school to reproduce this example (created in Flash) into plain Javascript, HTML and CSS (jquery/Mootools not alllowed). Now i got the grid right, but i can't figure out what function to use to zoom into all the images at once? What would be a solution? One that crossed my mind is onClick every image goes in to the real size and using Javascript to disable the toolbars and then using keyarrows to navigate? Or is there a simpler way?
http://www.simpleviewer.net/postcardviewer/app/
Javascript / jquery would be best way to do so
MojoZoom is a free JavaScript Image Zoom script that works by moving your mouse over an image to see an zoomed version of it.
It places a square to the right of the image with the magnified portion of the image.
In addition to adding the zoom effect to your image, it will also automatically link it to its high resolution version.
The developers also released a slightly modified version of the script called MojoMagnified. Both of these are independent scripts and do not require external JS libraries to work
refer http://www.nihilogic.dk/labs/mojozoom/
also refer 5 Amazing JavaScript Image Zoom Scripts

What is causing these browser rendering issues? Z-index conflicts? Positioning rules?

I'm developing a product to be used by a number of customers alongside our Web application.
Quick background:
These customers have incorporated into their pages a widget that we've developed.
The widget's content can be modified by using our application.
The idea behind this product is a bookmarklet that we supply, which will "highlight" our widget on their page, turning it into a clickable link that leads to an administration panel in our app.
The "highlight" effect actually involves some z-index tricks; we create a semi-transparent "backdrop" <div> just a few ticks below the maximum-supported z-index to gray out the page; then, we adjust the z-index of our widget to sit on top of that translucent backdrop. The visual effect should look about like this:
http://skitch.com/troywarr/dtexp/example-good
However, in Safari, as well as Firefox under certain conditions, there seem to be some sort of rendering artifacts that prevent this from looking as intended:
http://skitch.com/troywarr/dteqx/example-bad
As you can tell from the screenshot, a couple of elements (our logo image and the <iframe> that holds an advertisement) are still "bright," as intended. But, the rest of the widget is still shaded-out.
I've been poking around with Firebug for quite a while to try to get at the source of the problem, but I haven't had any revelations. I'm hoping that someone has experienced a similar issue, or recognizes the "visual signature" of this kind of problem. Or, if you're simply adept at JavaScript/jQuery and/or Firebug, I could really use your help trying to figure out where this approach is falling short.
I created a test bookmarklet as a live example. To see it, please:
Open Firefox (the version under development currently only works there reliably).
Go to this page and drag the link there to your Bookmarks Bar: Example Bookmarklet
Navigate to: http://www.sfgate.com/cgi-bin/article.cgi?f=/n/a/2010/07/30/sports/s170637D86.DTL
Click the bookmarklet while on that page, and you should see what I'm referring to.
Thanks very much in advance for any help! This has me baffled.
I was about to give up on this, but I think I found the problem. You have a hell of a lot of DOM elements going on here, but luckily that isn't the issue causing this problem.
The iframe inside DIV#onespot_nextclick needs a background color of #FFF.
Simple!

Categories

Resources