1$(function () { 2 const header_logo = $('.header-logo').clone(); 3 const header_nav = $('.header-nav').clone(); 4 const header_info = $('.header-info').clone(); 5 $('.drawer-sp').append(header_logo).append(header_nav).append(header_info); 6 7 $('.menu-trigger').on('click', function () { 8 $(this).toggleClass('active'); 9 $('.drawer-sp').slideToggle(); 10 return false; 11 }); 12 13 $('.base-main-item-title').on('click', function () { 14 $(this).toggleClass('active').next('.base-main-item-body').slideToggle(); 15 }); 16 17 18 19 $('.header .header-nav-list li').hover(function() { 20 let width = $(window).width(); 21 if (width > 767) { 22 $(this).find('.mega-menu').stop().slideDown(); 23 } 24 }, function() { 25 let width = $(window).width(); 26 if (width > 767) { 27 $(this).find('.mega-menu').stop().slideUp(); 28 } 29 }); 30 31 $('.drawer-sp .header-nav-list .arrow').on('click', function() { 32 let width = $(window).width(); 33 if (width <= 767) { 34 $(this).toggleClass('show').parent().find('.mega-menu').slideToggle(); 35 } 36 return false; 37 }); 38 39 $('.footer-nav-title').on('click', function() { 40 let width = $(window).width(); 41 if (width <= 767) { 42 $(this).toggleClass('show').next('.footer-nav-list').slideToggle(); 43 return false; 44 } 45 }); 46 47 48}); 49 50window.addEventListener('load', function(){ 51 const expire = 365; 52 let cc = document.querySelector('.cookie-consent'); 53 let ca = document.querySelector('.cookie-agree'); 54 const flag = localStorage.getItem('popupFlag'); 55 if (flag != null) { 56 const data = JSON.parse(flag); 57 if (data['value'] == 'true') { 58 popup(); 59 } else { 60 const current = new Date(); 61 if (current.getTime() > data['expire']) { 62 setWithExpiry('popupFlag', 'true', expire); 63 popup(); 64 } 65 } 66 } else { 67 setWithExpiry('popupFlag', 'true', expire); 68 popup(); 69 } 70 ca.addEventListener('click', () => { 71 cc.classList.add('cc-hide1'); 72 setWithExpiry('popupFlag', 'false', expire); 73 }); 74 75 function setWithExpiry(key, value, expire) { 76 const current = new Date(); 77 expire = current.getTime() + expire * 24 * 3600 * 1000; 78 const item = { 79 value: value, 80 expire: expire 81 }; 82 localStorage.setItem(key, JSON.stringify(item)); 83 } 84 85 function popup() { 86 cc.classList.add('is-show'); 87 } 88});
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.