Don’t wait to feel the vibes with the stunning, gorgeous, and breathtaking new, captivating, scorching, and delightful track called “Mishangazi,” which was…
The well-trained, acknowledgeable, and qualified music superstar from Tanzania has made an outstanding return to the music industry with the wonderful,…
Davido, a well-known, outstanding Nigerian singer, composer, and DMW executive, has recently published a new, delightful, amazing, and electrifying single…
Nigerian gospel musician Festizie recently unveiled a beautiful, new, captivating, delightful, and charming song called “Onyeoma.” Including a duet featuring…
KvngVidarr, a rapidly expanding Nigerian music composer and genius, recently partnered with Young Legend and dropped a brand-new, exciting, fascinating,…
A phenomenal, incredible, and fascinating multi-gifted singer, vocalist, and rapper, KvngVidarr, has recently launched a brand-new, charming, delightful, and scorching…
The incredibly gifted Nigerian rapper, composer, actor, and producer Illbliss recently dropped a new, captivating, delightful, and charming song called…
Spyro, a highly regarded Nigerian artist, has added another amazing, outstanding, and wonderful breakthrough song, “Irreplaceable,” with another gifted musician and…
A powerful, passionate, and tremendous gospel With his astounding, unbelievable, and fantastic hit-hot album “Amen,” Nigerian musician and songwriter Neeja set the…
The multi-talented musician Kvng Vinci found another captivating and appealing, attractive, and charming song track called “Hausapiano (Remix).” Highly commended musician…
Shallipopi, the CEO of Plutomania Records and a notable and extraordinarily popular Nigerian singer-songwriter, recently dropped an incredible new smash…
Xcello, a multi-talented and up-and-coming Nigerian musician and songwriter, has recently dropped his captivating, delightful, and thrilling debut album, “Ezi…
Tanzanian musician, artist, and song composer Maua Sama, who is courteously and influential unleashes another appealing, intriguing, and captivating breathtaking hit called “Kariakoo.”…
`;
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
*/