Skip to content

Commit

Permalink
Merge remote-tracking branch 'github-pull/52/head'
Browse files Browse the repository at this point in the history
  • Loading branch information
luke-jr committed Dec 20, 2024
2 parents c4a7b3d + c6d0568 commit a8375b7
Show file tree
Hide file tree
Showing 7 changed files with 20 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/datum_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -644,7 +644,7 @@ int datum_api_client_dashboard(struct MHD_Connection *connection) {
}
}

sz += snprintf(&output[sz], max_sz-1-sz, "</TABLE><BR><CENTER>Total active hashrate estimate: %.2f Th/s</CENTER>", thr);
sz += snprintf(&output[sz], max_sz-1-sz, "</TABLE><p class=\"table-footer\">Total active hashrate estimate: %.2f Th/s</p>", thr);
sz += snprintf(&output[sz], max_sz-1-sz, "<script>function sendPostRequest(url, data){fetch(url,{method:'POST',headers:{'Content-Type':'application/json'},body:JSON.stringify(data)});}</script>");
sz += snprintf(&output[sz], max_sz-1-sz, "%s", www_foot_html);

Expand Down
10 changes: 10 additions & 0 deletions www/assets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,11 @@ td:not(.label) {
background-color: black;
}

.table-footer {
text-align: center;
margin-top: 30px;
}

@media (min-width: 1100px) {
.table-wrapper {
flex-wrap: nowrap;
Expand All @@ -138,3 +143,8 @@ td:not(.label) {
.fixed-width {
font-family: "Courier New", Courier, monospace;
}

.note {
text-align: center;
font-size: small;
}
1 change: 1 addition & 0 deletions www/clients_top.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<title>DATUM Gateway Status</title>
<link rel="icon" type="image/x-icon" href="/assets/icons/favicon.ico">
<link rel="stylesheet" type="text/css" href="./assets/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head>
<body>
<div class="container">
Expand Down
3 changes: 2 additions & 1 deletion www/coinbaser_top.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<title>DATUM Gateway Status</title>
<link rel="icon" type="image/x-icon" href="/assets/icons/favicon.ico">
<link rel="stylesheet" type="text/css" href="./assets/style.css">
<style type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.table-wrapper {
justify-content: center;
}
Expand Down
3 changes: 1 addition & 2 deletions www/foot.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
</div>
</div>
</div>
<BR>
<CENTER><SMALL>Note: This page does not automatically refresh</SMALL></CENTER>
<p class="note">Note: This page does not automatically refresh</p>
</body>
</html>
6 changes: 3 additions & 3 deletions www/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<title>DATUM Gateway Status</title>
<link rel="icon" type="image/x-icon" href="/assets/icons/favicon.ico">
<link rel="stylesheet" type="text/css" href="./assets/style.css">
<style type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.table-wrapper {
justify-content: center;
}
Expand Down Expand Up @@ -170,7 +171,6 @@ <h2>Current Stratum Job</h2>
</div>
</div>
</div>
<BR>
<CENTER><SMALL>Note: This page does not automatically refresh</SMALL></CENTER>
<p class="note">Note: This page does not automatically refresh</p>
</body>
</html>
3 changes: 2 additions & 1 deletion www/threads_top.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@
<title>DATUM Gateway Status</title>
<link rel="icon" type="image/x-icon" href="/assets/icons/favicon.ico">
<link rel="stylesheet" type="text/css" href="./assets/style.css">
<style type="text/css">
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.table-wrapper {
justify-content: center;
}
Expand Down

0 comments on commit a8375b7

Please sign in to comment.