-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
153 lines (143 loc) · 4.06 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
<!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" />
<link rel="icon" type="image/png" href="./assets/favicon.ico"/>
<title>SUS - amongus link lengthener</title>
<meta name="description" content="a tiny website that lets you build long, confusing links without any backend hassle. With just a few clicks, you can turn a boring old link into a lengthy, confusing masterpiece. Give it a try today and see how your short links can become long and interesting!" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/gh/lmssieh/discord.css/dist/styles.css"
/>
<style>
*,
*::after,
*::before {
box-sizing: border-box;
font-family: inherit;
}
body {
margin: 0 auto;
padding: 0;
text-align: center;
min-height: 100vh;
min-width: 100vw;
}
.container {
max-width: 800px;
min-width: 300px;
width: auto;
margin: auto;
}
#formCode {
gap: 6px;
}
#codeResult {
width: 100%;
min-height: 150px;
}
.flex {
display: flex;
align-items: center;
justify-items: center;
}
.result-wrapper {
overflow: hidden;
line-break: auto;
}
.result {
line-break: anywhere;
}
.flex-1 {
flex: 1;
}
.hidden {
display: none;
}
.invisible {
visibility: hidden;
}
#app {
display: flex;
flex-direction: column;
min-height: 100vh;
min-width: 100vw;
}
.footer {
padding: 0.5em 0;
font-size: 1.2em;
}
</style>
</head>
<body>
<div id="app">
<div class="container">
<div id="main-page" class="hidden">
<h1 style="opacity: 100">SUS Link Lengthener</h1>
<div style="padding: 1em 0">
<span class="invisible">➖➖</span>🟥🟥🟥<br />
<span class="invisible">➖</span>🟥🟥🟥🟥🟥<br />
🟥🟥🟥🟦🟦🟦<br />
🟥🟥🟥🟦🟦🟦<br />
🟥🟥🟥🟥🟥🟥<br />
🟥🟥🟥🟥🟥🟥<br />
<span class="invisible">➖</span>🟥🟥🟥🟥🟥<br />
<span class="invisible">➖</span>🟥🟥<span class="invisible"
>➖</span
>🟥🟥<br />
<span class="invisible">➖</span>🟥🟥<span class="invisible"
>➖</span
>🟥🟥<br />
</div>
<form id="formCode" class="flex">
<input
id="codeLinkInput"
class="flex-1"
type="text"
autocomplete="off"
place="paste the link here"
/>
<button type="submit">generate</button>
</form>
<div class="result-wrapper">
<p class="result">
<textarea id="codeResult"></textarea>
</p>
<button id="copyText">click to copy</button>
</div>
<div class="result-wrapper">
<p id="decodeResult" class="result"></p>
</div>
</div>
<div id="redirect-area" class="hidden">
<div style="padding: 2em">
░██████╗██╗░░░██╗░██████╗<br />
██╔════╝██║░░░██║██╔════╝<br />
╚█████╗░██║░░░██║╚█████╗░<br />
░╚═══██╗██║░░░██║░╚═══██╗<br />
██████╔╝╚██████╔╝██████╔╝<br />
╚═════╝░░╚═════╝░╚═════╝░<br />
</div>
<p>
Are you sure you want to visit
<a id="redirectURL" href="#">{{URL}}</a> ?
</p>
<div style="font-size: 1.6em; font-weight: bold">
<a href="#" id="redirectBtn">YES!</a>
</div>
<p>
Automatically redirecting in
<span id="countdownTimer">6</span> seconds...
</p>
</div>
</div>
<div class="footer">
Made by <a href="https://lmssieh.com">lmssieh.</a>
<a href="https://github.com/lmssieh/SUS-link-lengthener">Source code</a>
</div>
</div>
<script src="app.js"></script>
</body>
</html>