1$(window).on('load',function(){ 2 3 $(".boxLink").click(function(){ 4 if($(this).find("a").attr("target")==="_blank"){ 5 window.open($(this).find("a").attr("href"), "_blank"); 6 }else{ 7 window.location=$(this).find("a").attr("href"); 8 } 9 return false; 10 }); 11 12 var topBtn = $('#pageTop'); 13 topBtn.hide(); 14 $(window).scroll(function () { 15 if ($(this).scrollTop() > 100) { 16 topBtn.fadeIn(); 17 } else { 18 topBtn.fadeOut(); 19 } 20 }); 21 22 topBtn.click(function(){ 23 $('body,html').animate({scrollTop: 0},700,"easeInOutCubic"); 24 return false; 25 }); 26 27 var scrollSpeed = 1000; 28 var w = $(window).width(); 29 var x = 768; 30 $("a[href*=#] , area").click(function() { 31 if (w > x) { 32 var $target=$(this.hash); 33 var targetY=$target.offset().top - 80; 34 $($.browser.opera ? document.compatMode === 'BackCompat' ? 'body' : 'html' :'html,body').animate({scrollTop: targetY},{duration: scrollSpeed, easing: "easeInOutCubic"}); 35 return false; 36 }else{ 37 var $target=$(this.hash); 38 var targetY=$target.offset().top - 65; 39 $($.browser.opera ? document.compatMode === 'BackCompat' ? 'body' : 'html' :'html,body').animate({scrollTop: targetY},{duration: scrollSpeed, easing: "easeInOutCubic"}); 40 return false; 41 } 42 }); 43 44 var menu = $('.headerSp .gNav'); 45 var wrapper = $('#wrapper'), 46 menuWidth = menu.outerWidth(); 47$('.hbg').click(function() { 48 $('.headerSp .hamburger_btn').parent().toggleClass("opn"); 49 if($('.headerSp .hamburger_btn').parent().hasClass('opn')){ 50 wrapper.animate({'right' : menuWidth }, 500); 51 } else { 52 wrapper.animate({'right' : 0 }, 500); 53 54 } 55}); 56 57var bodyClass = $("body").attr("id"); 58 $(".headerSp .gNav > li").each(function(){ 59 if(($(this).attr("class") == bodyClass)){ 60 $(this).toggleClass("on"); 61 } 62 }); 63 64 65 66 $('#gotop .pagetop').click(function () { 67 $('body,html').animate({ 68 scrollTop: 0 69 }, 500); 70 return false; 71 }); 72 73}); 74 75$(function(){ 76 $(".droplink").hover( 77 function(){ 78 $(this).find(".dropdown").stop().slideDown(); 79 80 }, 81 function(){ 82 $(this).find(".dropdown").stop().slideUp(); 83 $(this).parents("li").removeClass("on"); 84 } 85 ); 86 $(".mega").hover( 87 function(){ 88 $(this).find("ul").stop().css("width","auto").css("opacity","1"); 89 }, 90 function(){ 91 $(this).find("ul").stop().css("width","0px").css("opacity","0"); 92 } 93 ); 94 $(".cat").hover( 95 function(){ 96 $(this).parent().addClass("on"); 97 }, 98 function(){ 99 $(this).parent().removeClass("on"); 100 } 101 ); 102 var id = $(".contents").attr("id"); 103 $(".side_nav ul li."+id).addClass("act"); 104 105}); 106 107 108 109$(function(){ 110 $(".acco").click(function(){ 111 $(this).next("ol").stop().slideToggle(); 112 }); 113 $(".acco2").click(function(){ 114 $(this).next("ul").stop().slideToggle(); 115 }); 116});
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.