MediaWiki:Common.js: Unterschied zwischen den Versionen
Aus Prepaid-Wiki
Zur Navigation springenZur Suche springen
imported>Admin (Änderung 71748 von Admin (Diskussion) rückgängig gemacht.) |
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').after('<div id="image-banner"><iframe src="https://www.prepaid-wiki.de/wiki/htmlets/Banner_neben_Ueberschrift/ads1.html" width="300px" height="600px" 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 28. Februar 2017, 17:35 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/Banner_neben_Ueberschrift/ads1.html" width="300px" height="600px" 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(); } });