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\"><a href=\"https://pvn.tarifhaus.de/trck/eclick/8d240f4855f92ad8f327dbf4e2e87196\" target=\"_blank\"><img src=\"https://pvn.tarifhaus.de/trck/eview/8d240f4855f92ad8f327dbf4e2e87196\" border=\"0\" title=\"TARIFHAUS - Hier sind Deine Tarife zuhause.\" alt=\"TARIFHAUS - Hier sind Deine Tarife zuhause.\" width=\"300\" height=\"250\" /></a></div>");
$('#toc').after('<div id="image-banner"><iframe src="https://www.prepaid-wiki.de/wiki/htmlets/Adscale1.html" width="768px" height="110px" frameborder="0" scrolling="no"></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) ) {
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 6. Juli 2017, 09:45 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/Adscale1.html" width="768px" height="110px" frameborder="0" scrolling="no"></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();
	}
});