1/* HTMLèªã¿è¾¼ã¿å®äºå¾ã«å®è¡ 2-------------------------------------------------*/ 3window.addEventListener('load', function () { 4 5 var newContent = '<a href="#" id="to_top" role="button"><i class="fas fa-chevron-up"></i><br><span class="text">TOP</span></a>'; 6 var wrapper = document.getElementById('wrapper'); 7 wrapper.insertAdjacentHTML('beforeend', newContent); 8 9 //ãµãã¡ãã¥ã¼ãããè¦ç´ ã«ããã°ã«ãã¿ã³ã追å 10 let elems = document.querySelectorAll('.mobile-nav .menu-item-has-children > a'); 11 for (let i in elems) { 12 if (elems.hasOwnProperty(i)) { 13 var newContent = '<button class="has-children-btn" aria-expanded="false" aria-label="ãµãã¡ãã¥ã¼ãéã"></button>'; 14 elems[i].insertAdjacentHTML('afterend', newContent); 15 } 16 } 17 18 smooth_scroll(); 19 20 new ScrollHint('.scrollTable'); 21 22}); 23 24/* click ã¤ãã³ã 25-------------------------------------------------*/ 26window.addEventListener('click', function (e) { 27 28 var elem = e.target; 29 30 //ãµãã¡ãã¥ã¼ãã¿ã³ï¼toggleï¼ãã¯ãªã㯠31 if (elem.className.match(/has-children-btn/)) { 32 33 const content = elem.nextElementSibling; 34 35 if (elem.className.match(/active/)) { 36 content.style.height = 0; 37 content.style.visibility = 'hidden'; 38 elem.classList.remove("active"); 39 elem.setAttribute("aria-expanded", "false"); 40 elem.setAttribute("aria-label", "ãµãã¡ãã¥ã¼ãéã"); 41 42 } else { 43 slideDown(content); 44 elem.classList.add("active"); 45 content.style.visibility = 'visible'; 46 elem.setAttribute("aria-expanded", "true"); 47 elem.setAttribute("aria-label", "ãµãã¡ãã¥ã¼ãéãã"); 48 } 49 50 } 51 52 //ã¡ãã¥ã¼ãã¿ã³ï¼toggleï¼ãã¯ãªã㯠53 if (elem.className.match(/menu-btn/)) { 54 e.preventDefault(); 55 if (elem.className.match(/active/)) { 56 control_mobile_nav('', elem); 57 elem.classList.remove('active'); 58 elem.setAttribute("aria-expanded", "false"); 59 elem.setAttribute("aria-label", "ã¡ãã¥ã¼ãéã"); 60 } else { 61 control_mobile_nav('open', elem); 62 elem.classList.add('active'); 63 elem.setAttribute("aria-expanded", "true"); 64 elem.setAttribute("aria-label", "ã¡ãã¥ã¼ãéãã"); 65 } 66 } 67 68 69}); 70 71/* scroll ã¤ãã³ã 72-------------------------------------------------*/ 73window.addEventListener('scroll', function (e) { 74 75 //æå®ã®è¦ç´ ãä¸ã¹ã¯ãã¼ã«ã§ç¾ãã ä¸ã¹ã¯ãã¼ã«ã§æ¶ãã 76 const header_elem = document.getElementById('header'); 77 if (header_elem) { 78 scroll_up_down_elem(header_elem); 79 } 80 81 scroll_top(); 82 83}); 84 85 86//escãã¼æ¼ä¸ã§ã¡ãã¥ã¼ãéããããããã« 87window.addEventListener("keydown", (event) => { 88 if (event.key === "Escape") { 89 var elem = document.getElementById('menu-btn'); 90 control_mobile_nav('', elem); 91 } 92});
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.