Hamed744 commited on
Commit
d8b68ff
·
verified ·
1 Parent(s): 949a455

Update index.html

Browse files
Files changed (1) hide show
  1. index.html +385 -363
index.html CHANGED
@@ -2,437 +2,459 @@
2
  <html lang="fa" dir="rtl">
3
  <head>
4
  <meta charset="UTF-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
6
- <title>هوشان - چیدمان آینه‌ای و نوتیفیکیشن جدید</title>
7
- <script src="https://cdn.tailwindcss.com"></script>
8
  <style>
9
- /* ... (CSS variables and base styles from previous correct version) ... */
10
- @custom-variant dark (&:is(.dark *));
11
- @theme inline {
12
- --color-background: var(--background);
13
- --color-foreground: var(--foreground);
14
- --radius-lg: var(--radius);
15
- --popover: oklch(1 0 0);
16
- --popover-foreground: oklch(0.145 0 0);
17
- --border: oklch(0.922 0 0);
18
- }
19
  :root {
20
- --radius: 0.625rem; /* 10px */
21
- --radius-md: 0.5rem; /* 8px, for consistency if used elsewhere */
22
- --background: oklch(1 0 0);
23
- --foreground: oklch(0.145 0 0);
24
- }
25
- .dark {
26
- --background: oklch(0.145 0 0);
27
- --foreground: oklch(0.985 0 0);
28
- --popover: oklch(0.205 0 0);
29
- --popover-foreground: oklch(0.985 0 0);
30
- --border: oklch(1 0 0 / 10%);
31
- }
32
- @layer base {
33
- * { @apply border-border outline-ring/50; }
34
- body { @apply bg-background text-foreground; overflow-x: hidden; }
35
- }
36
-
37
- /* Notification Popover Wrapper & Content */
38
- .notification-popover-wrapper {
39
- position: fixed;
40
- top: 1rem; /* Distance from top */
41
- left: 50%;
42
- transform: translateX(-50%);
43
- z-index: 100; /* Ensure it's above other elements */
44
- width: calc(100% - 2rem); /* Some padding from screen edges */
45
- max-width: 28rem; /* max-w-md or similar */
 
46
  display: flex;
47
- justify-content: center;
48
- pointer-events: none; /* Wrapper itself doesn't catch events */
49
  }
50
 
51
- .popover-content {
 
 
 
52
  width: 100%;
53
- border-radius: var(--radius-md, 0.5rem);
54
- border-width: 1px; /* Border for the popover container */
55
- border-color: var(--border);
56
- background-color: var(--popover);
57
- color: var(--popover-foreground);
58
- box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
59
- outline: none;
60
- transition: opacity 0.3s ease-out, transform 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55);
61
- opacity: 0;
62
- transform: translateY(-100%) scale(0.9); /* Start off-screen top and slightly scaled down */
63
- pointer-events: none; /* Content not interactive until 'open' */
64
  }
65
 
66
- .popover-content.open {
67
- opacity: 1;
68
- transform: translateY(0) scale(1);
69
- pointer-events: auto; /* Content interactive when 'open' */
 
 
 
 
70
  }
71
- /* Text content within the popover */
72
- .notification-popover-text-content {
73
- background-color: #eff6ff; /* bg-blue-50 - might need dark mode variant if popover bg isn't enough contrast */
74
- font-size: 0.875rem; line-height: 1.5rem; direction: rtl;
75
- padding: 1rem;
76
- border-radius: var(--radius-md, 0.5rem);
77
- /* For dark mode, text color in notification should be dark on light blue */
78
- color: oklch(0.145 0 0); /* Ensuring text readability on light blue bg */
79
  }
80
- .dark .notification-popover-text-content {
81
- background-color: oklch(0.25 0.05 230); /* Darker blue for dark mode */
82
- color: oklch(0.95 0.01 230); /* Lighter text for dark mode */
 
 
 
83
  }
84
 
 
 
 
 
 
 
 
 
 
 
85
 
86
- /* Header controls */
87
- .header-controls {
88
- display: flex;
89
- padding: 1rem;
90
- justify-content: space-between;
91
- align-items: center;
 
 
 
 
 
 
 
92
  width: 100%;
93
- position: absolute;
94
- top: 0;
95
- left: 0;
96
- z-index: 10;
 
 
 
 
 
97
  }
98
 
99
- /* Common style for header buttons */
100
- .header-button {
101
- display: flex; align-items: center; justify-content: center;
102
- padding: 0.5rem; border-radius: var(--radius-lg, 0.625rem);
103
- background-color: #e5e7eb; /* bg-gray-200 */
104
- cursor: pointer;
105
- transition: background-color 0.2s;
106
  }
107
- .header-button:hover {
108
- background-color: #d1d5db; /* bg-gray-300 */
 
 
109
  }
110
- .header-button svg { opacity: 0.7; stroke: #374151 /* gray-700 */; }
111
 
112
- .dark .header-button {
113
- background-color: oklch(0.28 0 0); /* Darker gray for dark mode */
 
 
114
  }
115
- .dark .header-button:hover {
116
- background-color: oklch(0.35 0 0);
 
 
 
 
 
 
 
 
 
 
 
 
117
  }
118
- .dark .header-button svg { opacity: 0.8; stroke: oklch(0.85 0 0); }
119
 
 
 
 
120
 
121
- @keyframes ping { 75%, 100% { transform: scale(2); opacity: 0; } }
122
- .animate-ping { animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite; }
 
 
 
123
 
124
- #large-logo-container.flex { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; position: absolute; top: 0; left: 0; }
125
- #small-logo-container.flex { display: flex; align-items: center; justify-content: center; }
 
 
 
126
 
127
- .footer-controls {
128
- width: 100%; display: flex; gap: 1rem; position: absolute;
129
- bottom: 0; padding: 2rem 3rem; align-items: center;
 
 
 
 
 
 
 
 
 
130
  }
131
- .footer-controls.layout-default { justify-content: space-between; }
132
- .footer-controls.layout-with-small-logo { justify-content: space-around; }
133
 
134
- .control-button {
135
- height: 80px; width: 80px; border-radius: 9999px;
136
- padding: 0; display: flex; align-items: center; justify-content: center;
137
- border-width: 1px;
138
- border-color: var(--border); /* Use themed border */
139
- box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
 
 
 
140
  cursor: pointer;
141
- transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
142
- }
143
- .control-button:hover {
144
- transform: scale(1.05);
145
- box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
146
- }
147
- .cam-button-color { background-color: #E0ECFF; } /* Now left */
148
- .mic-button-color { background-color: #fecdd3; } /* Now right */
149
- .dark .cam-button-color { background-color: #223355; } /* Darker blue */
150
- .dark .mic-button-color { background-color: #5C2129; } /* Darker red */
151
-
152
-
153
- /* Switch Camera Button Styles */
154
- .switch-camera-button-container {
155
- position: absolute;
156
- bottom: calc(100% + 0.65rem); /* Adjusted spacing, was 0.75rem */
157
- left: 50%;
158
- z-index: 5;
159
- opacity: 0;
160
- transform: translateY(15px) scale(0.7) translateX(-50%); /* Ensure centered above */
161
- pointer-events: none;
162
- transition: opacity 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55), transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55);
163
- transform-origin: center bottom; /* Animation origin */
164
- }
165
- .switch-camera-button-container.visible {
166
- opacity: 1;
167
- transform: translateY(0) scale(1) translateX(-50%);
168
- pointer-events: auto;
169
- }
170
- .switch-camera-button-content {
171
- width: 48px; /* Reduced from 52px */
172
- height: 48px; /* Reduced from 52px */
173
- background-color: var(--background);
174
- border: 1px solid var(--border);
175
- border-radius: 9999px;
176
  display: flex;
177
  align-items: center;
178
  justify-content: center;
179
- box-shadow: 0 5px 10px rgba(0,0,0,0.12), 0 2px 4px rgba(0,0,0,0.08); /* Slightly softer shadow */
180
- cursor: pointer;
181
- transform-origin: center; /* For hover animation */
182
- transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
183
  }
184
- .switch-camera-button-content:hover {
185
- transform: scale(1.12) rotate(-6deg); /* Adjusted hover */
186
- box-shadow: 0 7px 15px rgba(0,0,0,0.18), 0 3px 6px rgba(0,0,0,0.12);
 
 
187
  }
188
- .switch-camera-button-content:active {
189
- transform: scale(1.03) rotate(0deg); /* Press down effect */
 
 
 
190
  }
191
- .switch-camera-button-content svg {
192
- width: 22px; /* Reduced from 26px, for 48px button */
193
- height: 22px; /* Reduced from 26px */
194
- stroke: var(--foreground);
195
- transition: transform 0.3s ease-in-out;
 
 
 
196
  }
197
- .switch-camera-button-content:hover svg {
198
- transform: rotate(360deg); /* Spin icon on hover */
 
199
  }
200
 
201
- </style>
202
- <script>
203
- tailwind.config = {
204
- darkMode: 'class',
205
- theme: {
206
- extend: {
207
- colors: { /* ... (same as before) ... */ },
208
- borderRadius: { /* ... (same as before) ... */ },
209
- inset: { /* ... (same as before) ... */ },
210
- keyframes: {
211
- 'popover-drop-in': {
212
- '0%': { opacity: '0', transform: 'translateY(-100%) scale(0.9)' },
213
- '70%': { opacity: '1', transform: 'translateY(5px) scale(1.02)' }, /* Slight overshoot */
214
- '100%': { opacity: '1', transform: 'translateY(0) scale(1)' },
215
- },
216
- 'popover-lift-out': {
217
- '0%': { opacity: '1', transform: 'translateY(0) scale(1)' },
218
- '100%': { opacity: '0', transform: 'translateY(-100%) scale(0.9)' },
219
- }
220
- },
221
- animation: {
222
- 'popover-open-top-center': 'popover-drop-in 0.4s cubic-bezier(0.68, -0.55, 0.27, 1.55) forwards',
223
- 'popover-close-top-center': 'popover-lift-out 0.3s ease-in forwards',
224
- }
225
- }
226
- }
227
  }
228
- </script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
229
  </head>
230
- <body class="antialiased"> <!-- Removed bg-slate-50, using CSS vars now -->
231
-
232
- <div class="w-full flex flex-col items-center justify-center min-h-[90dvh] md:min-h-screen">
233
- <div class="max-w-3xl w-full flex flex-col items-center justify-center h-full relative">
234
- <!-- Header - Button order reversed -->
235
- <div class="header-controls">
236
- <!-- Notification Button (Now on the Left) -->
237
- <div id="notification-trigger-container" class="notification-trigger-container">
238
- <button id="notification-button" aria-label="Notifications" class="header-button">
239
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>
240
- </button>
241
- </div>
242
- <!-- Back Button (Now on the Right) -->
243
- <div class="back-button-container">
244
- <div class="header-button" onclick="alert('Back clicked')">
245
- <svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="m15 18-6-6 6-6"></path></svg>
246
- </div>
247
- </div>
248
  </div>
249
 
250
- <!-- Notification Popover Wrapper (Centered at the top) -->
251
- <div id="notification-popover-wrapper" class="notification-popover-wrapper">
252
- <div id="notification-popover" class="popover-content">
253
- <div class="notification-popover-text-content">
254
- مدل‌های هوش مصنوعی می‌توانند اشتباه کنند، صحت اطلاعات مهم را بررسی کنید و از وارد کردن اطلاعات حساس بپرهیزید.
255
- </div>
 
256
  </div>
257
  </div>
258
 
259
- <!-- MediaToggle Area -->
260
- <div class="w-full flex flex-col items-center justify-center h-[90dvh] bg-background top-0 left-0 relative">
261
- <video id="video-feed" autoplay playsinline class="absolute top-0 left-0 w-full h-full object-cover scale-x-[-1] hidden"></video>
262
- <div id="large-logo-container" class="hidden"></div>
263
-
264
- <!-- Footer Controls - Order Changed -->
265
- <div id="footer-controls" class="footer-controls layout-default">
266
- <!-- Cam Button Wrapper (Now on the Left) -->
267
- <div id="cam-button-wrapper" class="relative flex justify-center">
268
- <div id="cam-button" class="control-button cam-button-color">
269
- <!-- Cam icon will be injected here by JS -->
270
- </div>
271
- <div id="switch-camera-button-container" class="switch-camera-button-container">
272
- <button id="switch-camera-button" aria-label="Switch Camera" class="switch-camera-button-content">
273
- <!-- New Switch Camera Icon -->
274
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
275
- <path d="M11 19H4a2 2 0 0 1-2-2V7a2 2 0 0 1 2-2h5"/>
276
- <path d="M13 5h7a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-5"/>
277
- <path d="m17 12-3-3 3-3"/>
278
- <path d="m7 12 3 3-3 3"/>
279
- </svg>
280
- </button>
281
- </div>
282
- </div>
283
-
284
- <div id="small-logo-container" class="hidden"></div>
285
-
286
- <!-- Mic Button (Now on the Right) -->
287
- <div id="mic-button" class="control-button mic-button-color">
288
- <!-- Mic icon will be injected here by JS -->
289
- </div>
290
  </div>
291
  </div>
292
- </div>
293
- </div>
294
 
295
- <!-- SVG Icon Definitions (same as previous) -->
296
- <div style="display: none;">
297
- <svg id="svg-pauseIcon" width="37" height="37" viewBox="0 0 37 37" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M15.9872 29.6198V8.28342C15.9872 6.25781 15.132 5.44757 12.9713 5.44757H7.52469C5.36404 5.44757 4.50879 6.25781 4.50879 8.28342V29.6198C4.50879 31.6454 5.36404 32.4556 7.52469 32.4556H12.9713C15.132 32.4556 15.9872 31.6454 15.9872 29.6198Z" fill="#BE123C"/><path opacity="0.4" d="M31.5175 29.6198V8.28342C31.5175 6.25781 30.6622 5.44757 28.5016 5.44757H23.055C20.9093 5.44757 20.0391 6.25781 20.0391 8.28342V29.6198C20.0391 31.6454 20.8943 32.4556 23.055 32.4556H28.5016C30.6622 32.4556 31.5175 31.6454 31.5175 29.6198Z" fill="#BE123C"/></svg>
298
- <svg id="svg-microphoneIcon" width="69" height="68" viewBox="0 0 69 68" fill="none" xmlns="http://www.w3.org/2000/svg"><path opacity="0.4" d="M49.9479 27.1824C49.0803 27.1824 48.3907 27.872 48.3907 28.7396V32.2544C48.3907 40.1293 41.984 46.5361 34.109 46.5361C26.234 46.5361 19.8273 40.1293 19.8273 32.2544V28.7173C19.8273 27.8497 19.1377 27.1601 18.2701 27.1601C17.4025 27.1601 16.7129 27.8497 16.7129 28.7173V32.2321C16.7129 41.2861 23.6758 48.7384 32.5518 49.5393V54.2776C32.5518 55.1452 33.2414 55.8348 34.109 55.8348C34.9766 55.8348 35.6662 55.1452 35.6662 54.2776V49.5393C44.52 48.7607 51.5051 41.2861 51.5051 32.2321V28.7173C51.4829 27.872 50.7933 27.1824 49.9479 27.1824Z" fill="#BE123C"/><path d="M34.1099 11.3434C28.682 11.3434 24.2773 15.7481 24.2773 21.176V32.5658C24.2773 37.9938 28.682 42.3984 34.1099 42.3984C39.5379 42.3984 43.9425 37.9938 43.9425 32.5658V21.176C43.9425 15.7481 39.5379 11.3434 34.1099 11.3434ZM37.0241 26.8042C36.8684 27.3826 36.3567 27.7608 35.7784 27.7608C35.6671 27.7608 35.5559 27.7385 35.4447 27.7163C34.5771 27.4716 33.665 27.4716 32.7974 27.7163C32.0856 27.9165 31.396 27.4938 31.218 26.8042C31.0178 26.1146 31.4404 25.4027 32.1301 25.2247C33.4426 24.8688 34.8218 24.8688 36.1343 25.2247C36.8017 25.4027 37.2021 26.1146 37.0241 26.8042ZM38.2031 22.4885C38.0029 23.0224 37.5135 23.3339 36.9796 23.3339C36.8239 23.3339 36.6904 23.3116 36.5347 23.2671C34.9775 22.6887 33.2423 22.6887 31.6852 23.2671C31.0178 23.5118 30.2614 23.1559 30.0167 22.4885C29.772 21.8212 30.128 21.0648 30.7953 20.8423C32.9309 20.0637 35.289 20.0637 37.4245 20.8423C38.0919 21.087 38.4478 21.8212 38.2031 22.4885Z" fill="#BE123C"/></svg>
299
- <svg id="svg-cameraIcon" width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path opacity="0.4" d="M21.8118 5.52235H11.9265C6.29183 5.52235 4.10059 7.7136 4.10059 13.3482V26.5286C4.10059 30.318 6.16002 34.3545 11.9265 34.3545H21.8118C27.4464 34.3545 29.6376 32.1633 29.6376 26.5286V13.3482C29.6376 7.7136 27.4464 5.52235 21.8118 5.52235Z" fill="#2252A0"/><path d="M19.3406 18.9169C21.0512 18.9169 22.438 17.5302 22.438 15.8195C22.438 14.1089 21.0512 12.7222 19.3406 12.7222C17.6299 12.7222 16.2432 14.1089 16.2432 15.8195C16.2432 17.5302 17.6299 18.9169 19.3406 18.9169Z" fill="#2252A0"/><path d="M36.0629 10.3332C35.3874 9.98721 33.9705 9.5918 32.0429 10.9428L29.6045 12.6562C29.621 12.8869 29.6374 13.1011 29.6374 13.3482V26.5286C29.6374 26.7758 29.6045 26.9899 29.6045 27.2206L32.0429 28.934C33.0643 29.659 33.954 29.8896 34.6625 29.8896C35.2721 29.8896 35.7499 29.7249 36.0629 29.5601C36.7384 29.2141 37.8752 28.275 37.8752 25.919V13.9743C37.8752 11.6183 36.7384 10.6792 36.0629 10.3332Z" fill="#2252A0"/></svg>
300
- <svg id="svg-stopCamIcon" width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg"><path opacity="0.4" d="M29.0785 10.8076L6.91966 32.9665C4.61316 31.5002 3.70703 28.8807 3.70703 26.36V13.18C3.70703 7.54555 5.89821 5.35437 11.5327 5.35437H21.4177C26.1789 5.35437 28.4854 6.9195 29.0785 10.8076Z" fill="#2252A0"/><path opacity="0.4" d="M29.2427 15.2394V26.36C29.2427 26.4918 29.2262 26.5907 29.2262 26.706C29.2262 26.8213 29.2097 26.9366 29.2097 27.052H29.2262C29.045 32.1757 26.8208 34.1856 21.417 34.1856H11.532C11.1202 34.1856 10.7412 34.1692 10.3623 34.1197L29.2427 15.2394Z" fill="#2252A0"/><path opacity="0.4" d="M29.21 27.052C29.21 26.9366 29.2264 26.8213 29.2264 26.706C29.2429 26.8213 29.2429 26.9366 29.2264 27.052H29.21Z" fill="#2252A0"/><path opacity="0.4" d="M29.2264 12.4716C29.2429 12.5869 29.2429 12.7187 29.2264 12.834C29.2264 12.7187 29.21 12.6034 29.21 12.488L29.2264 12.4716Z" fill="#2252A0"/><path d="M37.4804 13.8061V25.734C37.4804 28.0899 36.3436 29.029 35.6682 29.3749C35.3551 29.5397 34.8774 29.7209 34.2678 29.7209C33.5594 29.7209 32.6697 29.4903 31.6483 28.7654L29.2264 27.052H29.21C29.21 26.9366 29.2264 26.8213 29.2264 26.706C29.2264 26.5907 29.2429 26.4918 29.2429 26.36V15.2394L34.6302 9.85205C35.0751 9.885 35.421 10.0168 35.6682 10.1651C36.3436 10.5111 37.4804 11.4501 37.4804 13.8061Z" fill="#2252A0"/><path d="M35.8666 3.67393C35.3723 3.17968 34.565 3.17968 34.0708 3.67393L3.6744 34.0868C3.18015 34.581 3.18015 35.3883 3.6744 35.8826C3.92152 36.1132 4.23455 36.245 4.56405 36.245C4.89355 36.245 5.20657 36.1132 5.4537 35.8661L35.8666 5.45323C36.3773 4.95898 36.3773 4.16818 35.8666 3.67393Z" fill="#2252A0"/></svg>
301
- <svg id="svg-humanIcon" width="70" height="70" viewBox="0 0 88 89" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M75.1481 81.6361H12.9259C9.66667 81.6361 7 78.9721 7 75.7161V58.5112C7 57.5862 7 57.1052 7.44444 56.2172C8.85185 52.9612 13 50.2232 19.4815 47.8922C24.1111 56.6982 33.3704 62.6921 44 62.6921C54.6296 62.6921 63.9259 56.6982 68.5185 47.8922C75 50.1862 79.1852 52.9982 80.5556 56.2172C81 56.6612 81 57.6232 81 58.5112V75.7161C81 78.9721 78.3333 81.6361 75.0741 81.6361H75.1481Z" stroke="#FCFCFC" stroke-width="6.42146" stroke-linecap="round" stroke-linejoin="round"/><path d="M44.0371 50.1862C33.8519 50.1862 25.5186 41.8612 25.5186 31.6863V26.1363C25.5186 15.9613 33.8519 7.63635 44.0371 7.63635C54.2223 7.63635 62.5556 15.9613 62.5556 26.1363V31.6863C62.5556 41.8612 54.2223 50.1862 44.0371 50.1862Z" stroke="#FCFCFC" stroke-width="6.42146" stroke-linecap="round" stroke-linejoin="round"/></svg>
 
 
 
 
 
302
  </div>
303
 
304
  <script>
305
- const videoFeed = document.getElementById('video-feed');
306
- const largeLogoContainer = document.getElementById('large-logo-container');
307
- const smallLogoContainer = document.getElementById('small-logo-container');
308
- const micButton = document.getElementById('mic-button');
309
- const camButton = document.getElementById('cam-button');
310
- const footerControls = document.getElementById('footer-controls');
311
- const notificationButton = document.getElementById('notification-button');
312
- const notificationPopover = document.getElementById('notification-popover');
313
- const switchCameraButtonContainer = document.getElementById('switch-camera-button-container');
314
- const switchCameraButton = document.getElementById('switch-camera-button');
315
-
316
- const pauseIconSVG = document.getElementById('svg-pauseIcon').cloneNode(true);
317
- const microphoneIconSVG = document.getElementById('svg-microphoneIcon').cloneNode(true);
318
- const cameraIconSVG = document.getElementById('svg-cameraIcon').cloneNode(true);
319
- const stopCamIconSVG = document.getElementById('svg-stopCamIcon').cloneNode(true);
320
-
321
- let isMicActive = false;
322
- let isCamActive = false;
323
- let isNotificationOpen = false;
324
-
325
- function createLogoHTML(isMini, isHumanActive, isAiActive) {
326
- if (!isHumanActive && !isAiActive) return '';
327
- const size = isMini ? 80 : 200;
328
- const iconSize = isMini ? 35 : 70;
329
- const insetBase = isMini ? { ping: 10, outer: 0, mid: 5, inner: 12, icon: 22 }
330
- : { ping: 40, outer: 0, mid: 20, inner: 50, icon: 65 };
331
- const bgColorBase = isHumanActive ? 'blue' : (isAiActive ? 'green' : 'gray');
332
- const iconNode = isHumanActive ? document.getElementById('svg-humanIcon') : (isAiActive ? document.getElementById('svg-humanIcon') /* Placeholder */ : null);
333
- if (!iconNode) return '';
334
- const iconSVG = iconNode.cloneNode(true);
335
- iconSVG.setAttribute('width', iconSize);
336
- iconSVG.setAttribute('height', iconSize);
337
-
338
- return `
339
- <div class="hidden bg-green-200 bg-green-300 bg-green-400 bg-blue-200 bg-blue-300 bg-blue-400"></div>
340
- <div class="relative" style="width: ${size}px; height: ${size}px;">
341
- <div class="absolute rounded-full opacity-50 animate-ping bg-${bgColorBase}-200" style="inset: ${insetBase.ping}px;"></div>
342
- <div class="absolute inset-0 rounded-full opacity-50 bg-${bgColorBase}-200"></div>
343
- <div class="absolute rounded-full opacity-50 bg-${bgColorBase}-300" style="inset: ${insetBase.mid}px;"></div>
344
- <div class="absolute inset-[50px] rounded-full opacity-50 bg-${bgColorBase}-400" style="inset: ${insetBase.inner}px;"></div>
345
- <div class="z-10 absolute" style="inset: ${insetBase.icon}px;">
346
- ${iconSVG.outerHTML}
347
- </div>
348
- </div>`;
349
- }
350
-
351
- function updateUI() {
352
- videoFeed.classList.toggle('hidden', !isCamActive);
353
- if (!isCamActive && isMicActive) {
354
- largeLogoContainer.innerHTML = createLogoHTML(false, true, false);
355
- largeLogoContainer.classList.remove('hidden');
356
- largeLogoContainer.classList.add('flex');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
357
  } else {
358
- largeLogoContainer.innerHTML = '';
359
- largeLogoContainer.classList.add('hidden');
360
- largeLogoContainer.classList.remove('flex');
361
  }
 
362
 
363
- if (isCamActive) {
364
- smallLogoContainer.innerHTML = createLogoHTML(true, true, false);
365
- smallLogoContainer.classList.remove('hidden');
366
- smallLogoContainer.classList.add('flex');
367
- footerControls.classList.remove('layout-default');
368
- footerControls.classList.add('layout-with-small-logo');
369
- switchCameraButtonContainer.classList.add('visible');
370
- } else {
371
- smallLogoContainer.innerHTML = '';
372
- smallLogoContainer.classList.add('hidden');
373
- smallLogoContainer.classList.remove('flex');
374
- footerControls.classList.remove('layout-with-small-logo');
375
- footerControls.classList.add('layout-default');
376
- switchCameraButtonContainer.classList.remove('visible');
 
 
377
  }
378
 
379
- // Footer buttons icons (Order is now Cam on left, Mic on Right)
380
- camButton.innerHTML = '';
381
- camButton.appendChild(isCamActive ? stopCamIconSVG.cloneNode(true) : cameraIconSVG.cloneNode(true));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
382
 
383
- micButton.innerHTML = '';
384
- micButton.appendChild(isMicActive ? pauseIconSVG.cloneNode(true) : microphoneIconSVG.cloneNode(true));
 
 
 
 
 
 
 
 
 
 
 
 
 
385
 
386
- // Notification Popover Animation
387
- if (isNotificationOpen) {
388
- notificationPopover.classList.remove('animate-popover-close-top-center');
389
- notificationPopover.classList.add('open');
390
- notificationPopover.classList.add('animate-popover-open-top-center');
391
- } else {
392
- if (notificationPopover.classList.contains('open')) {
393
- notificationPopover.classList.remove('animate-popover-open-top-center');
394
- notificationPopover.classList.add('animate-popover-close-top-center');
395
- setTimeout(() => {
396
- if (!isNotificationOpen) { // Check state again before removing
397
- notificationPopover.classList.remove('open');
398
- }
399
- }, 300); // Match close animation duration (0.3s)
400
  } else {
401
- // Ensure it's properly hidden if it was never open or animation was interrupted
402
- notificationPopover.classList.remove('open');
403
- notificationPopover.classList.remove('animate-popover-open-top-center');
404
- notificationPopover.classList.remove('animate-popover-close-top-center');
405
  }
 
 
 
 
 
 
406
  }
407
  }
 
 
408
 
409
- notificationButton.addEventListener('click', (event) => {
410
- event.stopPropagation();
411
- isNotificationOpen = !isNotificationOpen;
412
- updateUI();
413
- });
414
 
415
- document.addEventListener('click', (event) => {
416
- const popoverWrapper = document.getElementById('notification-popover-wrapper');
417
- if (isNotificationOpen && !popoverWrapper.contains(event.target) && !notificationButton.contains(event.target)) {
418
- isNotificationOpen = false;
419
- updateUI();
420
- }
421
  });
422
 
423
- camButton.addEventListener('click', () => { isCamActive = !isCamActive; updateUI(); });
424
- micButton.addEventListener('click', () => { isMicActive = !isMicActive; updateUI(); });
425
-
426
- switchCameraButton.addEventListener('click', () => {
427
- alert('دکمه تعویض دوربین کلیک شد!');
428
- // Future: Implement actual camera switching logic
429
  });
430
 
431
- // Initial UI setup
432
- updateUI();
433
 
434
- // Dark mode toggle for testing (optional)
435
- // document.documentElement.classList.add('dark'); // Uncomment to test dark mode
436
  </script>
437
  </body>
438
  </html>
 
2
  <html lang="fa" dir="rtl">
3
  <head>
4
  <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Alpha TTS - رابط کاربری سفارشی</title>
 
7
  <style>
8
+ @import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;500;700;800&display=swap');
9
+
 
 
 
 
 
 
 
 
10
  :root {
11
+ --app-font: 'Vazirmatn', sans-serif;
12
+ --app-header-grad-start: #2c3e50;
13
+ --app-header-grad-end: #3498db;
14
+ --app-panel-bg: #ffffff;
15
+ --app-input-bg: #f8f9fa;
16
+ --app-button-bg: #3498db;
17
+ --app-button-hover-bg: #2980b9;
18
+ --app-main-bg: #ecf0f1;
19
+ --app-text-primary: #2c3e50;
20
+ --app-text-secondary: #7f8c8d;
21
+ --app-border-color: #dee2e6;
22
+ --radius-card: 20px;
23
+ --radius-input: 12px;
24
+ --shadow-card: 0 10px 40px -10px rgba(0, 0, 0, 0.15);
25
+ --shadow-button: 0 4px 15px -3px rgba(52, 152, 219, 0.4);
26
+ }
27
+
28
+ body {
29
+ font-family: var(--app-font);
30
+ direction: rtl;
31
+ background-color: var(--app-main-bg);
32
+ color: var(--app-text-primary);
33
+ font-size: 16px;
34
+ line-height: 1.7;
35
+ margin: 0;
36
+ padding: 0;
37
+ min-height: 100vh;
38
  display: flex;
39
+ flex-direction: column;
 
40
  }
41
 
42
+ .container {
43
+ max-width: 720px;
44
+ margin: 0 auto;
45
+ padding: 20px;
46
  width: 100%;
47
+ box-sizing: border-box;
 
 
 
 
 
 
 
 
 
 
48
  }
49
 
50
+ .app-header {
51
+ padding: 3.5rem 1.5rem 6rem 1.5rem;
52
+ text-align: center;
53
+ background-image: linear-gradient(135deg, var(--app-header-grad-start) 0%, var(--app-header-grad-end) 100%);
54
+ color: white;
55
+ border-bottom-left-radius: var(--radius-card);
56
+ border-bottom-right-radius: var(--radius-card);
57
+ box-shadow: 0 8px 25px -8px rgba(0, 0, 0, 0.2);
58
  }
59
+
60
+ .app-header h1 {
61
+ font-size: 2.8em;
62
+ font-weight: 800;
63
+ margin: 0 0 0.5rem 0;
64
+ text-shadow: 0 2px 5px rgba(0,0,0,0.2);
 
 
65
  }
66
+
67
+ .app-header p {
68
+ font-size: 1.2em;
69
+ color: rgba(255,255,255,0.9);
70
+ margin-top: 0;
71
+ opacity: 0.95;
72
  }
73
 
74
+ .main-panel {
75
+ padding: 2rem;
76
+ margin: -4.5rem auto 2rem auto;
77
+ width: 90%;
78
+ background-color: var(--app-panel-bg);
79
+ border-radius: var(--radius-card);
80
+ box-shadow: var(--shadow-card);
81
+ position: relative;
82
+ z-index: 10;
83
+ }
84
 
85
+ .form-group {
86
+ margin-bottom: 1.8rem;
87
+ }
88
+
89
+ label {
90
+ display: block;
91
+ font-weight: 700;
92
+ color: var(--app-text-primary);
93
+ font-size: 1em;
94
+ margin-bottom: 0.75rem;
95
+ }
96
+
97
+ textarea, select, input[type="range"] {
98
  width: 100%;
99
+ padding: 0.8rem 1rem;
100
+ border-radius: var(--radius-input);
101
+ border: 1px solid var(--app-border-color);
102
+ background-color: var(--app-input-bg);
103
+ box-shadow: inset 0 1px 3px rgba(0,0,0,0.06);
104
+ font-family: var(--app-font);
105
+ font-size: 1rem;
106
+ transition: border-color 0.3s, box-shadow 0.3s;
107
+ box-sizing: border-box;
108
  }
109
 
110
+ textarea:focus, select:focus {
111
+ outline: none;
112
+ border-color: var(--app-button-bg);
113
+ box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
 
 
 
114
  }
115
+
116
+ textarea {
117
+ resize: vertical;
118
+ min-height: 120px;
119
  }
 
120
 
121
+ .speaker-selection {
122
+ display: flex;
123
+ gap: 1.5rem;
124
+ align-items: center;
125
  }
126
+
127
+ .speaker-selection .dropdown-container {
128
+ flex-grow: 1;
129
+ }
130
+
131
+ .speaker-image-container {
132
+ width: 100px;
133
+ height: 100px;
134
+ border-radius: 50%;
135
+ overflow: hidden;
136
+ box-shadow: 0 4px 15px rgba(0,0,0,0.1);
137
+ border: 3px solid white;
138
+ flex-shrink: 0;
139
+ transition: transform 0.3s ease-in-out;
140
  }
 
141
 
142
+ .speaker-image-container:hover {
143
+ transform: scale(1.1);
144
+ }
145
 
146
+ #speakerImage {
147
+ width: 100%;
148
+ height: 100%;
149
+ object-fit: cover;
150
+ }
151
 
152
+ .slider-group {
153
+ display: flex;
154
+ align-items: center;
155
+ gap: 1rem;
156
+ }
157
 
158
+ input[type="range"] {
159
+ padding: 0;
160
+ flex-grow: 1;
161
+ }
162
+
163
+ #temperatureValue {
164
+ font-weight: 700;
165
+ background-color: var(--app-input-bg);
166
+ padding: 5px 12px;
167
+ border-radius: var(--radius-input);
168
+ min-width: 40px;
169
+ text-align: center;
170
  }
 
 
171
 
172
+ .generate-button {
173
+ width: 100%;
174
+ padding: 1rem 1.5rem;
175
+ font-size: 1.2rem;
176
+ font-weight: 700;
177
+ color: white;
178
+ background: var(--app-button-bg);
179
+ border: none;
180
+ border-radius: var(--radius-input);
181
  cursor: pointer;
182
+ transition: all 0.3s ease;
183
+ box-shadow: var(--shadow-button);
184
+ margin-top: 1rem;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
185
  display: flex;
186
  align-items: center;
187
  justify-content: center;
188
+ gap: 10px;
 
 
 
189
  }
190
+
191
+ .generate-button:hover:not(:disabled) {
192
+ background: var(--app-button-hover-bg);
193
+ transform: translateY(-2px);
194
+ box-shadow: 0 6px 20px -3px rgba(52, 152, 219, 0.6);
195
  }
196
+
197
+ .generate-button:disabled {
198
+ background-color: #bdc3c7;
199
+ cursor: not-allowed;
200
+ box-shadow: none;
201
  }
202
+
203
+ .loader {
204
+ width: 20px;
205
+ height: 20px;
206
+ border: 3px solid rgba(255, 255, 255, 0.3);
207
+ border-radius: 50%;
208
+ border-top-color: #fff;
209
+ animation: spin 1s ease-in-out infinite;
210
  }
211
+
212
+ @keyframes spin {
213
+ to { transform: rotate(360deg); }
214
  }
215
 
216
+ #audioResultContainer {
217
+ margin-top: 2rem;
218
+ padding-top: 2rem;
219
+ border-top: 1px solid var(--app-border-color);
220
+ display: none; /* Hidden by default */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
221
  }
222
+
223
+ #audioPlayer {
224
+ width: 100%;
225
+ border-radius: var(--radius-input);
226
+ margin-top: 1rem;
227
+ }
228
+
229
+ #errorMessage {
230
+ color: #e74c3c;
231
+ background-color: #fbeae5;
232
+ padding: 1rem;
233
+ border-radius: var(--radius-input);
234
+ text-align: center;
235
+ display: none; /* Hidden by default */
236
+ margin-top: 1.5rem;
237
+ border: 1px solid #e74c3c;
238
+ }
239
+
240
+ </style>
241
  </head>
242
+ <body>
243
+
244
+ <div class="container">
245
+ <header class="app-header">
246
+ <h1>Alpha TTS</h1>
247
+ <p>یک رابط کاربری زیبا برای تبدیل متن به صدا</p>
248
+ </header>
249
+
250
+ <main class="main-panel">
251
+ <div class="form-group">
252
+ <label for="text_to_speak">📝 متن فارسی برای تبدیل</label>
253
+ <textarea id="text_to_speak" placeholder="متن خود را اینجا وارد کنید...">این یک آزمایش برای بررسی کیفیت صدای تولید شده توسط هوش مصنوعی آلفا است.</textarea>
254
+ </div>
255
+
256
+ <div class="form-group">
257
+ <label for="speech_prompt">🗣️ سبک و لحن گفتار (اختیاری)</label>
258
+ <textarea id="speech_prompt" rows="2" placeholder="مثال: با لحنی دوستانه و رسا صحبت کن.">با صدایی طبیعی و روان.</textarea>
 
259
  </div>
260
 
261
+ <div class="form-group speaker-selection">
262
+ <div class="dropdown-container">
263
+ <label for="speaker_voice">🎤 انتخاب گوینده</label>
264
+ <select id="speaker_voice"></select>
265
+ </div>
266
+ <div class="speaker-image-container">
267
+ <img id="speakerImage" src="" alt="Speaker Avatar">
268
  </div>
269
  </div>
270
 
271
+ <div class="form-group">
272
+ <label for="temperature_slider">🌡️ میزان خلاقیت (Temperature)</label>
273
+ <div class="slider-group">
274
+ <input type="range" id="temperature_slider" min="0.1" max="1.5" step="0.05" value="0.9">
275
+ <span id="temperatureValue">0.90</span>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
276
  </div>
277
  </div>
 
 
278
 
279
+ <button id="generateButton" class="generate-button">
280
+ <span id="buttonText">🚀 تولید صدا</span>
281
+ <div id="buttonLoader" class="loader" style="display: none;"></div>
282
+ </button>
283
+
284
+ <div id="errorMessage"></div>
285
+
286
+ <div id="audioResultContainer">
287
+ <h2>خروجی صدا</h2>
288
+ <audio id="audioPlayer" controls></audio>
289
+ </div>
290
+ </main>
291
  </div>
292
 
293
  <script>
294
+ // --- 1. تعریف متغیرهای اصلی و داده‌ها ---
295
+
296
+ const SPACE_API_URL = "https://hamed744-ttspro.hf.space/run/predict"; // آدرس API اسپیس شما
297
+ const FN_INDEX = 1; // این ایندکس از لاگ‌های کنسول شما استخراج شده است
298
+
299
+ const SPEAKERS = [
300
+ "Achird", "Zubenelgenubi", "Vindemiatrix", "Sadachbia", "Sadaltager",
301
+ "Sulafat", "Laomedeia", "Achernar", "Alnilam", "Schedar", "Gacrux",
302
+ "Pulcherrima", "Umbriel", "Algieba", "Despina", "Erinome", "Algenib",
303
+ "Rasalthgeti", "Orus", "Aoede", "Callirrhoe", "Autonoe", "Enceladus",
304
+ "Iapetus", "Zephyr", "Puck", "Charon", "Kore", "Fenrir", "Leda"
305
+ ];
306
+
307
+ // --- 2. انتخاب عناصر DOM ---
308
+
309
+ const textInput = document.getElementById('text_to_speak');
310
+ const promptInput = document.getElementById('speech_prompt');
311
+ const speakerSelect = document.getElementById('speaker_voice');
312
+ const speakerImage = document.getElementById('speakerImage');
313
+ const tempSlider = document.getElementById('temperature_slider');
314
+ const tempValueDisplay = document.getElementById('temperatureValue');
315
+ const generateBtn = document.getElementById('generateButton');
316
+ const buttonText = document.getElementById('buttonText');
317
+ const buttonLoader = document.getElementById('buttonLoader');
318
+ const audioContainer = document.getElementById('audioResultContainer');
319
+ const audioPlayer = document.getElementById('audioPlayer');
320
+ const errorMessageDiv = document.getElementById('errorMessage');
321
+
322
+ // --- 3. توابع کمکی ---
323
+
324
+ // تابعی برای به‌روزرسانی تصویر گوینده
325
+ function updateSpeakerImage(speakerName) {
326
+ // از یک سرویس برای تولید تصاویر رندوم با تم کهکشان استفاده می‌کنیم
327
+ const imageUrl = `https://source.unsplash.com/150x150/?nebula,galaxy,${speakerName}`;
328
+ speakerImage.src = imageUrl;
329
+ speakerImage.alt = `Avatar for ${speakerName}`;
330
+ }
331
+
332
+ // تابعی برای پر کردن لیست گویندگان در Dropdown
333
+ function populateSpeakers() {
334
+ SPEAKERS.forEach(speaker => {
335
+ const option = document.createElement('option');
336
+ option.value = speaker;
337
+ option.textContent = speaker;
338
+ speakerSelect.appendChild(option);
339
+ });
340
+ // گوینده پیش‌فرض ر�� "Charon" قرار می‌دهیم
341
+ speakerSelect.value = "Charon";
342
+ updateSpeakerImage("Charon");
343
+ }
344
+
345
+ // نمایش یا پنهان کردن پیام خطا
346
+ function showError(message) {
347
+ errorMessageDiv.textContent = message;
348
+ errorMessageDiv.style.display = 'block';
349
+ audioContainer.style.display = 'none';
350
+ }
351
+
352
+ function hideError() {
353
+ errorMessageDiv.style.display = 'none';
354
+ }
355
+
356
+ // کنترل وضعیت دکمه (فعال/غیرفعال/لودینگ)
357
+ function setButtonState(state) { // state can be 'idle', 'loading', 'disabled'
358
+ if (state === 'loading') {
359
+ generateBtn.disabled = true;
360
+ buttonText.textContent = 'در حال پردازش...';
361
+ buttonLoader.style.display = 'block';
362
  } else {
363
+ generateBtn.disabled = false;
364
+ buttonText.textContent = '🚀 تولید صدا';
365
+ buttonLoader.style.display = 'none';
366
  }
367
+ }
368
 
369
+ // --- 4. منطق اصلی تولید صدا ---
370
+
371
+ async function generateAudio() {
372
+ hideError();
373
+ setButtonState('loading');
374
+
375
+ // دریافت مقادیر ورودی از کاربر
376
+ const text = textInput.value;
377
+ const prompt = promptInput.value;
378
+ const speaker = speakerSelect.value;
379
+ const temperature = parseFloat(tempSlider.value);
380
+
381
+ if (!text.trim()) {
382
+ showError("لطفاً متنی را برای تبدیل وارد کنید.");
383
+ setButtonState('idle');
384
+ return;
385
  }
386
 
387
+ // ساختار داده‌ای که به API ارسال می‌شود (بر اساس تحلیل لاگ شما)
388
+ const payload = {
389
+ "fn_index": FN_INDEX,
390
+ "data": [
391
+ false, // use_file_input_cb
392
+ null, // uploaded_file_input
393
+ text, // text_to_speak_tb
394
+ prompt, // speech_prompt_tb
395
+ speaker, // speaker_voice_dd
396
+ temperature // temperature_slider
397
+ ]
398
+ };
399
+
400
+ try {
401
+ const response = await fetch(SPACE_API_URL, {
402
+ method: 'POST',
403
+ headers: { 'Content-Type': 'application/json' },
404
+ body: JSON.stringify(payload)
405
+ });
406
+
407
+ if (!response.ok) {
408
+ throw new Error(`خطای شبکه: ${response.status} - ${response.statusText}`);
409
+ }
410
 
411
+ const result = await response.json();
412
+
413
+ // بر اساس ساختار پاسخ Gradio، مسیر فایل صوتی را استخراج می‌کنیم
414
+ // result.data[0] خروجی اولین کامپوننت (gr.Audio) است
415
+ const audioFileData = result.data[0];
416
+
417
+ if (audioFileData && audioFileData.name) {
418
+ // ساخت URL کامل فایل صوتی
419
+ const audioUrl = `https://hamed744-ttspro.hf.space/file=${audioFileData.name}`;
420
+
421
+ // نمایش پلیر و تنظیم منبع آن
422
+ audioPlayer.src = audioUrl;
423
+ audioContainer.style.display = 'block';
424
+ audioPlayer.load();
425
+ // audioPlayer.play(); // می��توانید این خط را برای پخش خودکار فعال کنید
426
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
427
  } else {
428
+ console.error("پاسخ دریافتی ساختار مورد انتظار را ندارد:", result);
429
+ showError("پاسخ ناموفق از سرور. لطفاً کنسول مرورگر را برای جزئیات بررسی کنید.");
 
 
430
  }
431
+
432
+ } catch (error) {
433
+ console.error("خطا در ارتباط با API:", error);
434
+ showError(`خطایی رخ داد: ${error.message}. لطفاً از روشن بودن اسپیس هاگینگ فیس مطمئن شوید.`);
435
+ } finally {
436
+ setButtonState('idle'); // بازگرداندن دکمه به حالت اولیه
437
  }
438
  }
439
+
440
+ // --- 5. ثبت Event Listener ها ---
441
 
442
+ // هنگام بارگذاری صفحه، لیست گویندگان را پر کن
443
+ document.addEventListener('DOMContentLoaded', populateSpeakers);
 
 
 
444
 
445
+ // با تغییر گوینده، تصویر را عوض کن
446
+ speakerSelect.addEventListener('change', () => {
447
+ updateSpeakerImage(speakerSelect.value);
 
 
 
448
  });
449
 
450
+ // با حرکت اسلایدر، عدد کنار آن را به‌روز کن
451
+ tempSlider.addEventListener('input', () => {
452
+ tempValueDisplay.textContent = parseFloat(tempSlider.value).toFixed(2);
 
 
 
453
  });
454
 
455
+ // با کلیک روی دکمه، فرآیند تولید صدا را شروع کن
456
+ generateBtn.addEventListener('click', generateAudio);
457
 
 
 
458
  </script>
459
  </body>
460
  </html>