hackertours-theme/static/js/script.js
Fredrik Jonsson b7977e1c28 First commit.
2017-03-09 14:29:29 +01:00

13 lines
308 B
JavaScript

/**
* @file
* A JavaScript file for the theme.
*/
$(document).ready(function () {
if (window.matchMedia && $.isFunction($.fn.slicknav)) {
var mq = window.matchMedia("(max-width: 666px)");
if (mq.matches) {
$('.main-menu').hide().find('.navbar').filter(':first').slicknav();
}
}
});