1// JavaScript Document 2var windowW; 3var fixedAdjust; 4var pointY; 5 6var breakPoint = 768; 7var resizeTimer = false; 8 9 10$(function(){ 11 12 //追å js 13 var $header = $('#header'); 14 var $headerH = $header.height(); 15 var $globalNavPC = $('#gnav-pc'); 16 var $globalNavSP = $('#gnav-sp > li > a'); 17 var $navCat = $('li[class^="global-nav0"]'); 18 var $navCatFirst = $('#nav01'); 19 var $menuBtn = $('#menu-btn'); 20 var $gMenu = $('#gmenu'); 21 var $faq = $('.faq'); 22 var $faqQ = $faq.find('dt'); 23 24 $(window).on('load resize',function(){ 25 windowW = $(this).width(); 26 if (resizeTimer !== false) { 27 clearTimeout(resizeTimer); 28 } 29 resizeTimer = setTimeout(function() { 30 if(windowW > breakPoint) { 31 32 fixedAdjust = 130; 33 // fixedHeaderPC(); 34 scrollRelease(); 35 $menuBtn.removeClass('open'); 36 $gMenu.css('display','none'); 37 } else { 38 fixedAdjust = 93; 39 } 40 }, 200); 41 42 }) 43 44 // function fixedHeaderPC() { 45 // 46 // } 47 48 $(window).scroll(function(){ 49 if($(this).scrollTop() > $headerH + 20) { 50 $header.addClass('fixed'); 51 globalNavPC(); 52 } else { 53 $header.removeClass('fixed'); 54 globalNavPC(); 55 $navCat.removeClass('active'); 56 $navCatFirst.addClass('active'); 57 } 58 }) 59 60 $globalNavSP.on('click',function(){ 61 var $this = $(this); 62 $this.parent("li").toggleClass('open'); 63 return false; 64 console.log("Sp"); 65 }) 66 67 function globalNavPC() { 68 console.log("PC"); 69 if($header.hasClass('fixed')) { 70 $globalNavPC.off(); 71 $globalNavPC.on({ 72 'mouseenter': function(){ 73 $navCat.hover(function(){ 74 $navCat.removeClass('active'); 75 $(this).addClass('active'); 76 }) 77 } 78 }) 79 } else { 80 $globalNavPC.on({ 81 'mouseenter': function(){ 82 $navCat.hover(function(){ 83 $navCat.removeClass('active'); 84 $(this).addClass('active'); 85 }) 86 }, 87 'mouseleave': function() { 88 $navCat.removeClass('active'); 89 $navCatFirst.addClass('active'); 90 } 91 }) 92 } 93 } 94 globalNavPC(); 95 96 $menuBtn.on('click',function(){ 97 $(this).toggleClass('open'); 98 $gMenu.fadeToggle(); 99 if($(this).hasClass('open')) { 100 fixScroll(); 101 } else { 102 scrollRelease(); 103 } 104 }) 105 106 function fixScroll(){ 107 pointY = $(window).scrollTop(); 108 109 $('body') 110 .css({ 111 'position': 'fixed', 112 'top': -pointY, 113 'width': '100%' 114 }); 115 }; 116 117 function scrollRelease(){ 118 $('body').css({ 119 'position': '', 120 'width': '', 121 'top': '' 122 }); 123 $(window).scrollTop(pointY); 124 }; 125 126 $faqQ.on('click',function(){ 127 $(this).parent().toggleClass('open'); 128 $(this).next().slideToggle(); 129 }) 130 131 //ã¤ã¡ã¼ã¸ãã¼ã«ãªã¼ãã¼ 132 $("a img").not('a img.nfhover').hover( 133 function(){$(this).fadeTo(200, 0.5);}, 134 function(){$(this).fadeTo(200, 1);} 135 ); 136 137 ///telã®aã¿ã°ãé¤å» 138/* 139 $("a[href*='tel:']:not(.entryFormColumn a)").each(function(){ 140 var childNodes = this.childNodes; 141 $(this).replaceWith(childNodes); 142 }); 143*/ 144 145});
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.