אונטערשייד צווישן ווערסיעס פון "באַניצער:תנא קמא/tanachLinks.js"

קיין רעדאגירונג באמערקונג
אין תקציר עריכה
אין תקציר עריכה
שורה 89: שורה 89:
             var sefariaUrl = 'https://www.sefaria.org/' + encodeURIComponent(sefariaNames.english) + '.' + perek + '.' + pasuk;
             var sefariaUrl = 'https://www.sefaria.org/' + encodeURIComponent(sefariaNames.english) + '.' + perek + '.' + pasuk;


            // Construct AlHaTorah URL
                // Map Hebrew book name to AlHaTorah's naming convention
            var alHaTorahUrl = 'https://mg.alhatorah.org/Full/' + encodeURIComponent(sefariaNames.alHaTorah) + '/' + perek + '.' + pasuk;
                var alHaTorahNames = bookNameMapping[sefer];
                if (alHaTorahNames) {
                    // Construct AlHaTorah URL
                    var alHaTorahUrl = 'https://mg.alhatorah.org/Full/' + encodeURIComponent(alHaTorahNames.alHaTorah) +
                        '/' + encodeURIComponent(perek) +
                        '.' + encodeURIComponent(pasuk);


            // Construct Wikisource URL (Hebrew names and numbers as-is)
                    // Construct Wikisource URL (Hebrew names and numbers as-is)
            var wikiSourceUrl = 'https://he.wikisource.org/wiki/' +
                    var wikiSourceUrl = 'https://he.wikisource.org/wiki/' +
    'קטגוריה:' + encodeURIComponent(sefer + '_' + perekRaw + '_' + pasukRaw);
                        'קטגוריה:' + encodeURIComponent(sefer + '_' + perek + '_' + pasuk);
 
            // Construct Wikisource URL (Hebrew names and numbers as-is)
            var wikiSourceUrl = 'https://he.wikisource.org/wiki/' + 'קטגוריה:' + encodeURIComponent(sefer + '_' + perek + '_' + pasuk);


                     // Create a button to toggle the visibility of the icons
                     // Create a button to toggle the visibility of the icons
שורה 149: שורה 151:
                 }
                 }
             }
             }
        });
        });
    });
    });
});
});