forked from itxve/aliyundriver-refresh-token
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
108 lines (97 loc) · 2.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>QR Code扫码获取阿里云盘refresh token</title>
</head>
<script type="module" src="./index.ts"></script>
<script>
function copyIt() {
const u = document.querySelector("#user-Info")
u.select()
document.execCommand("copy")
alert("复制成功")
}
</script>
<body>
<div id="app" class="main">
<img id="qrcode" class="qrcode-img" />
<div id="expire">
<p>二维码已失效</p>
<button class="refresh">刷新二维码</button>
</div>
</div>
<span class="main" id="tip">
</span>
<div class="main">
<textarea rows="10" cols="55" id="user-Info"></textarea>
<button class="copy" onclick="copyIt()">copy</button>
</div>
</body>
<style>
.main {
display: flex;
position: relative;
flex-direction: column;
justify-content: center;
align-items: center;
margin-top: 60px;
}
.qrcode-img {
box-shadow: 0px 0px 1px 1px rgb(28 28 32 / 5%), 0px 8px 24px rgb(28 28 32 / 12%);
border-radius: 10px;
width: 128px;
height: 128px;
display: flex;
justify-content: center;
align-items: center;
}
button.refresh {
cursor: pointer;
font-size: 12px;
color: #f0f0f0;
background: #637dff;
line-height: 24px;
height: 24px;
width: auto;
padding: 0px 10px;
border-radius: 30px;
border: 0;
}
#expire {
background: hsla(0, 0%, 100%, .9);
display: none;
flex-direction: column;
justify-content: center;
align-items: center;
position: absolute;
height: 100%;
top: 0;
height: 100%;
width: 100%;
}
#expire p {
font-size: 14px;
}
#token {
z-index: 100;
}
.show {
display: flex !important;
}
button.copy {
cursor: pointer;
font-size: 12px;
color: #f0f0f0;
background: #2f91dc;
line-height: 24px;
height: 24px;
width: auto;
padding: 0px 10px;
border-radius: 30px;
border: 0;
}
</style>
</html>