-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathtutoring.html
50 lines (43 loc) · 1.54 KB
/
tutoring.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>Google</title>
<meta content="DevHub" property="og:title" />
<meta name="keywords" content="devhub, dev hub, school games, games, unblocker, unblock, unblocked games, proxy, proxy site, proxies. ultraviolet, ultraviolet proxy, thedevs, unblockedgames, ubg, school games, school proxy" />
<link rel="shortcut icon" href="https://www.google.com/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="/css/main.css">
<script src="./uv/uv.bundle.js"></script>
<script src="./uv/uv.config.js"></script>
</head>
<body>
<br>
<div class="games hvr-hang">
</div>
<script src="/js/main.js" type="module"></script>
</body>
</html>
<script>
if (document.querySelector('.games')) {
fetch('./json/apps.json')
.then(res => res.json())
.then(games => {
games.forEach(app => {
const element = document.createElement('div');
element.classList = 'game hvr-shadow';
element.innerHTML = `<img src="${app.image}"><h3>${app.name}</h3>`;
document.querySelector('.games').appendChild(element);
element.addEventListener('mouseenter', () => {
element.classList.add('hvr-shadow-hover');
});
element.addEventListener('mouseleave', () => {
element.classList.remove('hvr-shadow-hover');
});
element.addEventListener('click', () => {
devhub.openProxy(app.url);
});
})
}).catch(e => {
console.log(e);
})
}
</script>