1// ãã¼ã¸å ãªã³ã¯ã¯ãªãã¯æã«ã¡ãã¥ã¼ãéããå¦ç 2document.addEventListener("DOMContentLoaded", function () { 3 const hash = window.location.hash; 4 5 // ã¿ãåã®ãããã³ã° 6 const tabMapping = { 7 'ticket': 'tab1', 8 'novelty': 'tab2', 9 'goods': 'tab3', 10 'bd': 'tab4' 11 }; 12 13 // ããã·ã¥ããã¿ãåãåå¾ 14 const tabName = hash.replace('#', ''); 15 16 if (tabMapping[tabName]) { 17 const tabInputId = tabMapping[tabName]; 18 const targetPanel = document.getElementById(tabName); 19 const tabInput = document.getElementById(tabInputId); 20 21 if (targetPanel && tabInput) { 22 tabInput.checked = true; 23 24 // ãã¼ã¸ãããã«ã¹ã¯ãã¼ã«ï¼ã¿ãã®åãæ¿ãã¨ã³ã³ãã³ãèªã¿è¾¼ã¿ãå¾ ã¤ï¼ 25 setTimeout(() => { 26 window.scrollTo({ top: 0, behavior: "smooth" }); 27 }, 300); 28 } 29 } 30 31 // ã¡ãã¥ã¼å ã®ã¢ã³ã«ã¼ãªã³ã¯ã«ã¤ãã³ããªã¹ãã¼ã追å 32 const menuLinks = document.querySelectorAll('.fsmenu a[href^="./ticket.html#"], .fsmenu a[href^="#"]'); 33 34 menuLinks.forEach(link => { 35 link.addEventListener('click', function(e) { 36 const href = this.getAttribute('href'); 37 38 // åä¸ãã¼ã¸å ã®ã¢ã³ã«ã¼ãªã³ã¯ã®å ´å 39 if (href.startsWith('#') || href.includes('ticket.html#')) { 40 e.preventDefault(); 41 42 // ããã·ã¥é¨åãåå¾ 43 const hashPart = href.includes('#') ? href.split('#')[1] : ''; 44 45 if (hashPart && tabMapping[hashPart]) { 46 const tabInputId = tabMapping[hashPart]; 47 const tabInput = document.getElementById(tabInputId); 48 const targetPanel = document.getElementById(hashPart); 49 50 if (tabInput) { 51 tabInput.checked = true; 52 } 53 54 // ã¡ãã¥ã¼ãéãã 55 const hamburger = document.querySelector('.hamburger'); 56 if (hamburger) { 57 hamburger.click(); 58 } 59 60 // ã¹ã¯ãã¼ã« 61 if (targetPanel) { 62 setTimeout(() => { 63 window.scrollTo({ top: 0, behavior: "smooth" }); 64 }, 300); // ã¡ãã¥ã¼ãéããã®ãå¾ ã¤ 65 } 66 } 67 } 68 }); 69 }); 70});
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.