I think the answer to this is almost certainly "no", because I've done a little testing and searching around, but is there any trick to detect whether window.print() even might work from inside a page (i.e., from JavaScript)?  I know that...
I am trying to (locally) use Yepnope with Modernizr to load CSS & JS Files. So I can manage the files better, and code easily.  This is the currently layout:  Modernizr.load([     {         test: Modernizr.mq('all and (max-width: 1070px)'...
Is there a way to use SVG images on my site and if browsers/devices do not support it, switch the extension to png? Is there a better way to do this?  Note: I am using the <img> tag and Modernizr.  Here is my code that spits out the images dyna...
How come this alerts both, yes and false?  Modernizr.load([     {         test: Modernizr.cssgradients,         yep: alert('Supports it!'),         nope: alert('Oh, damn! This browser sucks!')     } ]);   I'm using the latest chro...
Modernizr is great but the example test for position: fixed is quite incomplete:   iOS 4 and lower returns true while it doesn't support position: fixed Opera on Windows returns false while it does support position: fixed   I found another test b...
In Webkit browsers, an input[type=number] has a spinbox control:         However, Safari does not follow some other input[type=number] rules, like enforcing that only numeric characters are entered. Hence, Modernizr detects that Safari does not suppo...
I'm building a website at the moment, where I need the use of Modernizr, but for some reason it doesn't apply the classes to the html-tag as it should..  My code looks like this:  <!doctype html> <!--[if lt IE 7]><html class=&#...
I am using this script to display and hide a modal view, but I want to disable scrolling on body once the modal view is opened and disable it when it is closed.  I tried to modify the JS code but it works but it breaks the opening animation. here is...
Since the day I discovered yeoman, I use it for all my front-end projects.  It includes grunt-modernizr that - at least I think - download the library and compiles it on the fly when I call the build task  grunt build   But I have a small problem : b...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.