Skip to content

Commit

Permalink
add ads
Browse files Browse the repository at this point in the history
  • Loading branch information
gracehuynhh committed Mar 5, 2024
1 parent d3ada48 commit 4593712
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion new.html
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,16 @@
document.getElementById("hide-ads").addEventListener("click", function(){
document.getElementById("ads").style.display = "none";
})

document.addEventListener("DOMContentLoaded", function() {
// Kiểm tra xem referrer có chứa 'retrobowl.me' hoặc 'retrobowl.app' không
if (document.referrer.includes('retrobowl.me') || document.referrer.includes('retrobowl.app')) {
var adsElement = document.getElementById('ads');
if (adsElement) {
adsElement.style.display = 'none';
}
}
});

</script>
<script async defer src="https://cdn.jsdelivr.net/npm/[email protected]/dist/lazyload.min.js"
type="43f92c5823e95dd824ade679-text/javascript"></script>
Expand Down

0 comments on commit 4593712

Please sign in to comment.