-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
84 lines (79 loc) · 3.62 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>GO</title>
<link rel="stylesheet" href="css/style.css">
<script src="libs/jquery.min.js"></script>
</head>
<body>
<div class="flex">
<div class="go-right">
<canvas id="chess"></canvas>
</div>
<div class="go-left">
<h1 id="go_header">欢迎来到围棋..</h1>
<h3 class="go-info">===<span>请先进入房间</span>===</h3>
<div class="room">
<!-- <input type="text" placeholder="自定义房间名" id="room-id">
<button id="enter-room">进入房间</button>
<button id="quit-room">我要退出</button> -->
</div>
<ul class="list">
</ul>
</div>
</div>
<div class="go-mask">
<div class="log-reg-wrapper">
<div class="head-wrapper">
<h1>Hello ,<a href="#" class="username">未登录</a>。</h1>
<div class="log-reg">
<div class="log active">
<input type="text" id="log-username" placeholder="用户名">
<input type="password" id="log-password" placeholder="密 码">
<div class="submit-wrapper">
<span class="log-info"> </span>
<button class="log-submit">登录</button>
<a href="#" class="to-reg">没有账号?注册</a>
</div>
</div>
<div class="reg">
<input type="text" id="reg-username" placeholder="用户名">
<input type="password" id="reg-password" placeholder="密 码">
<input type="password" id="reg-password-confirm" placeholder="确认密码">
<input type="text" id="reg-nickname" placeholder="昵称">
<input type="text" id="reg-sign" placeholder="签名">
<div class="upload-img">
<form id="upload-form" action="upload" method="POST" enctype="multipart/form-data" target="target-iframe">
<span>上传头像</span>
<input type="file" id="upload-input" name="avatar"/>
<input type="hidden" name="img-username" id="img-username">
</form>
<img src="" id="avatar" width="150" height="150">
<iframe name="target-iframe" style="display: none;"></iframe>
</div>
<div class="submit-wrapper">
<span class="reg-info"> </span>
<button class="reg-submit">注册</button>
<a href="#" class="to-log">已有账号?登录</a>
</div>
</div>
</div>
</div>
<div class="create-room">
<h1>Hello 。</h1>
<input type="text" placeholder="请输入房间名" id="room-id">
<button id="enter-room">进入房间</button>
<button id="quit-room">创建房间</button>
</div>
</div>
<div class="room-wrapper">
<h2>Current</h2>
<div class="room-items"></div>
</div>
</div>
<script src="socket.io/socket.io.js"></script>
<script src="js/script.js"></script>
<script src="js/index.js"></script>
</body>
</html>