MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus Prepaid-Wiki
Zur Navigation springenZur Suche springen
(Änderung 92474 von Admin (Diskussion) rückgängig gemacht.)
Markierung: Rückgängigmachung
Keine Bearbeitungszusammenfassung
Zeile 2: Zeile 2:
$('#toc').wrap('<div id="outer-toc" class="outer-toc"></div>');
$('#toc').wrap('<div id="outer-toc" class="outer-toc"></div>');
$('#toc').after('<div id="image-banner"><iframe src="https://www.prepaid-wiki.de/wiki/HTMLets/Moneytizer_EZOIC.html" width="350px" height="650px" frameborder="0" scrolling="no"name="Anzeige"> Anzeige</iframe></div>');
$('#toc').after('<div id="image-banner"><iframe src="https://www.prepaid-wiki.de/wiki/HTMLets/Homevideo-Digital.html" width="350px" height="650px" frameborder="0" scrolling="no"name="Anzeige"> Anzeige</iframe></div>');
$('#image-banner').after('<div class="clearfix"></div>');
$('#image-banner').after('<div class="clearfix"></div>');

Version vom 6. Juni 2021, 10:47 Uhr

$( document ).ready(function() {
	$('#toc').wrap('<div id="outer-toc" class="outer-toc"></div>');
	
$('#toc').after('<div id="image-banner"><iframe src="https://www.prepaid-wiki.de/wiki/HTMLets/Homevideo-Digital.html" width="350px" height="650px" frameborder="0" scrolling="no"name="Anzeige"> Anzeige</iframe></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();
	}
});