-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
616 lines (355 loc) · 14.5 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
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
<!DOCTYPE html><!--STATUS OK-->
<!--啊哈哈哈哈哈哈哈哈哈哈哈哈-->
<!--这Html也太难调试了吧-->
<!--终于写了一版能看的-->
<!--哎。。。-->
<head>
<style>
body{background-image:url("http://pic1.win4000.com/wallpaper/b/59ae71419cae2.jpg");
no-repeat; background-size:100% 100%; background-attachment:fixed;}
</style>
<style>
.toast-center-center {
top: 50%;
left: 50%;
margin-top: -25px;
margin-left: -150px;
}
</style>
<script
src="https://code.jquery.com/jquery-3.4.1.js"
integrity="sha256-WpOohJOqMqqyKL9FccASB9O0KwACQJpFTUBLTYOVvVU="
crossorigin="anonymous"></script>
<!-- <style>
body{background-image:url("./bg/kng.jpg");
no-repeat; background-size:100% 100%; background-attachment:fixed;}
</style>
-->
<script language="javascript">
function searchForResults(){
var bHead="https://www.baidu.com/s?wd=";
var gHead="https://www.google.com/search?q=";
var text;
if(document.getElementById("searchSelect").value=="baidu")
{
text=bHead.concat(document.getElementById("search").value);
}
else if(document.getElementById("searchSelect").value=="google")
{
text=gHead.concat(document.getElementById("search").value);
}
window.open(text,"_blank");
}
</script>
<script language="javascript" type="text/javascript">
function Timer(year,month,day,hour,minute,second){
var leftTime = (new Date(year,month,day+1,hour,minute,second)) - (new Date()); //计算剩余的毫秒数
var days = parseInt(leftTime / 1000 / 60 / 60 / 24 , 10); //计算剩余的天数
var hours = parseInt(leftTime / 1000 / 60 / 60 % 24 , 10); //计算剩余的小时
var minutes = parseInt(leftTime / 1000 / 60 % 60, 10);//计算剩余的分钟
var seconds = parseInt(leftTime / 1000 % 60, 10);//计算剩余的秒数
days = checkTime(days);
hours = checkTime(hours);
minutes = checkTime(minutes);
seconds = checkTime(seconds);
setInterval("Timer(2019,00,00,00,00,00)",1000);
// console.log(days);
if (isNaN(days)) { }
else{
document.getElementById("timer").innerHTML = days+"天" + hours+"小时" + minutes+"分"+seconds+"秒";
}
}
function checkTime(i){ //将0-9的数字前面加上0,例1变为01
if(i<10)
{
i = "0" + i;
}
return i;
}
</script>
<script language="javascript">
function clsSearch(){
document.getElementById("search").value="";
}
function IDChangeFormat()
{
var string = document.getElementById("IDFormatInput").value;
//替换所有的换行符
string = string.replace(/\r\n/g,",")
string = string.replace(/\n/g,",");
//替换所有的空格(中文空格、英文空格都会被替换)
string = string.replace(/\s/g,"");
while(string.charAt(string.length-1)==','){
string=string.substr(0,string.length-1);
}
//输出转换后的字符串
console.log(string);
document.getElementById("IDFormatInput").value = string;
window.clipboardData.setData("Text",string);
toastr.success('转换成功,按Ctrl+C复制');
}
function IDFormatReset()
{
document.getElementById("IDFormatInput").value="";
}
function initialData()
{
Timer();
getWeek();
$("#mymodal").modal();
}
function getWeek()
{
var d = new Date().getDay();
var data = [{'0':'周日'},{'1':'周一'},{'2':'周二'},{'3':'周三'},{'4':'周四'},{'5':'周五'},{'6':'周六'}];
for(var i = 0;i<data.length;i++){
for(var x in data[i]){
if(d == i){
switch (data[i][x]) {
case '周一':
document.getElementById("picWeek").src="./pic/1.jpg";
break;
case '周二':
document.getElementById("picWeek").src="./pic/2.jpg";
break;
case '周三':
document.getElementById("picWeek").src="./pic/3.jpg";
break;
case '周四':
document.getElementById("picWeek").src="./pic/4.jpg";
break;
case '周五':
document.getElementById("picWeek").src="./pic/5.jpg";
break;
default:
document.getElementById("picWeek").src="./pic/67.jpg";
break;
}
}
}
}
}
</script>
<script type="text/javascript">
toastr.options.positionClass = 'toast-center-center';
</script>
<link rel="stylesheet" type="text/css" href="https://www.bootcss.com/p/buttons/css/buttons.css">
<link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/css/toastr.min.css" rel="stylesheet" />
<script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/js/toastr.min.js"></script>
<title>Pocket Knights 2导航</title></head>
<body onload=initialData()></body>
<div id="MainBody" class="container-fluid">
<!-- <div id="titleMain" style="height: auto;width:max-content;" class="col-md-4">
<h1 color="white" style="height:80px; font-size: 45px;text-align: left; text-rendering: auto;">PK2 导航主页</h1>
</div>
-->
<form class="form-inline">
<div id="searchPart" style="color:white; padding-top:25px" class="col-sm-12 form-group">
<div id="mainsearch" class="col-xs-4 col-sm-8">
<input id="search" style="height:40px; font-size: 25px;vertical-align:top;color:black " class="form-control" placeholder="搜点儿什么吧~">
<select id="searchSelect" style="height:40px; font-size:20px;color:black; vertical-align:top" class="form-control">
<option value="baidu">百度</option>
<option value="google">Google</option>
</select>
<button id="goSearch" style="height:40px; width:80px; font-size: 15px;vertical-align:top" onclick="searchForResults()" class="btn btn-success">搜索</button>
<button type="button" id="clearSearch" style="height:40px; width:80px; font-size: 15px;vertical-align:top" onclick="clsSearch()" class="btn btn-danger">重置</button>
</div>
<div id="weather" class="col-xs-1 col-sm-3" style="align-content: space-around;">
<a href="#"><iframe width="420" scrolling="no" height="45" frameborder="0" allowtransparency="true" src="https://i.tianqi.com?c=code&id=12&icon=4&py=shanghai&num=2&site=12"></iframe></a>
</div>
<div id="pic" class="col-xs-4 col-sm-1" style="vertical-align:top;align-content: space-around;">
<img id="picWeek" src="" class="img-rounded" style="width:100px; height: 95px;">
</div>
</div>
</form>
<div id="GMJump" style="padding-left:20px" class="col-sm-9">
<div class="col-xs-8 col-sm-3">
<p style="padding-top:40px">
<a href="http://platform.mngo.com" target="_blank">
<button id="mgmain" class="btn btn-primary" style="height:40px;width:200px;">萌果平台
</button>
</a>
</p>
<p>
<a href="http://platcom1.imobile-ent.com:8988/MngoOAsystem/main.jsp" target="_blank">
<button id="main" class="btn btn-primary" style="height:40px;width:200px;">协同管理平台
</button>
</a>
</p>
<p>
<a href="http://platcom1.imobile-ent.com:8988/D9CAsystem/Portal.action?postbackLocation=http://herosdseaop.imobile-ent.com:8988/D9OPPlatsystem/Login.action" target="_blank">
<button id="seaBg" class="btn btn-normal" style="height:40px;width:100px;">SEA后台
</button>
</a>
<a href="http://platcom1.imobile-ent.com:8988/D9CAsystem/Portal.action?postbackLocation=http://herosdengop.imobile-ent.com:8988/D9OPPlatsystem/Login.action" target="_blank">
<button id="naBg" class="btn btn-normal" style="height:40px;width:100px;">NA后台
</button>
</a>
</p>
<p style="">
<a href="http://platcom1.imobile-ent.com:8988/D9CAsystem/Portal.action?postbackLocation=http://herosdeuop.imobile-ent.com:8988/D9OPPlatsystem/Login.action" target="_blank">
<button id="euBg" class="btn btn-normal" style="height:40px;width:100px;">EU后台
</button>
</a>
<a href="http://platcom1.imobile-ent.com:8988/D9CAsystem/Portal.action?postbackLocation=http://herosdop.imobile-ent.com:8988/D9OPPlatsystem/Login.action" target="_blank">
<button id="chinaBg" class="btn btn-normal" style="height:40px;width:100px;">国内后台
</button>
</a>
</p>
</div>
<div class="col-xs-4 col-sm-3">
<p style="padding-top:40px;">
<a href="https://pk2.worktile.com/mission/projects/5f0bd6b692034529c4d8b028" target="_blank">
<button id="WTBg" class="btn btn-primary" style="height:40px;width:200px;">Worktile
</button>
</a>
</p>
<p>
<a href="http://172.16.0.88/zentao/index.php?m=my&f=index" target="_blank">
<button id="ZTBg" class="btn btn-primary" style="height:40px;width:200px;">禅道
</button>
</a>
</p>
<p>
<a href="https://docs.qq.com/desktop" target="_blank">
<button id="txDoc" class="btn btn-primary" style="height:40px;width:200px;">腾讯文档
</button>
</a>
</p>
<p>
<a href="https://www.facebook.com/pages/?category=your_pages&ref=www_chatbar" target="_blank">
<button id="fbHP" class="btn btn-primary" style="height:40px;width:200px;">Facebook主页
</button>
</a>
</p>
</div>
<div id="tools" class="col-xs-4 col-sm-3">
<p style="padding-top:40px;">
<a href="https://lab.magiconch.com/nbnhhsh/" target="_blank">
<button id="wordsCheck" class="btn btn-primary" style="height:40px;width:200px;">缩写查询
</button>
</a>
</p>
<p>
<a href="https://fast.com/" target="_blank">
<button id="speedtest" class="btn btn-primary" style="height:40px;width:200px;">网速咋样
</button>
</a>
</p>
<p>
<a href="https://jinaconvert.com/cn/" target="_blank">
<button id="picChange" class="btn btn-primary" style="height:40px;width:100px;">图片转换
</button>
</a>
<a href="https://www.picdiet.com/zh-cn" target="_blank">
<button id="picPress" class="btn btn-primary" style="height:40px;width:100px;">图片压缩
</button>
</a>
</p>
<p>
<a href="https://translate.google.cn/" target="_blank">
<button id="translate" class="btn btn-primary" style="height:40px;width:200px;">谷歌翻译
</button>
</a>
</p>
<!-- <p>
<a href="https://juejin.im/pins/topic/6824710203301167112" target="_blank">
<button id="jjBg" class="btn btn-primary" style="height:40px;width:200px;">用爱发电
</button>
</a>
</p> -->
</div>
</div>
<div id="Website" style="padding-left:20px" class="col-sm-9">
<div class="col-xs-8 col-sm-3">
<!-- <p style="font-size: 25px; text-align-last: center;">功能</p>-->
<!-- data-target触发模态弹出窗元素 -->
<button class="btn btn-primary" data-toggle="modal" data-target="#id-format" type="button" style="height:40px;width:200px;" >玩家ID格式化</button>
<!-- 模态弹出窗内容 -->
<div class="modal" id="id-format" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title">ID格式化</h4>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<textarea id="IDFormatInput" class="form-control" rows="6" style="resize:vertical;"></textarea>
</div>
<div class="form-group" align="right">
<button type="button" class="btn btn-success" id="idChange" onclick="IDChangeFormat()">转换</button>
<button type="button" class="btn btn-danger" id="idClear" onclick="IDFormatReset()">重置</button>
</div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">溜了</button>
</div>
</div>
</div>
</div>
</div>
<!--公告-->
<button class="btn btn-primary" data-toggle="modal" data-target="#notice-format" type="button" style="height:40px;width:200px;" >公告格式化</button>
<!-- 模态弹出窗内容 -->
<div class="modal" id="notice-format" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<!-- <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button> -->
<h4 class="modal-title">公告格式化</h4>
</div>
<div class="modal-body">
<form>
<div class="form-group">
<p>奖励设置👇</p>
<textarea id="NoticeRewardsFormat" class="form-control" rows="1" style="resize:none;"placeholder="输入奖励格式,和邮件一样就行"></textarea>
<p>内容设置👇</p>
<textarea id="NoticeContent" class="form-control" rows="3" style="resize: vertical;" placeholder="输入公告内容,支持<color>和<size>标签"></textarea>
<p>图片设置👇(只有游戏公告可以,登陆公告别乱搞)
<img id="picBeiGuo" src="./pic/beiguo.gif" class="img-rounded" style="width:48px; height: 71px;">
</p>
<textarea id="imgLocation" class="form-control" rows="1" style="resize: none;" placeholder="输入图片的位置,支持链接至任意站点(前提是可以打开)"></textarea>
<textarea id="imgurl" class="form-control" rows="1" style="resize: none;" placeholder="输入点击图片要跳转的地址"></textarea>
</div>
<!-- <div class="form-group" align="right">
<button type="button" class="btn btn-success" id="idChange" onclick="IDChangeFormat()">转换</button>
<button type="button" class="btn btn-danger" id="idClear" onclick="IDFormatReset()">重置</button>
</div> -->
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-primary" data-dismiss="modal">溜了</button>
</div>
</div>
</div>
</div>
</div>
<!--下面是代码任务部分--->
<div class="modal" id="themodal" tabindex="-1">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
<h4 class="modal-title">模态弹出窗标题</h4>
</div>
<div class="modal-body">
<p>模态弹出窗主体内容</p>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
<button type="button" class="btn btn-primary">保存</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</div>
<div id="GMOperation" style="height:auto; width:max-content;" class="grid-item">
</div>
</div>
</body>
</html>