4,456
רעדאגירונגען
אין תקציר עריכה |
ק (הגהה) |
||
| (2 מיטלסטע ווערסיעס פון 2 באַניצער נישט געוויזן.) | |||
| שורה 2: | שורה 2: | ||
$(document).ready(function () { | $(document).ready(function () { | ||
// Define favicon URLs | // Define favicon URLs | ||
var sefariaFavicon = 'https://www.sefaria.org/static/icons/favicon. | var sefariaFavicon = 'https://www.sefaria.org/static/icons/library/favicon.svg'; | ||
var alHaTorahFavicon = 'https://mg.alhatorah.org/favicon.ico'; | var alHaTorahFavicon = 'https://mg.alhatorah.org/favicon.ico'; | ||
var wikiSourceFavicon = 'https://he.wikisource.org/static/favicon/wikisource.ico'; | var wikiSourceFavicon = 'https://he.wikisource.org/static/favicon/wikisource.ico'; | ||
| שורה 90: | שורה 90: | ||
sefariaUrl += '.' + pasuk; | sefariaUrl += '.' + pasuk; | ||
} | } | ||
// Construct AlHaTorah URL | |||
var alHaTorahUrl = 'https://mg.alhatorah.org/Full/' + encodeURIComponent(seferNames.alHaTorah) + '/' + perek; | |||
if (pasuk !== null) { | |||
alHaTorahUrl += '.' + pasuk; | |||
} | |||
// Construct Wikisource URL | |||
var wikiSourceUrl = 'https://he.wikisource.org/wiki/' + encodeURIComponent(sefer + '_' + perekRaw); | |||
if (pasukRaw && pasukRaw.trim() !== '') { | |||
wikiSourceUrl += '_' + pasukRaw; | |||
} | |||
// Create container span for the icons | |||
var $container = $('<span class="tanach-icons" style="white-space: nowrap; margin-right: 4px;"></span>'); | |||
// Create and append the Sefaria icon | // Create and append the Sefaria icon | ||
| שורה 97: | שורה 112: | ||
.attr('title', 'עפן אין ספריא') | .attr('title', 'עפן אין ספריא') | ||
.html('<img src="' + sefariaFavicon + '" alt="Sefaria" style="width:12px; height:12px; vertical-align:middle; margin-left: 3px;">'); | .html('<img src="' + sefariaFavicon + '" alt="Sefaria" style="width:12px; height:12px; vertical-align:middle; margin-left: 3px;">'); | ||
$ | $container.append(sefariaIcon); | ||
// Create and append the AlHaTorah icon | // Create and append the AlHaTorah icon | ||
| שורה 111: | שורה 120: | ||
.attr('title', 'עפן אין על התורה') | .attr('title', 'עפן אין על התורה') | ||
.html('<img src="' + alHaTorahFavicon + '" alt="AlHaTorah" style="width:12px; height:12px; vertical-align:middle; margin-left: 3px;">'); | .html('<img src="' + alHaTorahFavicon + '" alt="AlHaTorah" style="width:12px; height:12px; vertical-align:middle; margin-left: 3px;">'); | ||
$ | $container.append(alHaTorahIcon); | ||
// Create and append the Wikisource icon | // Create and append the Wikisource icon | ||
| שורה 125: | שורה 128: | ||
.attr('title', 'עפן אין ויקיטקסט') | .attr('title', 'עפן אין ויקיטקסט') | ||
.html('<img src="' + wikiSourceFavicon + '" alt="Wikisource" style="width:12px; height:12px; vertical-align:middle; margin-left: 3px;">'); | .html('<img src="' + wikiSourceFavicon + '" alt="Wikisource" style="width:12px; height:12px; vertical-align:middle; margin-left: 3px;">'); | ||
$link. | $container.append(wikiSourceIcon); | ||
// Insert the container before the original link | |||
$link.before($container); | |||
}); | }); | ||
}); | }); | ||
}); | }); | ||
רעדאגירונגען