-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
193 lines (173 loc) · 9.19 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
<!DOCTYPE html>
<html lang="en">
<head>
<title>YouTube Thumbnail Downloader</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Common Tags -->
<meta content='#ffffff' name='theme-color' />
<meta name="google-site-verification" content="0yDUo8-uyoewyaf5iw2w1qXf2T0qL-hF4cMY2Ji9STI" />
<meta name="keywords"
content="YouTube, YouTube Thumbnail Downloader, Thumbnail Downloader, Thumbnails, Download Thumbnails, Download YouTube Thumbails, YouTube Video Thumbnail Downloader, Youtube Thumbnail Downloader, YT, YT Thumbnail Downloader, Youtube Thumbnail Downloader HD, YouTube Thumbnail Downloader Online, Clean and Simple YouTube Thumbnail Downloader, CLean and Simple, YouTube Thumbnails, YouTube HD Thumbnail Downloader, High Definition Thumbnail Downoader, YT Thumbnail Research, Download YouTube Thumbnail, Download YouTube Thumbnails Easily, Harsh Trivedi">
<!-- Open Graph general (Facebook, Pinterest & Google+) -->
<meta property="og:title" content="YouTube Thumbnail Downloader" />
<meta property="og:description"
content="Download YouTube video thumbnails with ease. Free, Clean & Simple YouTube Thumbnail Downloader for you." />
<meta property="og:image"
content="https://raw.github.com/harsh98trivedi/YouTube-Thumbnail-Downloader/master/images/meta.jpg" />
<meta property="og:url" content="https://harsh98trivedi.github.io/YouTube-Thumbnail-Downloader/" />
<meta property="og:site_name" content="YouTube Thumbnail Downloader" />
<meta property="og:locale" content="en_US" />
<meta property="fb:admins" content="245221532650178" />
<meta property="og:type" content="website" />
<meta content='https://www.facebook.com/TheHarshTrivedi' property='article:author' />
<meta property="og:url" content="https://harsh98trivedi.github.io/YouTube-Thumbnail-Downloader/" />
<!-- Search Engine -->
<meta property="description"
content="Download YouTube video thumbnails with ease. Free, Clean & Simple YouTube Thumbnail Downloader for you." />
<meta property="image"
content="https://raw.github.com/harsh98trivedi/YouTube-Thumbnail-Downloader/master/images/meta.jpg" />
<!-- Schema.org for Google -->
<meta itemprop="name" content="YouTube Thumbnail Downloader" />
<meta itemprop="description"
content="Download YouTube video thumbnails with ease. Free, Clean & Simple YouTube Thumbnail Downloader for you." />
<meta itemprop="image"
content="https://raw.github.com/harsh98trivedi/YouTube-Thumbnail-Downloader/master/images/meta.jpg" />
<!-- Twitter -->
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:title" content="YouTube Thumbnail Downloader" />
<meta property="twitter:description"
content="Download YouTube video thumbnails with ease. Free, Clean & Simple YouTube Thumbnail Downloader for you." />
<meta property="twitter:creator" content="@harsh98trivedi" />
<meta property="twitter:creator:id" content="@harsh98trivedi" />
<meta property="twitter:image:src"
content="https://raw.github.com/harsh98trivedi/YouTube-Thumbnail-Downloader/master/images/meta.jpg" />
<meta property="twitter:image" content="YouTube Thumbnail Downloader | Download YouTube thumbnails with ease." />
<link rel='icon' type='image/x-icon' href='images/favicon.png' />
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/style.css">
<link href="https://fonts.googleapis.com/css?family=Dosis:500" rel="stylesheet">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-70447982-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-70447982-2');
</script>
</head>
<body>
<nav class="navbar container-fluid site-gradient text-center" id="nav">
<a style="outline:none;" id="header-links"
href="https://harsh98trivedi.github.io/YouTube-Thumbnail-Downloader/">
<h1 id="header">YOUTUBE THUMBNAIL DOWNLOADER</h1>
</a>
</nav>
<br>
<div class="container text-center" id="main">
<div id="result" class="hidden">
<!-- THUMBNAIL PREVIEW -->
<img class="shadow" id="thumbnailpreview" src="images/placeholder.gif"
onerror="this.style.display='none'" />
<!-- THUMBNAIL PREVIEW -->
<hr style="width:50vw;">
<!-- INPUT AREA -->
<div class="input-group">
<input id="ytlink" autofocus type="text" class="form-control shadow"
placeholder="ENTER A YOUTUBE VIDEO URL HERE" spellcheck="false"
onsubmit="youtube_thumbnail_downloader(ytlink.value);ShowMain()" autocomplete="off" />
</div>
<button id="thumbdloadbtn" class="thumbdloadbtn site-gradient" type="button"
onclick="youtube_thumbnail_downloader(ytlink.value);ShowMain()">FETCH</button>
<!-- INPUT AREA -->
<!-- Download Buttons -->
<div id="download-buttons">
<a target="_blank" id="thumbnailhq" download><button class="thumbdloadbtn site-gradient shadow">HIGH
QUALITY</button></a>
<br>
<a target="_blank" id="thumbnailmq" download><button class="thumbdloadbtn site-gradient shadow">MEDIUM
QUALITY</button></a>
<br>
<a target="_blank" id="thumbnaillq" download><button class="thumbdloadbtn site-gradient shadow">LOW
QUALITY</button></a>
<br>
<a onclick="location.reload();"><button
class="thumbdloadbtn site-gradient shadow">RELOAD</button></a>
</div>
<!-- Download Buttons -->
</div>
</div>
<footer id="footer" class="site-gradient container-fluid text-center">
<div id="social-media">
<!-- Social Media Icons -->
<a href="https://www.facebook.com/harsh98trivedi" target="_blank" id="social-media-icons">
<img id="social" src="images/svg/facebook.svg" alt="Facebook"></img>
</a>
<a href="https://www.twitter.com/harsh98trivedi" target="_blank" id="social-media-icons">
<img id="social" src="images/svg/twitter.svg" alt="Twitter"></img>
</a>
<a href="https://www.youtube.com/harsh98trivedi" target="_blank" id="social-media-icons">
<img id="social" src="images/svg/youtube.svg" alt="YouTube"></img>
</a>
<a href="https://www.instagram.com/harsh98trivedi" target="_blank" id="social-media-icons">
<img id="social" src="images/svg/instagram.svg" alt="Instagram"></img>
</a>
<a href="https://www.reddit.com/u/harshtrivedi" target="_blank" id="social-media-icons">
<img id="social" src="images/svg/reddit.svg" alt="Reddit"></img>
</a>
<a href="https://www.github.com/harsh98trivedi" target="_blank" id="social-media-icons">
<img id="social" src="images/svg/github.svg" alt="Github"></img>
</a>
<a href="mailto:[email protected]" id="social-media-icons">
<img id="social" src="images/svg/gmail.svg" alt="Email"></img>
</a>
<!-- Social Media Icons -->
</div>
<hr style="background: #ffffff; width: 50vw; opacity: 0.25;">
<p style="display: inline;">Made with <img style="margin-bottom: 0.15rem;" src="images/heart.png"> by <a
target="_blank" href="https://harsh98trivedi.github.io">Harsh Trivedi</a></p>
</footer>
<script src="js/jquery3.3.1.min.js"></script>
<script src="js/thumbnail.js"></script>
<script type="text/javascript">
// Replace source
$('img').error(function () {
$(this).attr('src', '#.png');
});
// Or, hide them
$("img").error(function () {
$(this).hide();
});
</script>
<script>
$('#ytlink').keydown(function (e) {
var keyCode = (e.keyCode ? e.keyCode : e.which);
if (keyCode == 13) {
$('#thumbdloadbtn').trigger('click');
}
});
</script>
<script>
$("#preview div").hide();
$("#preview");
</script>
<script>
var realImage = document.getElementById('thumbnailpreview');
var loadingImage = document.getElementById('loadingImage');
loadingImage.style.display = 'inline';
realImage.style.display = 'none';
// Create new image
var imgPreloader = new Image();
// define onload (= image loaded)
imgPreloader.onload = function () {
realImage.src = imgPreloader.src;
realImage.style.display = 'inline';
loadingImage.style.display = 'none';
};
// set image source
imgPreloader.src = 'images/placeholder.gif';
</script>
</body>