I'm trying to find the exact height and width of a browser's viewport, but I suspect that either Mozilla or IE is giving me the wrong number. Here's my method for height:  var viewportHeight = window.innerHeight ||...
I want to animate a scroll to the bottom of the viewport with jQuery. Is there a plugin available which isn't overkill (i.e. without a huge feature set for this small task);  Is there a plugin available or a way to do this natively with jQuery?...
I have a full page slideshow using jQuery(window).height() and it works fine on most browsers, however I checked it out on my phone (Android Browser & Dolphin) and the slideshow just keeps growing endlessly, well beyond the height of the view-por...
I've got a webpage that looks and functions okay in both desktop and mobile browsers IMO, but I've been unable to solve a particular UX functionality.  When a user clicks/taps on a text field for searching, the mobile browsers zoom to the tex...
Is there a way to measure the offset of the window in jQuery, in order than I might compare the positions of a 'fixed' element and a relatively positioned one?  I need to be able to tell how far the window is scrolled so I can use the figure...
Is there an easy way to check whether the user scaled the page (using pinch on mobile devices)?  Thought verge.js would help, but I don't know what I can compare viewportH with....
My application generates HTML email templates. They are between 600px and 650px wide usually, but sometimes they go up to 900px. The templates are nested pretty deep (lots of table elements for email clients), and sadly all the widths/heights are har...
I have a very big draggable div in my window. This div has a smaller window.  <div id="draggable-area" style="width:500px;height:500px;overflow:hidden">  <div id="draggable" style="width:5000px;height:5000px"&...
I've been stuck at such easy task as determine page width and height on iOS when the page is zoomed by the user.  The problem is that some web sites has strange layout and looks like this:    This is a not scaled page and it has resolution of 116...
I have a canvas that needs to be resized when the browser window is resized, so I have the following:  var resizeCanvas = function () {     var ratio =  Math.max(window.devicePixelRatio || 1, 1);     canvas.width = (canvas.offsetWidth || canvas.width...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.