1$(document).ready(function () { 2 //FVslider 3 $(".fvSlider").slick({ 4 accessibility: true, 5 autoplay: true, 6 autoplaySpeed: 4000, 7 dots: true, 8 arrows: false, 9 fade: false, 10 speed: 3000, 11 }); 12 // 13 14 //scroll link 15 $('a[href^="#"]').click(function () { 16 var adjust = 0; 17 var speed = 400; 18 var href = $(this).attr("href"); 19 var target = $(href == "#" || href == "" ? "html" : href); 20 var position = target.offset().top - 100 + adjust; 21 $("body,html").animate( 22 { 23 scrollTop: position, 24 }, 25 speed, 26 "swing" 27 ); 28 return false; 29 }); 30 // 31 32 //Pagetopã¹ã¯ãã¼ã« 33 $(".pagetop>a").on("click", function () { 34 $("html,body").animate({ 35 scrollTop: 0, 36 }), 37 "1000"; 38 }); 39 //-Pagetopã¹ã¯ãã¼ã« 40 41 // æåæ°å¶éï¼nullãã§ãã¯è¿½å ï¼ 42 const limit = document.querySelector(".txt-limit"); 43 if (limit) { 44 // è¦ç´ ãåå¨ãããç¢ºèª 45 const str = limit.textContent; 46 const len = 50; // åè§50åï¼å ¨è§ç´25åï¼ 47 if (str.length > len) { 48 limit.textContent = str.substring(0, len) + "â¦"; 49 } 50 } 51 // æåæ°å¶éï¼nullãã§ãã¯è¿½å ï¼ 52 53 //æåæ°å¶é 54 // const limit = document.querySelector(".txt-limit"); 55 // const str = limit.textContent; 56 // const len = 50; // åè§50åï¼å ¨è§ç´25åï¼ 57 // if (str.length > len) { 58 // limit.textContent = str.substring(0, len) + "â¦"; 59 // } 60}); 61 62//header settings 63document.addEventListener("DOMContentLoaded", function () { 64 const hamburger = document.querySelector(".c-hamburger"); 65 const headNav = document.querySelector(".p-header__nav"); 66 67 if (!hamburger) { 68 return false; 69 } 70 71 hamburger.addEventListener("click", () => { 72 if (hamburger.classList.contains("is-active")) { 73 hamburger.classList.remove("is-active"); 74 headNav.classList.remove("is-active"); 75 } else { 76 hamburger.classList.add("is-active"); 77 headNav.classList.add("is-active"); 78 } 79 }); 80 81 headNav.addEventListener("click", () => { 82 hamburger.classList.remove("is-active"); 83 headNav.classList.remove("is-active"); 84 }); 85}); 86 87document.addEventListener("DOMContentLoaded", function () { 88 const acMenuItems = document.querySelectorAll(".p-nav__item--acMenu"); 89 90 acMenuItems.forEach((item) => { 91 item.addEventListener("click", function (event) { 92 event.stopPropagation(); 93 94 item.classList.toggle("is-open"); 95 }); 96 }); 97 98 document.addEventListener("click", function (event) { 99 acMenuItems.forEach((item) => { 100 if (!item.contains(event.target)) { 101 item.classList.remove("is-open"); 102 } 103 }); 104 }); 105}); 106// 107 108//
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.