This repository has been archived by the owner on Oct 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
template.html
executable file
·108 lines (90 loc) · 1.73 KB
/
template.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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>
:: retricord
</title>
<body>
<div class="wrapper">
<div class="header">
<p id="header-text"> :: retricord</p>
</div>
<div class="content-wrapper">
<div class="contents">
<!-- here! -->
</div>
</div>
</div>
</body>
</head>
</html>
<style>
p, h3 {
font-family: Helvetica;
color: white;
}
body {
background-color: #36393F;
}
html, body {
height: 100%;
margin: 0;
}
.header {
height: 10%;
overflow: hidden;
width: 100%;
outline: 1px solid grey;
font-size: 3vmin;
font-weight: bold;
}
.contents {
max-height: 90%;
overflow: auto;
width: 100%;
position: absolute;
bottom: 0;
display: flex;
flex-direction: column-reverse;
}
.content-wrapper {
height: 90%;
}
.wrapper {
height: 100%;
}
.message {
display: block;
padding-left: 6px;
padding-right: 6px;
padding-bottom: 10px;
}
.pfp {
border-radius: 50%;
width: 64px;
height: 64px;
margin-right: 15px;
}
.message p, h3 {
margin-left: 15px;
display: block;
margin: 2px 0 0 0;
}
.dt {
color: black;
}
</style>
<script src="vars.js"></script>
<script>
window.addEventListener("load", (event) => {
document.title = "#" + channel_name + " :: retricord";
document.getElementById("header-text").innerHTML = "#" + channel_name + " :: retricord";
for (var key in vars_dict) {
var elements = document.getElementsByTagName(key);
for (var i = 0; i < elements.length; i++) {
elements[i].innerHTML = vars_dict[key];
}
}
});
</script>