Difference between revisions of "Template:Ads recomended"

From Enduro.team
Jump to: navigation, search
m
m
 
(55 intermediate revisions by the same user not shown)
Line 1: Line 1:
 +
<center>
 
<html>
 
<html>
 
<body>
 
<body>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
 
<ins class="adsbygoogle"
 
    style="display:block; text-align:center;"
 
    data-ad-layout="in-article"
 
    data-ad-format="fluid"
 
    data-ad-client="ca-pub-9226951475373251"
 
    data-ad-slot="6447563123"></ins>
 
 
<script>
 
<script>
    (adsbygoogle = window.adsbygoogle || []).push({});
+
 
 +
if (window.matchMedia) {
 +
  if(window.matchMedia('(prefers-color-scheme: dark)').matches){
 +
    var d1 = document.getElementById('adsrecomended');
 +
    d1.insertAdjacentHTML('beforeend', '<ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-9226951475373251" data-ad-slot="3158273233"></ins>');
 +
  } else {
 +
    var d1 = document.getElementById('adsrecomended');
 +
    d1.insertAdjacentHTML('beforeend', '<ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-9226951475373251" data-ad-slot="3159268773"></ins>');
 +
  }
 +
} else {
 +
    var d1 = document.getElementById('adsrecomended');
 +
    d1.insertAdjacentHTML('beforeend', '<ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-9226951475373251" data-ad-slot="3159268773"></ins>');
 +
}
 
</script>
 
</script>
<center>
+
<div class="adsrecomended" id="adsrecomended">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
 
<ins class="adsbygoogle"
 
    style="display:block"
 
    data-ad-format="autorelaxed"
 
    data-ad-client="ca-pub-9226951475373251"
 
    data-ad-slot="3159268773"></ins>
 
 
<script>
 
<script>
 
     (adsbygoogle = window.adsbygoogle || []).push({});
 
     (adsbygoogle = window.adsbygoogle || []).push({});
 
</script>
 
</script>
 +
</div>
 
</body>
 
</body>
 
</html>
 
</html>
 
</center>
 
</center>

Latest revision as of 15:40, 22 July 2021