Difference between revisions of "Template:Ads recomended"
m |
m |
||
Line 2: | Line 2: | ||
<html> | <html> | ||
<body> | <body> | ||
− | + | <script> | |
− | <script | ||
if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) { | if (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches) { | ||
− | document.write("<ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-9226951475373251" data-ad-slot="3158273233"></ins>"); | + | document.write("<div class="adbanner"><ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-9226951475373251" data-ad-slot="3158273233"></ins></div>"); |
} | } | ||
else { | else { | ||
− | document.write("<ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-9226951475373251" data-ad-slot="3159268773"></ins>"); | + | document.write("<div class="adbanner"><ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-9226951475373251" data-ad-slot="3159268773"></ins></div>"); |
} | } | ||
(adsbygoogle = window.adsbygoogle || []).push({}); | (adsbygoogle = window.adsbygoogle || []).push({}); | ||
</script> | </script> | ||
− | |||
</body> | </body> | ||
</html> | </html> | ||
</center> | </center> |
Revision as of 13:26, 22 July 2021