MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus Prepaid-Wiki
Zur Navigation springenZur Suche springen
imported>Admin
Keine Bearbeitungszusammenfassung
imported>Admin
Keine Bearbeitungszusammenfassung
Zeile 1: Zeile 1:
$( document ).ready(function() {
$( document ).ready(function() {
$('#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/Affilinet.html" width="350px" height="650px" frameborder="0" scrolling="no"name="Anzeige"> Anzeige</iframe></div>');
$('#toc').after('<div id="image-banner"><a href="https://pvn.whatsappsim.de/trck/eclick/90f6124c1120f00bb3081bd47af3f6fb" target="_blank"><img src="https://www.prepaid-wiki.de/wiki/images/WhatsApp_SIM.jpg" border="0" title="WhatsApp SIM - so flexibel wie kein anderer" alt="WhatsApp SIM - so flexibel wie kein anderer" width="728" height="90" /></a></div>');
$('#image-banner').after('<div class="clearfix"></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) ) {
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").hide();
$(".outer-toc #image-banner").remove();
$(".outer-toc #image-banner").remove();
}
}
});
});

Version vom 3. Oktober 2018, 11:26 Uhr

$( document ).ready(function() {
	$('#toc').wrap('<div id="outer-toc" class="outer-toc"></div>');
	
$('#toc').after('<div id="image-banner"><a href="https://pvn.whatsappsim.de/trck/eclick/90f6124c1120f00bb3081bd47af3f6fb" target="_blank"><img src="https://www.prepaid-wiki.de/wiki/images/WhatsApp_SIM.jpg" border="0" title="WhatsApp SIM - so flexibel wie kein anderer" alt="WhatsApp SIM - so flexibel wie kein anderer" width="728" height="90" /></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();
	}
});