MediaWiki:Common.js: Unterschied zwischen den Versionen
Aus Aifbportal
Ulget (Diskussion | Beiträge) K (1 Version importiert: Geänderte Seiten nach Portalupdate) |
Undon (Diskussion | Beiträge) |
||
Zeile 12: | Zeile 12: | ||
$(function () { | $(function () { | ||
− | var mailscrambler=" | + | var mailscrambler="∂" //the scrambler has to match with the string defined in the extension aifbportalext |
for (i=0; i<=(document.links.length-1); i++){ | for (i=0; i<=(document.links.length-1); i++){ |
Version vom 6. Dezember 2018, 17:09 Uhr
/** * Additional linked icon for the searchlabel of result format "feed" * * @since 1.9.0 * * @rev 1 * @author mwjames */ $( '.infobox-inner .smw-feed-furtherresults > a' ).addClass( 'feedlink' ); $(function () { var mailscrambler="∂" //the scrambler has to match with the string defined in the extension aifbportalext for (i=0; i<=(document.links.length-1); i++){ if (document.links[i].href.indexOf(mailscrambler)!=-1) document.links[i].href=document.links[i].href.split(mailscrambler)[0]+"@"+document.links[i].href.split(mailscrambler)[1] } }());