-
Notifications
You must be signed in to change notification settings - Fork 40
/
index.html
46 lines (45 loc) · 1.4 KB
/
index.html
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
<!DOCTYPE html>
<html>
<head>
<title>Audio Streamer</title>
<meta charset="UTF-8">
<script src="https://cdn.socket.io/4.0.0/socket.io.min.js"></script>
<style>
html, body {
height: 100%;
margin: 0;
}
body {
background-color: black;
color: white;
font-family: Arial, sans-serif;
display: flex;
justify-content: center;
align-items: center;
text-align: center;
}
.text-display {
white-space: pre-wrap; /* Preserves spaces and line breaks */
font-size: 16px;
}
.yellow {
color: yellow;
}
.cyan {
color: cyan;
}
</style>
</head>
<body>
<div id="textDisplay" style="max-width: 800px; margin: auto;"></div>
<div style="position: absolute;bottom: 200px;cursor: pointer;">
<div id="start_talk_btn" style="width: 100px;height: 35px;
border: 1px white solid;border-radius: 3px;
text-align: center;padding-top: 10px;" onclick="start_talk()">开始对话</div>
</div>
<input id="server_ip" type="text" placeholder="服务器IP" style="position: absolute; bottom: 150px; width: 100px;height: 35px;
border: 1px white solid;border-radius: 3px;
text-align: center;padding-top: 10px;" />
<script src="client.js"></script>
</body>
</html>