-
Notifications
You must be signed in to change notification settings - Fork 0
/
school.html
77 lines (71 loc) · 2.08 KB
/
school.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
cat /priv/redacted.html
<!DOCTYPE html>
<html>
<head>
<title>New Tab</title>
<meta charset="UTF-8">
<style>
html {
background-color: #10121b;
}
* {
color: #eeeeff;
font-family: 'Noto Music', Helvetica, Arial, sans-serif;
font-weight: bold;
font-size: 50px;
}
#flex-container {
display: grid;
flex-wrap: wrap;
grid-template-columns: auto auto auto;
justify-content: center;
}
#flex-container>div:hover {
background-color: rgb(85, 87, 199);
transform: scale(1.2, 1.2);
color: #fff;
}
#title {
text-align: center;
}
#flex-container>div {
background-color: #151826;
display: inline-block;
margin: 10px;
min-width: 40px;
text-align: center;
line-height: 75px;
border-radius: 10px;
font-size: 30px;
padding: 10px;
transition: 0.2s;
cursor: default;
}
</style>
</head>
<body>
<h1 id="title">School New Tab Launcher</h1>
<div id="flex-container">
</div>
<script>
var list = [
{ "name": "RED", "zoom": "", "classroom": "" },
{ "name": "ACT", "zoom": "", "classroom": "" },
{ "name": "EDR", "zoom": "", "classroom": "" },
{ "name": "EDA", "zoom": "", "classroom": "" },
{ "name": "CTE", "zoom": "", "classroom": "" },
{ "name": "DRE", "zoom": "", "classroom": ""}]
for (i = 0; i < list.length; i++) {
var para = document.createElement("div");
para.innerHTML = `
<p>${list[i].name}</p>
<a target="_blank" rel="noopener noreferrer" href="${list[i].zoom}"><img
src="https://raw.githubusercontent.com/PapirusDevelopmentTeam/papirus-icon-theme/7da16ace69efd85f872423687c3544ace78346ba/Papirus/32x32/apps/Zoom.svg" width="64px" height="64px"></a>
<a target="_blank" rel="noopener noreferrer" href="${list[i].classroom}">
<img src="https://cdn.worldvectorlogo.com/logos/google-classroom.svg" width="64px" height="64px">
</a>`
document.getElementById("flex-container").appendChild(para);
}
</script>
</body>
</html>