MediaWiki:Common.js: Unterschied zwischen den Versionen
imported>Admin Keine Bearbeitungszusammenfassung |
Admin (Diskussion | Beiträge) Keine Bearbeitungszusammenfassung |
||
(72 dazwischenliegende Versionen von 2 Benutzern werden nicht angezeigt) | |||
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://www.communicationads.net/tc.php?t=10652C30841110T" target="_blank"><img src="https://www.prepaid-wiki.de/wiki/HTMLets/Lebara_Banner.jpg" border="0" title="Lebara HELLO! S Prepaid Aktion" alt="Lebara HELLO! S Prepaid Aktion" width="350" height="350" /></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").hide(); | ||
$(".outer-toc #image-banner").remove(); | $(".outer-toc #image-banner").remove(); | ||
} | } | ||
}); | }); |
Aktuelle Version vom 6. Juni 2023, 17:02 Uhr
$( document ).ready(function() { $('#toc').wrap('<div id="outer-toc" class="outer-toc"></div>'); $('#toc').after('<div id="image-banner"><a href="https://www.communicationads.net/tc.php?t=10652C30841110T" target="_blank"><img src="https://www.prepaid-wiki.de/wiki/HTMLets/Lebara_Banner.jpg" border="0" title="Lebara HELLO! S Prepaid Aktion" alt="Lebara HELLO! S Prepaid Aktion" width="350" height="350" /></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(); } });