<div class="viral-buttons">
<h3>Share this & unlock exclusive content! 🔓</h3>
<button onclick="shareOnSocial('twitter')">Tweet to Unlock Hidden Photos</button>
<button onclick="shareOnSocial('facebook')">Share to Reveal Clues</button>
<span id="shareCount">0 people shared</span>
</div>
<script>
let shareCounter = 0;
function shareOnSocial(platform) {
const url = encodeURIComponent(window.location.href);
let shareUrl;
if (platform === 'twitter') {
shareUrl = `https://twitter.com/intent/tweet?text=BREAKING%20Ark%20of%20the%20Covenant%20Found!%20${url}`;
} else {
shareUrl = `https://www.facebook.com/sharer/sharer.php?u=${url}`;
}
window.open(shareUrl, '_blank');
shareCounter++;
document.getElementById('shareCount').innerText = `${shareCounter} people unlocked secrets!`;
localStorage.setItem('shared', 'true'); // Track shares
}
</script>
<style>
.viral-buttons {
background: #000;
color: gold;
padding: 20px;
text-align: center;
margin: 30px 0;
border: 2px solid #ffd700;
}
.viral-buttons button {
background: #ffd700;
color: #000;
padding: 15px;
margin: 10px;
font-weight: bold;
cursor: pointer;
}
</style>

No comments:
Post a Comment