Created
January 5, 2012 20:32
-
-
Save dmolsen/1567142 to your computer and use it in GitHub Desktop.
MQSugr Demo Page Code
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // to start the snowflakes | |
| var oncomplete = function() { snowflakes = new Snowflakes('about','snowflakesContainer'); snowflakes.create(40); }; | |
| // set-up the breakpoints | |
| var mqsugr = new MQSugr(); | |
| var breakpoints = { | |
| breakpoint1: '320px', | |
| breakpoint2: { mq: '600px', tests: 'indexeddb' }, | |
| breakpoint3: { mq: '801px', tests: 'cssanimations', yep: ['{cssPath}snowflakes.css', '{jsPath}snowflakes.js'], complete: oncomplete }, | |
| breakpoint4: '801px' | |
| }; | |
| mqsugr.check(breakpoints); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment