MediaWiki:Common.js — различия между версиями
Zukeart (обсуждение | вклад) |
Zukeart (обсуждение | вклад) |
||
| Строка 1: | Строка 1: | ||
/* Размещённый здесь код JavaScript будет загружаться пользователям при обращении к каждой странице */ | /* Размещённый здесь код JavaScript будет загружаться пользователям при обращении к каждой странице */ | ||
| + | $(function () { | ||
| + | |||
| + | var myElement = document.getElementById('mw-mywiki-example'); | ||
| + | myElement.innerHTML = '<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script> | ||
| + | <!-- Мемотека2 --> | ||
| + | <ins class="adsbygoogle" | ||
| + | style="display:block" | ||
| + | data-ad-client="ca-pub-4657525186955715" | ||
| + | data-ad-slot="5959071793" | ||
| + | data-ad-format="auto"></ins> | ||
| + | <script> | ||
| + | (adsbygoogle = window.adsbygoogle || []).push({}); | ||
| + | </script>'; | ||
| + | |||
| + | }()); | ||
Версия 00:25, 12 июня 2018
/* Размещённый здесь код JavaScript будет загружаться пользователям при обращении к каждой странице */
$(function () {
var myElement = document.getElementById('mw-mywiki-example');
myElement.innerHTML = '<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Мемотека2 -->
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-4657525186955715"
data-ad-slot="5959071793"
data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>';
}());