I am building a website specifically for mobile devices. There is one page in particular which is best viewed in landscape mode.   Is there a way to detect if the user visiting that page is viewing it in Portrait mode and if so, display a message i...
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 ||...
What is viewport in HTML? Could you give some examples on how to access the viewport details?...
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 was experimenting with play and pause when a video is within the viewport... when I was searching around I found the following code.. which unfortunately didn't work:  jQuery      $(window).scroll(function(){         if ($(window).scroll(100)){...
I have an SVG file representing a flat in my browser and I need to print the output in a specific scale. I'm using SVG.js to manipulate the SVG content but I can't find a combination of correct viewport viewbox setup to meet my needs.  What I...
I've just read a nice article on viewport which left me with a couple questions regarding Visual viewport vs Layout viewport on mobile devices.     the width and the height of the layout viewport are equal to whatever   can be shown on the screen...
I'm trying to use a JavascriptExecutor to open a new tab in IE9 from selenium webdriver:  public void openTab() {     String url = webDriver.getCurrentUrl();     String script = "var     a=document.createElement('a');a.target='_bl...
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...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.