From d033cc7122a43851424727f241829ddb7b24c53e Mon Sep 17 00:00:00 2001 From: martbost Date: Sat, 14 Nov 2026 11:02:14 -0600 Subject: [PATCH] Network line on the six pages with their own footer (conversion-tracking, earning, friday, games, partners, wednesday): netline.js adds Terms, Earnings Disclaimer, Privacy, Contract, Ledger, Support when the footer has none, the company line, and the 'Part of the network' list from /api/network-sites (InstantAdPay current, fallback copy). netline.js?v=20261114nf. iap-qa member: ALL PASSED Co-Authored-By: Claude Opus 5.5 --- public/assets/netline.js | 24 ++++++++++++++++++++++++ public/conversion-tracking.html | 1 + public/earning.html | 1 + public/friday.html | 1 + public/games.html | 1 + public/partners.html | 1 + public/wednesday.html | 1 + 7 files changed, 30 insertions(+) create mode 100644 public/assets/netline.js diff --git a/public/assets/netline.js b/public/assets/netline.js new file mode 100644 index 0000000..e7e79b4 --- /dev/null +++ b/public/assets/netline.js @@ -0,0 +1,24 @@ +// "Part of the network" footer line for pages that do not load common.js (Marty 2026-11-14 trust pack): company line + the network +// list from the hub (/api/network-sites, built-in copy if it does not answer). The current site comes from data-site on this tag. +(function () { + var me = (document.currentScript && document.currentScript.getAttribute('data-site')) || 'iap'; + var FALLBACK = [['iap', 'InstantAdPay', 'https://instantadpay.com'], ['linkspin', 'LinkSpin', 'https://linkspin.app'], ['dlb', 'Downline Banners', 'https://downlinebanners.com'], + ['vbb', 'Viral Banner Blitz', 'https://viralbannerblitz.com'], ['stackpol', 'Stack POL', 'https://stackpol.com'], ['earnerscorner', 'Earners Corner', 'https://earnerscorner.com']].map(function (a) { return { id: a[0], name: a[1], url: a[2] }; }); + function esc(s) { return String(s).replace(/[&<>"]/g, function (c) { return { '&': '&', '<': '<', '>': '>', '"': '"' }[c]; }); } + function run() { + var f = document.querySelector('footer'); if (!f || f.querySelector('.netline')) return; + var hasLegal = !!f.querySelector('a[href="/terms"]'); // decided once, before this line adds its own links + var host = f.querySelector('.wrap') || f; + var box = document.createElement('div'); box.className = 'netline'; + box.style.cssText = 'flex-basis:100%;width:100%;margin-top:10px;display:flex;gap:6px 14px;flex-wrap:wrap;align-items:baseline;font-size:12.5px'; + host.appendChild(box); + var paint = function (list) { + box.innerHTML = (hasLegal ? '' : 'Terms · Earnings Disclaimer · Privacy · Contract · Ledger · Support') + 'TrustClickz · 615 Green Valley Drive, Moody, AL 35004Part of the networkOne account across the network:' + list.map(function (s) { + return s.id === me ? '' + esc(s.name) + ' (you are here)' : '' + esc(s.name) + ''; + }).join(''); + }; + paint(FALLBACK); + fetch('/api/network-sites').then(function (r) { return r.json(); }).then(function (l) { if (Array.isArray(l) && l.length) paint(l); }).catch(function () {}); + } + if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', run); else run(); +})(); diff --git a/public/conversion-tracking.html b/public/conversion-tracking.html index c705b17..d9617d8 100644 --- a/public/conversion-tracking.html +++ b/public/conversion-tracking.html @@ -267,5 +267,6 @@ + diff --git a/public/earning.html b/public/earning.html index 40175f2..db7e2b8 100644 --- a/public/earning.html +++ b/public/earning.html @@ -98,5 +98,6 @@ + diff --git a/public/friday.html b/public/friday.html index a43ca6c..1eea253 100644 --- a/public/friday.html +++ b/public/friday.html @@ -73,5 +73,6 @@ + diff --git a/public/games.html b/public/games.html index aec84a7..292c5d6 100644 --- a/public/games.html +++ b/public/games.html @@ -80,5 +80,6 @@ + diff --git a/public/partners.html b/public/partners.html index 922dfab..8ff51b7 100644 --- a/public/partners.html +++ b/public/partners.html @@ -133,5 +133,6 @@ + diff --git a/public/wednesday.html b/public/wednesday.html index 5ac9d33..8528e18 100644 --- a/public/wednesday.html +++ b/public/wednesday.html @@ -66,5 +66,6 @@ +