PageSourceSearch

https://www.dydo.co.jp/dydo_common/js/news.js?20261002145905229

js dydo.co.jp collected 2026-10-02 07:35:01 UTC 3,695 bytes, 2 lines download raw bytes

1(()=>{const e="/news/";const t=()=>{let e="";var t=document.querySelector('input[data-name="news_keyword"]').value.trim().split(/\s+/).filter(Boolean).slice(0,5);0<t.length&&(e=(e=e+t.map(e=>"news_keyword="+encodeURIComponent(e)).join("&")+"&")+t.map(e=>"news_block="+encodeURIComponent(e)).join("&"));var t=document.getElementById("select_01").value,n="",t=(""!==t&&(n=t+"/"),document.querySelectorAll('input[name="category"][type="radio"]:checked')),t=Array.from(t).map(e=>e.value),t=(0<t.length&&(""!==e&&(e+="&"),e+=t.map(e=>"category="+encodeURIComponent(e)).join("&")),window.location.origin),t=t+`/news/list/${n}?`+e;window.location.href=t};var n,o,r;if(document.querySelector('input[data-name="news_keyword"]')&&(n=(a=new URLSearchParams(window.location.search).getAll("news_keyword")).join(" "),o=document.querySelector('input[data-name="news_keyword"]'),0<a.length)&&o&&(o.value=n),document.querySelector(".js-news-slide01")){new Splide(".js-news-slide01",{type:"loop",perPage:2,autoplay:!0,interval:5e3,speed:500,arrows:!0,pagination:!0,paginationKeyboard:!0,gap:60,perMove:1,focus:"center",breakpoints:{768:{perPage:1,gap:40}}}).mount();if(document.querySelector(".js-news-slide01 .splide__arrow"))window.addEventListener("resize",e=>{document.querySelectorAll(".js-news-slide01 .splide__arrow").forEach(e=>{var t=(document.querySelectorAll(".news-slide01-item-img")[0].clientHeight-e.clientHeight)/2;e.style.top=t+"px"})}),window.dispatchEvent(new Event("resize"))}if(document.querySelector(".js-news-yearList")){var a=document.querySelector(".js-news-latest-year").textContent,c=document.querySelector(".js-news-earliest-year").textContent;const w=document.querySelector(".js-news-yearList");for(var l=a;c<=l;l--){var d=document.createElement("option");d.textContent=l.toString(),d.value=(r=l,location.pathname.replace("index.html","")==e?e+r+"/":location.pathname.match(/\d{4}/)?location.pathname.replace(location.pathname.match(/\d{4}/)[0],r):void 0),document.querySelector(".js-news-yearList").appendChild(d)}w.value=location.pathname,document.querySelector(".js-news-yearList").addEventListener("change",function(){location.href=w.value})}if(document.querySelector(".js-news-latest-year")){var i=parseInt(document.querySelector(".js-news-latest-year").textContent),s=parseInt(document.querySelector(".js-news-earliest-year").textContent),u=document.getElementById("select_01");if(u)for(let e=i;e>=s;e--){var m=document.createElement("option");m.value=e,m.textContent=e,u.appendChild(m)}}function p(){const t=1024<=window.innerWidth;document.querySelectorAll(".__newsSearch .mod-accordion").forEach(e=>{t?(e.setAttribute("open",""),e.dataset.locked="true"):(e.removeAttribute("open"),e.dataset.locked="false")})}document.querySelector(".js-news-search-submit")&&document.querySelector(".js-news-search-submit").addEventListener("click",function(e){t()}),(i=document.querySelector('input[data-name="news_keyword"]'))&&i.addEventListener("keydown",function(e){"Enter"===e.key&&(e.preventDefault(),t())}),document.querySelector(".js-search-reset")&&document.querySelector(".js-search-reset").addEventListener("click",function(e){e.preventDefault(),document.querySelectorAll('input[type="text"]').forEach(function(e){e.value=""}),document.querySelectorAll("select").forEach(function(e){e.selectedIndex=0}),document.querySelectorAll('input[type="radio"]').forEach(function(e){e.checked=!1})}),document.addEventListener("click",e=>{e.target.matches("details.accordion summary")&&"true"===e.target.parentElement.dataset.locked&&e.preventDefault()}),window.addEventListener("resize",p),window.addEventListener("DOMContentLoaded",p)})(window.FUNCTIONS);
2//# sourceMappingURL=news.js.map

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.