-
Notifications
You must be signed in to change notification settings - Fork 8
/
index.html
132 lines (112 loc) · 5.33 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
<!DOCTYPE html>
<html lang="en-US">
<head>
<title>Thumbnail-Maker by Hermit-Tools</title>
<meta charset="utf-8">
<meta property="og:title" content="Thumbnail Maker by Hermit Tools" />
<meta property="og:type" content="website" />
<meta property="og:url" content="https://hermit-tools.github.io/Thumbnail-Maker/" />
<meta property="og:image" content="https://hermit-tools.github.io/Thumbnail-Maker/Resources/Icons/htlogo144.png" />
<meta property="og:site_name" content="Thumbnail Maker by Hermit Tools" />
<meta property="og:description"
content="Hermitcraft is one of the most popular Minecraft whitelisted server. This website is aimed for making each and every hermit an automated thumbnail maker." />
<meta name="description"
content="Hermitcraft is one of the most popular Minecraft whitelisted server. This website is aimed for making each and every hermit an automated thumbnail maker." />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="theme-color" content="#FFD500" />
<link rel="canonical" href="https://hermit-tools.github.io/Thumbnail-Maker/" />
<link rel="stylesheet" href="./style.css">
<link rel="manifest" href="manifest.webmanifest">
<link rel="icon" type="image/png" href="Resources/Icons/htlogo144.png">
<link rel="apple-touch-icon" href="Resources/Icons/htlogo180.png">
<link href="https://fonts.googleapis.com/css2?family=Berkshire+Swash&family=Lato&display=swap" rel="stylesheet">
</head>
<body>
<header>
<h1>Thumbnail Maker</h1>
</header>
<nav>
<a href="../">By Hermit Tools</a>
<a id="show-on-scroll">Thumbnail Maker</a>
<a href="https://github.com/hermit-tools/Thumbnail-Maker/">View Code On GitHub</a>
</nav>
<main>
<ol id="main-list">
<a href="./cubfan135/">
<li class="main-list-item">
<img class="icon" alt="Icon for Cub's Contraption" loading="lazy"
src="Resources/Icons/Cub's Head.png">
<div class="title">Cub's Contraption</div>
<div class="person">cubfan135</div>
</li>
</a>
<a onclick="javascript: notYetMade()">
<li class="main-list-item">
<img class="icon" alt="Icon for TFC's Tool" loading="lazy" src="Resources/Icons/TFC's Icon.svg">
<div class="title">TFC's Tool</div>
<div class="person">TFC's Gaming Channel</div>
</li>
</a>
<a href="./Source/joehills">
<li class="main-list-item">
<img class="icon" alt="Icon for Joey" loading="lazy" src="Resources/Icons/Joe's at.svg">
<div class="title">Joey</div>
<div class="person">JoeHillsTSD</div>
</li>
</a>
</ol>
</main>
<footer>
<a href="../">By Hermit Tools</a>
<a href="https://github.com/hermit-tools/Thumbnail-Maker/">View Code On GitHub</a>
</footer>
<script>
window.onscroll = () => {
const soscroll = document.getElementById('show-on-scroll');
if (soscroll.getBoundingClientRect().top === 10) {
soscroll.style.opacity = 1;
soscroll.parentElement.style.borderBottomWidth = '1px';
let fontSize = getComputedStyle(document.getElementById('show-on-scroll')).getPropertyValue(
'font-size').split('px')[0] * 1;
fontSize > 16 ? soscroll.style.fontSize = `${fontSize - 1}px` : null;
} else {
soscroll.style.opacity = 0;
soscroll.parentElement.style.borderBottomWidth = '0px';
}
}
const mainListItems = document.getElementsByClassName('main-list-item');
for (let i = 0; i < mainListItems.length; i++) {
mainListItems[i].addEventListener('mousedown', mdcTapAnim);
mainListItems[i].addEventListener('touchstart', mdcTapAnim);
}
let sP;
function mdcTapAnim(e) {
if (e.currentTarget.hold) {
return
}
e.currentTarget.hold = true;
let item = e.currentTarget,
i = 0,
mpX = e.clientX - item.getBoundingClientRect().left,
mpY = e.clientY - item.getBoundingClientRect().top;
let theInt = setInterval(() => {
item.style.background =
`radial-gradient(circle at ${mpX}px ${mpY}px, #b1dbff 0px, #b1dbff ${i}%, transparent ${i}%)`;
i >= 100 ? (clearInterval(theInt), setTimeout(() => {item.style.background = '#fff'; item.hold = false}, 500)) : null
i += 3;
}, 5);
}
function notYetMade() {
let theBar = document.createElement('div');
theBar.textContent = 'We have not yet made this tool, but we will soon.';
theBar.classList = "not-yet-made"
document.body.appendChild(theBar);
setTimeout(() => {theBar.style.opacity = '1'}, 1)
setTimeout(() => {
theBar.style.opacity = '0';
setTimeout(() => {document.body.removeChild(theBar)}, 200)
}, 5000)
}
</script>
</body>
</html>