MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus Prepaid-Wiki
Zur Navigation springenZur Suche springen
imported>Admin
Keine Bearbeitungszusammenfassung
imported>Admin
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=\"http://www.lead-alliance.net/tc.php?t=110948C1001113678B\" target=\"_blank\"><img src=\"http://www.lead-alliance.net/tb.php?t=110948V1001113678B\" border=\"0\" title=\"LTE Datentarife\" alt=\"WhatsApp\" width=\"300\" height=\"250\" /></a></div>");
$("#toc").after("<div id=\"image-banner\"><a href=\"http://www.zanox-affiliate.de/ppc/?41921146C61103185T\" target=\"_blank\"><img src=\"http://www.zanox-affiliate.de/ppv/?41921146C61103185\" border=\"0\" title=\"Tchibo Mobilfunk-Tarife Smart S, M & L\" alt=\"WhatsApp\" width=\"300\" height=\"250\" /></a></div>");
$("#image-banner").after("<div class=\"clearfix\"></div>");
$("#image-banner").after("<div class=\"clearfix\"></div>");

Version vom 18. März 2017, 11:30 Uhr

$( document ).ready(function() {
	
	$("#toc").wrap("<div id=\"outer-toc\" class=\"outer-toc\"></div>");
	
	$("#toc").after("<div id=\"image-banner\"><a href=\"http://www.zanox-affiliate.de/ppc/?41921146C61103185T\" target=\"_blank\"><img src=\"http://www.zanox-affiliate.de/ppv/?41921146C61103185\" border=\"0\" title=\"Tchibo Mobilfunk-Tarife Smart S, M & L\" alt=\"WhatsApp\" width=\"300\" height=\"250\" /></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();
	}
});