Skip to content

Instantly share code, notes, and snippets.

@rasmusfjord
Created April 16, 2015 13:34
Show Gist options
  • Select an option

  • Save rasmusfjord/24a4e652afd0747383c1 to your computer and use it in GitHub Desktop.

Select an option

Save rasmusfjord/24a4e652afd0747383c1 to your computer and use it in GitHub Desktop.
$(function () {
var jRes = jRespond([
{
label: 'handheld',
enter: 0,
exit: 767
}, {
label: 'desktop',
enter: 769,
exit: 10000
}
]);
jRes.addFunc([{
breakpoint: 'handheld',
enter: function () {
Mobile();
},
exit: function () {
}
},
{
breakpoint: 'desktop',
enter: function () {
DesktopOnly();
},
exit: function () {
}
}]);
AllSizes();
});
function AllSizes() {
Clamp();
Popups();
}
function DesktopOnly() {
}
function Mobile() {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment