Skip to content

Instantly share code, notes, and snippets.

@pablocattaneo
Created August 14, 2015 15:36
Show Gist options
  • Save pablocattaneo/44b72e5e17c458c4b017 to your computer and use it in GitHub Desktop.
Save pablocattaneo/44b72e5e17c458c4b017 to your computer and use it in GitHub Desktop.
Code for specific viewport width
if(jQuery(window).width() <= 768 ){
jQuery('.menu-wp-carrefour .tituloNivel3').click(function(event) {
jQuery('.menu-wp-carrefour li').toggle();
});
}
if(jQuery(window).width() <= 768 ){
// your code
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment