Skip to content

Commit

Permalink
fix?
Browse files Browse the repository at this point in the history
  • Loading branch information
RedNotSus committed Nov 1, 2024
1 parent 284cc49 commit f310d17
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions static/assets/js/ad.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
console.log(
"%cScript Injection",
"color: cyan; font-weight: 600; background: black; padding: 0 5px; border-radius: 5px",
text,
text
);
}

Expand All @@ -21,7 +21,7 @@
document.head.appendChild(adsenseScript);

adsenseScript.onload = function () {
var adContainer = document.createElement("ins");
var adContainer = document.getElementById("adElement");
adContainer.className = "adsbygoogle";
adContainer.style.display = "inline-block";
adContainer.style.width = "16vw";
Expand All @@ -42,7 +42,7 @@
adElement.style.display = "block";
}
console.log(
"Failed to load Adsense script, displaying fallback image.",
"Failed to load Adsense script, displaying fallback image."
);
};

Expand All @@ -53,7 +53,7 @@
adElement.style.display = "block";
}
console.log(
"Skipping Adsense Injection for this domain, displaying fallback image.",
"Skipping Adsense Injection for this domain, displaying fallback image."
);
}
} catch (error) {
Expand Down
4 changes: 2 additions & 2 deletions static/misc/play/1o1soccer.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ <h1 class="titletext">One on One Soccer</h1>
</div>
</div>
<div class="addisplay">
<ins id="adElement"></ins>
<div class="ad1">Advertisement</div>
<div id="displayads" class="adsbygoogle" style="display:none; width: 16vw; height: 32vw;"
data-ad-client="ca-pub-6700774525685317" data-ad-slot="4125362748"></div>

</div>
<script>
var elem = document.getElementById("iframe");
Expand Down

0 comments on commit f310d17

Please sign in to comment.