Line 412: | Line 412: | ||
<script$(document).ready(function() { | <script$(document).ready(function() { | ||
− | |||
$('.dropdown').on('show.bs.dropdown', function() { | $('.dropdown').on('show.bs.dropdown', function() { | ||
$(this).find('.dropdown-menu').first().stop(true, true).slideDown(100); | $(this).find('.dropdown-menu').first().stop(true, true).slideDown(100); | ||
}); | }); | ||
− | |||
$('.dropdown').on('hide.bs.dropdown', function() { | $('.dropdown').on('hide.bs.dropdown', function() { | ||
$(this).find('.dropdown-menu').first().stop(true, true).slideUp(100); | $(this).find('.dropdown-menu').first().stop(true, true).slideUp(100); | ||
Line 424: | Line 422: | ||
$("#HQ_page").attr('id',''); | $("#HQ_page").attr('id',''); | ||
− | |||
menu_functionality(); | menu_functionality(); | ||
hide_show_menu(); | hide_show_menu(); | ||
Line 430: | Line 427: | ||
− | |||
function menu_functionality() { | function menu_functionality() { | ||
− | |||
$(".menu_button").click(function(){ | $(".menu_button").click(function(){ | ||
− | |||
$(this).children().toggleClass("open"); | $(this).children().toggleClass("open"); | ||
− | |||
$(this).next('.submenu_wrapper').fadeToggle(400); | $(this).next('.submenu_wrapper').fadeToggle(400); | ||
}); | }); | ||
− | |||
$("#display_menu_control").click(function(){ | $("#display_menu_control").click(function(){ | ||
$('#menu_content').fadeToggle(400); | $('#menu_content').fadeToggle(400); | ||
}); | }); | ||
− | |||
highlight_current_page(); | highlight_current_page(); | ||
} | } | ||
− | |||
function highlight_current_page() { | function highlight_current_page() { | ||
− | |||
$("#"+ wgPageName.substring(wgPageName.lastIndexOf("/")+1, wgPageName.length ) + "_page").addClass("active"); | $("#"+ wgPageName.substring(wgPageName.lastIndexOf("/")+1, wgPageName.length ) + "_page").addClass("active"); | ||
− | |||
$(".current_page").parents(".submenu_wrapper").fadeIn(400); | $(".current_page").parents(".submenu_wrapper").fadeIn(400); | ||
− | |||
$(".current_page").parents(".submenu_wrapper").prev().children().toggleClass("open"); | $(".current_page").parents(".submenu_wrapper").prev().children().toggleClass("open"); | ||
Line 467: | Line 454: | ||
− | |||
function hide_show_menu() { | function hide_show_menu() { | ||
− | |||
if (document.getElementById('bars_item')) { | if (document.getElementById('bars_item')) { | ||
− | |||
$("#bars_item").click(function() { | $("#bars_item").click(function() { | ||
− | |||
$("nav").fadeToggle(); | $("nav").fadeToggle(); | ||
}); | }); | ||
} | } | ||
− | |||
else { | else { | ||
setTimeout(hide_show_menu, 15); | setTimeout(hide_show_menu, 15); |
Revision as of 09:06, 14 July 2017