Difference between revisions of "Template:Ads recomended"

From Enduro.team
Jump to: navigation, search
m
m
 
(59 intermediate revisions by the same user not shown)
Line 2: Line 2:
 
<html>
 
<html>
 
<body>
 
<body>
<!-- admitad.banner: cyn6z4pmrwa031878a9dc51982c87a iport -->
+
<script>
<a target="_blank" rel="nofollow" href="https://ad.admitad.com/g/cyn6z4pmrwa031878a9dc51982c87a/?i=4"><img width="600" height="90" border="0" src="https://ad.admitad.com/b/cyn6z4pmrwa031878a9dc51982c87a/" alt="iport"/></a>
+
 
<!-- /admitad.banner -->
+
if (window.matchMedia) {
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
+
  if(window.matchMedia('(prefers-color-scheme: dark)').matches){
<ins class="adsbygoogle"
+
    var d1 = document.getElementById('adsrecomended');
    style="display:block"
+
    d1.insertAdjacentHTML('beforeend', '<ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-9226951475373251" data-ad-slot="3158273233"></ins>');
    data-ad-format="autorelaxed"
+
  } else {
    data-ad-client="ca-pub-9226951475373251"
+
    var d1 = document.getElementById('adsrecomended');
    data-ad-slot="3159268773"></ins>
+
    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>
 +
<div class="adsrecomended" id="adsrecomended">
 
<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