I was wondering if there was a way to determine the height/width of a browser. What i'm trying to do is set  a height on a div to 500px when the browser size is 1024x768, and for anything lower i'd like to set it to 400px.  Thanks in advanc...
I would like the user can not drag the surrounding line of browser and resize the browser when the window size is less than 200 px;  //if ($(window).height > 200){ $(window).resize(function() { after_resize(function(){     Book.zoom_auto();     Bo...
I am wondering a little when I look at this code:  // Get the screen height and width var maskHeight = $(document).height(); var maskWidth = $(window).width();  ...  // Get the window height and width var winH = $(window).height(); var winW = $(windo...
Is it possible in JavaScript to detect if the browser's monitor supports HDR?  I have the requirement to display a HDR certificate on a webpage when the visitor is using a HDR monitor, but I've expressed to the client that this might not be p...
It seems to me that building a screen sharing app in react.js should be easier than other frameworks. Because react.js only updates the dom when something changes, it seems to me that you could quite easily send the entire webpage's HTML to anoth...
I have an element with position fixed (pinned to any corner) on a page (which I do not necessarily have control over the meta viewport tag - it is an embedded widget for third party sites). On Mobile Safari when the user pinch zooms the page at a cer...
I want to change a div in my code called text to diplay:none; as long as a div "#video-overlay-shadow and #video-overlay" are true and when the screen size is 740 when it is above 740 do nothing and when it is below 460. I started with:  $(do...
I'm trying to determine the current width of the screen visiting a page and am trying window.screen.width which works fine in the browser, in chrome emulator and in a Samsung phone I've tried. But if I do the same from an actual iPhone or iPa...
I'm new to ReactJS and want to implement the following logic: I have an intro screen in my app and after a few seconds I require to swap the intro screen with the home page.  How can I do this?  I have both the intro screen and home page in two s...
Is there a JavaScript event I can listen to if the window and screen dimensions change?  I know of the obvious resize event, but interestingly my window and screen dimensions are changing without this event being fired.  My setup is very peculiar-- I...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.