Created
May 16, 2013 01:31
-
-
Save rachelbaker/5588758 to your computer and use it in GitHub Desktop.
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
jQuery(document).ready(function($) { | |
function WidthChange(mq) { | |
if (mq.matches) { | |
// mobile accordian logic | |
} else { | |
// in case you need to add logic for when window width is larger than the mq variable | |
} | |
} | |
if (matchMedia) { | |
var mq = window.matchMedia("(min-width: 769px)"); | |
mq.addListener(WidthChange); | |
WidthChange(mq); | |
} | |
window.jQuery; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment