The brand-new, electrifying tune tagged “Aw’laleli” was recently released by a phenomenal and spellbinding multi-skilled South African rapper and vocalist,…
A phenomenally and fantastically super-naturally brilliant South African songwriter-entertainer, Ray&Jay, has just published his newest electrifying version of the song…
“Low Rider” is the newest electrifying and victorious homecoming single from the spellbinding and fascinating multi-gifted South African songwriters and…
An incredible and phenomenally super-naturally gifted South African singer and artist, Slade, has overwhelmingly returned with his breathtaking and fantastic…
The superb and extraordinarily accomplished Nigerian singer-musician and music producer Fave has captivated and delighted his audience with his most recent…
Extremely renowned Nigerian musician, and rapper, Enas Marvel appears throughout with a brand-new, innovating, and breathtaking tune named “Royalty”. At some point, you…
A tremendously super-naturally brilliant South African singer-songwriter, M.J., makes a prevailing resurgence with a riveting, young, blistering, and fantastic single…
South African multi-talented singer-vocalist, M.J. makes a successful reappearance with a young new charming, and electrifying single titled “Goni.” Featuring…
Medikal, an internationally recognized and incredibly skilled Ghanaian singer and entertainer, has produced yet another perplexing single, “Grand Theft Auto…
An amazingly outstanding and widely respected Ghanaian female singer and performer, Cocotrey, has lately composed and published another baffling tune,…
The latest enthralling composition by the versatile and internationally acclaimed Ghanaian singer and songwriter Shuga Loxman, dubbed “Cocktail Gyal,” has…
`;
adContainer.appendChild(script);
// Display the ad container (if it was hidden)
adContainer.style.display = 'block';
// Store the current time
localStorage.setItem(LAST_AD_DISPLAY_KEY, Date.now());
}
}
function canShowAd() {
const lastDisplayTime = localStorage.getItem(LAST_AD_DISPLAY_KEY);
if (!lastDisplayTime) {
// No previous display time, so we can show the ad
return true;
}
const currentTime = Date.now();
const timeElapsed = currentTime - parseInt(lastDisplayTime, 10);
return timeElapsed >= AD_DISPLAY_INTERVAL;
}
// Check on page load and delay ad appearance
document.addEventListener('DOMContentLoaded', () => {
if (canShowAd()) {
setTimeout(() => {
showVignetteAd();
}, DELAY_TIME);
} else {
// Optionally, if you want to hide the ad container initially if not eligible
document.getElementById(AD_ZONE_ID).style.display = 'none';
}
});
// You could also set up a recurring check if the user stays on the page for a long time
// However, vignette ads are typically shown on page load or navigation.
// If you need a persistent check *while on the same page*, uncomment the following:
/*
setInterval(() => {
if (canShowAd()) {
showVignetteAd();
}
}, 60 * 1000); // Check every minute if an ad can be shown
*/