-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
173 lines (149 loc) · 4.39 KB
/
index.html
File metadata and controls
173 lines (149 loc) · 4.39 KB
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Eve Online Server Status</title>
<!-- Topcoat CSS -->
<link id="topcoat" rel="stylesheet" type="text/css"
href="https://cdnjs.cloudflare.com/ajax/libs/topcoat/0.8.0/css/topcoat-mobile-dark.min.css" />
<link rel="stylesheet" href="./src/css/style.css" />
</head>
<body class="subpixel-antialiased text-body" data-bs-theme="dark" data-bs-core="modern">
<main id="demo-container">
<eve-server-status data-augmented-ui="tl-clip br-clip border" class="aug-container"></eve-server-status>
</main>
<template id="eve-server-status-template">
<style>
h1,
h2,
h3,
h4,
h5,
h6 {
font-family: var(--eve-sans-neue-condensed);
}
/* Scoped styles for your component */
table {
width: 100%;
border-collapse: collapse;
}
th,
td {
padding: 0.5em;
}
td {
border: none;
width: 100%;
}
.column-a {
text-align: right;
}
.column-b {
white-space: nowrap;
text-align: left;
min-width: 180px;
}
#server-status-header {
font-weight: bold;
text-transform: uppercase;
text-align: center;
}
#status {
font-size: 16px;
font-weight: bold;
}
#player-count {
font-size: 18px;
font-weight: bold;
}
#version {
font-size: 14px;
font-style: italic;
}
#demo-container {
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: auto;
margin: 0;
font: 12px;
text-align: center;
}
#uptime {
white-space: nowrap;
/* prevent wrapping */
min-width: 12em;
/* adjust width as needed */
display: inline-block;
/* allow width/min-width */
}
/* Add any other styles you want scoped */
</style>
<section data-augmented-ui="tl-clip br-clip inlay">
<h3 class="text-center align-center pt-3" id="loading-indicator">
<span class="spinner-border"></span> Loading Server Status...
</h3>
<table hidden class="table table-borderless table-stripped table-striped-columns table-hover"
data-augmented-ui="tl-clip br-clip none">
<thead>
<tr>
<th colspan="2" id="fw-header">
<hgroup>
<h2>
<slot name="title">Eve Online Server Status</slot>
</h2>
<h4 class="text-secondary">
<slot name="subtitle">SINGULARITY</slot>
</h4>
</hgroup>
</th>
</tr>
</thead>
<tbody data-augmented-ui="tl-clip br-clip border">
<tr>
<td class="text-end">⚡ Server Status : </td>
<td id="status" class="text-start">
<slot name="server-status"></slot>
</td>
</tr>
<tr>
<td class="column-a">👨👩👧👦 Player Count : </td>
<td class="column-b" id="player-count">
<slot name="player-count"></slot>
</td>
</tr>
<tr>
<td class="column-a">⏱ Uptime : </td>
<td class="column-b" id="uptime">
<slot name="uptime"></slot>
</td>
</tr>
<tr>
<td class="column-a">🎰 Version : </td>
<td class="column-b" id="version">
<slot name="version"></slot>
</td>
</tr>
</tbody>
</table>
</section>
<template id="uptime-template">
<span class="text-warning fs-5">
<span class="text-success fs-3" part="hours">00</span>h :
<span class="text-success fs-3" part="minutes">00</span>m :
<span class="text-success fs-3" part="seconds">00</span>s
</span>
</template>
<template id="player-count-template">
<span class="text-info" part="player-count">0</span>
</template>
<template id="server-status-template">
<span part="server-status">Offline 💔</span>
</template>
<template id="version-template">
<span class="text-muted" part="version">n/a</span>
</template>
</template>
<script src="./src/js/script.js"></script>
</body>
</html>