1jQuery(document).ready(function(){ 2 3 //alert('Load menu.js'); 4 5 var btnMenu = jQuery('#menu').find('ul li.level1'); 6 var btnSub = jQuery('#menu').find('ul ul li.level2'); 7 var subs = jQuery('#menu').find('ul ul'); 8 9 //btnMenu.css('background-color', '#ffcc00'); 10 11 subs.hide(); 12 13 subs.each(function (i) { 14 15 if(jQuery(this).find('li').hasClass('selected')){ 16 17 subAct = jQuery(this); 18 subAct.show(); 19 20 } 21 22 }); 23 24 btnMenu.mouseenter(function() { 25 26 if (typeof(subAct) != 'undefined') { 27 subAct.hide(); 28 } 29 30 jQuery(this).find('ul').show(); 31 //jQuery(this).css('cursor', 'pointer'); 32 jQuery(this).find('a').css('cursos', 'pointer'); 33 jQuery(this).addClass('itemMenuOver'); 34 35 }); 36 37 btnMenu.mouseleave(function() { 38 39 //jQuery(this).css('cursor','auto'); 40 jQuery(this).find('a').css('cursos', 'pointer'); 41 jQuery(this).removeClass('itemMenuOver'); 42 43 if(!(jQuery(this).find('ul li').hasClass('selected'))) { 44 45 jQuery(this).find('ul').hide(); 46 //subs.hide(); 47 48 if (typeof(subAct) != 'undefined') { 49 subAct.show(); 50 } 51 52 } 53 54 }); 55 56 btnSub.mouseenter(function() { 57 58 jQuery(this).addClass('itemMenuOver'); 59 60 }); 61 62 btnSub.mouseleave(function() { 63 64 jQuery(this).removeClass('itemMenuOver'); 65 66 }); 67 68});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.