Difference between revisions of "Template:2016Demo bottom"
Line 10: | Line 10: | ||
var switch_whichMenu = false; // DECLARES THAT YOU ARE IN HUB | var switch_whichMenu = false; // DECLARES THAT YOU ARE IN HUB | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | // ONCE THE PAGE LOADS, DECIDES WHICH MENU TO CALL/SHOW | ||
+ | ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
+ | |||
+ | var menu_found = false; // KNOWS IF THE MENU HAS BEEN FOUND | ||
var hub_list = new Array(); //Test array | var hub_list = new Array(); //Test array | ||
Line 19: | Line 27: | ||
− | |||
− | |||
− | |||
− | |||
$(document).ready(function() { | $(document).ready(function() { | ||
Line 74: | Line 78: | ||
///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////// | ||
− | + | ||
// SHOW MAIN MENU | // SHOW MAIN MENU | ||
Line 163: | Line 167: | ||
// this is the expand all function | // this is the expand all function | ||
function subMenus_ShowHide() { | function subMenus_ShowHide() { | ||
+ | |||
+ | |||
+ | |||
+ | if ( $( .subMenu ).is( ':visible' ) ) { | ||
+ | alert("yes"); | ||
+ | } | ||
+ | |||
+ | else { alert("no");} | ||
+ | |||
+ | } | ||
+ | |||
// this expands | // this expands | ||
Line 213: | Line 228: | ||
remove_popwhy(); | remove_popwhy(); | ||
}); | }); | ||
+ | |||
} ); | } ); | ||
+ | |||
+ | |||
//MODIFY SIZE AND POSITION OF THE POP DIV AND THE BACKGROUND | //MODIFY SIZE AND POSITION OF THE POP DIV AND THE BACKGROUND |
Revision as of 20:42, 23 November 2015