async function setup() { const hi = setInterval(() => { const header = document.getElementById("xrk-header"); if (header) { const html = `

Menu

お知らせ

開催概要

セッション

エキスポ

特別企画

タイムテーブル

En

XR Kaigiに参加する`; header.innerHTML = html; const current = header.getAttribute('current-page'); if (current) { document.getElementById("xrk-h-pc-"+current).classList.add("xrk-h-current") } clearInterval(hi); } else { // console.log("!!! no header"); } },300); const fi = setInterval(() => { const footer = document.getElementById("xrk-footer"); if (footer) { // console.log(">>> footer found") footer.innerHTML = `

公式アカウントをフォローして、最新情報をチェック!

`; clearInterval(fi); } else { // console.log("!!! no footer"); } },300); const informationSection = document.getElementsByClassName("container widget-header"); if (informationSection.length === 1) { const section = informationSection[0].parentNode.parentNode section.id = "xrk-information"; section.classList.add("xrk-base"); const childSection = informationSection[0].parentNode childSection.classList.add("xrk-container") const dateTexts = section.getElementsByClassName("information-date__text") Object.values(dateTexts).forEach(dt => { const dateArr = dt.innerText.split(".") dt.innerText = dateArr.join("/") }) } }