-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
207 lines (186 loc) · 4.8 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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>macOS</title>
<link rel="shortcut icon" href="favicon.ico" />
<link
rel="icon"
type="image/x-icon"
sizes="16x16 32x32"
href="favicon.ico"
/>
<link
rel="apple-touch-icon"
sizes="152x152"
href="favicon-152-precomposed.png"
/>
<link
rel="apple-touch-icon"
sizes="144x144"
href="favicon-144-precomposed.png"
/>
<link
rel="apple-touch-icon"
sizes="120x120"
href="favicon-120-precomposed.png"
/>
<link
rel="apple-touch-icon"
sizes="114x114"
href="favicon-114-precomposed.png"
/>
<link
rel="apple-touch-icon"
sizes="180x180"
href="favicon-180-precomposed.png"
/>
<link
rel="apple-touch-icon"
sizes="72x72"
href="favicon-72-precomposed.png"
/>
<link rel="apple-touch-icon" sizes="57x57" href="favicon-57.png" />
<link rel="icon" sizes="32x32" href="favicon-32.png" />
<meta name="msapplication-TileColor" content="#FFFFFF" />
<meta name="msapplication-TileImage" content="favicon-144.png" />
<meta name="theme-color" content="#ffffff" />
<link rel="manifest" href="manifest.json" />
<link rel="icon" sizes="192x192" href="favicon-192.png" />
<script>
function copyCommand() {
const fullCommand = `
git clone https://github.com/sudo-self/ytr.py
cd ytr.py
tar -xzvf ytr.tar.gz
./YTR
`;
navigator.clipboard
.writeText(fullCommand.trim())
.then(() => {
showToast("Ready! Paste in terminal to launch!");
})
.catch((err) => {
console.error("Failed to copy command:", err);
showToast("Failed to copy command", true);
});
}
function showToast(message, isError = false) {
const toast = document.createElement("div");
toast.classList.add("toast");
if (isError) {
toast.classList.add("error");
}
toast.textContent = message;
document.body.appendChild(toast);
setTimeout(() => {
toast.classList.add("fade");
setTimeout(() => toast.remove(), 500);
}, 3000);
}
</script>
<style>
body {
font-family: Arial, sans-serif;
background-color: #1e1e2f;
color: #f0f0f0;
padding: 20px;
text-align: center;
position: relative;
}
pre {
background: #282c34;
padding: 10px;
border-radius: 5px;
overflow-x: auto;
white-space: pre-wrap;
max-width: 60%;
margin: 0 auto;
word-wrap: break-word;
}
code {
background: #1e1e2f;
padding: 5px 10px;
border-radius: 3px;
color: #4caf50;
}
button {
margin-top: 10px;
padding: 10px 20px;
background-color: #005f50;
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #005fa3;
}
.toast {
position: fixed;
bottom: 20px;
left: 50%;
transform: translateX(-50%);
background-color: #28a745;
color: white;
padding: 10px 20px;
border-radius: 5px;
font-size: 16px;
opacity: 1;
transition: opacity 0.5s;
}
.toast.error {
background-color: #dc3545;
}
.toast.fade {
opacity: 0;
}
#thankYouVideo {
margin-top: 10px;
max-width: 40%;
height: auto;
display: block;
margin-left: auto;
margin-right: auto;
}
footer {
margin-top: 20px;
font-size: 14px;
color: #888;
}
footer a {
color: #005f50;
text-decoration: none;
}
footer a:hover {
text-decoration: underline;
}
</style>
<script async defer src="https://buttons.github.io/buttons.js"></script>
</head>
<body>
<a
class="github-button"
href="https://github.com/sudo-self/ytr.py/fork"
data-color-scheme="no-preference: light; light: light; dark: light;"
data-icon="octicon-repo-forked"
data-size="large"
aria-label="Fork sudo-self/ytr.py on GitHub"
>Fork</a
>
<h1>YT Ringtones</h1>
<p>macOS & Linux</p>
<pre>
<code>https://github.com/sudo-self/ytr.py</code>
</pre>
<button onclick="copyCommand()">install</button>
<video id="thankYouVideo" src="1.mp4" autoplay loop muted></video>
<footer>
<p>
For more info, visit
<a href="https://sudo-self.github.io/ytr.py/" target="_blank">ytr.py</a>
</p>
</footer>
</body>
</html>