MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus Prepaid-Wiki
Zur Navigation springenZur Suche springen
imported>Admin
Keine Bearbeitungszusammenfassung
imported>Admin
Keine Bearbeitungszusammenfassung
Zeile 4: Zeile 4:
$("#toc").after("<div id=\"image-banner\"><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
$("#toc").after("<div id=\"image-banner\"><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- Oben nach Ueberschrift Responsive -->
<ins class="adsbygoogle"
<ins class="adsbygoogle"
     style="display:block"
     style="display:block"

Version vom 18. Februar 2017, 20:50 Uhr

$( document ).ready(function() {
	
	$("#toc").wrap("<div id=\"outer-toc\" class=\"outer-toc\"></div>");
	
	$("#toc").after("<div id=\"image-banner\"><script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<ins class="adsbygoogle"
     style="display:block"
     data-ad-client="ca-pub-8364518671409152"
     data-ad-slot="3019848622"
     data-ad-format="auto"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script></div>");
	
	$("#image-banner").after("<div class=\"clearfix\"></div>");
	
	if( navigator.userAgent.match(/Android/i) || navigator.userAgent.match(/webOS/i) || navigator.userAgent.match(/iPhone/i) || navigator.userAgent.match(/iPad/i) || navigator.userAgent.match(/iPod/i) || navigator.userAgent.match(/BlackBerry/i) || navigator.userAgent.match(/Windows Phone/i) || navigator.userAgent.match(/IEMobile/i) ) {
		
		$(".outer-toc #image-banner").hide();
		$(".outer-toc #image-banner").remove();
	}
});