v70: тире между слогами + onclick — playHistorySyl из IndexedDB

This commit is contained in:
“Naeel”
2026-05-22 19:05:17 +04:00
parent 1f08e3a525
commit 67b82c726e
5 changed files with 42 additions and 20 deletions
+4 -3
View File
@@ -61,11 +61,12 @@ async function renderRecHistory() {
r.transcription.split(/\s+/).map(w => {
const sy = syllabifyIT(w);
if (sy.includes('-')) {
return sy.split('-').map(s =>
return sy.split('-').map((s,si) =>
'<span style="cursor:pointer;padding:0 2px;border-radius:3px"' +
' onmouseover="this.style.background=\'#ffeb3b\'"' +
' onmouseout="this.style.background=\'\'">' + s + '</span>'
).join('<span style="color:#ccc">·</span>');
' onmouseout="this.style.background=\'\'"' +
' onclick="playHistorySyl(' + r.id + ',' + si + ',' + sy.split('-').length + ')">' + s + '</span>'
).join('<span style="color:#ccc">-</span>');
}
return w;
}).join(' ') +