MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus Prepaid-Wiki
Zur Navigation springenZur Suche springen
Keine Bearbeitungszusammenfassung
Keine Bearbeitungszusammenfassung
Zeile 3: Zeile 3:
$('#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"><a href="https://www.communicationads.net/tc.php?t=10652C14638776T" target="_blank"><img src="https://www.prepaid-wiki.de/wiki/HTMLets/Banner_VF.jpg" border="0" title="Vodafone - Freunde werben Freunde" alt="Vodafone - Freunde werben Freunde" width="300" height="600" /></a></div>');
$('#toc').after('<div id="image-banner"><a href="https://www.communicationads.net/tc.php?t=10652C14638776T" target="_blank"><img src="https://www.prepaid-wiki.de/wiki/HTMLets/Lebara_Ad.jpg" border="0" title="Vodafone - Freunde werben Freunde" alt="Vodafone - Freunde werben Freunde" width="300" height="600" /></a></div>');
$('#image-banner').after('<div class="clearfix"></div>');
$('#image-banner').after('<div class="clearfix"></div>');

Version vom 31. Mai 2023, 11:38 Uhr


$( document ).ready(function() {
	$('#toc').wrap('<div id="outer-toc" class="outer-toc"></div>');
	
$('#toc').after('<div id="image-banner"><a href="https://www.communicationads.net/tc.php?t=10652C14638776T" target="_blank"><img src="https://www.prepaid-wiki.de/wiki/HTMLets/Lebara_Ad.jpg" border="0" title="Vodafone - Freunde werben Freunde" alt="Vodafone - Freunde werben Freunde" width="300" height="600" /></a></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();
	}
});