// Front page: the reshare board, credit-featured ads, today's numbers and the PolHunter embed (hunters' visits never count). (async function () { const $ = VAS.$; const d = await VAS.wire('front').catch(() => ({})); const t = d.today || {}; $('todayStats').innerHTML = [[t.ads, 'ads running'], [t.reshares, 'reshares today'], [t.views, 'verified views today'], [t.vclicks, 'verified clicks today']] .map(x => '
' + VAS.n(x[0]) + '' + x[1] + '
').join(''); const b = d.board || []; $('boardAds').innerHTML = b.length ? b.map(x => VAS.adCard(x, { place: 'board', extra: 'Open and reshare' })).join('') : '

No ads yet. Post the first one free.

'; VAS.featured($('featured'), d); // PolHunter embed (the network pattern). The PolHunter mission itself is added in polhunter.com/admin at go-live (not made yet) const ph = document.createElement('script'); ph.async = true; ph.src = 'https://polhunter.com/embed.js'; ph.setAttribute('data-slots', '3'); ph.setAttribute('data-selector', '#how .card-ink'); document.body.appendChild(ph); // the find code hides in one of the three "How an ad spreads" steps (the ViralAdBlitz pattern) })();