diff --git a/resen/index.html b/resen/index.html index e276193..f532e06 100644 --- a/resen/index.html +++ b/resen/index.html @@ -19,11 +19,11 @@ const p = document.createElement('p') let span = document.createElement('span') //span.appendChild(make_link('https://www.facebook.com/events/1191766252206270', 'אירוע השקה 30/4')) - span.appendChild(make_link('https://cda.org.il/events/who-comes-after-us/', 'אירוע השקה 21/11')) + span.appendChild(make_link('https://cda.org.il/events/who-comes-after-us/', 'אירוע השקה לגיליון קמעות 21/11')) p.appendChild(span) - //span = document.createElement('span') + span = document.createElement('span') //span.appendChild(make_link(page2url('open-call-kmeot'), 'קול קורא - קמעות')) - //p.appendChild(span) + p.appendChild(span) p.classList.add('preface_he', 'banner') document.querySelector('.author').before(p) make_contents() diff --git a/resen/kaddish/index.html b/resen/kaddish/index.html index c1c40be..6a51db3 100644 --- a/resen/kaddish/index.html +++ b/resen/kaddish/index.html @@ -5,7 +5,7 @@ - + @@ -16,7 +16,7 @@ - + - + { event.preventDefault() }) +let voices = speechSynthesis.getVoices() +if (!voices.length) + speechSynthesis.addEventListener('voiceschanged', () => voices = speechSynthesis.getVoices()) + play.addEventListener('click', event => { if (play.classList.toggle('on')) { const utter = new SpeechSynthesisUtterance([...prefix_chars, ...document.querySelectorAll('svg text:not(:empty):not(.blink)')].map((e, i) => (e.textContent ?? e) + nikud_pisuk[i]).join('')) console.log(utter.text) utter.lang = 'he' + const voice = voices.find(v => v.lang.startsWith('he') || v.lang.startsWith('iw')) + if (voice) { + console.log(voice) + utter.voice = voice + utter.lang = voice.lang + } utter.rate = .6 utter.onend = e => {if (e.charIndex && e.charIndex % utter.text.length == 0) play.click()} speechSynthesis.speak(utter) diff --git a/resen/kaddish/style.css b/resen/kaddish/style.css index 8edaf05..c9938fc 100644 --- a/resen/kaddish/style.css +++ b/resen/kaddish/style.css @@ -19,12 +19,14 @@ g { } text { - font-family: ktiv; - text-anchor: end; dominant-baseline: hanging; - font-size: .45rem; fill: #c13a16; + font-family: ktiv; + font-size: .45rem; scroll-margin-top: min(25rem, 50vh); + text-anchor: end; + user-select: none; + -webkit-user-select: none; } @keyframes blink { diff --git a/resen/style.css b/resen/style.css index d316f8d..bb8f892 100644 --- a/resen/style.css +++ b/resen/style.css @@ -1128,7 +1128,7 @@ video::-webkit-media-controls-enclosure { /* Not supported in Firefox */ margin-inline-start: 0; } - object { + object, .mobile_wide { margin-inline: var(--anti_margin); --media_width: auto; }