-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
562 lines (535 loc) · 26.1 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
<!DOCTYPE html>
<html lang="zh" class="js">
<head>
<p>Please wait...</p>
<svg id="mySVG" version="1" xmlns="http://www.w3.org/2000/svg" width="16" height="16">
<style>
@keyframes rotate {
0% { transform: rotate(0deg) }
to { transform: rotate(360deg) }
}
@keyframes fillunfill {
0% { stroke-dashoffset: 32.3 }
50% { stroke-dashoffset: 0 }
to { stroke-dashoffset: -31.9 }
}
@keyframes rot {
0% { transform: rotate(0deg) }
to { transform: rotate(-360deg) }
}
@keyframes colors {
0%, to { stroke: #4285f4 }
}
</style>
<g style="animation-duration: 1568.63ms; animation-iteration-count: infinite; animation-name: rotate; animation-timing-function: linear; transform-origin: 50% 50%; width: 16px; height: 16px">
<path fill="none" d="M8 1.125A6.875 6.875 0 1 1 1.125 8" stroke-width="2.25" stroke-linecap="round" style="animation-duration: 1333ms, 5332ms, 5332ms; animation-fill-mode: forwards; animation-iteration-count: infinite, infinite, infinite; animation-name: fillunfill, rot, colors; animation-play-state: running, running, running; animation-timing-function: cubic-bezier(.4, 0, .2, 1), steps(4), linear; transform-origin: 50% 50%" stroke-dasharray="32.4" stroke-dashoffset="32.4"/>
</g>
</svg>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="keywords" content="流量消耗器,流量杀手">
<meta name="description" content="流量消耗器,web版流量杀手。">
<meta name="referrer" content="no-referrer">
<link rel="shortcut icon" href="favicon.ico">
<link rel="stylesheet" href="css/dashlite.css">
<link rel="stylesheet" href="css/style.css?v=20220626">
<script src="//v1.hitokoto.cn/?encode=js&select=%23hitokoto" defer></script>
<script charset="UTF-8" id="LA_COLLECT" src="//sdk.51.la/js-sdk-pro.min.js"></script>
<script>LA.init({id: "JpQlHp8uIBmFzxLI",ck: "JpQlHp8uIBmFzxLI"})</script>
</head>
<body class="nk-body npc-invest bg-lighter " style="cursor:pointer">
<!-- wrap @s -->
<div class="nk-wrap ">
<!-- main header @s -->
<div class="nk-header nk-header-fluid nk-header-fixed is-light">
<div class="container-xl">
<div class="nk-header-wrap link-between">
<div class="nk-menu-trigger mr-sm-2 d-lg-none">
<a href="#" class="nk-nav-toggle nk-quick-nav-icon" data-target="headerNav"><em
class="icon ni ni-menu"></em></a>
</div>
<div class="nk-header-brand">
<a href="/" class="logo-link text-base"><img src="https://p5.toutiaoimg.com/origin/pgc-image/f1f9c78d261e4914be79dd93deed6f05" class="hide-mb-sm">流量消耗器-by.大灰狼</a>
</div>
<!-- .nk-header-brand -->
<div class="nk-header-tools nk-header-menu" data-content="headerNav">
<div class="nk-header-mobile">
<div class="nk-header-brand">
<a href="/" class="logo-link text-base">
<span class="nio-version" style="font-size: 21px;position: inherit;">流量消耗器-by.大灰狼</span>
</a>
</div>
<div class="nk-menu-trigger mr-n2">
<a href="#" class="nk-nav-toggle nk-quick-nav-icon" data-target="headerNav"><em class="icon ni ni-arrow-left"></em></a>
</div>
</div>
<!-- Menu -->
<ul class="nk-menu nk-menu-main">
<li class="nk-menu-item ">
<a href="#" class="nk-menu-link nk-ibx-action-item">
<em class="icon ni ni-home"></em>
</a>
</li>
<li class="nk-menu-item ">
<a href="https://www.maxmind.com/en/geoip-demo" class="nk-menu-link nk-ibx-action-item">
<em class="icon ni ni-policy"></em>
<span class="nk-menu-text">IP归属查询</span>
</a>
</li>
<!-- <li class="nk-menu-item ">
<a href="//" class="nk-menu-link nk-ibx-action-item">
<em class="icon ni ni-policy"></em>
<span class="nk-menu-text">占位占位</span>
</a>
</li>
<li class="nk-menu-item ">
<a href="//" class="nk-menu-link nk-ibx-action-item">
<em class="icon ni ni-dropbox"></em>
<span class="nk-menu-text">占位占位</span>
</a>
</li>
<li class="nk-menu-item ">
<a href="#" class="nk-menu-link nk-ibx-action-item">
<em class="icon ni ni-heart"></em>
<span class="nk-menu-text">占位占位</span>
</a>
</li>
<li class="nk-menu-item ">
<a href="//" class="nk-menu-link nk-ibx-action-item">
<em class="icon ni ni-comments"></em>
<span class="nk-menu-text">占位占位</span>
</a>
</li>-->
</ul>
</div>
<!-- .nk-header-menu -->
<div class="no-gutters">
<ul class="nk-quick-nav">
<li class="dropdown">
<a href="javascript:;" class="progress-rating dark-switch ">
<span class="nk-menu-icon">
<em class="icon ni ni-moon"></em>
<em class="icon ni ni-sun d-none"></em>
</span>
</a>
</li>
<!-- .dropdown -->
</ul>
<!-- .nk-quick-nav -->
</div>
<!-- .nk-header-tools -->
</div>
<!-- .nk-header-wrap -->
</div>
<!-- .container-fliud -->
</div>
<!-- main header @e -->
<!-- content @s -->
<div class="nk-content nk-content-lg nk-content-fluid">
<style>
.stat {
width: 100%;
column-gap: 1rem;
padding: 1rem 1.5rem;
}
.stat-title {
white-space: nowrap;
opacity: .6;
}
.stat-value {
white-space: nowrap;
grid-column-start: 1;
font-size: 1.8rem;
font-weight: 700;
line-height: 2.5rem
}
</style>
<div class="container-xl" id="app">
<div class="col-sm-12 col-md-10 col-xl-8 center-block">
<div class="card card-preview">
<div class="card-inner mt-3">
<div class="nya-title nk-ibx-action-item progress-rating">
<span class="nk-menu-text font-weight-bold">流量消耗器</span>
</div>
<div class="form-group">
<!-- <p><a href="/" class="nk-menu-link nk-ibx-action-item"><img src="/" alt="AD-IMG" title="AD-IMG" /></a></p> -->
<p><a target="_blank" title="51la网站统计" href="https://v6.51.la/land/JpQlHp8uIBmFzxLI"><img src="https://sdk.51.la/icon/3-5.png"></a>Tip:速度不满意?请尝试手工切换节点或者加大线程</p>
<p>如果不习惯或者需要自定义消耗流量数量,可以<a href="./old">→ 点我切换回旧版 ←</a>,本页面不支持自定义消耗流量数量!</p>
<label class="form-label">下载节点</label>
<div class="form-control-wrap">
<select type="text" v-model="set.input" class="form-control">
<option value="">↓↓ 百度 ↓↓</option>
<option value="https://wppkg.baidupcs.com/issue/netdisk/apk/BaiduNetdisk_10.1.02.apk">百度网盘</option>
<option value="https://imeres.baidu.com/imeres/ime-res/guanwang/img/UOS-fcitx-baidupinyin-64.zip">百度输入法</option>
<option value="">↓↓ 阿里巴巴 ↓↓</option>
<option value="https://img.alicdn.com/imgextra/i1/O1CN01xA4P9S1JsW2WEg0e1_!!6000000001084-2-tps-2880-560.png">阿里图片CDN域名加速</option>
<option value="https://gw.alipayobjects.com/os/volans-demo/f44c302e-b704-4a70-bcc6-0214e37ca256/MiniProgramStudio-1.17.4.exe">支付宝开放平台</option>
<option value="">↓↓ 腾讯 ↓↓</option>
<option value="https://game.gtimg.cn/images/nz/web202106/index/bc_part1.gif">腾讯游戏</option>
<option value="">↓↓ B站 ↓↓</option>
<option value="https://i0.hdslb.com/bfs/album/6a259a872289fbf56e61876c9b8870a9868325af.jpg">B站图片(非免流)</option>
<option value="">↓↓ 爱奇艺 ↓↓</option>
<option value="https://aliyuncoccdncmnet-hd2.inter.iqiyi.com/videos/other/20220929/56/33/4284b480482b471cea482c3cad8b15a3.mp4">爱奇艺视频(移动随心选定向)</option>
<option value="">↓↓ 京东 ↓↓</option>
<option value="https://img10.360buyimg.com/live/jfs/t1/128947/12/26918/1361527/6260e71bE0ee85af5/ecaa17ea8dd3dddb.jpg">京东商城图片CDN服务</option>
<option value="">↓↓ 网易 ↓↓</option>
<option value="https://x19.gdl.netease.com/MCLauncher_publish_1.8.0.35383.exe">网易(阿里CDN)</option>
<option value="https://mov.bn.netease.com/open-movie/nos/mp4/2015/11/26/SB8ECV1ST_sd.mp4">网易(白云山CDN)</option>
<option value="">↓↓ VIVO ↓↓</option>
<option value="https://wwwstatic.vivo.com.cn/vivoportal/files/resource/funtouch/1651200648928/images/os2-jude-video.mp4">VIVO官网静态资源</option>
<option value="https://imgwsdl.vivo.com.cn/appstore/developer/soft/20210125/202101251051528awqa.apk">VIVO应用商店</option>
<option value="">↓↓ 字节跳动 ↓↓</option>
<option value="https://lf9-cdn-tos.bytecdntp.com/cdn/yuntu-index/1.0.4/case/maiteng/detailbg.png">字节跳动前端公共库</option>
<option value="">↓↓ 小米 ↓↓</option>
<option value="https://cnbj0.fds.api.xiaomi.com/b2c-data-mishop/9b9d95e1ece27d5ec75205e5fe719ba5.apk">小米应用商店</option>
<option value="">↓↓ 华为 ↓↓</option>
<option value="https://consumer-img.huawei.com/content/dam/huawei-cbg-site/common/mkt/mobileservices/new-2022/download/com.huawei.appmarket.2201041539.apk">华为应用商店</option>
<option value="">↓↓ 中国移动 ↓↓</option>
<option value="https://d.musicapp.migu.cn/upload/fbpt_rsync_apps/local/signed/MobileMusic7140/MobileMusic7140_0140068.apk">咪咕音乐</option>
<option value="https://download.mcloud.139.com/storageWeb/servlet/downloadServlet?code=S0IxSTExb2pZNmg3T3IyMzIxN3JsbXk1OE5R&un=EF689F6284A13008BE1FFBE700C325DA1B384EE23C1229EC9BDB1986AFDF3E6D&dom=D961&rate=0&txType=0">中国移动云盘(原和彩云)</option>
<option value="">↓↓ 中国电信 ↓↓</option>
<option value="https://vod-origin-rjzy.gdoss.xstore.ctyun.cn/5ca444c333bf4727babc7d154aabe559.mp4">天翼云服务器(中国电信旗下)</option>
<option value="">↓↓ 国内其他大厂 ↓↓</option>
<option value="https://dh5.cntv.myhwcdn.cn/asp/h5e/hls/1200/0303000a/3/default/ec48b9f8c76e49af842d4942914ad663/1.ts">CCTV</option>
<option value="https://photocdn.tv.sohu.com/img/20221014/frag_item_1665743937510_6.jpg">搜狐</option>
<option value="https://i.apps.sina.cn/tqt/zip/com.sina.tianqitong_6.1892_2019.07.29.17.54.18.apk">新浪</option>
<option value="https://cdn.aixifan.com/downloads/AcFun-acfunh5-release-6.62.0.1238_x64_60b608.apk">AcFun</option>
<option value="https://image.uc.cn/s/uae/g/3o/broccoli/resource/202208/fdc0171806515c1f.mp4">夸克(UC)</option>
<option value="https://dl.pddpic.com/android_dev/2021-02-08/4ff25ce6148aa99aeeba723b5891ae72.apk">拼多多</option>
<option value="https://sta-op.douyucdn.cn/vod-index/2022/06/22/848adf3ae99d2be506026380c2ad42c1.png">斗鱼</option>
<option value="https://kodo-toolbox.qiniu.com/kodo-browser-Linux-x64-v1.0.17.zip">七牛云</option>
<option value="https://picture.xianniu.com/pc/download/3.8.0.4/xianniusetup.3.8.0.4.exe">鲜牛加速器(华为云CDN)</option>
<option value="">↓↓ 海外优选节点 ↓↓</option>
<option value="https://cachefly.cachefly.net/100mb.test" >Cachefly 100MB</option>
<option value="https://speed.cloudflare.com/__down?bytes=100000000">cloudflare 100MB</option>
<option value="https://sgp-ping.vultr.com/vultr.com.100MB.bin">Vultr 100M(新加坡)</option>
<option value="https://nj-us-ping.vultr.com/vultr.com.100MB.bin">Vultr 100M(纽约)</option>
<option value="https://speedtest.tokyo2.linode.com/100MB-tokyo2.bin">Linode 100MB(日本省东京市)</option>
<option value="">↓↓ 如需自定义请直接在下方填写资源链接 ↓↓</option></select>
<input style="" type="text" v-model="set.input" placeholder="下载链接" class="form-control" autocomplete="off">
</div>
</div>
<div class="form-group">
<label class="form-label">线程</label>
<div class="form-control-wrap number-spinner-wrap">
<button class="btn btn-icon btn-outline-primary number-spinner-btn number-minus" @click="if(set.thread>1)set.thread--"><em class="icon ni ni-minus"></em></button>
<input type="number" class="form-control number-spinner" min="1" max="32" v-model="set.thread">
<button class="btn btn-icon btn-outline-primary number-spinner-btn number-plus"><em class="icon ni ni-plus" @click="if(set.thread<32)set.thread++"></em></button>
</div>
</div>
<div class="form-group">
<div class="preview-block">
<div class="custom-control custom-switch">
<input type="checkbox" class="custom-control-input" v-model="set.infinite" id="customSwitch2">
<label class="custom-control-label" for="customSwitch2">无限循环</label>
</div>
</div>
</div>
<button class="btn btn-dim btn-outline-secondary btn-block card-link" id="toggleButton" @click="run">
{{set.status?'停止':'开始'}}
</button>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
.hidden {
display: none;
}
</style>
</head>
<body>
<script>
const toggleButton = document.getElementById('toggleButton');
const mySVG = document.getElementById('mySVG');
toggleButton.addEventListener('click', function() {
if (mySVG.classList.contains('hidden')) {
mySVG.classList.remove('hidden');
} else {
mySVG.classList.add('hidden');
}
});
</script>
<style>
.hidden {
display: none;
}
</style>
</head>
<body>
<script>
const toggleButton = document.getElementById('toggleButton');
const mySVG2 = document.getElementById('mySVG2');
toggleButton.addEventListener('click', function() {
if (mySVG2.classList.contains('hidden')) {
mySVG2.classList.remove('hidden');
} else {
mySVG2.classList.add('hidden');
}
});
</script>
<div class="row mt-4">
<div class="col-sm-12 col-md-4 border stat">
<div class="text-dark"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="h-15 w-15 float-right pt-3"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 15a4 4 0 004 4h9a5 5 0 10-.1-9.999 5.002 5.002 0 10-9.78 2.096A4.001 4.001 0 003 15z"></path></svg></div>
<div class="stat-title">已消失的流量</div>
<div class="stat-value">{{changeFilesize(waste)}}</div>
</div>
<div class="col-sm-12 col-md-4 border stat">
<div class="text-info"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="h-15 w-15 float-right pt-3"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z"></path></svg></div>
<div class="stat-title">每秒实时流量</div>
<div class="stat-value text-info">{{speed}}</div>
</div>
<div class="col-sm-12 col-md-4 border stat">
<div class="text-dark"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor" class="h-15 w-15 float-right pt-3"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg></div>
<div class="stat-title">运行时长</div>
<div class="stat-value">{{secToTime(spend)}}</div>
</div>
</div>
</div>
</div>
<div class="card card-preview">
<div class="card-inner">
<h6><em class="icon ni ni-info"></em> 工具说明</h6>
<div class="accordion-inner">
<p>多线程消耗流量,web版流量杀手</p>
<p>此工具可以以浪费的形式消耗你的流量</p>
<p>
Tips: 如手机套餐内含头条系,阿里系,百度系等定向流量,填写免流量的资源URL,即可直接消耗免费的定向流量</p>
<p>如果是要消耗机场流量,建议使用海外节点,速度可能会更快</p>
<p>注:虽支持可自定义下载地址 但无法请求跨域链接</p>
<p>
<hr>
<p>您的访问信息如下:</p>
<li class="nk-menu-item ">
<p class="text-danger"><script>ipinfo()</script></p>
<p>
</li>
<img src="https://ip.vv1234.cn/ipx/" onError="this.src='https://tool.lu/netcard/'">
</p>
<a href="old-index.php" class="nk-menu-link nk-ibx-action-item">→ 点我切换回旧版 ←</a>
<hr>
<script id="LA-DATA-WIDGET" crossorigin="anonymous" charset="UTF-8" src="https://v6-widget.51.la/v6/JjhvoI5bfYbANJBZ/quote.js?theme=0&f=12&display=1,1,1,1,0,1,1,1"></script>
</div>
</div>
</div>
</div>
</div>
<div class="mt-5 text-center">
<p id='hitokoto' class="text-gray"></p>
<a href="https://github.com/shidahuilang" class="btn btn-sm btn-outline-light ">
<em class="icon ni ni-heart"> 收藏本页</em> <em class="icon ni ni-heart"> </em>
</a>
<br/>
<br/>
<a href="https://github.com/shidahuilang" class="btn btn-sm btn-outline-light ">
</a>
</div>
</div>
<!-- content @d -->
<div class="nk-footer nk-footer-fluid bg-lighter">
<div class="container-xl">
<div class="nk-footer-wrap">
<div class="nk-footer-copyright"> © 2022 <a href='https://github.com/shidahuilang'>大灰狼 </a>
</div>
</div>
</div>
</div>
<!-- footer @e -->
</div>
<!-- wrap @e -->
<script src="//cdn.staticfile.org/jquery/3.6.0/jquery.min.js"></script>
<script src="//cdn.staticfile.org/bootstrap/4.6.1/js/bootstrap.bundle.min.js"></script>
<script src="//cdn.staticfile.org/layer/3.5.1/layer.js"></script>
<script src="js/nioapp.min.js"></script>
<script src="js/script.js"></script>
<script src="js/common.js"></script>
<script>
var plugin_id = 5;
var plugin_is_star = 0;
$("#star-btn-text").text(plugin_is_star?'取消收藏':'添加收藏');
$(document).ready(function(){
$('.dark-switch').on("click", function(e) {
if ($("body.dark-mode").length <= 0) {
document.cookie='darkmode=1';
} else {
document.cookie='darkmode=0';
}
});
})
</script>
<script src="//cdn.staticfile.org/vue/2.6.14/vue.min.js"></script>
<script src="//cdn.staticfile.org/axios/0.26.0/axios.min.js"></script>
<script>
var errors = null
new Vue({
el: '#app',
data: {
set: {
input: 'https://cachefly.cachefly.net/100mb.test',
output: '',
infinite: true,
status: false,
thread: 1,
},
tasks: [],
speed: '0.00B/s',
spend: 0,
waste: 0,
timer: null,
cancelSource: axios.CancelToken.source()
},
watch: {
async 'set.status'(newVal) {
if (newVal) {
this.cancelSource = axios.CancelToken.source()
this.timer = setInterval(() => {
this.speed = this.changeDownloadSpeed(this.tasks.reduce(function (prev, curr) {
return prev + curr;
}, 0));
this.spend++
}, 1000)
do {
await new Promise(resolve => {
let task = []
for (let i = 0; i < this.set.thread; i++) {
task.push(this.download(Math.random().toString(36).substr(2, 10)))
}
Promise.all(task).finally(resolve)
})
} while (this.set.status && this.set.infinite)
} else {
clearInterval(this.timer)
this.cancelSource.cancel()
}
}
},
methods: {
run() {
this.set.status = !this.set.status
},
download(id) {
let loaded = 0
let speed = 0
let timestamp = new Date().getTime()
let that = this
const index = this.tasks.push(speed) - 1
return axios.request({
url: this.set.input,
params: {
[id]: id,
},
cancelToken: this.cancelSource.token,
onDownloadProgress: function (progressEvent) {
// 处理原生进度事件
const now = new Date().getTime();
speed = (progressEvent.loaded - loaded) / (now - timestamp) * 1000
that.tasks[index] = speed
that.waste += progressEvent.loaded - loaded
loaded = progressEvent.loaded
timestamp = now
},
}).catch(e => {
if (!axios.isCancel(e)) {
layer.msg(e.message, {icon:2})
// this.set.status = false
this.set.status = true
}
}).finally(() => {
delete that.tasks[index]
})
},
secToTime(s) {
let t = '';
if (s > -1) {
let hour = Math.floor(s / 3600)
let min = Math.floor(s / 60) % 60
let sec = s % 60
if (hour > 0) {
if (hour < 10) {
t += '0'
}
t = hour + "h"
}
if (hour > 0 || min > 0) {
if (min < 10) {
t += '0'
}
t += min + "m"
}
if (sec < 10) {
t += '0'
}
t += sec + 's'
}
return t
},
changeFilesize: (filesize) => {
filesize = parseInt(filesize);
let size = "";
if (filesize === 0) {
size = "0.00 B"
} else if (filesize < 1024) { //小于1KB,则转化成B
size = filesize.toFixed(2) + " B"
} else if (filesize < 1024 * 1024) { //小于1MB,则转化成KB
size = (filesize / 1024).toFixed(2) + " KB"
} else if (filesize < 1024 * 1024 * 1024) { //小于1GB,则转化成MB
size = (filesize / (1024 * 1024)).toFixed(2) + " MB"
} else { //其他转化成GB
size = (filesize / (1024 * 1024 * 1024)).toFixed(2) + " GB"
}
return size;
},
changeDownloadSpeed(filesize) {
filesize = this.changeFilesize(filesize);
return filesize.replace(/\s([K|M|G|B]*)B{0,1}/, '$1/s')
}
},
})
</script>
<script>document.onkeydown = function(){
if(window.event && window.event.keyCode == 123) {
alert("F12被禁用");
event.keyCode=0;
event.returnValue=false;
}
if(window.event && window.event.keyCode == 13) {
window.event.keyCode = 505;
}
if(window.event && window.event.keyCode == 8) {
alert(str+"\n请使用Del键进行字符的删除操作!");
window.event.returnValue=false;
}
}
</script>
<script>document.oncontextmenu = function (event){
if(window.event){
event = window.event;
}try{
var the = event.srcElement;
if (!((the.tagName == "INPUT" && the.type.toLowerCase() == "text") || the.tagName == "TEXTAREA")){
return false;
}
return true;
}catch (e){
return false;
}
}
</script>
<!--
//临时关闭网页特效,以降低客户机负载
<script src="//wx1.vv1234.cn/o_1bdgnn8ljls4ihk1aq6cjq1fooa.js"></script>
<script src="//api.vv1234.cn/js/fuqiang.js?20220629"></script>
<script src="//api.vv1234.cn/js/luoye.js?20220629"></script>
<script type="text/javascript">jQuery(document).ready(function($){
$('body').wpSuperSnow({
//flakes: ['https://aliyun.ccswust.org/1/img/007.png ' ,'https://aliyun.ccswust.org/1/img/006.png','https://aliyun.ccswust.org/1/img/004.png','https://aliyun.ccswust.org/1/img/002.png','https://aliyun.ccswust.org/1/img/001.png','https://aliyun.ccswust.org/1/img/003.png','https://aliyun.ccswust.org/1/img/002.png','https://aliyun.ccswust.org/1/img/001.png'],
flakes: ['https://pic.imgdb.cn/item/62bc50c61d64b07066b1403e.png' ,'https://pic.imgdb.cn/item/62bc50ed1d64b07066b18886.png','https://pic.imgdb.cn/item/62bc51101d64b07066b1bf52.png','https://pic.imgdb.cn/item/62bc51501d64b07066b23b04.png','https://pic.imgdb.cn/item/62bc518f1d64b07066b2ac07.png','https://pic.imgdb.cn/item/62bc51e51d64b07066b33ba1.png','https://pic.imgdb.cn/item/62bc51fb1d64b07066b36480.png'],
totalFlakes: '290',
zIndex: '999999',
maxSize: '30',
maxDuration: '50',
useFlakeTrans: false
});
});</script>
-->
<script></script>
<script></script>
</html>