1jQuery(document).on('ready', function(e) { 2 3 var winLoc = window.location.href; 4 5 jQuery('#menu2 > li').each(function(){ 6 7 if (this.children.length > 2) { 8 var anchorLink = this.children[0]; 9 if(anchorLink == winLoc){ 10 replaceImageWithUp(this.children[1]); 11 var ulChild = this.children[2]; 12 ulChild.style.display='block'; 13 } 14 else { 15 var ulChild = this.children[2]; 16 var imgChild = this.children[1]; 17 jQuery(ulChild).children('li').each(function(){ 18 var anchorLink = this.children[0]; 19 if(anchorLink == winLoc){ 20 replaceImageWithUp(imgChild); 21 ulChild.style.display='block'; 22 } 23 else if (this.children.length > 2) { 24 var ulChild2 = this.children[2]; 25 var imgChild2 = this.children[1]; 26 jQuery(ulChild2).children('li').each(function(){ 27 var anchorLink = this.children[0]; 28 if(anchorLink == winLoc){ 29 ulChild.style.display='block'; 30 ulChild2.style.display='block'; 31 replaceImageWithUp(imgChild); 32 replaceImageWithUp(imgChild2); 33 } 34 else if (this.children.length > 2) { 35 var ulChild3 = this.children[2]; 36 var imgChild3 = this.children[1]; 37 jQuery(ulChild3).children('li').each(function(){ 38 var anchorLink = this.children[0]; 39 if(anchorLink == winLoc){ 40 ulChild.style.display='block'; 41 ulChild2.style.display='block'; 42 ulChild3.style.display='block'; 43 replaceImageWithUp(imgChild); 44 replaceImageWithUp(imgChild2); 45 replaceImageWithUp(imgChild3); 46 } 47 else if (this.children.length > 2) { 48 var ulChild4 = this.children[2]; 49 var imgChild4 = this.children[1]; 50 jQuery(ulChild4).children('li').each(function(){ 51 var anchorLink = this.children[0]; 52 if(anchorLink == winLoc){ 53 ulChild.style.display='block'; 54 ulChild2.style.display='block'; 55 ulChild3.style.display='block'; 56 ulChild4.style.display='block'; 57 replaceImageWithUp(imgChild); 58 replaceImageWithUp(imgChild2); 59 replaceImageWithUp(imgChild3); 60 replaceImageWithUp(imgChild4); 61 } 62 }); 63 } 64 });
65 } 66 }); 67 } 68 }); 69 } 70 } 71 72 }); 73}); 74 75function replaceImageWithUp(img) { 76 77 jQuery(img).removeClass('accordion-down-img'); 78 jQuery(img).addClass('accordion-up-img'); 79 80} 81 82function replaceImageWithDown(img) { 83 84 jQuery(img).removeClass('accordion-up-img'); 85 jQuery(img).addClass('accordion-down-img'); 86 87} 88 89 90 91function hideUnhideSubPages(page) { 92 debugger; 93 var liElement = page.parentElement; 94 if (liElement.children.length > 2) { 95 var ulElement = liElement.children[2]; 96 if (ulElement) { 97 debugger; 98 if (ulElement.style.display == 'block') { 99 jQuery(ulElement).slideUp(); 100 //ulElement.style.display = 'none'; 101 jQuery(page).removeClass('accordion-up-img'); 102 jQuery(page).addClass('accordion-down-img'); 103 } 104 else { 105 hideAllChildren(liElement); 106 jQuery(ulElement).slideDown(); 107 ulElement.style.display = 'block'; 108 jQuery(page).removeClass('accordion-down-img'); 109 jQuery(page).addClass('accordion-up-img'); 110 } 111 } 112 } 113} 114 115function hideAllChildren(liElement) { 116 var ulElement = liElement.parentElement; 117 if (ulElement) { 118 jQuery(ulElement).children('li').each(function(){ 119 if (this.children.length > 2) { 120 var img = this.children[1]; 121 var ulChild = this.children[2]; 122 if (ulChild) { 123 jQuery(ulChild).slideUp(); 124 //ulChild.style.display = 'none'; 125 jQuery(img).removeClass('accordion-up-img'); 126 jQuery(img).addClass('accordion-down-img'); 127 //As per QA request dont close sub pages 128 /*jQuery(ulChild).children('li').each(function(){ 129 if (this.children.length > 2) { 130 var img = this.children[1]; 131 var ulChild = this.children[2]; 132 if (ulChild) { 133 jQuery(ulChild).slideUp(); 134 //ulChild.style.display = 'none'; 135 var imgSrc = img.src; 136 imgSrc = imgSrc.replace("up.png","down.png"); 137 img.src = imgSrc; 138 } 139 } 140 });*/ 141 } 142 } 143 }); 144 } 145} 146
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.