Skip to content

Instantly share code, notes, and snippets.

@markusvonplunkett
Created September 8, 2015 11:10
Show Gist options
  • Save markusvonplunkett/5cbf2bc39754a5c93519 to your computer and use it in GitHub Desktop.
Save markusvonplunkett/5cbf2bc39754a5c93519 to your computer and use it in GitHub Desktop.
Enquire Modernizr Example
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