mirror of
https://github.com/Rushilwiz/dear-anon.git
synced 2025-04-21 12:30:19 -04:00
51 lines
995 B
JavaScript
51 lines
995 B
JavaScript
jQuery(document).ready(function($) {
|
|
|
|
/**
|
|
* Document ready (jQuery)
|
|
*/
|
|
$(function () {
|
|
|
|
/**
|
|
* Activate superfish menu.
|
|
*/
|
|
$('.sf-menu').superfish({
|
|
'speed': 'fast',
|
|
'delay' : 0,
|
|
'animation': {
|
|
'height': 'show'
|
|
}
|
|
});
|
|
|
|
});
|
|
|
|
/**
|
|
* SlickNav
|
|
*/
|
|
|
|
$('#menu-main-slick').slicknav({
|
|
prependTo:'.site-navbar-header',
|
|
label: podcastStrings.slicknav_menu_home,
|
|
allowParentLinks: true
|
|
});
|
|
|
|
function mobileadjust() {
|
|
|
|
var windowWidth = $(window).width();
|
|
|
|
if( typeof window.orientation === 'undefined' ) {
|
|
$('#menu-main').removeAttr('style');
|
|
}
|
|
|
|
if( windowWidth < 769 ) {
|
|
$('#menu-main').addClass('mobile-menu');
|
|
}
|
|
|
|
}
|
|
|
|
mobileadjust();
|
|
|
|
$(window).resize(function() {
|
|
mobileadjust();
|
|
});
|
|
|
|
}); |