Difference between revisions of "Template:Ads post"

From Enduro.team
Jump to: navigation, search
m
m
 
(55 intermediate revisions by the same user not shown)
Line 1: Line 1:
__notoc__
 
скачать вар тандер, war thunder
 
 
<center>
 
<center>
 
<html>
 
<html>
 
<body>
 
<body>
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
+
<script>
<ins class="adsbygoogle"
+
if (window.matchMedia) {
    style="display:block; text-align:center;"
+
  if(window.matchMedia('(prefers-color-scheme: dark)').matches){
    data-ad-layout="in-article"
+
    var d1 = document.getElementById('postadbanner');
    data-ad-format="fluid"
+
    d1.insertAdjacentHTML('beforeend', '<ins class="adsbygoogle" style="display:block; text-align:center;" data-ad-format="fluid" data-ad-client="ca-pub-9226951475373251" data-ad-slot="7972256841"></ins>');
    data-ad-client="ca-pub-9226951475373251"
+
  } else {
    data-ad-slot="6447563123"></ins>
+
    var d1 = document.getElementById('postadbanner');
 +
    d1.insertAdjacentHTML('beforeend', '<ins class="adsbygoogle" style="display:block; text-align:center;" data-ad-format="fluid" data-ad-client="ca-pub-9226951475373251" data-ad-slot="6447563123"></ins>');
 +
  }
 +
} else {
 +
    var d1 = document.getElementById('postadbanner');
 +
    d1.insertAdjacentHTML('beforeend', '<ins class="adsbygoogle" style="display:block; text-align:center;" data-ad-format="fluid" data-ad-client="ca-pub-9226951475373251" data-ad-slot="6447563123"></ins>');
 +
}
 +
</script>
 +
<div class="postadbanner" id="postadbanner" style="width: 90%;">
 
<script>
 
<script>
 
     (adsbygoogle = window.adsbygoogle || []).push({});
 
     (adsbygoogle = window.adsbygoogle || []).push({});
 
</script>
 
</script>
 +
</div>
 
</body>
 
</body>
 
</html>
 
</html>
 
</center>
 
</center>
 +
__notoc__

Latest revision as of 16:03, 22 July 2021