-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
280 lines (250 loc) · 13.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
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<title>YT Thumbnail Maker</title>
<link rel="icon" href="favicon.png">
<script src="//html2canvas.hertzen.com/dist/html2canvas.min.js"></script>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Aleo:ital@1&family=Poppins:wght@700&display=swap"
rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
<script src="scripts/jquery-3.7.1.min.js"></script>
<link rel="stylesheet" href="css/style2.css">
<link rel="stylesheet" href="css/custom.css">
</head>
<body onload="checkLogoCookie()">
<nav class="navbar bg-light fixed-top">
<div class="container-fluid">
<a class="navbar-brand" href="#"> <img src="assets/ytthmb.svg" style="width: 200px;" alt="YT Thumbnail Maker"></a>
<button class="navbar-toggler" type="button" data-bs-toggle="offcanvas" data-bs-target="#offcanvasNavbar"
aria-controls="offcanvasNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="offcanvas offcanvas-end" tabindex="-1" id="offcanvasNavbar" aria-labelledby="offcanvasNavbarLabel">
<div class="offcanvas-header">
<h5 class="offcanvas-title" id="offcanvasNavbarLabel">
<img src="logo.png" style="width: 200px;">
</h5>
<button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="Close"></button>
</div>
<div class="offcanvas-body">
<ul class="navbar-nav justify-content-end flex-grow-1 pe-3">
<li class="nav-item">
<h5>Settings</h5>
</li>
<li class="nav-item">
<label for="logoCheckbox">Show Logo:</label>
<input type="checkbox" id="logoCheckbox" onclick="showLogo()" checked>
</li>
<li class="nav-item mt-4">
<h5>Help</h5>
</li>
</ul>
</div>
<div class="mt-5 p-4">
<h5>Reset Changes</h5>
<button class="btn btn-outline-danger" onclick="location.reload();"><img src="assets/reset-danger.svg" alt
height="24"> Reset</button>
</div>
<div class="pb-4 px-4">
Powered by <a href="https://github.com/KevDoy/ytThumbnailMaker">YT Thumbnail Maker</a> v1.1
<br>
<small>© 2024 YT Thumbnail Maker. All Rights Reserved.</small>
</div>
</div>
</div>
</nav>
<div class="container d-lg-none mt-4">
<div class="row">
<div style="padding: 0 15px">
<h3 class="mt-5">Incompatible</h3>
<br> This experience is not available on your browser or device.
<br>
<small>Please try again on a desktop or laptop computer.</small>
<br>
<br>
<small>The minimum screen/window width required is 1000px.</small>
</div>
</div>
</div>
<div class="container d-none d-lg-block">
<div class="row">
<div class="col-12">
<div id="previewarea" class="previewarea bg-light">
<p class="text-center">
Preview
</p>
<div id="content" class="smallscale" data-bs-toggle="modal" data-bs-target="#backgroundSelect">
<div id="afterthis"></div>
<div id="content-container"
style="background: radial-gradient(circle at left, rgba(19,122,197,0.7) 0%, rgba(255,255,255,0) 100%), url('background-default.jpg');">
<div class="content-text" data-bs-toggle="modal" data-bs-target="#textSelect"><span class="reptitle"
id="reptitle">Main Title</span>
<br>
<span class="dashtitle" id="dashtitle">Subtitle</span>
</div>
</div>
<img src="logo.png" id="canvasLogo" class="bclogo-float" height="200">
<div class="grad-float"
style="width:1920px; height:1080px; background: radial-gradient(circle at left, rgba(22,80,137,0.8) 0%, rgba(0,0,0,0) 50%, rgba(0, 0, 0,0) 100%); mix-blend-mode: normal;">
</div>
</div>
<br>
</div>
</div>
</div>
<div class="row mt-4 text-center" style="max-width: 800px; margin: 0 auto; padding-left: 20px;">
<div class="col-4">
<button onclick="$('#bgSelector').show();" class="btn btn-outline-primary" data-bs-toggle="modal"
data-bs-target="#backgroundSelect"><img src="assets/image-blue.svg" alt height="24"> Select
Background</button>
</div>
<div class="col-4">
<button class="btn btn-outline-primary" data-bs-toggle="modal" data-bs-target="#textSelect"><img
src="assets/edit-blue.svg" alt height="24">
Customize
text</button>
</div>
<div class="col-4">
<button class="btn btn-primary" id="download-page-as-image"><img src="assets/download-white.svg" alt
height="24"> Save Thumbnail</button>
</div>
</div>
</div>
</div>
<br>
<div>
<table style="margin: 0 auto; text-align: center;">
<tr>
<td>
</td>
<td>
<span style="font-family: 'Aleo', sans-serif; font-size: 16px; text-align: center;">
<br>
</span>
</td>
<td>
<span style="font-family: 'Aleo', sans-serif; font-size: 16px; text-align: center;">
<br>
</span>
</td>
</tr>
<!-- <tr>
<td>
<label for="imagecorrectcheck">Brighten Image?</label>
<input class="imagecorrectcheck" type="checkbox" name="imagecorrectcheck" value="1" />
</td>
</tr>-->
</table>
</div>
<!-- Background Modal -->
<div class="modal fade" id="backgroundSelect" tabindex="-1" aria-labelledby="backgroundSelectLabel"
aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="backgroundSelectLabel">Select Background</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<h4 style="font-family: 'Poppins', sans-serif; font-size: 16px">Premade Backgrounds</h4>
<div id="bgSelectorImages">
<img src="backgrounds/1.jpg" onclick="bgImageSwap('backgrounds/1.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/2.jpg" onclick="bgImageSwap('backgrounds/2.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/3.jpg" onclick="bgImageSwap('backgrounds/3.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/4.jpg" onclick="bgImageSwap('backgrounds/4.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/5.jpg" onclick="bgImageSwap('backgrounds/5.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/6.jpg" onclick="bgImageSwap('backgrounds/6.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/7.jpg" onclick="bgImageSwap('backgrounds/7.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/8.jpg" onclick="bgImageSwap('backgrounds/8.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/9.jpg" onclick="bgImageSwap('backgrounds/9.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/10.jpg" onclick="bgImageSwap('backgrounds/10.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/11.jpg" onclick="bgImageSwap('backgrounds/11.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/12.jpg" onclick="bgImageSwap('backgrounds/12.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/13.jpg" onclick="bgImageSwap('backgrounds/13.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/14.jpg" onclick="bgImageSwap('backgrounds/14.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/15.jpg" onclick="bgImageSwap('backgrounds/15.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/16.jpg" onclick="bgImageSwap('backgrounds/16.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/17.jpg" onclick="bgImageSwap('backgrounds/17.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/18.jpg" onclick="bgImageSwap('backgrounds/18.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/19.jpg" onclick="bgImageSwap('backgrounds/19.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/20.jpg" onclick="bgImageSwap('backgrounds/20.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/21.jpg" onclick="bgImageSwap('backgrounds/21.jpg')" data-bs-dismiss="modal">
<!-- Additional Backgrounds -->
<!--
<img src="backgrounds/22.jpg" onclick="bgImageSwap('backgrounds/22.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/23.jpg" onclick="bgImageSwap('backgrounds/23.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/24.jpg" onclick="bgImageSwap('backgrounds/24.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/25.jpg" onclick="bgImageSwap('backgrounds/25.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/26.jpg" onclick="bgImageSwap('backgrounds/26.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/27.jpg" onclick="bgImageSwap('backgrounds/27.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/28.jpg" onclick="bgImageSwap('backgrounds/28.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/29.jpg" onclick="bgImageSwap('backgrounds/29.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/30.jpg" onclick="bgImageSwap('backgrounds/30.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/31.jpg" onclick="bgImageSwap('backgrounds/31.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/32.jpg" onclick="bgImageSwap('backgrounds/32.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/33.jpg" onclick="bgImageSwap('backgrounds/33.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/34.jpg" onclick="bgImageSwap('backgrounds/34.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/35.jpg" onclick="bgImageSwap('backgrounds/35.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/36.jpg" onclick="bgImageSwap('backgrounds/36.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/37.jpg" onclick="bgImageSwap('backgrounds/37.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/38.jpg" onclick="bgImageSwap('backgrounds/38.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/39.jpg" onclick="bgImageSwap('backgrounds/39.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/40.jpg" onclick="bgImageSwap('backgrounds/40.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/41.jpg" onclick="bgImageSwap('backgrounds/41.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/42.jpg" onclick="bgImageSwap('backgrounds/42.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/43.jpg" onclick="bgImageSwap('backgrounds/43.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/44.jpg" onclick="bgImageSwap('backgrounds/44.jpg')" data-bs-dismiss="modal">
<img src="backgrounds/45.jpg" onclick="bgImageSwap('backgrounds/45.jpg')" data-bs-dismiss="modal">
-->
</div>
<br><br>
<h4 style="font-family: 'Poppins', sans-serif; font-size: 16px">Using a custom background?</h4>
<input id="files" type="file" class="btn btn-outline-primary">
<br><br><br>
<h4 style="font-family: 'Poppins', sans-serif; font-size: 16px">Existing YouTube Thumbnail</h4>
<input placeholder="YouTube Video URL" class="form-control" id="ytURLImport"><button type="button"
class="btn btn-outline-primary mt-1" data-bs-dismiss="modal"
onclick="youtubeUrlParser(document.getElementById('ytURLImport').value)">Import from YouTube</button>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<!-- Modal -->
<div class="modal fade" id="textSelect" tabindex="-1" aria-labelledby="textSelectLabel" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="textSelectLabel">Customize Text</h5>
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
</div>
<div class="modal-body">
<label for="mainTitleSelect">Main Title</label>
<input id="mainTitleSelect" class="form-control" placeholder="Main Title">
<div class="form-text">What is the Main or Series Title?</div>
<br>
<label for="subTitleSelect">Subtitle</label>
<input id="subTitleSelect" class="form-control" placeholder="Subtitle">
<div class="form-text">Example: Part 1, Part 2, etc...</div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-bs-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary" data-bs-dismiss="modal" onclick="replaceText()">Save</button>
</div>
</div>
</div>
</div>
</div>
<script src="scripts/script.js"></script>
<script src="https://cdn.jsdelivr.net/npm/js-cookie@3.0.5/dist/js.cookie.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.bundle.min.js"
integrity="sha384-YvpcrYf0tY3lHB60NNkmXc5s9fDVZLESaAA55NDzOxhy9GkcIdslK1eN7N6jIeHz"
crossorigin="anonymous"></script>
</body>
</html>