Created
September 8, 2015 11:10
-
-
Save markusvonplunkett/5cbf2bc39754a5c93519 to your computer and use it in GitHub Desktop.
Enquire Modernizr Example
This file contains 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
Modernizr.load([ | |
//first test need for polyfill | |
{ | |
test: window.matchMedia, | |
nope: "/js/vendor/media.match.js", | |
both: "/js/vendor/enquire.js", | |
complete : function () { | |
enquire.register("screen and (min-width:43.750em)", { | |
// OPTIONAL | |
// If supplied, triggered when a media query matches. | |
match : function() { | |
$('#layerslider').layerSlider({ | |
skinsPath : '/css/', | |
skin : 'fullwidth', | |
autoStart : true, | |
responsive : false, | |
responsiveUnder : 980, | |
sublayerContainer : 980, | |
hoverPrevNext : false, | |
autoPlayVideos : false, | |
thumbnailNavigation : 'false', | |
keybNav : true, | |
touchNav : true, | |
imgPreload : true, | |
navPrevNext : true, | |
navButtons : false, | |
navStartStop : false, | |
showCircleTimer : false | |
}); | |
} | |
}); | |
} | |
} | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment