-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
451 lines (408 loc) · 16.6 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
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
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<!--使用X-UA-Compatible来设置IE浏览器兼容模式 最新的渲染模式-->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bootstrap的HTML标准模板</title>
<!-- 载入Bootstrap 的css -->
<link href="/static/Bootstrap/css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="/static/ele_clock/css/style.css">
<link rel="stylesheet" type="text/css" href="https://at.alicdn.com/t/font_1191451_h720mljzrsc.css">
<link href="/static/ele_login/css/login.css" rel="stylesheet" type="text/css"/>
<link href="/static/css/login.css" rel="stylesheet"type="text/css" />
<!-- 如果要使用Bootstrap的js插件,必须先调入jQuery -->
<script src="/static/js/jquery-3.5.1.min.js"></script>
<!-- 包括所有bootstrap的js插件或者可以根据需要使用的js插件调用 -->
<script src="/static/Bootstrap/js/bootstrap.min.js"></script>
<script src="/static/Bootstrap/js/bootstrap.bundle.min.js"></script>
<!-- <script src="https://res2.wx.qq.com/open/js/jweixin-1.4.0.js"></script> -->
<script src="/static/ele_clock/js/app.js"></script>
<link rel="shortcut icon" href="/static/images/svg/time.svg" type="image/x-icon">
<title>登录</title>
<!-- 登录注册 -->
<script>
$(document).ready(function() {
//直接显示
if($(window).width() > 800){
console.log("window:",$(window).width() );
$("#regist_container").hide();
//$("#_close").show();
$("#_start").animate({
left: '350px',
height: '520px',
width: '400px'
}, 0, function() {
$("#login_container").show();
});
}
console.log("window:",$(window).width() );
//打开会员登录
// $("#Login_start_").click(function() {
// $("#regist_container").hide();
// $("#_close").show();
// $("#_start").animate({
// left: '350px',
// height: '520px',
// width: '400px'
// }, 500, function() {
// $("#login_container").show(500);
// $("#_close").animate({
// height: '40px',
// width: '40px'
// }, 500);
// });
// });
//打开会员注册
// $("#Regist_start_").click(function() {
// $("#login_container").hide();
// $("#_close").show();
// $("#_start").animate({
// left: '350px',
// height: '520px',
// width: '400px'
// }, 500, function() {
// $("#regist_container").show(500);
// $("#_close").animate({
// height: '40px',
// width: '40px'
// }, 500);
// });
// });
//关闭
// $("#_close").click(function() {
// $("#_close").animate({
// height: '0px',
// width: '0px'
// }, 500, function() {
// $("#_close").hide(500);
// $("#login_container").hide(500);
// $("#regist_container").hide(500);
// $("#_start").animate({
// left: '0px',
// height: '0px',
// width: '0px'
// }, 500);
// });
// });
//去 注册
$("#toRegist").click(function(){
$("#login_container").hide(500);
$("#regist_container").show(500);
});
//去 登录
$("#toLogin").click(function(){
$("#regist_container").hide(500);
$("#login_container").show(500);
});
$("#toRegist2").click(function(){
$("#login_container2").hide(500);
$("#regist_container2").show(500);
});
//去 登录
$("#toLogin2").click(function(){
$("#regist_container2").hide(500);
$("#login_container2").show(500);
});
});
</script>
</head>
<body class="bg-light">
<div class="container-fluid" style="padding:0px;">
<!-- 导航栏 -->
<nav class="navbar fixed-top navbar-expand-lg navbar-dark bg-dark mynavbar " id="myNavBar">
<a class="navbar-brand d-flex justify-content-start text-light" href="#">
<img src="/static/images/svg/time.svg" width="30" height="30" class="d-inline-block align-top" alt="">
时间阁
</a>
<ul class="navbar-nav mr-auto flex-row">
<li class="nav-item">
<a class="nav-link text-light mynav-show-item d-inline-block" href="#">工作台</a>
</li>
<li class="nav-item">
<a class="nav-link text-light mynav-show-item d-inline-block" href="#">博客</a>
</li>
</ul>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<!-- mynav-hide -->
<div class="collapse navbar-collapse bg-dark" id="navbarSupportedContent">
<!-- 导航栏列表 -->
<ul class="navbar-nav ml-auto d-flex justify-content-end">
<li class="nav-item">
<a class="nav-link mynav-hide-item" href="#">设置</a>
</li>
<!-- 下拉项 -->
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle mynav-hide-item" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
我的
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item mynav-hide-item" href="#">个人详情</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item mynav-hide-item" href="#">我的好友</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</li>
<li class="nav-item d-flex justify-content-between">
<button class="btn btn-danger my-2 my-sm-0 text-light mynav-btn"> 登录</button>
</li>
<li class="nav-item d-flex justify-content-between">
<button class="btn btn-primary my-2 my-sm-0 text-light mynav-btn"> 注册</button>
</li>
</ul>
</div>
</nav>
<!-- 主面板 -->
<div class="container-fluid col-lg-9 col-md-9 col-xs-12 col-sm-12 d-flex flex-column align-items-center" id="main_pane" style="padding:0;">
<!-- <div class="row">
<a id="Login_start_" class="btn btn-danger" style="width:100px;height:40px;border-radius: 0;">登陆</a>
<a id="Regist_start_" class="btn btn-success" style="width:100px;height:40px;border-radius: 0;">注册</a>
</div> -->
<div class="today d-flex align-items-begin justify-content-center col-12 col-xs-12 col-sm-12 " id="clock_pane" style="padding:0px;">
<!-- 时钟图像 -->
<div class="col-lg-6 col-md-6 col-xs-12 col-sm-12 m-0 flex-col align-items-center justify-content-center mr-lg-auto mr-md-auto">
<h3 style="margin-top: 5px;margin-bottom:5px;color:white;"> 时间阁 </h3>
<small style="color:white;">记录点滴时间</small>
<div class="clock mb-2" id="myclock" style="width:100%;max-height:300px;max-width:300px;">
<div class="pos SS"></div>
<div class="pos MM"></div>
<div class="pos HH"></div>
<div class="spot"></div>
</div>
<div class="col-lg-12 col-md-12 col-sm-0 col-xs-0">
<div>
<p class="text-white m-2 mt-4">
完成工作的方法是爱惜每一分钟
</p>
</div>
<button data-toggle="modal" data-target="#myModalLogin" type="button" class="btn btn-primary p-2 mb-4 mt-4" style="width:80%;">立即体验</button>
</div>
</div>
<!-- 用户登录 -->
<div id='_start' class="mr-lg-4 mr-md-4 mr-sm-0 mr-xs-0 mt-4 mb-4 visible-md visible-lg">
<!-- <div id='_close' style="display: none;">
<img src="/static/ele_login/img/close.svg" style="width:100%;height:100%;">
</div> -->
<br />
<!--登录框-->
<div id="login_container">
<div id="lab1">
<span id="lab_login">会员登录</span>
<span id="lab_toRegist">
 还没有账号
<span id='toRegist' style="color: #EB9316;cursor: pointer;">立即注册</span>
</span>
</div>
<div style="width:330px;">
<span id="lab_type1">手机号/账号登陆</span>
</div>
<form id="form_container1" action="/login/" method="post">
<br/>
<input type="text" hidden="True" name="func" value="login"/>
<input type="text" class="form-control" placeholder="手机号/用户名" name="usr" id="login_number" value="qinlonghu" />
<input type="password" class="form-control" placeholder="密码" name="pwd" id="login_password" value="QLH765qlh"/>
<input type="submit" value="登录" class="btn btn-success" id="login_btn" />
<span id="rememberOrfindPwd">
<span>
<input id="remember" type="checkbox" style="margin-bottom: -1.5px;"/>
</span>
<span style="color:#000000">
记住密码    
</span>
<span style="color:#000000">
忘记密码
</span>
</span>
</form>
<div style="display:block;width:330px;height:40px;">
<span id="lab_type2">使用第三方直接登陆</span>
</div>
<div style="width:330px;height:100px;border-bottom: 1px solid #FFFFFF;">
<br />
<button id="login_QQ" type="button" class="btn btn-info">
<img src="/static/ele_login/img/qq32.png" style="width:20px;margin-top:-4px;" /> QQ登录
</button>
<button id="login_WB" type="button" class="btn btn-danger">
<img src="/static/ele_login/img/sina32.png" style="width:20px;margin-top:-4px;" /> 微博登录
</button>
</div>
</div>
<!-- 会员注册 -->
<div id='regist_container' style="display: none;">
<div id="lab1">
<span id="lab_login">会员注册</span>
<span id="lab_toLogin">
 已有账号
<span id='toLogin' style="color: #EB9316;cursor: pointer;">立即登录</span>
</span>
</div>
<form method="post" action="/login/">
<div id="form_container2" style="padding-top: 25px;">
<input type="text" hidden="True" name="func" value="register"/>
<input type="text" class="form-control" value="" placeholder="用户名" name="usr" id="regist_account"/>
<input type="password" class="form-control" placeholder="密码" name="pwd" id="regist_password1" />
<input type="password" class="form-control" placeholder="确认密码" name="pwd_confirm" id="regist_password2" />
<input type="text" class="form-control" placeholder="手机号" name="phone" id="regist_phone" />
<input type="text" class="form-control" placeholder="验证码" name="code" id="regist_vcode" />
<!--<button id="getVCode" type="button" class="btn btn-success" >获取验证码</button>-->
<input id="getVCode" type="button" class="btn btn-success" value="点击发送验证码" onclick="sendCode(this)" />
</div>
<input type="submit" value="注册" class="btn btn-success" id="regist_btn" />
</form>
</div>
</div>
<!-- 登录-模态框 -->
<div class="modal fade" id="myModalLogin">
<div class="modal-dialog">
<div class="modal-content">
<!-- 模态框头部 -->
<div class="modal-header">
<h4 class="modal-title">新建项目</h4>
<button type="button" class="close" data-dismiss="modal" style="position: absolute;top:20px;right:20px;" >×</button>
</div>
<!-- 模态框主体 -->
<div class="modal-body">
<div id="login_container2">
<div id="lab1">
<span id="lab_login">会员登录</span>
<span id="lab_toRegist">
 还没有账号
<span id='toRegist2' style="color: #EB9316;cursor: pointer;">立即注册</span>
</span>
</div>
<div style="width:330px;">
<span id="lab_type1">手机号/账号登陆</span>
</div>
<form id="form_container1" action="/login/" method="post">
<br/>
<input type="text" hidden="True" name="func" value="login"/>
<input type="text" class="form-control" placeholder="手机号/用户名" name="usr" id="login_number" value="qinlonghu" />
<input type="password" class="form-control" placeholder="密码" name="pwd" id="login_password" value="QLH765qlh"/>
<input type="submit" value="登录" class="btn btn-success" id="login_btn" />
<span id="rememberOrfindPwd">
<span>
<input id="remember" type="checkbox" style="margin-bottom: -1.5px;"/>
</span>
<span style="color:#000000">
记住密码    
</span>
<span style="color:#000000">
忘记密码
</span>
</span>
</form>
<div style="display:block;width:330px;height:40px;">
<span id="lab_type2">使用第三方直接登陆</span>
</div>
<div style="width:330px;height:100px;border-bottom: 1px solid #FFFFFF;">
<br />
<button id="login_QQ" type="button" class="btn btn-info">
<img src="/static/ele_login/img/qq32.png" style="width:20px;margin-top:-4px;" /> QQ登录
</button>
<button id="login_WB" type="button" class="btn btn-danger">
<img src="/static/ele_login/img/sina32.png" style="width:20px;margin-top:-4px;" /> 微博登录
</button>
</div>
</div>
<!-- 会员注册 -->
<div id='regist_container2' style="display: none;">
<div id="lab1">
<span id="lab_login">会员注册</span>
<span id="lab_toLogin">
 已有账号
<span id='toLogin2' style="color: #EB9316;cursor: pointer;">立即登录</span>
</span>
</div>
<form method="post" action="/login/">
<div id="form_container2" style="padding-top: 25px;">
<input type="text" hidden="True" name="func" value="register"/>
<input type="text" class="form-control" value="" placeholder="用户名" name="usr" id="regist_account"/>
<input type="password" class="form-control" placeholder="密码" name="pwd" id="regist_password1" />
<input type="password" class="form-control" placeholder="确认密码" name="pwd_confirm" id="regist_password2" />
<input type="text" class="form-control" placeholder="手机号" name="phone" id="regist_phone" />
<input type="text" class="form-control" placeholder="验证码" name="code" id="regist_vcode" />
<!--<button id="getVCode" type="button" class="btn btn-success" >获取验证码</button>-->
<input id="getVCode" type="button" class="btn btn-success" value="点击发送验证码" onclick="sendCode(this)" />
</div>
<input type="submit" value="注册" class="btn btn-success" id="regist_btn" />
</form>
</div>
</div>
<!-- 模态框底部 -->
<!-- <div class="modal-footer">
<button type="button" class="btn btn-secondary addsub_confirm_btn" data-dismiss="modal">确认</button>
</div> -->
</div>
</div>
</div>
</div>
<!-- 页脚 -->
</div>
</div>
</body>
<!-- 注册验证码 -->
<script type="text/javascript">
var clock = '';
var nums = 30;
var btn;
//发送验证码
function sendCode(thisBtn) {
btn = thisBtn;
btn.disabled = true; //将按钮置为不可点击
btn.value = '重新获取('+nums+')';
clock = setInterval(doLoop, 1000); //一秒执行一次
}
function doLoop() {
nums--;
if (nums > 0) {
btn.value = '重新获取('+nums+')';
} else {
clearInterval(clock); //清除js定时器
btn.disabled = false;
btn.value = '点击发送验证码';
nums = 10; //重置时间
}
}
$(document).ready(function(){
$("#login_QQ").click(function(){
alert("暂停使用!");
});
$("#login_WB").click(function(){
alert("暂停使用!");
});
});
</script>
<!-- 发送请求 -->
<script>
// $('#xxx').click(function(){
// var u = $('#login_number').val();
// console.log(u)
// var p = $('#login_password').val();
// console.log(p)
// $.ajax({
// url:"/login/",
// type:"POST",
// data:{
// "flag": "login",
// "u": u,
// 'p': p,
// },
// success:function(arg){
// console.log(arg);
// // arg = JSON.parse(arg);
// // if(arg.status){
// // // window.prompt("成功");
// // location.reload();
// // }
// // else{
// // $('#addError').text(arg.message)
// // }
// }
// })
// });
</script>
</html>