Network ad zones (punch list, Marty 2026-11-17): LinkSpin zones on Marty's account made through LinkSpin's admin zone route (footer wide 728x90, footer phone 320x50, ledger 468x60, not-found 300x250), the ViralAdBlitz pattern; common.js ?v=20261117z

Zones: ls-2b9438 / ls-df436d / ls-c469a6 / 404 ls-4108d7.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
martbost
2026-11-17 08:29:00 -06:00
parent 482ecc62c9
commit 22dcd3d7a6
21 changed files with 40 additions and 20 deletions
+20
View File
@@ -129,3 +129,23 @@ window.VAS = (function () {
try { if (window.top !== window) return; } catch (e) { return; }
var s = document.createElement('script'); s.src = '/assets/netweekend.js?v=20261117'; s.defer = true; s.setAttribute('data-site', 'viraladsource'); document.head.appendChild(s);
})();
// network ad zones (2026-11-17, the ViralAdBlitz pattern): LinkSpin zones on Marty's LinkSpin account for viraladsource.com, made through
// LinkSpin's named admin zone route: footer wide 728x90 (ls-2b9438), footer phone 320x50 (ls-df436d), ledger 468x60
// (ls-c469a6); the not-found page carries ls-4108d7. Admin pages get none.
(function () {
const ZONES = { footWide: 'ls-2b9438', footPhone: 'ls-df436d', ledger: 'ls-c469a6' };
function zone(el, id) {
if (!el || el.dataset.zoned) return; el.dataset.zoned = '1'; el.className = 'net-zone'; el.style.cssText = 'margin:18px auto;text-align:center;max-width:100%';
const lab = document.createElement('div'); lab.textContent = 'Network'; lab.style.cssText = 'font-size:11px;letter-spacing:1px;opacity:.7;margin-bottom:4px';
const s = document.createElement('script'); s.async = true; s.src = 'https://linkspin.app/z.js'; s.setAttribute('data-zone', id);
el.appendChild(lab); el.appendChild(s);
}
function run() {
const p = location.pathname.replace(/\/$/, '') || '/';
if (p === '/admin' || document.body.dataset.noZones) return;
if (p === '/ledger') { const t = document.getElementById('rows'); const sec = t && t.closest('section'); if (sec && sec.parentNode) { const d = document.createElement('div'); sec.parentNode.insertBefore(d, sec.nextSibling); zone(d, ZONES.ledger); } }
const za = document.createElement('div'); document.body.appendChild(za); zone(za, window.innerWidth >= 760 ? ZONES.footWide : ZONES.footPhone);
}
if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', run); else run();
})();