forked from JKLoucky/totp-generator
-
Notifications
You must be signed in to change notification settings - Fork 55
/
index.html
129 lines (107 loc) · 4.12 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Github 登录验证码获取</title>
<link rel="stylesheet" href="css/bulma-0.9.4.min.css">
<style>
[v-cloak] {
display: none;
}
html, body {
height: 100%;
}
body > footer {
position: sticky;
top: 100vh;
}
.footer {
padding: 2rem;
}
.spacer {
height: 14px;
}
@keyframes color-animation {
0% { color: red; }
50% { color: green; }
100% { color: blue; }
}
.animated-text {
animation: color-animation 5s infinite;
}
@media screen and (min-width: 1068px) {
.container {
max-width: 600px;
width: 600px;
}
}
</style>
</head>
<body>
<script defer src="js/vue-3.3.2.global.prod.js"></script>
<script defer src="js/otpauth-9.1.3.min.js"></script>
<script defer src="js/clipboard-2.0.6.min.js"></script>
<script defer src="js/app.js?v=1.2"></script>
<section id="app" class="section" v-cloak>
<div class="container">
<div class="has-text-centered">
<h1 class="title">Github 登录验证码获取</h1>
</div>
<div class="spacer"></div>
<div class="field">
<label class="label is-uppercase">你的秘钥:</label>
<div class="control">
<input class="input" type="text" v-model="secret_key" placeholder="The secret key (in base-32 format)">
</div>
</div>
<div class="field">
<label class="label is-uppercase">验证码位数 GitHub默认6位</label>
<div class="control">
<input class="input" type="text" v-model="digits" placeholder="Usually 6">
</div>
</div>
<div class="field">
<label class="label is-uppercase">令牌周期(以秒为单位)
</label>
<div class="control">
<input class="input" type="text" v-model="period" placeholder="Usually 30">
</div>
</div>
<div class="content">
<span class="has-text-grey is-size-7"> {{ updatingIn }} 秒内更新</span>
<progress class="progress is-info is-small" v-bind:value="updatingIn" :max="period"></progress>
</div>
<div class="box">
<p class="title is-size-1 has-text-centered has-text-danger" id="token">
<span class="animated-text">{{ token }}</span>
</p>
</div>
<div class="control is-clearfix has-text-centered">
<a class="button is-large is-light" id="clipboard-button" data-clipboard-target="#token" title="点击复制验证码">
<img src="img/clippy.svg" height="65" width="65">
</a>
</div>
<div class="spacer"></div>
<div class="notification is-info">
<p><strong>使用说明:</strong></p>
<p>0. <strong><span style="color:rgb(255,255,0);">在github登录方法:用户名--密码--2次验证码 ,将2次验证码复制到JBSWY3DPEHPK3PXP位置生成6位验证码</span></strong></p>
<p>1. 在<strong><span style="color:rgb(255,255,0);">“秘钥”</span></strong>输入框中输入你的 Github 秘钥,该秘钥是在订单卡密中最后一行字符串。</p>
<p>2. 输入验证码位数和令牌周期。通常,验证码位数默认为 6 位,令牌周期默认为 30 秒,但是你也可以根据自己的需要进行修改。</p>
<p>3. 获取验证码:在输入完以上信息后,页面会自动更新验证码并将其显示在页面上。你可以复制验证码用于 Github 登录。</p>
<p>4. 复制验证码:点击<strong><span style="color:rgb(255,255,0);">“红色复制”</span></strong>按钮,即可将验证码复制到剪贴板上,粘贴到Github 验证码输入框进行账号验证登录。</p>
</div>
</div>
</section>
<footer class="footer">
<div class="container">
<div class="content has-text-centered">
Built by
<a href="https://shop.666200.xyz/">CN0514</a>
Telegram:
<a href="https://t.me/cn2035">cn2035</a>
</div>
</div>
</footer>
</body>
</html>