Update index.html
Browse files- index.html +27 -33
index.html
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
font-family: Arial, sans-serif;
|
10 |
margin: 0;
|
11 |
padding: 0;
|
12 |
-
background: #
|
13 |
min-height: 100vh;
|
14 |
display: flex;
|
15 |
flex-direction: column;
|
@@ -30,13 +30,13 @@
|
|
30 |
flex-direction: column;
|
31 |
justify-content: center;
|
32 |
align-items: center;
|
33 |
-
background:
|
34 |
}
|
35 |
.record-button {
|
36 |
-
width: 60vmin;
|
37 |
-
height: 60vmin;
|
38 |
border-radius: 50%;
|
39 |
-
background: rgba(
|
40 |
border: none;
|
41 |
cursor: pointer;
|
42 |
display: flex;
|
@@ -44,31 +44,29 @@
|
|
44 |
justify-content: center;
|
45 |
position: relative;
|
46 |
transition: all 0.3s ease;
|
47 |
-
box-shadow: 0 10px 30px rgba(
|
48 |
-
backdrop-filter: blur(5px);
|
49 |
}
|
50 |
.record-button:hover {
|
51 |
transform: scale(1.02);
|
52 |
-
box-shadow: 0 15px 40px rgba(
|
53 |
}
|
54 |
.record-button.recording {
|
55 |
-
background: rgba(
|
56 |
animation: pulse 2s infinite;
|
57 |
}
|
58 |
.record-button.recording .inner-circle {
|
59 |
-
background: #
|
60 |
transform: scale(0.8);
|
61 |
}
|
62 |
.inner-circle {
|
63 |
width: 40%;
|
64 |
height: 40%;
|
65 |
-
background: #
|
66 |
border-radius: 50%;
|
67 |
transition: all 0.3s ease;
|
68 |
-
box-shadow: 0 5px 15px rgba(
|
69 |
}
|
70 |
|
71 |
-
/* موجات صوتية تحت الزر */
|
72 |
.wave-container {
|
73 |
margin-top: 30px;
|
74 |
display: flex;
|
@@ -81,7 +79,7 @@
|
|
81 |
.wave {
|
82 |
width: 4px;
|
83 |
height: 20px;
|
84 |
-
background: rgba(
|
85 |
border-radius: 2px;
|
86 |
animation: waveAnimation 1s ease-in-out infinite;
|
87 |
}
|
@@ -100,32 +98,28 @@
|
|
100 |
}
|
101 |
|
102 |
.status-text {
|
103 |
-
position: absolute;
|
104 |
-
bottom: 10%;
|
105 |
text-align: center;
|
106 |
-
color:
|
107 |
font-size: 1.5rem;
|
108 |
font-weight: bold;
|
109 |
-
|
110 |
}
|
111 |
|
112 |
-
/* باقي الأنماط الأصلية */
|
113 |
.toggle-code-button {
|
114 |
position: fixed;
|
115 |
top: 20px;
|
116 |
right: 20px;
|
117 |
padding: 10px 20px;
|
118 |
-
background:
|
119 |
border: none;
|
120 |
border-radius: 25px;
|
121 |
color: white;
|
122 |
cursor: pointer;
|
123 |
-
backdrop-filter: blur(5px);
|
124 |
transition: all 0.3s ease;
|
125 |
z-index: 1000;
|
126 |
}
|
127 |
.toggle-code-button:hover {
|
128 |
-
background:
|
129 |
}
|
130 |
.code-section {
|
131 |
display: none;
|
@@ -134,7 +128,7 @@
|
|
134 |
left: 0;
|
135 |
width: 100%;
|
136 |
height: 100%;
|
137 |
-
background: rgba(
|
138 |
z-index: 999;
|
139 |
overflow-y: auto;
|
140 |
padding: 20px;
|
@@ -144,22 +138,22 @@
|
|
144 |
display: block;
|
145 |
}
|
146 |
.message-container {
|
147 |
-
background: rgba(
|
148 |
padding: 15px;
|
149 |
border-radius: 15px;
|
150 |
margin: 10px;
|
151 |
-
|
152 |
-
color: white;
|
153 |
width: 90%;
|
154 |
max-width: 600px;
|
155 |
}
|
156 |
.message-label {
|
157 |
font-weight: bold;
|
158 |
margin-bottom: 8px;
|
|
|
159 |
}
|
160 |
.message-content {
|
161 |
padding: 10px;
|
162 |
-
background: rgba(
|
163 |
border-radius: 8px;
|
164 |
min-height: 40px;
|
165 |
}
|
@@ -169,17 +163,16 @@
|
|
169 |
width: 90%;
|
170 |
max-width: 600px;
|
171 |
padding: 15px;
|
172 |
-
background: rgba(
|
173 |
border-radius: 15px;
|
174 |
-
backdrop-filter: blur(5px);
|
175 |
}
|
176 |
select {
|
177 |
width: 100%;
|
178 |
padding: 12px;
|
179 |
border-radius: 10px;
|
180 |
-
border: 1px solid
|
181 |
-
background:
|
182 |
-
color:
|
183 |
font-size: 16px;
|
184 |
}
|
185 |
@keyframes pulse {
|
@@ -190,6 +183,7 @@
|
|
190 |
</style>
|
191 |
</head>
|
192 |
<body>
|
|
|
193 |
<div class="container">
|
194 |
<button class="toggle-code-button" id="toggleCode">عرض النص</button>
|
195 |
|
@@ -197,7 +191,6 @@
|
|
197 |
<button class="record-button" id="recordButton">
|
198 |
<div class="inner-circle"></div>
|
199 |
</button>
|
200 |
-
<!-- إضافة الموجات الصوتية تحت الزر -->
|
201 |
<div class="wave-container">
|
202 |
<div class="wave"></div>
|
203 |
<div class="wave"></div>
|
@@ -231,6 +224,7 @@
|
|
231 |
</div>
|
232 |
|
233 |
<script>
|
|
|
234 |
const API_URL = 'https://8o1mzdgh9f40t4-7777.proxy.runpod.net/proxy/8000/chat';
|
235 |
const recordButton = document.getElementById('recordButton');
|
236 |
const statusText = document.getElementById('statusText');
|
|
|
9 |
font-family: Arial, sans-serif;
|
10 |
margin: 0;
|
11 |
padding: 0;
|
12 |
+
background: #ffffff;
|
13 |
min-height: 100vh;
|
14 |
display: flex;
|
15 |
flex-direction: column;
|
|
|
30 |
flex-direction: column;
|
31 |
justify-content: center;
|
32 |
align-items: center;
|
33 |
+
background: #ffffff;
|
34 |
}
|
35 |
.record-button {
|
36 |
+
width: 60vmin;
|
37 |
+
height: 60vmin;
|
38 |
border-radius: 50%;
|
39 |
+
background: rgba(40, 167, 69, 0.1);
|
40 |
border: none;
|
41 |
cursor: pointer;
|
42 |
display: flex;
|
|
|
44 |
justify-content: center;
|
45 |
position: relative;
|
46 |
transition: all 0.3s ease;
|
47 |
+
box-shadow: 0 10px 30px rgba(40, 167, 69, 0.2);
|
|
|
48 |
}
|
49 |
.record-button:hover {
|
50 |
transform: scale(1.02);
|
51 |
+
box-shadow: 0 15px 40px rgba(40, 167, 69, 0.3);
|
52 |
}
|
53 |
.record-button.recording {
|
54 |
+
background: rgba(40, 167, 69, 0.2);
|
55 |
animation: pulse 2s infinite;
|
56 |
}
|
57 |
.record-button.recording .inner-circle {
|
58 |
+
background: #28a745;
|
59 |
transform: scale(0.8);
|
60 |
}
|
61 |
.inner-circle {
|
62 |
width: 40%;
|
63 |
height: 40%;
|
64 |
+
background: #28a745;
|
65 |
border-radius: 50%;
|
66 |
transition: all 0.3s ease;
|
67 |
+
box-shadow: 0 5px 15px rgba(40, 167, 69, 0.2);
|
68 |
}
|
69 |
|
|
|
70 |
.wave-container {
|
71 |
margin-top: 30px;
|
72 |
display: flex;
|
|
|
79 |
.wave {
|
80 |
width: 4px;
|
81 |
height: 20px;
|
82 |
+
background: rgba(40, 167, 69, 0.6);
|
83 |
border-radius: 2px;
|
84 |
animation: waveAnimation 1s ease-in-out infinite;
|
85 |
}
|
|
|
98 |
}
|
99 |
|
100 |
.status-text {
|
|
|
|
|
101 |
text-align: center;
|
102 |
+
color: #28a745;
|
103 |
font-size: 1.5rem;
|
104 |
font-weight: bold;
|
105 |
+
margin-top: 20px;
|
106 |
}
|
107 |
|
|
|
108 |
.toggle-code-button {
|
109 |
position: fixed;
|
110 |
top: 20px;
|
111 |
right: 20px;
|
112 |
padding: 10px 20px;
|
113 |
+
background: #28a745;
|
114 |
border: none;
|
115 |
border-radius: 25px;
|
116 |
color: white;
|
117 |
cursor: pointer;
|
|
|
118 |
transition: all 0.3s ease;
|
119 |
z-index: 1000;
|
120 |
}
|
121 |
.toggle-code-button:hover {
|
122 |
+
background: #218838;
|
123 |
}
|
124 |
.code-section {
|
125 |
display: none;
|
|
|
128 |
left: 0;
|
129 |
width: 100%;
|
130 |
height: 100%;
|
131 |
+
background: rgba(255, 255, 255, 0.95);
|
132 |
z-index: 999;
|
133 |
overflow-y: auto;
|
134 |
padding: 20px;
|
|
|
138 |
display: block;
|
139 |
}
|
140 |
.message-container {
|
141 |
+
background: rgba(40, 167, 69, 0.1);
|
142 |
padding: 15px;
|
143 |
border-radius: 15px;
|
144 |
margin: 10px;
|
145 |
+
color: #333;
|
|
|
146 |
width: 90%;
|
147 |
max-width: 600px;
|
148 |
}
|
149 |
.message-label {
|
150 |
font-weight: bold;
|
151 |
margin-bottom: 8px;
|
152 |
+
color: #28a745;
|
153 |
}
|
154 |
.message-content {
|
155 |
padding: 10px;
|
156 |
+
background: rgba(40, 167, 69, 0.05);
|
157 |
border-radius: 8px;
|
158 |
min-height: 40px;
|
159 |
}
|
|
|
163 |
width: 90%;
|
164 |
max-width: 600px;
|
165 |
padding: 15px;
|
166 |
+
background: rgba(40, 167, 69, 0.1);
|
167 |
border-radius: 15px;
|
|
|
168 |
}
|
169 |
select {
|
170 |
width: 100%;
|
171 |
padding: 12px;
|
172 |
border-radius: 10px;
|
173 |
+
border: 1px solid #28a745;
|
174 |
+
background: white;
|
175 |
+
color: #28a745;
|
176 |
font-size: 16px;
|
177 |
}
|
178 |
@keyframes pulse {
|
|
|
183 |
</style>
|
184 |
</head>
|
185 |
<body>
|
186 |
+
<!-- باقي الكود كما هو بدون تغيير -->
|
187 |
<div class="container">
|
188 |
<button class="toggle-code-button" id="toggleCode">عرض النص</button>
|
189 |
|
|
|
191 |
<button class="record-button" id="recordButton">
|
192 |
<div class="inner-circle"></div>
|
193 |
</button>
|
|
|
194 |
<div class="wave-container">
|
195 |
<div class="wave"></div>
|
196 |
<div class="wave"></div>
|
|
|
224 |
</div>
|
225 |
|
226 |
<script>
|
227 |
+
// نفس الكود JavaScript السابق بدون تغيير
|
228 |
const API_URL = 'https://8o1mzdgh9f40t4-7777.proxy.runpod.net/proxy/8000/chat';
|
229 |
const recordButton = document.getElementById('recordButton');
|
230 |
const statusText = document.getElementById('statusText');
|