v70: тире между слогами + onclick — playHistorySyl из IndexedDB
This commit is contained in:
+4
-3
@@ -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(' ') +
|
||||
|
||||
Reference in New Issue
Block a user