1$(function(){ 2 3var winw = $(window).width(); 4var winh = $(window).height(); 5var globalh = $("#hd").innerHeight(); 6$('#hd .sectionBox').prepend('<div class="menuWrapBg"></div>'); 7$('.hdMenuList').prepend('<div class="menuWrapBg"></div>'); 8 9$('.hdMenuList li > a, .hdMenuList li > span').wrapInner('<span></span>'); 10 11$('#Menuwrap .perfectScroll').perfectScrollbar(); 12 13 14$(window).scroll(function () { 15 winw = $(window).width(); 16 winh = $(window).height(); 17 18 $('#Menuwrap .perfectScroll').perfectScrollbar('update'); 19 20}); 21 22$(window).resize(function(){ 23 winw = $(window).width(); 24 winh = $(window).height(); 25 26 if(winw >= 748){ 27 $('.hdMenuList .toggle .open').removeClass('close'); 28 $('.hdMenuList .toggle .open').parents('a,span').next('ul').css({'display':''}); 29 } 30 31 globalh = $("#hd").innerHeight(); 32 $('#Menuwrap .perfectScroll').perfectScrollbar('update'); 33 34}); 35 36 37// ---------------------------------------------------- 38// headermenubg 39// ---------------------------------------------------- 40$('.menuWrapBg').click(function(){ 41 42 $('body').removeClass('hdMenuOpen'); 43 $('#hdMenu').toggleClass('open'); 44 $('.hdMenuList').stop(true,true).slideToggle(150,function(){ 45 $('#Menuwrap .perfectScroll').perfectScrollbar('update'); 46 47 if(!$("#hdMenu").hasClass('open')){ 48 $('#Menuwrap .perfectScroll').css({'height':''}); 49 $('#Menuwrap .perfectScroll').perfectScrollbar('update'); 50 } 51 }); 52 53}); 54 55 56// ---------------------------------------------------- 57// headermenu 58// ---------------------------------------------------- 59$('#hdMenu').click(function(){ 60 61 winh = $(window).height(); 62 globalh = $("#hd").innerHeight(); 63 var menuh = winh - globalh; 64 $('#Menuwrap .perfectScroll').css({'height':menuh}); 65 66 $('body').toggleClass('hdMenuOpen'); 67 $(this).toggleClass('open'); 68 $('.hdMenuList').stop(true,true).slideToggle(150,function(){ 69 $('#Menuwrap .perfectScroll').perfectScrollbar('update'); 70 71 if(!$("#hdMenu").hasClass('open')){ 72 $('#Menuwrap .perfectScroll').css({'height':''}); 73 $('#Menuwrap .perfectScroll').perfectScrollbar('update'); 74 } 75 }); 76 77}); 78 79 80// ---------------------------------------------------- 81// headertoggle(SP) 82// ---------------------------------------------------- 83$('.hdMenuList .toggle').after('<span class="open"></span>'); 84$('.hdMenuList .open').click(function(){ 85 $(this).toggleClass('close'); 86 $(this).next('ul').stop(true,true).slideToggle(150); 87}); 88 89 90 91// ---------------------------------------------------- 92// Language 93// ---------------------------------------------------- 94$('#hdLang').click(function(){ 95 $('#hdLanglist').toggleClass('show'); 96// $('#hdSearchform').removeClass('show'); 97}); 98 99 100// ---------------------------------------------------- 101// Search 102// ---------------------------------------------------- 103$('#hdSearch').click(function(){ 104 $('#hdSearchform').toggleClass('show'); 105// $('#hdLanglist').removeClass('show'); 106}); 107 108 109// ---------------------------------------------------- 110// footertoggle 111// ---------------------------------------------------- 112$('#ft1 .toggle').append('<span class="open"></span>'); 113$('#ft1 p.toggle .open').click(function(){ 114 $(this).toggleClass('close'); 115 $(this).parents('p').next('ul').stop(true,true).slideToggle(150); 116}); 117$('#ft1 a.toggle .open, #ft1 span.toggle .open').click(function(){ 118 $(this).toggleClass('close'); 119 $(this).parents('a,span').next('ul').stop(true,true).slideToggle(150); 120}); 121 122 123// --------------------------------------------------- 124// anchor 125// --------------------------------------------------- 126var urlHash = location.hash; 127if(urlHash) { 128 $('body,html').stop().scrollTop(0); 129 setTimeout(function(){ 130 var target = $(urlHash); 131 var position = target.offset().top - globalh; 132 $('body,html').stop().animate({scrollTop:position}, 500); 133 $(window).scrollTop(position); 134 }, 300); 135} 136$('a[href^="#"], a').click(function(){ 137 138 $('body').removeClass('hdMenuOpen'); 139 $('#hdMenu').removeClass('open');
140 $('.hdMenuList').stop(true,true).slideUp(150,function(){ 141 $('#Menuwrap .perfectScroll').css({'height':''}); 142 $('#Menuwrap .perfectScroll').perfectScrollbar('update'); 143 }); 144 145 //var destinationId = $(this).attr("href"); 146 var destinationId = $(this).attr('href').replace('./index.html', ''); 147 //console.log(destinationId); 148 var destinationPoint = $(destinationId).offset().top - globalh; 149 $('html,body').animate({ scrollTop: destinationPoint },300,'swing'); 150 return false; 151 152}); 153 154 155 156});
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.