No edit summary |
No edit summary |
||
(10 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
/* Any JavaScript here will be loaded for all users on every page load. */ | /* Any JavaScript here will be loaded for all users on every page load. */ | ||
Line 19: | Line 5: | ||
mw.loader.load( 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js' ); | mw.loader.load( 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js' ); | ||
$(function () { | $(function () { | ||
$('#mw-advertisement').html('<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6105891224882142" data-ad-slot=" | $('#mw-advertisement').html('<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6105891224882142" data-ad-slot="7505648175" data-ad-format="auto" data-full-width-responsive="true"></ins>'); | ||
}()); | }()); | ||
(adsbygoogle = window.adsbygoogle || []).push({}); | (adsbygoogle = window.adsbygoogle || []).push({}); | ||
/* Testing with a simple script */ | /* Testing with a simple script */ | ||
$(function () { | $(function () { | ||
$('#mw-hello-world').html('<html>Hello World!!!</html>'); | |||
}()); | }()); |
Latest revision as of 15:54, 27 March 2020
/* Any JavaScript here will be loaded for all users on every page load. */ /* Google ads */ mw.loader.load( 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js' ); $(function () { $('#mw-advertisement').html('<ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-6105891224882142" data-ad-slot="7505648175" data-ad-format="auto" data-full-width-responsive="true"></ins>'); }()); (adsbygoogle = window.adsbygoogle || []).push({}); /* Testing with a simple script */ $(function () { $('#mw-hello-world').html('<html>Hello World!!!</html>'); }());