-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
51 lines (46 loc) · 2.1 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<head>
<title>Blockchain Simulator</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<script src="js/lib/snap.svg-min.js" charset="utf-8"></script>
<script src="bundle.js" charset="utf-8"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="settings_modal" class="modal">
<h2> Settings </h2>
Transaction Size (KB) : <input type="number" id="transaction_size" /></br>
Transaction freq (tx/s) : <input type="number" id="transaction_freq" /></br>
Block Size (MB) : <input type="number" id="block_size" /></br>
Block Time (Sec) : <input type="number" id="block_time" /></br>
Node Num : <input type="number" id="node_num" /></br>
Group Num : <input type="number" id="group_num" /></br>
Avg Network Bandwidth (Mbps) : <input type="number" id="network_speed" /></br>
Graph Visible : <input type="checkbox" id="graph_visible" value="0"></br>
Layout :
<select id="layout_type">
<option value="circle">Circle</option>
<option value="random">Random</option>
</select></br>
</br>
<button id="refresh_btn" class="main-btn">Refresh</button>
<button id="cancel_btn" class="secondary-btn">Cancel</button>
</div>
<div class="container">
<h2>Blockchain Simulator</h2>
<button id="settings_btn">Settings</button>
<button id="running_btn" class="secondary-btn">Stop</button><br><br>
<div class="info-text">
<span style="display:none;">Block Height <span id="block_height"></span></span><br>
<span>Throughput <span id="throughput"></span> Tx/s</span><br>
<span>Tx Propagation Latency <span id="tx_prop_latency"></span> msec</span><br>
<span style="display:none;">Best Tx Latency <span id="tx_latency"></span> Sec</span><br>
<span style="display:none;">Worst Tx Latency <span id="worst_tx_latency"></span> Sec</span><br>
<span style="display:none;">Attack Risk <span id="attack_lisk"></span> %</span><br>
</div>
</div>
<div id="graph-area"></div>
<div id="chain_area"></div>
<div style="height:300px;"></div>
<div id="footer" class="footer info-text">
</div>
</body>