MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus Prepaid-Wiki
Zur Navigation springenZur Suche springen
imported>Admin
Keine Bearbeitungszusammenfassung
imported>Admin
(Änderung 71670 von Admin (Diskussion) rückgängig gemacht.)
Zeile 4: Zeile 4:
$("#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\"><!-- BEGIN PARTNER PROGRAM - DO NOT CHANGE THE PARAMETERS OF THE HYPERLINK -->
$("#toc").after("<div id=\"image-banner\"><img src=\"https://www.prepaidwiki/wiki/images/Prepaidwiki.png"></div>");
<script type="text/javascript" src="http://banners.webmasterplan.com/view.asp?ref=464670&js=1&site=14598&b=55&target=_blank&title=Handytick.de+-+Genial+g%c3%bcnstig!" ></script><noscript><a href="https://partners.webmasterplan.com/click.asp?ref=464670&site=14598&type=b55&bnb=55" target="_blank">
<img src="http://banners.webmasterplan.com/view.asp?ref=464670&site=14598&b=55" border="0" title="Handytick.de - Genial günstig!" alt="Handytick.de - Genial günstig!" width="300" height="600" /></a></noscript>
<!-- END PARTNER PROGRAM -->
 
 
</div>");
$("#image-banner").after("<div class=\"clearfix\"></div>");
$("#image-banner").after("<div class=\"clearfix\"></div>");

Version vom 18. Februar 2017, 17:00 Uhr

/* Das folgende JavaScript wird für alle Benutzer geladen. */
$( document ).ready(function() {
	
	$("#toc").wrap("<div id=\"outer-toc\" class=\"outer-toc\"></div>");
	
	$("#toc").after("<div id=\"image-banner\"><img src=\"https://www.prepaidwiki/wiki/images/Prepaidwiki.png"></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();
	}
});