diff --git a/public/promo.html b/public/promo.html index ec8f5c0..0921831 100644 --- a/public/promo.html +++ b/public/promo.html @@ -53,6 +53,12 @@

Where each one works best

+
+

Mystery Box and Ad Detective

+
New since 27 September: finish the day's three hunts and a Mystery Box unlocks with an Ad Detective case inside. Two images with the question built in, and a caption that carries your link.
+
+
+

Banners

Right-click to save, or copy the embed code: it already has your link in it.
@@ -80,6 +86,7 @@ const posts = [ { name: 'Short post', text: 'New thing I am playing with: PolHunter. You visit a site, find your code on the page, tap it to copy, paste it on your board, and a random drip of POL lands in your wallet. On chain, with a link to prove it. ' + link }, { name: 'Story post', text: 'I spent two minutes on a training page tonight, found a little glass coin at the bottom, tapped the code, and 0.26 POL showed up in my wallet a minute later. That is PolHunter. Small drips, real chain, no catch beyond actually visiting the site. Free to start, you just need an InstantAdPay account and a wallet. ' + link }, + { name: 'Mystery Box', text: 'Have you unlocked your Mystery Box today? Finish your three PolHunter hunts and a box opens with an Ad Detective case inside: visit a site, answer one question, get paid in POL. One answer only, so look carefully. ' + link }, { name: 'Telegram / WhatsApp', text: '\u{1F3AF} PolHunter is live. Missions across our sites, one code to find per site, random POL drips paid straight to your wallet. The hiding place moves every day. Start here: ' + link }, { name: 'Email swipe', subject: 'A scavenger hunt that pays in POL', text: 'Hey,\n\nQuick one. I have been testing something called PolHunter.\n\nYou pick a mission, spend a couple of minutes on the site it names, and your personal code appears somewhere on the page. Tap it to copy, paste it on your board, and a random drip of POL goes to your wallet, on Polygon, with a transaction link you can open.\n\nIt is free to start. You need an InstantAdPay account (free) and a wallet linked to it so the drips have somewhere to land.\n\nHave a look: ' + link + '\n\nNo promises about amounts. The pool is limited every day and the drips are random within the posted range. It is fun, it is real, and it takes a few minutes.\n\nTalk soon' }, ]; @@ -87,6 +94,10 @@ + '
' + (p.subject ? '' : 'XTelegramFacebookWhatsApp') + '
').join(''); + const mbCap = 'Have you unlocked your Mystery Box today? On PolHunter, finish your three daily hunts and a box unlocks. Inside is an Ad Detective case: visit a site, look around, answer one question, get paid in POL to your wallet. One answer only, so look carefully. ' + link; + document.getElementById('mystery').innerHTML = [['1200x630', 'Facebook, X, Telegram, link previews'], ['1080x1080', 'Instagram and square feeds']].map(([s, n]) => { const src = 'https://polhunter.com/promo/polhunter-mysterybox-' + s + '.jpg'; const code = 'PolHunter Mystery Box and Ad Detective: have you unlocked yours today?'; + return ''; }).join('') + + '

Caption to post with the image

Post the image, then the caption. On Facebook and X the picture comes from the image you attach, not from the link.

'; const sizes = [['728x90', 'Leaderboard'], ['468x60', 'Mobile leaderboard'], ['300x250', 'Medium rectangle'], ['250x250', 'Square'], ['125x125', 'Button'], ['160x600', 'Skyscraper'], ['1200x630', 'Social card'], ['1080x1080', 'Instagram square']]; document.getElementById('banners').innerHTML = sizes.map(([s, n]) => { const src = 'https://polhunter.com/promo/polhunter-' + s + (Number(s.split('x')[0]) >= 300 ? '.jpg' : '.png'); const code = 'PolHunter: visit it, find it, get paid in POL'; return ''; }).join(''); diff --git a/public/promo/polhunter-mysterybox-1080x1080.jpg b/public/promo/polhunter-mysterybox-1080x1080.jpg new file mode 100644 index 0000000..87e20ae Binary files /dev/null and b/public/promo/polhunter-mysterybox-1080x1080.jpg differ diff --git a/public/promo/polhunter-mysterybox-1200x630.jpg b/public/promo/polhunter-mysterybox-1200x630.jpg new file mode 100644 index 0000000..0781716 Binary files /dev/null and b/public/promo/polhunter-mysterybox-1200x630.jpg differ diff --git a/server.js b/server.js index 4cdf9f8..39d4b95 100644 --- a/server.js +++ b/server.js @@ -195,7 +195,7 @@ const server = http.createServer(async (req, res) => { } } // the coin on the code pill, fetched by mission-site visitors who hold no curtain pass - if (p === '/img/coin-sm.png' || p === '/img/coin.png' || p === '/img/og.jpg' || /^\/promo\/polhunter-\d+x\d+\.(jpg|png)$/.test(p)) return sendFile(res, path.join(PUBLIC_DIR, p.slice(1)), { 'Cache-Control': 'public, max-age=86400' }); + if (p === '/img/coin-sm.png' || p === '/img/coin.png' || p === '/img/og.jpg' || /^\/promo\/polhunter-[a-z-]*\d+x\d+\.(jpg|png)$/.test(p)) return sendFile(res, path.join(PUBLIC_DIR, p.slice(1)), { 'Cache-Control': 'public, max-age=86400' }); if (curtained(req, res, u)) return; // a member's share link: /?r= becomes a 30-day cookie; the landing then