Skip to content

Commit

Permalink
test dynamically insert ad tag
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Sep 9, 2023
1 parent 7e8a4bf commit 05a4f96
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions _includes/footer.html
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
<div class="container mtb">
<div class="row">
<div class="col-md-8">
<ins class="adsbygoogle"
<div class="col-md-8" id="ads-footer">
<!-- <ins class="adsbygoogle"
style="display:block"
data-ad-format="autorelaxed"
data-ad-client="ca-pub-1305424236533187"
data-ad-slot="8964706753"></ins>
data-ad-slot="8964706753"></ins> -->
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
if (location.hostname.endsWith("shotcut.org")) {
let ins = document.createElement("ins");
ins.push({
class: "adsbygoogle",
style: "display:block",
"data-ad-format": "autorelaxed",
"data-ad-client": "ca-pub-1305424236533187",
"data-ad-slot": "8964706753"
});
document.getElementById("ads-footer").appendChild(ins);
}
</script>
</div>
</div>
Expand Down

0 comments on commit 05a4f96

Please sign in to comment.