This commit is contained in:
Pijus Kamandulis
2025-05-27 00:51:58 +03:00
commit dabfce5fcd
5 changed files with 594 additions and 0 deletions

48
templates/index.html Normal file
View File

@@ -0,0 +1,48 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8" />
<title>Share Stats</title>
<style>
body {
font-family: sans-serif;
background: #111;
color: #eee;
text-align: center;
padding: 2em;
}
table {
margin: auto;
border-collapse: collapse;
}
th,
td {
padding: 0.5em 1em;
border: 1px solid #444;
}
th {
background-color: #222;
}
tr:nth-child(even) {
background-color: #1a1a1a;
}
</style>
</head>
<body>
<h1>🌟 ckpool Share Stats</h1>
<table>
<tr>
<th>Range</th>
<th>Highest Share Diff</th>
<th>Time</th>
</tr>
{{range .}}
<tr>
<td>{{.Label}}</td>
<td>{{.Diff}}</td>
<td>{{.Time}}</td>
</tr>
{{end}}
</table>
</body>
</html>