-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
36 lines (36 loc) · 1.17 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Spotify authorization for FSCH! Module</title>
<link rel="stylesheet" href="./s.css" />
<script>
window.onload = () => {
const input = document.getElementById("spotifycode");
const button = document.getElementById("copybtn");
input.setAttribute("value", ".scode " + window.location);
button.onclick = () => {
input.select();
document.execCommand("copy");
}
input.onchange = (e) => {e.target.value = ".scode " + window.location};
};
</script>
</head>
<body
class="h-screen w-screen overflow-hidden bg-black flex justify-center items-center"
>
<div class="bg-white p-6 rounded-xl flex flex-col gap-4">
<h1 class="font-bold text-lg">Your Spotify Authorization Code:</h1>
<input
class="p-2 rounded-xl bg-violet-800 text-white w-full"
value=""
id="spotifycode"
/>
<button class="p-3 bg-black text-white rounded-xl" id="copybtn">
Copy
</button>
</div>
</body>
</html>