-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadam_face.html
More file actions
524 lines (483 loc) · 19.9 KB
/
adam_face.html
File metadata and controls
524 lines (483 loc) · 19.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ADAM</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Rajdhani:wght@200;300;600&family=Share+Tech+Mono&display=swap');
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
--bg:linear-gradient(135deg,#dddddd,#272727);
--body-col:#1e1e1e;
--head-col:#252525;
--oled:#080808;
--W:#ffffff;
--GW:rgba(255,255,255,0.75);
--LBL:rgba(255,255,255,0.22);
--ET:0.2s cubic-bezier(0.34,1.56,0.64,1);
}
html,body{
width:100%;height:100%;
background:var(--bg);
display:flex;flex-direction:column;
align-items:center;justify-content:center;
font-family:'Share Tech Mono',monospace;
overflow:hidden;
}
body::before{
content:'';position:fixed;inset:0;
background-image:radial-gradient(circle,rgba(255,255,255,0.035) 1px,transparent 1px);
background-size:28px 28px;
pointer-events:none;
}
#scene{
display:flex;flex-direction:column;align-items:center;
animation:idle-float 4s ease-in-out infinite;
}
#head-wrapper{
position:relative;z-index:2;
transform-origin:bottom center;
perspective:800px;
transform-style:preserve-3d;
}
#head{
width:192px;height:150px;
background:var(--head-col);
border-radius:50% / 54% 54% 46% 46%;
position:relative;
display:flex;align-items:center;justify-content:center;
box-shadow:
0 0 0 1px rgba(255,255,255,0.055),
0 10px 40px rgba(0,0,0,0.65),
inset 0 1px 0 rgba(255,255,255,0.06);
transition:background 0.5s ease;
}
#cam-dots{
position:absolute;top:15px;left:50%;
transform:translateX(-50%);
display:flex;gap:8px;
}
#cam-dots span{
width:5px;height:5px;
background:#0e0e0e;border-radius:50%;
border:1px solid rgba(255,255,255,0.1);
}
#face-oval{
width:152px;height:110px;
background:var(--oled);
border-radius:50%;
display:flex;flex-direction:column;
align-items:center;justify-content:center;
gap:10px;
box-shadow:inset 0 0 28px rgba(0,0,0,0.95),0 0 0 1.5px rgba(255,255,255,0.05);
overflow:hidden;position:relative;
}
#face-oval::after{
content:'';position:absolute;inset:0;
background:repeating-linear-gradient(
0deg,transparent,transparent 3px,
rgba(255,255,255,0.012) 3px,rgba(255,255,255,0.012) 4px
);
pointer-events:none;
}
.eyes{
display:flex;gap:17px;align-items:center;
position:relative;z-index:1;
height:32px;
}
.eye{
width:40px;height:7px;
background:var(--W);
border-radius:4px;
position:relative;top:0;
flex-shrink:0;
transition:
width var(--ET),height var(--ET),
border-radius var(--ET),transform var(--ET),
top var(--ET),opacity var(--ET),
box-shadow var(--ET);
box-shadow:0 0 10px var(--GW),0 0 22px rgba(255,255,255,0.18);
}
/* ── MOUTH: fast transitions for live sync ── */
#mouth{
width:0;height:4px;
background:var(--W);
border-radius:3px;
opacity:0;
transition:
width 0.05s linear,
height 0.05s linear,
opacity 0.08s ease,
border-radius 0.15s ease,
transform 0.15s ease;
box-shadow:0 0 8px rgba(255,255,255,0.5);
position:relative;z-index:1;
}
#blush-l,#blush-r{
position:absolute;
width:26px;height:12px;
border-radius:50%;
background:rgba(255,255,255,0);
transition:background 0.6s ease;
bottom:22px;
pointer-events:none;
z-index:0;
}
#blush-l{left:10px;}
#blush-r{right:10px;}
#neck{
width:34px;height:20px;
background:linear-gradient(180deg,#1f1f1f 0%,#252525 100%);
border-left:1px solid rgba(255,255,255,0.04);
border-right:1px solid rgba(255,255,255,0.04);
z-index:1;
}
#body{
width:224px;height:196px;
background:var(--body-col);
border-radius:28% 28% 44% 44% / 18% 18% 52% 52%;
display:flex;align-items:center;justify-content:center;
box-shadow:
0 0 0 1px rgba(255,255,255,0.045),
0 24px 70px rgba(0,0,0,0.75),
inset 0 1px 0 rgba(255,255,255,0.05);
margin-top:-2px;z-index:1;position:relative;
}
#logo{
font-family:'Rajdhani',sans-serif;
font-weight:300;font-size:23px;
letter-spacing:7px;color:rgba(255,255,255,0.82);
margin-top:12px;
}
#body::after{
content:'';
position:absolute;bottom:-6px;left:12%;right:12%;
height:10px;background:rgba(0,0,0,0.45);
border-radius:50%;filter:blur(8px);
}
#status-row{display:flex;align-items:center;gap:10px;margin-top:32px;}
#ws-dot{
width:7px;height:7px;border-radius:50%;
background:#333;transition:background 0.4s,box-shadow 0.4s;
}
#ws-dot.connected{background:rgba(100,220,100,0.85);box-shadow:0 0 8px rgba(100,220,100,0.5);}
#ws-dot.error{background:rgba(220,80,80,0.85);}
#status{
font-size:10px;letter-spacing:3.5px;
color:var(--LBL);text-transform:uppercase;
transition:color 0.4s;
}
/* ═══ KEYFRAMES ═══ */
@keyframes idle-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
@keyframes blink{0%,92%,100%{transform:scaleY(1)}94%{transform:scaleY(0.05)}}
@keyframes listen-glow{
0%,100%{box-shadow:0 0 10px var(--GW),0 0 22px rgba(255,255,255,0.18)}
50%{box-shadow:0 0 22px #fff,0 0 48px rgba(255,255,255,0.55)}
}
@keyframes happy-bounce {0%,100%{transform:translateY(0)}50%{transform:translateY(-4px)}}
@keyframes excited-pulse {0%,100%{transform:scale(1)}50%{transform:scale(1.2);box-shadow:0 0 28px #fff,0 0 55px rgba(255,255,255,0.6)}}
@keyframes angry-tremble {0%,100%{transform:translateX(0)}20%{transform:translateX(-2.5px)}70%{transform:translateX(2.5px)}}
@keyframes confused-rock {0%,100%{transform:rotate(0)}30%{transform:rotate(7deg)}70%{transform:rotate(-7deg)}}
@keyframes smug-drift {0%,100%{transform:translateY(0)}50%{transform:translateY(-2px)}}
@keyframes sad-sink {0%,100%{transform:translateY(0)}50%{transform:translateY(3px)}}
@keyframes think-scan {0%,100%{transform:translateX(0)}30%{transform:translateX(-8px)}70%{transform:translateX(8px)}}
@keyframes love-pulse {0%,100%{transform:scale(1)}50%{transform:scale(1.1)}}
@keyframes blush-flutter {0%,100%{transform:scale(1)}50%{transform:scale(1.05)}}
@keyframes nod-yes{
0%{transform:rotateX(0)}20%{transform:rotateX(-22deg)}45%{transform:rotateX(10deg)}
65%{transform:rotateX(-16deg)}82%{transform:rotateX(5deg)}100%{transform:rotateX(0)}
}
@keyframes nod-fast{
0%,100%{transform:rotateX(0)}15%{transform:rotateX(-20deg)}30%{transform:rotateX(6deg)}
50%{transform:rotateX(-18deg)}65%{transform:rotateX(6deg)}82%{transform:rotateX(-8deg)}
}
@keyframes rotate180{
0%{transform:rotateY(0)}50%{transform:rotateY(180deg)}100%{transform:rotateY(0)}
}
/* face states — NOTE: speaking state does NOT reset eye/mouth styles */
.s-listening .eye{animation:listen-glow 1.4s ease-in-out infinite}
.s-listening #mouth{opacity:0.22;width:16px}
.s-listening #status{color:rgba(180,210,255,0.55)}
.s-speaking #status{color:rgba(255,255,255,0.85)}
.s-idle .eye{animation:blink 5.5s ease-in-out infinite}
.s-idle #mouth{opacity:0!important;width:0!important}
</style>
</head>
<body class="s-idle">
<div id="scene">
<div id="head-wrapper">
<div id="head">
<div id="cam-dots"><span></span><span></span></div>
<div id="face-oval">
<div id="blush-l"></div>
<div id="blush-r"></div>
<div class="eyes">
<div class="eye" id="eye-l"></div>
<div class="eye" id="eye-r"></div>
</div>
<div id="mouth"></div>
</div>
</div>
</div>
<div id="neck"></div>
<div id="body"><div id="logo">ADAM</div></div>
</div>
<div id="status-row">
<div id="ws-dot"></div>
<div id="status">CONNECTING...</div>
</div>
<script>
/* ══════════════════════════════════════════════════════════════════
EYE SHAPES — background always #ffffff
══════════════════════════════════════════════════════════════════ */
const SHAPES = {
default:{
L:{width:'40px',height:'7px',borderRadius:'4px',transform:'none',top:'0',opacity:'1'},
R:{width:'40px',height:'7px',borderRadius:'4px',transform:'none',top:'0',opacity:'1'},
M:{width:'0',height:'4px',opacity:'0',borderRadius:'3px',transform:'none'},
},
happy:{
L:{width:'38px',height:'15px',borderRadius:'50% 50% 4px 4px',transform:'none',top:'-4px',opacity:'1'},
R:{width:'38px',height:'15px',borderRadius:'50% 50% 4px 4px',transform:'none',top:'-4px',opacity:'1'},
M:{width:'32px',height:'5px',opacity:'1',borderRadius:'0 0 12px 12px',transform:'none'},
},
excited:{
L:{width:'34px',height:'24px',borderRadius:'50%',transform:'none',top:'-10px',opacity:'1'},
R:{width:'34px',height:'24px',borderRadius:'50%',transform:'none',top:'-10px',opacity:'1'},
M:{width:'40px',height:'7px',opacity:'1',borderRadius:'50%',transform:'none'},
},
angry:{
L:{width:'42px',height:'9px',borderRadius:'0 14px 2px 0',transform:'rotate(14deg) translateY(-2px)',top:'-2px',opacity:'1'},
R:{width:'42px',height:'9px',borderRadius:'14px 0 0 2px',transform:'rotate(-14deg) translateY(-2px)',top:'-2px',opacity:'1'},
M:{width:'20px',height:'4px',opacity:'1',borderRadius:'2px',transform:'translateY(2px)'},
},
confused:{
L:{width:'24px',height:'6px',borderRadius:'4px',transform:'rotate(12deg)',top:'2px',opacity:'1'},
R:{width:'44px',height:'11px',borderRadius:'4px',transform:'rotate(-4deg)',top:'-1px',opacity:'1'},
M:{width:'10px',height:'5px',opacity:'0.6',borderRadius:'50%',transform:'rotate(10deg) translateX(6px)'},
},
smug:{
L:{width:'42px',height:'3px',borderRadius:'0 0 4px 4px',transform:'none',top:'4px',opacity:'1'},
R:{width:'38px',height:'9px',borderRadius:'4px',transform:'none',top:'0',opacity:'1'},
M:{width:'18px',height:'4px',opacity:'0.85',borderRadius:'4px 10px 10px 4px',transform:'rotate(-5deg) translateX(10px)'},
},
sad:{
L:{width:'36px',height:'14px',borderRadius:'4px 4px 50% 50%',transform:'none',top:'0',opacity:'0.8'},
R:{width:'36px',height:'14px',borderRadius:'4px 4px 50% 50%',transform:'none',top:'0',opacity:'0.8'},
M:{width:'24px',height:'5px',opacity:'0.7',borderRadius:'10px 10px 0 0',transform:'none'},
},
surprised:{
L:{width:'28px',height:'30px',borderRadius:'50%',transform:'none',top:'-12px',opacity:'1'},
R:{width:'28px',height:'30px',borderRadius:'50%',transform:'none',top:'-12px',opacity:'1'},
M:{width:'14px',height:'14px',opacity:'1',borderRadius:'50%',transform:'none'},
},
thinking:{
L:{width:'36px',height:'3px',borderRadius:'2px',transform:'none',top:'2px',opacity:'0.85'},
R:{width:'36px',height:'3px',borderRadius:'2px',transform:'none',top:'2px',opacity:'0.85'},
M:{width:'6px',height:'3px',opacity:'0.25',borderRadius:'2px',transform:'none'},
},
love:{
L:{width:'32px',height:'22px',borderRadius:'50% 50% 38% 38%',transform:'none',top:'-8px',opacity:'1'},
R:{width:'32px',height:'22px',borderRadius:'50% 50% 38% 38%',transform:'none',top:'-8px',opacity:'1'},
M:{width:'34px',height:'6px',opacity:'1',borderRadius:'0 0 18px 18px',transform:'none'},
},
blush:{
L:{width:'38px',height:'8px',borderRadius:'50% 50% 4px 4px',transform:'none',top:'-1px',opacity:'0.9'},
R:{width:'38px',height:'8px',borderRadius:'50% 50% 4px 4px',transform:'none',top:'-1px',opacity:'0.9'},
M:{width:'26px',height:'5px',opacity:'0.85',borderRadius:'0 0 12px 12px',transform:'none'},
},
};
const EYE_ANIMS = {
happy: 'happy-bounce 0.9s ease-in-out infinite',
excited: 'excited-pulse 0.5s ease-in-out infinite',
angry: 'angry-tremble 0.3s ease-in-out infinite',
confused: 'confused-rock 1.3s ease-in-out infinite',
smug: 'smug-drift 2s ease-in-out infinite',
sad: 'sad-sink 2.5s ease-in-out infinite',
surprised:'none',
thinking: 'think-scan 2s ease-in-out infinite',
love: 'love-pulse 1s ease-in-out infinite',
blush: 'blush-flutter 1.4s ease-in-out infinite',
};
const EMOTION_COLOURS = {
happy:'rgba(255,230,100,0.7)', excited:'rgba(255,255,255,0.9)',
angry:'rgba(255,120,120,0.75)', confused:'rgba(220,220,100,0.65)',
smug:'rgba(180,255,180,0.65)', sad:'rgba(160,190,255,0.65)',
surprised:'rgba(255,200,255,0.75)', thinking:'rgba(190,190,255,0.6)',
love:'rgba(255,200,220,0.75)', blush:'rgba(255,210,210,0.7)',
};
const LABELS = {
idle:'STANDBY', listening:'LISTENING', speaking:'SPEAKING',
happy:'HAPPY', excited:'EXCITED!', angry:'ANGRY', confused:'CONFUSED',
smug:'SMUG', sad:'SAD', surprised:'SURPRISED!', thinking:'THINKING...',
love:'WARMTH', blush:'SHY',
};
/* ── MOUTH SYNC SHAPES ─────────────────────────────────────────── */
const SYNC_SHAPES = {
closed: {width:'0px', height:'4px', opacity:'0', borderRadius:'3px'},
low: {width:'16px', height:'4px', opacity:'0.75', borderRadius:'4px'},
medium: {width:'32px', height:'6px', opacity:'1', borderRadius:'4px'},
high: {width:'52px', height:'10px',opacity:'1', borderRadius:'6px'},
};
const eyeL = document.getElementById('eye-l');
const eyeR = document.getElementById('eye-r');
const mouthEl = document.getElementById('mouth');
const headW = document.getElementById('head-wrapper');
const blushL = document.getElementById('blush-l');
const blushR = document.getElementById('blush-r');
const statusEl= document.getElementById('status');
/* ── State ────────────────────────────────────────────────────── */
let currentFaceState = 'idle';
let currentEmotion = 'default';
let syncTimeout = null;
/* ── Apply eye + emotion-default mouth shape ──────────────────── */
function applyShape(name) {
const s = SHAPES[name] || SHAPES.default;
eyeL.style.animation = 'none';
eyeR.style.animation = 'none';
void eyeL.offsetWidth;
const base = {
background: '#ffffff',
boxShadow: '0 0 10px rgba(255,255,255,0.75),0 0 22px rgba(255,255,255,0.18)'
};
Object.assign(eyeL.style, base, s.L);
Object.assign(eyeR.style, base, s.R);
// Only update mouth from shape if NOT currently speaking
// (during speaking, mouth_sync messages drive it instead)
if (currentFaceState !== 'speaking') {
Object.assign(mouthEl.style, {background:'#ffffff'}, s.M);
}
}
function setBlush(on) {
const col = on ? 'rgba(255,255,255,0.12)' : 'rgba(255,255,255,0)';
blushL.style.background = col;
blushR.style.background = col;
}
function setEmotion(emotion) {
currentEmotion = emotion;
applyShape(emotion);
const anim = EYE_ANIMS[emotion];
if (anim && anim !== 'none') {
void eyeL.offsetWidth;
eyeL.style.animation = anim;
eyeR.style.animation = anim;
}
setBlush(emotion === 'blush' || emotion === 'love');
statusEl.textContent = LABELS[emotion] || emotion.toUpperCase();
statusEl.style.color = EMOTION_COLOURS[emotion] || 'rgba(255,255,255,0.22)';
}
/* ── MOUTH SYNC (FIX) ──────────────────────────────────────────
- No isSpeaking guard — Python only sends mouth_sync when speaking
- Auto-close only if no new sync arrives within 200ms
- 'closed' always works (end-of-turn cleanup)
─────────────────────────────────────────────────────────────── */
function applyMouthSync(intensity) {
const s = SYNC_SHAPES[intensity] || SYNC_SHAPES.medium;
Object.assign(mouthEl.style, {background:'#ffffff'}, s);
clearTimeout(syncTimeout);
if (intensity !== 'closed') {
// If no next sync arrives within 200ms, close mouth (prevents stuck-open)
syncTimeout = setTimeout(() => {
Object.assign(mouthEl.style, SYNC_SHAPES.closed);
}, 200);
}
}
/* ── HEAD MOVEMENTS ─────────────────────────────────────────── */
const HEAD_ANIMS = {
nod_yes: {css:'nod-yes 0.9s cubic-bezier(0.36,0.07,0.19,0.97) 1 forwards', dur:960},
nod_fast: {css:'nod-fast 0.65s ease-in-out 2 forwards', dur:1360},
rotate: {css:'rotate180 1.45s cubic-bezier(0.4,0,0.2,1) 1 forwards', dur:1510},
rotate180:{css:'rotate180 1.45s cubic-bezier(0.4,0,0.2,1) 1 forwards', dur:1510},
};
let headTimer = null;
function triggerHead(movement) {
const cfg = HEAD_ANIMS[movement];
if (!cfg) return;
clearTimeout(headTimer);
headW.style.animation = 'none';
void headW.offsetWidth;
headW.style.animation = cfg.css;
headTimer = setTimeout(() => { headW.style.animation = 'none'; }, cfg.dur + 60);
}
/* ── FACE STATE ─────────────────────────────────────────────────
FIX: 'speaking' state no longer resets eye/mouth.
Only 'idle' and 'listening' reset to default.
─────────────────────────────────────────────────────────────── */
function setFaceState(state) {
currentFaceState = state;
document.body.classList.remove('s-idle', 's-listening', 's-speaking');
document.body.classList.add('s-' + state);
const colours = {
idle: 'rgba(255,255,255,0.22)',
listening: 'rgba(180,210,255,0.55)',
speaking: 'rgba(255,255,255,0.85)',
};
if (state === 'idle' || state === 'listening') {
// Reset eyes and emotion only when not speaking
if (currentEmotion !== 'default') {
applyShape('default');
setBlush(false);
currentEmotion = 'default';
}
// Reset mouth for idle/listening (CSS class will handle it)
clearTimeout(syncTimeout);
Object.assign(mouthEl.style, SYNC_SHAPES.closed);
}
// For 'speaking': DON'T reset anything — mouth_sync messages will drive the mouth
if (LABELS[state]) {
statusEl.textContent = LABELS[state];
statusEl.style.color = colours[state] || 'rgba(255,255,255,0.22)';
}
}
/* ── WEBSOCKET ───────────────────────────────────────────────── */
const wsDot = document.getElementById('ws-dot');
const WS_URL = `ws://${window.location.hostname}:8765`;
let ws = null, retryMs = 1000;
function connect() {
ws = new WebSocket(WS_URL);
ws.onopen = () => {
wsDot.classList.add('connected');
wsDot.classList.remove('error');
retryMs = 1000;
setFaceState('listening');
};
ws.onmessage = ({data}) => {
let msg;
try { msg = JSON.parse(data); } catch { return; }
if (msg.type === 'face_state') {
setFaceState(msg.state);
} else if (msg.type === 'emotion') {
setEmotion(msg.emotion);
if (msg.head && msg.head !== 'none') triggerHead(msg.head);
} else if (msg.type === 'head_movement') {
triggerHead(msg.movement);
} else if (msg.type === 'mouth_sync') {
applyMouthSync(msg.intensity);
}
};
ws.onclose = () => {
wsDot.classList.remove('connected');
statusEl.textContent = 'RECONNECTING...';
setTimeout(connect, retryMs);
retryMs = Math.min(retryMs * 1.5, 8000);
};
ws.onerror = () => { wsDot.classList.add('error'); ws.close(); };
}
connect();
/* ── KEYBOARD SHORTCUTS ──────────────────────────────────────── */
document.addEventListener('keydown', e => {
const sm = {1:'idle', 2:'listening', 3:'speaking'};
const em = {h:'happy', x:'excited', a:'angry', c:'confused', g:'smug',
d:'sad', u:'surprised', t:'thinking', l:'love', b:'blush'};
const hm = {n:'nod_yes', f:'nod_fast', r:'rotate'};
if (sm[e.key]) setFaceState(sm[e.key]);
if (em[e.key]) setEmotion(em[e.key]);
if (hm[e.key]) triggerHead(hm[e.key]);
if (e.key === 'm') applyMouthSync('medium');
if (e.key === 'M') applyMouthSync('high');
if (e.key === 'z') applyMouthSync('closed');
});
</script>
</body>
</html>