diff --git a/public/art/og-share.png b/public/art/og-share.png new file mode 100644 index 0000000..60bd00e Binary files /dev/null and b/public/art/og-share.png differ diff --git a/public/assets/common.js b/public/assets/common.js index c13539c..90d2000 100644 --- a/public/assets/common.js +++ b/public/assets/common.js @@ -31,6 +31,8 @@ window.BL = (function () { if (framed) document.querySelectorAll('nav a[href="/join"], nav a[href="/my"]').forEach(a => { a.target = '_blank'; a.rel = 'noopener'; }); } function renderFooter() { + const za = document.createElement('div'); za.className = 'wrap bl-zone-foot'; document.body.appendChild(za); + zone(za, window.innerWidth >= 760 ? 'footWide' : 'footPhone'); const f = document.createElement('footer'); f.className = 'bl-foot'; f.innerHTML = '
Part of the Crypto Team Build Network
' @@ -75,6 +77,15 @@ window.BL = (function () { }; tick(); setInterval(tick, 25000); } + // network ad zones (Marty 2026-11-13): LinkSpin zones on Marty's account, one per placement, mounted once (never re-rendered, + // so a view is counted once); a small 'Network' label so they never pass for a member's spot + const ZONES = { ledger: 'ls-d53e5d', footWide: 'ls-fd1e0a', footPhone: 'ls-46cbab', bought: 'ls-03783e', mySpots: 'ls-50eaeb', how: 'ls-79e849', contract: 'ls-bd7632' }; + function zone(el, key) { + if (!el || el.dataset.zoned || !ZONES[key]) return; el.dataset.zoned = '1'; el.classList.add('bl-zone'); + const lab = document.createElement('div'); lab.className = 'bl-zone-label'; lab.textContent = 'Network'; + const s = document.createElement('script'); s.async = true; s.src = 'https://linkspin.app/z.js'; s.setAttribute('data-zone', ZONES[key]); + el.appendChild(lab); el.appendChild(s); + } function withRef(href, sponsor) { if (!sponsor) return href; return href + (href.includes('?') ? '&' : '?') + 'ref=' + encodeURIComponent(sponsor); } - return { $, esc, getConfig, fmtPol, short, framed, status, getJSON, post, renderNav, renderFooter, tile, withRef }; + return { $, esc, getConfig, fmtPol, short, framed, status, getJSON, post, renderNav, renderFooter, tile, withRef, zone }; })(); diff --git a/public/assets/contract.js b/public/assets/contract.js index f67d30b..bbb8613 100644 --- a/public/assets/contract.js +++ b/public/assets/contract.js @@ -19,5 +19,6 @@ ['Momentum fund', d.fundBalance ? fmtPol(d.fundBalance) + ' POL' : '-'], ['Sales', d.paused === 'true' ? 'paused' : 'open']]; $('facts').innerHTML = '| ' + r[0] + ' | ' + r[1] + ' |
|---|
No earlier spots or sponsor to pay yet.
') + 'Company + momentum fund: ' + fmtPol(it.houseWei) + ' POL' + usd(it.houseWei, it.usd) + ' · Verify on Polygonscan
No spot sales yet.
'; + }); + $('rows').innerHTML = html.length ? html.slice(0, 10).join('') : 'No spot sales yet.
'; + $('rows2').innerHTML = html.slice(10).join(''); + BL.zone($('zLedger'), 'ledger'); $('upd').textContent = 'Updated ' + new Date().toLocaleTimeString(); } await load(); setInterval(load, 20000); diff --git a/public/assets/my.js b/public/assets/my.js index ca1af16..52886a5 100644 --- a/public/assets/my.js +++ b/public/assets/my.js @@ -20,7 +20,7 @@ async function load() { const d = await BL.getJSON('/api/my'); if (d.error) return BL.status(d.error, 'err'); - $('dash').hidden = false; $('me').textContent = d.username ? '@' + d.username + ' (' + BL.short(d.address) + ')' : d.address; + $('dash').hidden = false; BL.zone($('zMySpots'), 'mySpots'); $('me').textContent = d.username ? '@' + d.username + ' (' + BL.short(d.address) + ')' : d.address; const delivered = d.spots.reduce((t, s) => t + s.views, 0); $('stats').innerHTML = [['Spots owned', d.spots.length], ['Views delivered', delivered + ' of ' + d.spots.filter(s => s.kind !== 3).length * c.viewsOwed], ['POL paid in', BL.fmtPol(d.paidInWei)], ['POL paid out to you', BL.fmtPol(d.paidOutWei)]] diff --git a/public/board.html b/public/board.html index 256f48f..b4cd76d 100644 --- a/public/board.html +++ b/public/board.html @@ -3,11 +3,25 @@