Last active
April 16, 2018 01:13
-
-
Save maxcraftsman/4a0b890677df8b9b6828c9698f8d9558 to your computer and use it in GitHub Desktop.
foundation javascript breakpoints [js]
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
$(window).on('changed.zf.mediaquery', function(event, newSize, oldSize) { | |
modal(); | |
}) | |
modal(); | |
function modal(){ | |
if (Foundation.MediaQuery.is('large') == true) { | |
alert('large'); | |
} else if (Foundation.MediaQuery.is('medium') == true) { | |
alert('medium'); | |
} else { | |
alert('small'); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment