index.html
12 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
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<title>视频会议-登陆</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!--图标-->
<link rel="stylesheet" type="text/css" href="css/font-awesome.min.css">
<!--布局框架-->
<link rel="stylesheet" type="text/css" href="css/util.css">
<!--主要样式-->
<link rel="stylesheet" type="text/css" href="css/main.css">
<link rel="stylesheet" type="text/css" href="css/style.css">
</head>
<body>
<div class="login">
<div class="container-login100">
<div class="wrap-login100">
<div class="login100-pic js-tilt" data-tilt>
<span style="position: absolute;left: 28%;top: 32%;font-size: 32px;color: #FFFFFF;">统一通信视频会议系统</span>
<img src="img/loginBanner.png" alt="IMG">
</div>
<form class="login100-form validate-form">
<div class="container">
<div class="login_body " >
<div class="login_form l_float" >
<div class="login_top">
<div class="login_tags b_clear">
<div class="top_tag l_float img_title" onClick="HostLogin()" style="margin-left: 60px;">
<img src="img/icon-speaker.png" style="height: 32px;width: 32px;margin-top: 12px;">
<p>主持人</p>
</div>
<div class="top_tag r_float img_title" onClick="Joiner()" style="margin-right: 60px;">
<img src="img/icon-user.png" style="height: 32px;width: 32px;margin-top: 12px;">
<p>参与者</p>
</div>
</div>
</div>
<div style="margin-left: 40px;margin-right: 40px;">
<div class="typeLine" id="type_line"></div>
<div class="login_con"> <!--主持人-->
<div class="login_input">
<span>会议名称</span>
<input name="" type="text" placeholder="请输入会议名称" style="margin-left: 20px;" />
</div>
<div class="login_input">
<span>会议描述</span>
<input name="" type="text" placeholder="请输入会议内容" style="margin-left: 20px;" />
</div>
<div class="login_input">
<span>你的名字</span>
<input name="" type="text" placeholder="请输入你的名字" style="margin-left: 20px;" />
</div>
<div class="login_input">
<span>是否私有</span>
<label style="margin-left: 19px;"><input name="isPrivate" type="radio" value="0" disabled="disabled" style="margin-left: 5px;" />私有</label>
<label style="margin-left: 19px;"><input name="isPrivate" type="radio" value="1" disabled="disabled" style="margin-left: 5px;" />公有</label>
</div>
<div class="login_input">
<span>房间密码</span>
<input type="password" id="p1" namme="" oninput="if(value.length>1)value=value.slice(0,1)" class="pwd_input" onkeypress="keypress(1)" value="" style="width: 30px; border: 1px solid rgba(219,219,219,1);; opacity: .5;text-align: center;">
<input type="password" id="p2" namme="" oninput="if(value.length>1)value=value.slice(0,1)" class="pwd_input" onkeypress="keypress(2)" value="" style="width: 30px; border: 1px solid rgba(219,219,219,1);; opacity: .5;text-align: center;">
<input type="password" id="p3" namme="" oninput="if(value.length>1)value=value.slice(0,1)" class="pwd_input" onkeypress="keypress(3)" value="" style="width: 30px; border: 1px solid rgba(219,219,219,1);; opacity: .5;text-align: center;">
<input type="password" id="p4" namme="" oninput="if(value.length>1)value=value.slice(0,1)" class="pwd_input" onkeypress="keypress(4)" value="" style="width: 30px; border: 1px solid rgba(219,219,219,1);; opacity: .5;text-align: center;">
<input type="password" id="p5" namme="" oninput="if(value.length>1)value=value.slice(0,1)" class="pwd_input" onkeypress="keypress(5)" value="" style="width: 30px; border: 1px solid rgba(219,219,219,1);; opacity: .5;text-align: center;">
<input type="password" id="p6" namme="" oninput="if(value.length>1)value=value.slice(0,1)" class="pwd_input" onkeypress="keypress(6)" value="" style="width: 30px; border: 1px solid rgba(219,219,219,1);; opacity: .5;text-align: center;">
</div>
<!-- <div class="login_submit">
</div> -->
<button class="login_submit" onclick="jump();">创建会议</button>
</div>
<div class="login_con hidden"> <!--参会者-->
<div class="login_input">
<span>你的名字</span>
<input name="" type="text" placeholder="请输入你的名字" style="margin-left: 20px;" />
</div>
<div class="login_input">
<span>房间号码</span>
<input name="" type="text" placeholder="请输入房间号码" style="margin-left: 20px;" />
</div>
<div class="login_input">
<span>房间密码</span>
<input type="password" id="p1" namme="" oninput="if(value.length>1)value=value.slice(0,1)" class="pwd_input" onkeypress="keypress(1)" value="" style="width: 30px; border: 1px solid rgba(219,219,219,1);; opacity: .5;text-align: center;">
<input type="password" id="p2" namme="" oninput="if(value.length>1)value=value.slice(0,1)" class="pwd_input" onkeypress="keypress(2)" value="" style="width: 30px; border: 1px solid rgba(219,219,219,1);; opacity: .5;text-align: center;">
<input type="password" id="p3" namme="" oninput="if(value.length>1)value=value.slice(0,1)" class="pwd_input" onkeypress="keypress(3)" value="" style="width: 30px; border: 1px solid rgba(219,219,219,1);; opacity: .5;text-align: center;">
<input type="password" id="p4" namme="" oninput="if(value.length>1)value=value.slice(0,1)" class="pwd_input" onkeypress="keypress(4)" value="" style="width: 30px; border: 1px solid rgba(219,219,219,1);; opacity: .5;text-align: center;">
<input type="password" id="p5" namme="" oninput="if(value.length>1)value=value.slice(0,1)" class="pwd_input" onkeypress="keypress(5)" value="" style="width: 30px; border: 1px solid rgba(219,219,219,1);; opacity: .5;text-align: center;">
<input type="password" id="p6" namme="" oninput="if(value.length>1)value=value.slice(0,1)" class="pwd_input" onkeypress="keypress(6)" value="" style="width: 30px; border: 1px solid rgba(219,219,219,1); ; opacity: .5;text-align: center;">
</div>
<div class="login_input">
<input type="checkbox" name="vehicle" value="Mute" /> 入会时静音
<input type="checkbox" name="vehicle" value="CloseCamera" style="margin-left: 21px;" /> 入会时关闭摄像头
</div>
<button class="login_submit" onclick="jump();">加入会议</button>
</div>
</div>
</div>
</div>
</div>
<!-- <span class="login100-form-title">
会员登陆
</span>
<div class="wrap-input100 validate-input">
<input class="input100" type="text" name="email" placeholder="邮箱">
<span class="focus-input100"></span>
<span class="symbol-input100">
<i class="fa fa-envelope" aria-hidden="true"></i>
</span>
</div>
<div class="wrap-input100 validate-input">
<input class="input100" type="password" name="pass" placeholder="密码">
<span class="focus-input100"></span>
<span class="symbol-input100">
<i class="fa fa-lock" aria-hidden="true"></i>
</span>
</div>
<div class="container-login100-form-btn">
<button class="login100-form-btn">
登陆
</button>
</div>
<div class="text-center p-t-12">
<a class="txt2" href="javascript:">
忘记密码?
</a>
</div>
<div class="text-center p-t-136">
<a class="txt2" href="#">
还没有账号?立即注册
<i class="fa fa-long-arrow-right m-l-5" aria-hidden="true"></i>
</a>
</div> -->
</form>
</div>
</div>
</div>
<script src="js/login.js"></script>
<script src="https://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
<script type="text/javascript">
window.onload = function() {
window.onkeydown = function() {
if (event.code == "Backspace") {
var eles = document.getElementsByClassName("pwd_input");
for (var i = 0; i < eles.length; i++) {
if (eles[i] == document.activeElement) {
if (i == 0) {
break;
}
console.log(eles[i].value)
if (eles[i].value == "") {
eles[i - 1].value = "";
eles[i - 1].name = "";
eles[i - 1].focus();
}
break;
}
}
}
}
var eles = document.getElementsByClassName("pwd_input");
for (var i = 0; i < eles.length; i++) {
var ele = eles[i];
ele.onfocus = function() {
var str = this.id
var vv = str.substr(1, str.length);
var a = parseInt(vv);
if (this.name == "") {
jumHead(a);
} else if (this.name != "") {
jumEnd(a)
}
}
}
}
function jumHead(n) {
for (var j = 1; j < n; j++) {
var v1 = document.getElementById("p" + j);
if (v1.name == "") {
console.log(this)
v1.focus();
break;
}
}
}
function jumEnd(n) {
for (var j = n; j < 7; j++) {
var v1 = document.getElementById("p" + j);
if (j == 6) {
v1.focus();
break;
}
if (v1.value == "") {
v1.focus();
break;
}
}
}
function keypress(val) {
var ev = window.event;
var nowindex = val
var nextindex = val + 1;
if (nextindex == 7) {
var inputele = document.getElementById("p" + nowindex);
inputele.value = ev.key;
inputele.blur();
return;
}
var inputelenow = document.getElementById("p" + nowindex);
inputelenow.name = ev.key;
var inputele = document.getElementById("p" + nextindex);
inputele.focus();
}
function copyText() {
console.log("copyText");
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
console.log(ctx);
// ctx.rect(20,20,150,100);
// ctx.stroke();
var hh = 20;
for (var i = 0; i < 6; i++) {
var xx = 20 * i + hh;
ctx.rect(20 * i + 20, 10, 20, 20);
ctx.stroke();
}
}
function drawrect() {
console.log("drawrect");
var canvas = document.getElementById("canvas");
var ctx = canvas.getContext("2d");
ctx.fillrect(0, 0, 100, 100);
}
function jump(){
url = "home.html?name="+111+"&age="+12;
window.location.href = url;
}
</script>
</body>
</html>