\n \n"; function renderAdCode(code, suffix) { if (!code) return ''; let c = code.replace(/id="(im-[^"]+)"/g, `id="$1-${suffix}"`); c = c.replace(/elementid:"(im-[^"]+)"/g, `elementid:"$1-${suffix}"`); return c; } function runScripts(el) { Array.from(el.querySelectorAll('script')).forEach(function(old) { var n = document.createElement('script'); Array.from(old.attributes).forEach(function(a) { n.setAttribute(a.name, a.value); }); if (old.innerHTML) n.appendChild(document.createTextNode(old.innerHTML)); old.parentNode.replaceChild(n, old); }); } function updateAds() { var topAd = document.getElementById('top-fixed-ad-container'); if (topAd && currentAdCode) { topAd.innerHTML = renderAdCode(currentAdCode, 'top'); runScripts(topAd); } var botAd = document.getElementById('bottom-fixed-ad-container'); if (botAd && currentAdCode) { botAd.innerHTML = renderAdCode(currentAdCode, 'bottom'); runScripts(botAd); } } window.addEventListener('DOMContentLoaded', function() { updateAds(); }); window.addEventListener('blur', function() { var ov = document.getElementById('ad-overlay'); if (ov && ov.classList.contains('active')) { setTimeout(function() { if (typeof window.closeAdOverlay === 'function') window.closeAdOverlay(); else ov.classList.remove('active'); }, 300); } }); document.addEventListener('visibilitychange', function() { if (document.visibilityState === 'hidden') { var ov = document.getElementById('ad-overlay'); if (ov && ov.classList.contains('active')) { if (typeof window.closeAdOverlay === 'function') window.closeAdOverlay(); else ov.classList.remove('active'); } } });
| 最高到達ステージ | 点数 |
|---|---|
| 1回戦敗退 | 1点 |
| 2回戦敗退 | 2点 |
| 3回戦敗退 | 3点 |
| 準々決勝敗退 | 4点 |
| 準決勝敗退 | 5点 |
| 決勝進出 | 6点 |
| 優勝 | 7点 |
設定はこのブラウザに保存されます。バナー広告は常時表示されます。
| 日時 | アクセス数 | 広告クリック |
|---|---|---|
| 読込中... | ||