//const shopID = shopData[0].shopID,shopCode = shopData[0].shopCode; const insertAfter = function(newItem, target,bn) {if(!(bn == 0)){target = target.nextSibling};target.parentNode.insertBefore(newItem, target);} const dating = function(){date = new Date();date = date.getTime();return date;} const appendScript = function(URL,option) {let el = document.createElement('script');el.setAttribute('charset','UTF-8');if(option){el.setAttribute(option,option);}else el.setAttribute('defer','defer');el.src = URL+'?' + dating();const t = document.querySelector('[data-loader]');if(t.getAttribute('data-loader')=='main'){insertAfter(el,t,1);}else document.head.appendChild(el);}; const appendStyle = function(URL) {let el = document.createElement('link');el.setAttribute('type','text/css');el.setAttribute('rel','stylesheet');el.href = URL+'?' + dating();document.head.appendChild(el);}; const autoQuery = function(){const reObj = new RegExp(/\?/g);let crEl = document.querySelectorAll('[src]');crEl.forEach(function(list){let srcUrl = list.getAttribute('src');if(!reObj.test(srcUrl)){srcUrl = srcUrl+'?'+dating();list.setAttribute('src',srcUrl);}});} appendStyle('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@100..900&family=Noto+Serif+JP:wght@200..900&display=swap'); appendStyle('https://fonts.googleapis.com/css2?family=Oswald:wght@200..700&family=Roboto:wght@100..900&display=swap'); appendScript('https://cdn.jsdelivr.net/npm/@splidejs/splide@4.1.4/dist/js/splide.min.js','async'); appendStyle('https://cdn.jsdelivr.net/npm/@splidejs/splide@4.1.4/dist/css/splide.min.css'); appendStyle('/wp/wp-content/themes/hida/opt/only.css'); appendStyle('/wp/wp-content/themes/hida/asset/pagenav.css'); appendScript('/wp/wp-content/themes/hida/opt/sub.js','async'); appendScript('/wp/wp-content/themes/hida/asset/mapinfo.js','async'); appendStyle('/wp/wp-content/themes/hida/asset/mapinfo.css'); appendScript('/wp/wp-content/themes/hida/asset/pagenav.js','async');