בדוקי עריכות אוטומטית, אינטערפעיס רעדאקטארן, אינטערפעיס אדמיניסטראַטאָרן, סיסאפן, מייבאים, מעדכנים, מייבא, אספקלריה רעדאקטארן
46,538
רעדאגירונגען
אין תקציר עריכה |
אין תקציר עריכה |
||
| שורה 58: | שורה 58: | ||
if (!sefer || !perek || !pasuk) return; | if (!sefer || !perek || !pasuk) return; | ||
// Lookup | |||
var names = bookNameMapping[sefer]; | |||
if (names) { | |||
// Sefaria URL using English name | |||
var sefariaUrl = 'https://www.sefaria.org/' + | |||
encodeURIComponent(names.english) + '.' + | |||
encodeURIComponent(perek) + '.' + | |||
encodeURIComponent(pasuk); | |||
// Add Sefaria icon | |||
var sefariaIcon = $('<a>') | |||
.attr('href', sefariaUrl) | |||
.attr('target', '_blank') | |||
.attr('title', 'עפן אין ספריא') | |||
.html('<img src="' + sefariaFavicon + '" alt="Sefaria" style="width:12px; height:12px; vertical-align:middle; margin-left: 3px;">'); | |||
$link.after(sefariaIcon); | |||
// AlHaTorah URL using alHaTorah name | |||
var alHaTorahUrl = 'https://mg.alhatorah.org/Full/' + | |||
encodeURIComponent(names.alHaTorah) + '/' + | |||
encodeURIComponent(perek) + '.' + | |||
encodeURIComponent(pasuk); | |||
// Add AlHaTorah icon | |||
var alHaTorahIcon = $('<a>') | |||
.attr('href', alHaTorahUrl) | |||
.attr('target', '_blank') | |||
.attr('title', 'עפן אין על התורה') | |||
.html('<img src="' + alHaTorahFavicon + '" alt="AlHaTorah" style="width:12px; height:12px; vertical-align:middle; margin-left: 3px;">'); | |||
$link.after(alHaTorahIcon); | |||
} | |||
}); | }); | ||
}); | }); | ||
}); | }); | ||
רעדאגירונגען