77 lines
2.5 KiB
HTML
77 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title></title>
|
|
<!-- <link href="css/style.css" rel="stylesheet"> -->
|
|
</head>
|
|
<body class="background">
|
|
<div class="main-container">
|
|
<h1>Node Stats</h1>
|
|
<div class="table-container">
|
|
<table style="box-sizing: border-box; max-height: 100%; width: 100%; table-layout: fixed; border-collapse: collapse;" id='stat-table' >
|
|
<thead>
|
|
<tr style="border-bottom: 1px solid black;">
|
|
<th>stat 1</th>
|
|
<th>stat 2</th>
|
|
<th>stat 3</th>
|
|
<th>stat 4</th>
|
|
<th>stat 5</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody style="box-sizing: border-box; max-height: 100%; overflow-y: scroll;"id='stat-table-body'>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<script src="/app.js" ></script>
|
|
<script>
|
|
const table = document.getElementById('stat-table-body');
|
|
for (var i = 0; i < 30; i++)
|
|
{
|
|
const new_row = document.createElement('tr');
|
|
let row_content = '';
|
|
for (var j = 0; j < 5; j++) {
|
|
row_content += `<td style="text-align: right; padding: 0 4px ; border-top: 1px solid black;">${i + j}</td>`
|
|
}
|
|
new_row.innerHTML = row_content;
|
|
table.appendChild(new_row);
|
|
}
|
|
</script>
|
|
</body>
|
|
<style>
|
|
body {
|
|
margin: 0;
|
|
padding: 0;
|
|
}
|
|
.main-container {
|
|
padding: 6px;
|
|
display: flex;
|
|
align-content: center;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.table-container {
|
|
padding: 6px;
|
|
place-self: center;
|
|
border: 2px solid #000000;
|
|
width: 50%;
|
|
height: 50%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.background {
|
|
background-color: #808080;
|
|
width: 100vw;
|
|
height: 100vh;
|
|
max-height: 100vh;
|
|
max-width: 100vw;
|
|
box-sizing: border-box;
|
|
}
|
|
</style>
|
|
</html>
|