Difference between revisions of "Template:Ads recomended"
m |
m |
||
Line 4: | Line 4: | ||
<div class="adsrecomended"> | <div class="adsrecomended"> | ||
<script> | <script> | ||
− | document. | + | setTimeout(function(){ |
− | (adsbygoogle = window.adsbygoogle || []).push({}); | + | var div = document.createElement("ins"); |
+ | div.setAttribute('class', 'adsbygoogle'); | ||
+ | div.setAttribute('data-ad-client', '9226951475373251'); | ||
+ | div.setAttribute('data-ad-slot', '3159268773'); | ||
+ | div.setAttribute('data-ad-format', 'autorelaxed'); | ||
+ | $('.search-results-title').append(div); | ||
+ | var js = document.createElement("script"); | ||
+ | js.setAttribute('src', 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-9226951475373251'); | ||
+ | js.setAttribute('async', true); | ||
+ | js.setAttribute('crossorigin', anonymous); | ||
+ | document.head.appendChild(js); | ||
+ | setTimeout(function(){ | ||
+ | (adsbygoogle = window.adsbygoogle || []).push({}); | ||
+ | }, 1000); | ||
+ | }, 3000); | ||
</script> | </script> | ||
</div> | </div> |
Revision as of 14:55, 22 July 2021