-
Notifications
You must be signed in to change notification settings - Fork 5
/
bitStoryOnline.html
91 lines (79 loc) · 4.07 KB
/
bitStoryOnline.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html>
<head>
<meta content="text/html;charset=utf-8" http-equiv="Content-Type" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Bit Story Online</title>
<link rel="stylesheet" href="./bootstrap/dist/css/bootstrap.min.css" />
<script src="./bootstrap/dist/js/bootstrap.min.js"></script>
<script src="https://d3js.org/d3.v4.min.js" type="text/javascript"></script>
<script src="https://unpkg.com/[email protected]/viz.js" type="javascript/worker"></script>
<script src="https://unpkg.com/[email protected]/build/d3-graphviz.min.js" type="text/javascript"></script>
<script src="/socket.io/socket.io.js" type="text/javascript"></script>
<script src="myvisualize.js" type="text/javascript"></script>
<script type="text/javascript" src="index.js"></script>
<script type="text/javascript" src="sha256.js"></script>
<link type="text/css" rel="stylesheet" href="css/online.css" />
<link type="text/css" rel="stylesheet" href="css/hasher.css" />
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">BitStory</a>
</div>
<div class="navbar-header">
<a class="navbar-brand" href="#">TODO: Link for bitstory online</a>
</div>
</div>
</nav>
<div id="main">
<div id="hasher" class="container margin-top" >
<div id="loginbox" class=" margin-top mainbox col-md-6 col-md-offset-3 col-sm-8 col-sm-offset-2">
<div class="panel panel-info" >
<div class="panel-heading">
<div class="panel-title center">BitStory</div>
</div>
<div style="padding-top:30px" class="panel-body" >
<div class="input-group margin-bottom">
<span class="input-group-addon">Miner Name </span>
<input id="miner" type="text" class="form-control" placeholder="Enter Your Name">
</div>
<div class="input-group margin-bottom">
<span class="input-group-addon">Parent Hash </span>
<input id="parent" type="text" class="form-control" placeholder="Enter Parent Hash">
</div>
<div class="input-group margin-bottom">
<span class="input-group-addon">New Word </span>
<input id="word" type="text" class="form-control" placeholder="BitStory">
</div>
<div class="input-group margin-bottom">
<span class="input-group-addon">Nonce </span>
<input id="nonce" type="number" class="form-control">
</div>
<div class="btn-group btn-group-justified margin-bottom">
<div id="decrement" class="btn btn-primary">Decrement</div>
<div id="increment" class="btn btn-primary">Increment</div>
<div id="random" class="btn btn-primary">Random</div>
</div>
<div id="auto" >
<div class="input-group margin-bottom">
<span class="input-group-addon ">Difficulty </span>
<input type="number" id="difficulty" class="form-control" placeholder="Enter difficulty level"/>
</div>
<button id="auto-button" class="btn btn-primary btn-block">Auto Mine</button>
</div>
<div class="alert alert-success">
<div id="hash" style="text-align: center;" > </div>
</div>
<div class="btn-group btn-group-justified margin-bottom">
<div id="publish" class="btn btn-primary">Next Block</div>
</div>
</div>
</div>
</div>
</div>
<div id="graph" style="text-align: center;"></div>
</div>
</body>
</html>