TTS redeems, skip button, per-source chat placement
- Redeem variations can have a TTS voice: the viewer's text is cleaned (links out, repeats collapsed, max length, blocked words -> not read), spoken as "<name> says: ..." and shown as the big paper note; the variation's sound is not played when TTS is on (picker greyed out) - Settings: TTS max length, say-the-name, blocked words (never sent to overlay pages: db.getOverlaySettings) - Dashboard "Skip current alert" -> /alerts/skip -> overlay skips it - db.migrate()/addColumn: new columns on existing databases - Chat: ?chat=left,top,width,height and ?chatflow=up per browser source (e.g. the Intermission panel); default unchanged Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
b5a81bdb15
commit
4fda6060bf
16 changed files with 228 additions and 28 deletions
|
|
@ -128,9 +128,10 @@
|
|||
d.innerHTML = `<span class="u">${esc(name)}</span>${r.html}`;
|
||||
d._n = ++seq;
|
||||
|
||||
// FLIP: remember where the others are, put the new one on top, then glide them down from the old spot
|
||||
// FLIP: remember where the others are, add the new one (on top, or at the bottom for ?chatflow=up),
|
||||
// then glide the others from their old spot
|
||||
const before = new Map([...box.children].map(m => [m, m.getBoundingClientRect().top]));
|
||||
box.prepend(d);
|
||||
if (box.classList.contains('up')) box.append(d); else box.prepend(d);
|
||||
before.forEach((top, m) => {
|
||||
const dy = top - m.getBoundingClientRect().top;
|
||||
if (dy && m.animate) m.animate([{ translate: `0 ${dy}px` }, { translate: '0 0' }], { duration: 320, easing: 'cubic-bezier(.2,.8,.3,1)' });
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue