54 lines
1.5 KiB
Plaintext
54 lines
1.5 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Big Tim</title>
|
|
<style>
|
|
.blockchain_infos {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
.blockchain_info {
|
|
margin: 20px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>Welcome to Blockchain Time</h1><p>A.K.A. Big Tim</p>
|
|
<div>
|
|
<h2>Convert to Blockchain Time</h2>
|
|
<h3>Yay!</h3>
|
|
<form id="form" method="GET" action="to_blocktime">
|
|
<label for="input_datetime">Input DateTime (in UTC only currently)</label>
|
|
<input type="datetime-local" id="input_datetime" name="input_datetime">
|
|
</form>
|
|
</div>
|
|
<div>
|
|
<h2>Convert from Blockchain Time</h2>
|
|
<h3>Booo</h3>
|
|
<p>why are you going this way??? Don't you know your blocktimes??</p>
|
|
...
|
|
</div>
|
|
<div class="cur_blocks">
|
|
<h2>Current Block Heights and Times</h2>
|
|
<div class="blockchain_infos">
|
|
{% for bi in blockchain_infos %}
|
|
<div class="blockchain_info">
|
|
<h3>{{ bi[0] }}</h3>
|
|
<p>Blockheight: {{ bi[1].latest_block_height }}</p>
|
|
<p>Time Seen: {{ bi[1].latest_block_time }}
|
|
</div>
|
|
{% endfor %}
|
|
|
|
</div>
|
|
<form action="update_blockchains">
|
|
<input type="submit" value="Update Blockchain Information" />
|
|
</form>
|
|
<p>Pressing the above button might take some time... or it might crash the appliaction...
|
|
or it'll do what you want... you won't know till you press it.</p>
|
|
|
|
|
|
{{ __tera_context }}
|
|
</body>
|
|
</html>
|