Открыть главное меню

  • Править

Шаблон:Ads post — различия между версиями

Версия 19:30, 14 января 2021 (просмотреть исходный код)
Alexander (обсуждение | вклад)
м
← Предыдущая правка
Текущая версия на 15:16, 16 августа 2022 (просмотреть исходный код)
Alexander (обсуждение | вклад)
м
 
(не показаны 72 промежуточные версии этого же участника)
Строка 1: Строка 1:
−
__notoc__
+
<center>
 
<html>
 
<html>
 
<body>
 
<body>
−
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
+
<div class="postadbanner" id="postadbanner" style="width: 90%;">
−
<ins class="adsbygoogle"
+
<script>
−
    style="display:block; text-align:center;"
+
if (window.matchMedia) {
−
    data-ad-layout="in-article"
+
  if(window.matchMedia('(prefers-color-scheme: dark)').matches){
−
    data-ad-format="fluid"
+
    var d1 = document.getElementById('postadbanner');
−
    data-ad-client="ca-pub-9226951475373251"
+
    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-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>');
 +
  }
 +
} 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>
 
<script>
 
<script>
 
     (adsbygoogle = window.adsbygoogle || []).push({});
 
     (adsbygoogle = window.adsbygoogle || []).push({});
 
</script>
 
</script>
 +
</div>
 
</body>
 
</body>
 
</html>
 
</html>
 +
</center>
 +
__notoc__

Текущая версия на 15:16, 16 августа 2022