I am seeking help, perhaps example javascript code, for how I can display Sefaria textual material on an HTML canvas.
Within a Dafboard presentation I wanted to enhance a small video shiur, which referenced this Mishna source, with synchronized source text display. Ideally the relevant phrases can be highlighted as the speaker references them.
Dafboard originally expected source text to be in image format, such as scanned daf images. If there were a way to have Sefaria provide an image version of links like this, that would drop in.
However there should be an opportunity now, particularly with [albeit different] Python back ends, to display the bilingual source text (without images) and have a Sefaria widget available to presenters, when developing multi-sensory presentations, with ease.
If there is anyone willing to help demonstrate how to display just the two paragraphs within an existing canvas?
The section I'd want is this:
<p lang="he" class="he">יְהוּדָה בֶן תֵּימָא אוֹמֵר, הֱוֵי עַז כַּנָּמֵר, וְקַל כַּנֶּשֶׁר, וְרָץ כַּצְּבִי, וְגִבּוֹר כָּאֲרִי, לַעֲשׂוֹת רְצוֹן אָבִיךָ שֶׁבַּשָּׁמָיִם. הוּא הָיָה אוֹמֵר, עַז פָּנִים לְגֵיהִנֹּם, וּבֹשֶׁת פָּנִים לְגַן עֵדֶן. יְהִי רָצוֹן מִלְּפָנֶיךָ יְיָ אֱלֹהֵינוּ שֶׁתִּבְנֶה עִירְךָ בִּמְהֵרָה בְיָמֵינוּ וְתֵן חֶלְקֵנוּ בְתוֹרָתֶךָ: |
| </p><p lang="en" class="en">Judah ben Tema said: Be strong as a leopard, and swift as an eagle, and fleet as a gazelle, and brave as a lion, to do the will of your Father who is in heaven. He used to say: the arrogant is headed for Gehinnom and the blushing for the garden of Eden. May it be the will, O Lord our God, that your city be rebuilt speedily in our days and set our portion in the studying of your Torah. </p><div class="clearFix"></div></div></span><span><div tabindex="0" class="segment" data-ref="Pirkei Avot 5:21" aria-controls="panel-1" aria-label="Click to see links to Pirkei Avot 5:21">
|
--Chaim
TorahTechnologies.org