Promo: say plainly that Facebook's share takes the link only
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
+1
-1
@@ -97,7 +97,7 @@
|
||||
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 = '<a href="' + link + '" target="_blank" rel="noopener"><img src="' + src + '" width="' + s.split('x')[0] + '" height="' + s.split('x')[1] + '" alt="PolHunter Mystery Box and Ad Detective: have you unlocked yours today?"></a>';
|
||||
return '<div class="banner"><div class="bhead"><b>' + s + '</b> <span class="site">' + n + '</span></div><div class="bimg"><img src="' + src + '" alt="Mystery Box ' + s + '"></div><textarea rows="3" id="mb' + s + '">' + esc(code) + '</textarea><div class="sharebtns"><button class="btn pol sm" data-copy="#mb' + s + '">Copy embed</button><a class="btn ghost sm" href="' + src + '" download>Save image</a></div></div>'; }).join('')
|
||||
+ '<div class="card" style="grid-column:1/-1"><h3>Caption to post with the image</h3><textarea id="mbcap" rows="5">' + esc(mbCap) + '</textarea><div class="sharebtns"><button class="btn pol sm" data-copy="#mbcap">Copy</button><a class="btn ghost sm" target="_blank" rel="noopener" href="https://twitter.com/intent/tweet?text=' + encodeURIComponent(mbCap) + '">X</a><a class="btn ghost sm" target="_blank" rel="noopener" href="https://www.facebook.com/sharer/sharer.php?u=' + L + '">Facebook</a><a class="btn ghost sm" target="_blank" rel="noopener" href="https://t.me/share/url?url=' + L + '&text=' + encodeURIComponent(mbCap.replace(link, '').trim()) + '">Telegram</a><a class="btn ghost sm" target="_blank" rel="noopener" href="https://wa.me/?text=' + encodeURIComponent(mbCap) + '">WhatsApp</a></div><p class="small" style="margin-top:8px">Post the image, then the caption. On Facebook and X the picture comes from the image you attach, not from the link.</p></div>';
|
||||
+ '<div class="card" style="grid-column:1/-1"><h3>Caption to post with the image</h3><textarea id="mbcap" rows="5">' + esc(mbCap) + '</textarea><div class="sharebtns"><button class="btn pol sm" data-copy="#mbcap">Copy</button><a class="btn ghost sm" target="_blank" rel="noopener" href="https://twitter.com/intent/tweet?text=' + encodeURIComponent(mbCap) + '">X</a><a class="btn ghost sm" target="_blank" rel="noopener" href="https://www.facebook.com/sharer/sharer.php?u=' + L + '">Facebook</a><a class="btn ghost sm" target="_blank" rel="noopener" href="https://t.me/share/url?url=' + L + '&text=' + encodeURIComponent(mbCap.replace(link, '').trim()) + '">Telegram</a><a class="btn ghost sm" target="_blank" rel="noopener" href="https://wa.me/?text=' + encodeURIComponent(mbCap) + '">WhatsApp</a></div><p class="small" style="margin-top:8px">Facebook only ever takes the link: its share button ignores any text and builds a preview of its own. For Facebook, Save the image, start a post, attach it, then press Copy here and paste the caption. X, Telegram and WhatsApp take the caption with them.</p></div>';
|
||||
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 = '<a href="' + link + '" target="_blank" rel="noopener"><img src="' + src + '" width="' + s.split('x')[0] + '" height="' + s.split('x')[1] + '" alt="PolHunter: visit it, find it, get paid in POL"></a>';
|
||||
return '<div class="banner"><div class="bhead"><b>' + s + '</b> <span class="site">' + n + '</span></div><div class="bimg"><img src="' + src + '" alt="' + s + '"></div><textarea rows="3" id="b' + s + '">' + esc(code) + '</textarea><div class="sharebtns"><button class="btn pol sm" data-copy="#b' + s + '">Copy embed</button><a class="btn ghost sm" href="' + src + '" download>Save image</a></div></div>'; }).join('');
|
||||
|
||||
Reference in New Issue
Block a user