hiding ad element initially

This commit is contained in:
Jack 2020-10-31 04:10:42 +00:00
parent 8336c8fee7
commit 858a15957f
2 changed files with 2 additions and 1 deletions

View file

@ -3262,7 +3262,7 @@
</div>
</div>
</div>
<div id="ad">
<div id="ad" class="hidden">
<script
async
src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"

View file

@ -228,6 +228,7 @@ function applyConfig(configObj) {
try {
setEnableAds(configObj.enableAds, true);
if (config.enableAds) {
$("#ad").removeClass("hidden");
(adsbygoogle = window.adsbygoogle || []).push({});
} else {
$("#ad").remove();