-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
28 lines (26 loc) · 1.03 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
<html>
<head>
<script src="out/goog/base.js" type="text/javascript"></script>
<script src="raftcj.js" type="text/javascript"></script>
<script type="text/javascript">goog.require("raftcj.ui");</script>
<script src="http://cdn.peerjs.com/0.3/peer.js"></script>
<style>
label {
display: inline-block;
width: 150px;}
</style>
</head>
<body>
<div id="cluster"></div>
<label>Command: </label><input type="text" id="cmd-field"></input>
<button id="execute-btn">Execute</button>
<div><label>id</label><span id="id">N/A</span></div>
<div><label>state</label><span id="state">N/A</span></div>
<div><label>fsm</label><span id="fsm">N/A</span></div>
<div><label>commit</label><span id="commit">N/A</span></div>
<div><label>log</label><span id="log">N/A</span></div>
<script type="text/javascript">
window.onload = function() { raftcj.ui.setup_ui();}
</script>
</body>
</html>