1/* =================================================================== 2 3 * ã¹ã ã¼ã¹ã¹ã¯ãã¼ã« 4 5=================================================================== */ 6 7$(document).ready(function () { 8 const menuBtn = $(".header-nav-list a"); 9 menuBtn.click(function(e) { 10 // ããã·ã¥ãªã³ã¯ã®å ´åã®ã¿å¦ç 11 const href = $(this).attr('href'); 12 if (href && href.indexOf('#') !== -1 && !href.match(/^[http:|https:|\/\/]/)) { 13 setTimeout(() => { 14 removeHash(); 15 }, 5); 16 } 17 }); 18 function removeHash() { 19 history.replaceState( 20 "", 21 document.title, 22 window.location.origin + window.location.pathname + window.location.search 23 ); 24 } 25}); 26 27/* =================================================================== 28 29 * ããã²ã¼ã·ã§ã³èª¿æ´ - .header 30 31=================================================================== */ 32 33(function () { 34 window.addEventListener("click", check_click); 35 36 function check_click(e) { 37 let target = e.target; 38 if (!target || target.tagName !== "A") { 39 return; 40 } 41 let href = target.getAttribute("href"); 42 if (href.indexOf("#") === -1) { 43 return; 44 } 45 if (href.match(/^[http:|https:|\/\/]/)) { 46 return; 47 } 48 setTimeout(hash_link_url_adjust, 0); 49 } 50 51 function hash_link_url_adjust(href) { 52 let sp = location.href.split("#"); 53 history.pushState(null, null, sp[0]); 54 } 55})(); 56 57$(function () {
58 let currentUrl = window.location.href; 59 $('.js-category-link').each(function () { 60 let linkUrl = $(this).attr('href'); 61 if (currentUrl == linkUrl) { 62 $(this).addClass('active'); 63 } 64 }); 65});
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.