Stage-oe-small.jpg

MediaWiki:Common.js: Unterschied zwischen den Versionen

Aus Aifbportal
Wechseln zu:Navigation, Suche
Zeile 12: Zeile 12:
 
$(function () {
 
$(function () {
  
var mailscrambler="" //the scrambler has to match with the string defined in the extension aifbportalext
+
var mailscrambler="%E2%88%82" //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:10 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="%E2%88%82" //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]
}
}());