1jQuery(document).ready(function($){ 2 3 /* 4 * Mighty IE-6 and 7 Z-index fix 5 */ 6 $(function() { 7 var zIndexNumber = 900; 8 $('div').each(function() { 9 //$(this).css('zIndex', zIndexNumber); 10 zIndexNumber -= 10; 11 }); 12 }); 13 14 /* 15 * Set up navigation menus 16 */ 17 $('ul#bottom_bar_logos > li:last-child').addClass('last'); 18 $('ul#menu-left-product .sub-menu li:first-child').addClass('first'); 19 $('ul#menu-left-product .sub-menu li:last-child').addClass('last'); 20 $('ul#menu-left-product > li:first-child').addClass('first'); 21 $('ul#menu-left-product > li:last-child').addClass('last'); 22 23 24 /* 25 * Set up search box 26 27 $(".searchbox").focus(function(){this.value="";}); 28 $(".searchbox").focusout(function(){if( this.value==""){this.value="Search";}}); */ 29 if ($(".lbpModal").length > 0){ 30 $(".lbpModal").colorbox({innerWidth:"400px",innerHeight:"600px",maxWidth:"100%",maxHeight:"100%",opacity:0.8,iframe:true}); 31 } 32 33 34if ((window.matchMedia('(max-width: 1199px)').matches) && (window.location.pathname != '/')) { 35 var slideWidth = '120px'; 36} else { 37 var slideWidth = '165px'; 38} 39 40/* 41* Responsive produts nav (on page load) 42*/ 43if (window.matchMedia('(min-width: 993px)').matches) { 44 45 $("#nav_vertical ul li").hover(function() { 46 $(this).find("ul").stop() 47 .animate({left: slideWidth, opacity:1}, "normal") 48 .css("display","block") 49 .css("z-index","3000") 50 51 }, function() { 52 $(this).find("ul").stop() 53 .animate({left: "0", opacity: 0}, "normal") 54 .css("display","none") 55 }); 56 $("#nav_vertical ul li ul").hover(function() { 57 $(this).parent().addClass('highlight') 58 59 }, function() { 60 $(this).parent().removeClass('highlight') 61 }); 62} 63 64/* 65* Responsive tables 66*/ 67/*** type 1 ***/ 68var headertext = []; 69var headers = document.querySelectorAll("table.responsive thead"); 70var tablebody = document.querySelectorAll("table.responsive tbody"); 71 72for (var i = 0; i < headers.length; i++) { 73 headertext[i]=[]; 74 for (var j = 0, headrow; headrow = headers[i].rows[0].cells[j]; j++) { 75 var current = headrow; 76 headertext[i].push(current.textContent.replace(/\r?\n|\r/,"")); 77 } 78} 79 80for (var h = 0, tbody; tbody = tablebody[h]; h++) { 81 for (var i = 0, row; row = tbody.rows[i]; i++) { 82 for (var j = 0, col; col = row.cells[j]; j++) { 83 col.setAttribute("data-th", headertext[h][j]); 84 } 85 } 86} 87 88/*** type 2 ***/ 89var headertext = []; 90var headers = document.querySelectorAll("table.responsive-two thead"); 91var tablebody = document.querySelectorAll("table.responsive-two tbody"); 92 93for (var i = 0; i < headers.length; i++) { 94 headertext[i]=[]; 95 for (var j = 0, headrow; headrow = headers[i].rows[0].cells[j]; j++) { 96 var current = headrow; 97 headertext[i].push(current.textContent.replace(/\r?\n|\r/,"")); 98 } 99} 100 101for (var h = 0, tbody; tbody = tablebody[h]; h++) { 102 for (var i = 0, row; row = tbody.rows[i]; i++) { 103 for (var j = 0, col; col = row.cells[j]; j++) { 104 col.setAttribute("data-th", headertext[h][j]); 105 } 106 } 107} 108 109}); 110 111 112/* 113* Responsive produts nav (on browser resize) 114*/ 115jQuery( window ).resize(function() { 116 117if ((window.matchMedia('(max-width: 1199px)').matches) && (window.location.pathname != '/')) { 118 var slideWidth = '120px'; 119} else { 120 var slideWidth = '165px'; 121} 122if (window.matchMedia('(min-width: 993px)').matches) { 123 124 jQuery("#nav_vertical ul li").hover(function() { 125 jQuery(this).find("ul").stop() 126 .animate({left: slideWidth, opacity:1}, "normal") 127 .css("display","block") 128 .css("z-index","3000") 129 130 }, function() { 131 jQuery(this).find("ul").stop() 132 .animate({left: "0", opacity: 0}, "normal") 133 .css("display","none") 134 }); 135 jQuery("#nav_vertical ul li ul").hover(function() { 136 jQuery(this).parent().addClass('highlight') 137 138 }, function() { 139 jQuery(this).parent().removeClass('highlight') 140 }); 141 142} 143 144});
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.