Merge remote-tracking branch 'github-pull/52/head'

This commit is contained in:
Luke Dashjr 2024-12-20 22:42:58 +00:00
commit a8375b7317
No known key found for this signature in database
GPG Key ID: A291A2C45D0C504A
7 changed files with 20 additions and 8 deletions

View File

@ -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, "<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); sz += snprintf(&output[sz], max_sz-1-sz, "%s", www_foot_html);

View File

@ -119,6 +119,11 @@ td:not(.label) {
background-color: black; background-color: black;
} }
.table-footer {
text-align: center;
margin-top: 30px;
}
@media (min-width: 1100px) { @media (min-width: 1100px) {
.table-wrapper { .table-wrapper {
flex-wrap: nowrap; flex-wrap: nowrap;
@ -138,3 +143,8 @@ td:not(.label) {
.fixed-width { .fixed-width {
font-family: "Courier New", Courier, monospace; font-family: "Courier New", Courier, monospace;
} }
.note {
text-align: center;
font-size: small;
}

View File

@ -5,6 +5,7 @@
<title>DATUM Gateway Status</title> <title>DATUM Gateway Status</title>
<link rel="icon" type="image/x-icon" href="/assets/icons/favicon.ico"> <link rel="icon" type="image/x-icon" href="/assets/icons/favicon.ico">
<link rel="stylesheet" type="text/css" href="./assets/style.css"> <link rel="stylesheet" type="text/css" href="./assets/style.css">
<meta name="viewport" content="width=device-width, initial-scale=1">
</head> </head>
<body> <body>
<div class="container"> <div class="container">

View File

@ -5,7 +5,8 @@
<title>DATUM Gateway Status</title> <title>DATUM Gateway Status</title>
<link rel="icon" type="image/x-icon" href="/assets/icons/favicon.ico"> <link rel="icon" type="image/x-icon" href="/assets/icons/favicon.ico">
<link rel="stylesheet" type="text/css" href="./assets/style.css"> <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 { .table-wrapper {
justify-content: center; justify-content: center;
} }

View File

@ -1,7 +1,6 @@
</div> </div>
</div> </div>
</div> </div>
<BR> <p class="note">Note: This page does not automatically refresh</p>
<CENTER><SMALL>Note: This page does not automatically refresh</SMALL></CENTER>
</body> </body>
</html> </html>

View File

@ -5,7 +5,8 @@
<title>DATUM Gateway Status</title> <title>DATUM Gateway Status</title>
<link rel="icon" type="image/x-icon" href="/assets/icons/favicon.ico"> <link rel="icon" type="image/x-icon" href="/assets/icons/favicon.ico">
<link rel="stylesheet" type="text/css" href="./assets/style.css"> <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 { .table-wrapper {
justify-content: center; justify-content: center;
} }
@ -170,7 +171,6 @@
</div> </div>
</div> </div>
</div> </div>
<BR> <p class="note">Note: This page does not automatically refresh</p>
<CENTER><SMALL>Note: This page does not automatically refresh</SMALL></CENTER>
</body> </body>
</html> </html>

View File

@ -5,7 +5,8 @@
<title>DATUM Gateway Status</title> <title>DATUM Gateway Status</title>
<link rel="icon" type="image/x-icon" href="/assets/icons/favicon.ico"> <link rel="icon" type="image/x-icon" href="/assets/icons/favicon.ico">
<link rel="stylesheet" type="text/css" href="./assets/style.css"> <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 { .table-wrapper {
justify-content: center; justify-content: center;
} }