forked from sirhorseyinfo/sirhorseyinfo.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.html
73 lines (71 loc) · 2.86 KB
/
settings.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Horse | Definition, Breeds, Pictures, Evolution, & Facts | Britannica</title>
<link rel="icon" type="image/x-icon" href="https://www.britannica.com/favicon.png">
<link rel="stylesheet" href="style.css">
<link rel="stylesheet" href="special.css">
</head>
<body>
<div class="header">
<div class="main-title">
<h1>Unblocked Games</h1>
</div>
<div class="category">
<a href="category/runner/index.html">Runner</a>
<a href="category/stickman/index.html">Stickman</a>
</div>
<div class="search-btn">
<a href="search/new.html"><h2>🔎</h2></a>
</div>
</div>
<p>Website Look</p>
<hr>
<div>
<button id="lookClever">Clever</button>
<button id="lookCanvas">Canvas</button>
<button id="lookDefault">Default</button>
<button id="lookClassroom">Google Classroom</button>
<button id="lookDocs">Google Docs</button>
</div>
<script>
const lookStyles = {
"lookClever": {
title: "Clever | Portal",
favicon: "https://assets.clever.com/oauth/62839f373c357da633e3bc67fdb79e440d9d4261/favicon.ico?1"
},
"lookCanvas": {
title: "Dashboard",
favicon: "https://du11hjcvx0uqb.cloudfront.net/dist/images/favicon-e10d657a73.ico"
},
"lookDefault": {
title: "Horse | Definition, Breeds, Pictures, Evolution, & Facts | Britannica",
favicon: "https://www.britannica.com/favicon.png"
},
"lookClassroom": {
title: "Home",
favicon: "https://upload.wikimedia.org/wikipedia/commons/thumb/1/19/Google_Classroom_Logo.svg/2372px-Google_Classroom_Logo.svg.png"
},
"lookDocs": {
title: "Horse Essay - Google Docs",
favicon: "imgs/google-docs.png"
}
};
function updateLook(style) {
document.title = lookStyles[style].title;
const link = document.querySelector("link[rel*='icon']") || document.createElement('link');
link.type = 'image/x-icon';
link.rel = 'icon';
link.href = lookStyles[style].favicon;
document.getElementsByTagName('head')[0].appendChild(link);
}
document.getElementById('lookClever').addEventListener('click', () => updateLook('lookClever'));
document.getElementById('lookCanvas').addEventListener('click', () => updateLook('lookCanvas'));
document.getElementById('lookDefault').addEventListener('click', () => updateLook('lookDefault'));
document.getElementById('lookClassroom').addEventListener('click', () => updateLook('lookClassroom'));
document.getElementById('lookDocs').addEventListener('click', () => updateLook('lookDocs'));
</script>
</body>
</html>