-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathslowprogresstoken.html
94 lines (86 loc) · 2.65 KB
/
slowprogresstoken.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Retrieve Your Token</title>
<style>
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f4f4f4;
color: #333;
line-height: 1.6;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.container {
background: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0,0,0,0.1);
width: 90%;
max-width: 600px;
}
.code-container {
background-color: #eef;
border-left: 5px solid #5D5C61;
margin: 20px 0;
padding: 10px;
overflow-x: auto;
}
pre {
margin: 0;
font-family: monospace;
overflow: auto;
}
.instructions {
font-size: 18px;
color: #555;
}
button {
background-color: #4CAF50;
color: white;
padding: 10px 20px;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 16px;
}
button:hover {
background-color: #45a049;
}
</style>
</head>
<body>
<div class="container">
<div class="instructions">
Please copy the token below and paste it back into the SlowProgress app to continue.
</div>
<div id="codeContainer" class="code-container">
<!-- The code will be displayed here -->
</div>
<button onclick="copyCode()">Copy Token</button>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const params = new URLSearchParams(window.location.search);
const code = params.get('code');
if (code) {
const formattedCode = decodeURIComponent(code).replace(/</g, "<").replace(/>/g, ">");
document.getElementById('codeContainer').innerHTML = `<pre>${formattedCode}</pre>`;
}
});
function copyCode() {
const codeText = document.querySelector('#codeContainer pre').innerText;
navigator.clipboard.writeText(codeText).then(() => {
alert('Token copied to clipboard!');
}).catch(err => {
console.error('Error in copying text: ', err);
});
}
</script>
</body>
</html>