Network ad zones in seven subtle places (Marty 2026-11-13: 'do all seven'), LinkSpin zones on Marty's account, each mounted once with a small 'Network' label: ledger after the 10th sale (468x60), above the footer on every page (728x90 wide / 320x50 phone), after a purchase (300x250), My Spots under the stats (468x60), How it works between cards (300x250), contract proof (468x60), 404 (300x250). CSP admits linkspin.app (script + serve call). SEO: per-page descriptions, canonical, Open Graph + Twitter cards with a 1200x630 preview (art/og-share.png), JSON-LD on home, /sitemap.xml, robots Sitemap line, My Spots noindex. common.js?v=4, line.css?v=6. Smoke 76/76.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
+12
-1
@@ -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 = '<div class="wrap"><p>Part of the Crypto Team Build Network</p>'
|
||||
@@ -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 };
|
||||
})();
|
||||
|
||||
@@ -19,5 +19,6 @@
|
||||
['Momentum fund', d.fundBalance ? fmtPol(d.fundBalance) + ' POL' : '-'],
|
||||
['Sales', d.paused === 'true' ? 'paused' : 'open']];
|
||||
$('facts').innerHTML = '<table class="tbl">' + rows.map(r => '<tr><th style="width:160px">' + r[0] + '</th><td style="word-break:break-all">' + r[1] + '</td></tr>').join('') + '</table>';
|
||||
BL.zone($('zContract'), 'contract');
|
||||
$('split').innerHTML = '<tr><th>Share</th><th>To</th></tr>' + d.split.map(s => '<tr><td>' + esc(s.share) + '</td><td>' + esc(s.to) + '</td></tr>').join('');
|
||||
})();
|
||||
|
||||
@@ -1 +1 @@
|
||||
(async function () { await BL.renderNav("/how"); BL.renderFooter(); })();
|
||||
(async function () { await BL.renderNav("/how"); BL.renderFooter(); BL.zone(document.getElementById("zHow"), "how"); })();
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
const r = forAddr ? await BLWallet.buyFor(forAddr, sponsor, q.sendWei) : await BLWallet.buy(sponsor, q.sendWei);
|
||||
if (r.receipt.status !== '0x1') throw new Error('The transaction reverted. Nothing was charged except gas.');
|
||||
BL.status('');
|
||||
$('doneCard').hidden = false; $('buyCard').hidden = true;
|
||||
$('doneCard').hidden = false; $('buyCard').hidden = true; BL.zone($('zBought'), 'bought');
|
||||
$('txLink').innerHTML = c.explorer ? '<a target="_blank" rel="noopener" href="' + BL.esc(c.explorer + '/tx/' + r.hash) + '">View the transaction</a>' : BL.esc(r.hash);
|
||||
if (forAddr) $('doneCard').querySelector('h3').textContent = 'The spot is in the line for ' + BL.short(forAddr);
|
||||
} catch (e) { BL.status(String(e && e.message || e).slice(0, 300), 'err'); }
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
const t = d.totals || {};
|
||||
$('totals').innerHTML = [['Spots sold', t.spots || 0], ['Members', t.members || 0], ['POL paid out by the contract', fmtPol(t.paidOutWei || '0', 2)], ['Momentum fund', t.fundWei ? fmtPol(t.fundWei, 2) + ' POL' : '-']]
|
||||
.map(x => '<div class="stat"><b>' + esc(x[1]) + '</b><span>' + esc(x[0]) + '</span></div>').join('');
|
||||
$('rows').innerHTML = d.items.length ? d.items.map(it => {
|
||||
const html = d.items.map(it => {
|
||||
const when = it.at ? new Date(it.at).toLocaleString() : '';
|
||||
const pays = it.pays.map(p => '<li>' + (p.failed ? 'Bounced (to the fund): ' : '') + (p.role === 'sponsor' ? 'Sponsor' : 'Line ' + p.level + ' (spot #' + (it.spotId - p.level) + ')')
|
||||
+ ': <b>' + fmtPol(p.wei) + ' POL</b>' + usd(p.wei, it.usd) + ' to ' + who(p.name, p.to) + '</li>').join('');
|
||||
@@ -19,7 +19,10 @@
|
||||
+ (pays ? '<ul class="pays">' + pays + '</ul>' : '<p class="muted small">No earlier spots or sponsor to pay yet.</p>')
|
||||
+ '<p class="small muted">Company + momentum fund: ' + fmtPol(it.houseWei) + ' POL' + usd(it.houseWei, it.usd)
|
||||
+ ' · <a target="_blank" rel="noopener" href="' + esc(d.explorer + '/tx/' + it.tx) + '">Verify on Polygonscan</a></p></div>';
|
||||
}).join('') : '<p class="muted">No spot sales yet.</p>';
|
||||
});
|
||||
$('rows').innerHTML = html.length ? html.slice(0, 10).join('') : '<p class="muted">No spot sales yet.</p>';
|
||||
$('rows2').innerHTML = html.slice(10).join('');
|
||||
BL.zone($('zLedger'), 'ledger');
|
||||
$('upd').textContent = 'Updated ' + new Date().toLocaleTimeString();
|
||||
}
|
||||
await load(); setInterval(load, 20000);
|
||||
|
||||
+1
-1
@@ -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)]]
|
||||
|
||||
Reference in New Issue
Block a user