1//ã¹ã¯ãã¼ã«ãããä¸é¨åºå® 2$(function () { 3 var nav = $("#headerfix"), 4 offset = nav.offset(); 5 $(window).scrollTop(function () { 6 if ($(window).scrollTop() > offset.top) { 7 nav.addClass("fixed"); 8 } else { 9 nav.removeClass("fixed"); 10 } 11 }); 12}); 13 14//ãããã¹ã©ã¤ãã¼ 15$(".topslider").slick({ 16 autoplay: true, //èªååç 17 speed: 2000, //ã¢ãã¡ã¼ã·ã§ã³ã®åãæ¿ãã¹ãã¼ã 18 fade: true, //ã¹ã©ã¤ãã®åãæ¿ãããã§ã¼ãã« 19 autoplaySpeed: 3000, //èªååçæã®ã¹ã©ã¤ãã®éæ¢æé 20 pauseOnHover: false, //ããã¼ãã¦ãæ¢ã¾ããªãããã« 21 pauseOnFocus: false, //ãã©ã¼ã«ã¹ãã¦ãæ¢ã¾ããªãããã« 22 dots: false, //ã¹ã©ã¤ãä¸ã®ããã 23 arrows: false, //å·¦å³ã®ç¢å° 24 nextArrow: '<button type="button" class="slick-next">Next</button>', 25 prevArrow: '<button type="button" class="slick-prev">Previous</button>', 26}); 27 28//ãã±ããåçã®ã¹ã©ã¤ãã¼ 29$(function () { 30 $slide = $(".slide"); 31 $navigation = $(".slide-navigation .slide-item"); 32 33 $slide.slick({ 34 //slickã¹ã©ã¤ãã¼ä½æ 35 infinite: true, 36 slidesToShow: 1, 37 slidesToScroll: 1, 38 arrows: false, 39 fade: true, 40 draggable: false, 41 responsive: [ 42 { 43 breakpoint: 992, 44 settings: { 45 dots: true, 46 fade: false, 47 }, 48 }, 49 ], 50 }); 51 52 $navigation.each(function (index) { 53 //ãµã ãã¤ã«ã«é£çªä»ä¸å±æ§ 54 $(this).attr("data-number", index); 55 }); 56 $navigation.eq(0).addClass("current"); //1æããªã¼ãã¼ã¬ã¤ 57 58 $navigation.on("click", function () { 59 //ãµã ãã¤ã«ã¯ãªãã¯æã¤ãã³ã 60 var number = $(this).attr("data-number"); 61 $slide.slick("slickGoTo", number, true); 62 $(this).siblings().removeClass("current"); 63 $(this).addClass("current"); 64 }); 65}); 66 67//PDF表示ã®ã¹ã©ã¤ãã¼ 68$(".pdfslider").slick({ 69 autoplay: false, //èªååç 70 dots: true, //ã¹ã©ã¤ãä¸ã®ããã 71 arrows: false, //å·¦å³ã®ç¢å° 72 infinite: false, 73 slidesToShow: 2, 74 slidesToScroll: 1, 75 responsive: [ 76 { 77 breakpoint: 768, // 767px以ä¸ã®ãµã¤ãºã«é©ç¨ 78 settings: { 79 slidesToShow: 1, 80 dots: true, 81 }, 82 }, 83 ], 84}); 85 86//ãããããã±ããã®ã¹ã©ã¤ãã¼ 87$(".recomendslider").slick({ 88 autoplay: false, //èªååç 89 dots: false, //ã¹ã©ã¤ãä¸ã®ããã 90 arrows: false, //å·¦å³ã®ç¢å° 91 infinite: false, 92 slidesToShow: 4, 93 slidesToScroll: 1, 94 responsive: [ 95 { 96 breakpoint: 768, // 767px以ä¸ã®ãµã¤ãºã«é©ç¨ 97 settings: { 98 slidesToShow: 1.15, 99 }, 100 }, 101 ], 102}); 103 104//ãããã¯ã¹ã«ã¼ãã®ã¹ã©ã¤ãã¼ 105$("#topics-list").slick({ 106 dots: true, //ã¹ã©ã¤ãä¸ã®ããã 107 arrows: true, //å·¦å³ã®ç¢å° 108 slidesToShow: 4, //表示ããã¹ã©ã¤ãæ° 109 autoplay: true, 110 autoplaySpeed: 4000, 111 responsive: [ 112 { 113 breakpoint: 1400, 114 settings: { 115 slidesToShow: 3, 116 centerPadding: "60px", 117 }, 118 }, 119 { 120 breakpoint: 768, // 767px以ä¸ã®ãµã¤ãºã«é©ç¨ 121 settings: { 122 slidesToShow: 1, 123 centerPadding: "50px", 124 }, 125 }, 126 ], 127}); 128 129$("#topics-list").on("setPosition", function () { 130 let maxHeight = 0; 131 132 // 1. 䏿¦é«ããautoã«æ»ãï¼åè¨ç®ã®ããï¼ 133 $("#topics-list .slick-slide").css("height", "auto"); 134 135 // 2. ä¸çªé«ãã¹ã©ã¤ããæ¢ã 136 $("#topics-list .slick-slide").each(function () { 137 const h = $(this).outerHeight(); 138 if (h > maxHeight) maxHeight = h; 139 }); 140 141 // 3. å ¨ã¹ã©ã¤ãã«æå¤§ã®é«ããè¨å® 142 $("#topics-list .slick-slide").css("height", maxHeight + "px"); 143}); 144 145//SNSã·ã§ã¢ãã¿ã³ 146let url = location.href; 147let snsLinks = $(".js-sns-link"); 148for (let i = 0; i < snsLinks.length; i++) { 149 let href = snsLinks.eq(i).attr("href"); 150 //ã·ã§ã¢ãã¼ã¸ã®URL䏿¸ã 151 href = href.replace("u=", "u=" + url); //facebook 152 href = href.replace("url=", "url=" + url); //X,LINE 153 snsLinks.eq(i).attr("href", href); 154} 155 156// ããã¼åºå 157$("#banner-ad-list").slick({ 158 autoplay: true, //èªååç 159 autoplaySpeed: 5000, //èªååçæã®ã¹ã©ã¤ãã®éæ¢æé 160 dots: true, //ã¹ã©ã¤ãä¸ã®ããã
161 arrows: false, //å·¦å³ã®ç¢å° 162 infinite: true, 163 slidesToShow: 4, //表示ããã¹ã©ã¤ãæ° 164 variableWidth: false, //ã¹ã©ã¤ãã®å¹ ãèªåèª¿æ´ 165 responsive: [ 166 { 167 breakpoint: 1400, 168 settings: { 169 slidesToShow: 3, 170 }, 171 }, 172 { 173 breakpoint: 768, // 767px以ä¸ã®ãµã¤ãºã«é©ç¨ 174 settings: { 175 slidesToShow: 1, 176 }, 177 }, 178 ], 179}); 180 181document.addEventListener("DOMContentLoaded", () => { 182 const parentSelect = document.getElementById("parentSelect"); 183 const childSelect = document.getElementById("childSelect"); 184 185 const options = { 186 fruits: ["Apple", "Banana", "Orange"], 187 vegetables: ["Carrot", "Broccoli", "Spinach"], 188 }; 189 190 parentSelect.addEventListener("change", () => { 191 const selectedCategory = parentSelect.value; 192 193 // Clear previous options 194 childSelect.innerHTML = '<option value="">-- Select an option --</option>'; 195 196 if (options[selectedCategory]) { 197 // Enable child select and populate options 198 options[selectedCategory].forEach((item) => { 199 const option = document.createElement("option"); 200 option.value = item.toLowerCase(); 201 option.textContent = item; 202 childSelect.appendChild(option); 203 }); 204 childSelect.disabled = false; 205 } else { 206 // Disable child select if no valid category 207 childSelect.disabled = true; 208 } 209 }); 210}); 211 212// ãã£ããã³ãã¼ã®ãµã¤ãºå¾®èª¿æ´ï¼æçµçã«ç»åå ã¸å¼·å¶ãã£ããï¼ 213function fitCatchCopy() { 214 const el = document.getElementById("catch-copy"); 215 if (!el) return; 216 const container = el.parentElement; 217 // ç»åé«ã確å®å¾ã«è©ä¾¡ 218 const maxHeight = container.clientHeight - 16; // ä¸ä¸ä½ç½å 219 let fontSize = parseFloat(getComputedStyle(el).fontSize); 220 221 // è¡æ°ãå¤ãå ´åã¯åéãè©°ããã¯ã©ã¹ä»ä¸ 222 if (el.innerText.length > 40) { 223 el.classList.add("tight"); 224 } 225 226 // åã¾ãã¾ã§ãã©ã³ããµã¤ãºç¸®å°ï¼ä¸é12pxï¼ 227 while (el.scrollHeight > maxHeight && fontSize > 12) { 228 fontSize -= 1; 229 el.style.fontSize = fontSize + "px"; 230 } 231} 232 233// ç»åèªã¿è¾¼ã¿å¾ã¨ãªãµã¤ãºæã«å®è¡ 234window.addEventListener("load", () => { 235 fitCatchCopy(); 236 // ã¹ã©ã¤ãã¼ãé«ãã夿´ããå¯è½æ§ãããããé å»¶åãã§ã㯠237 setTimeout(fitCatchCopy, 500); 238}); 239window.addEventListener("resize", () => { 240 // åçãªãµã¤ãºæã¯ä¸æ¦åæãµã¤ãºã¸æ»ãåè¨ç® 241 const el = document.getElementById("catch-copy"); 242 if (el) { 243 el.style.fontSize = ""; 244 } 245 fitCatchCopy(); 246});
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.