-
Notifications
You must be signed in to change notification settings - Fork 55
/
app.html
64 lines (61 loc) · 2.79 KB
/
app.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
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a href="#!/" class="navbar-brand">Blockchain Demo</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<form class="navbar-form navbar-right">
<div class="form-group" ng-if="$root.expertMode">
<label class="navbar-text" for="difficulty">Block difficulty:</label>
<select id="difficulty"
ng-model="$root.difficulty"
ng-options="(value + ' (' + $root.difficultyPrefix(value) + ')') for value in [3,4,5,6,7,8,9,10]"
ng-change="$root.$broadcast('difficulty-change');"
class="form-control">
</select>
</div>
<button type="button"
class="btn btn-default"
ng-if="!$root.expertMode"
ng-click="$root.expertMode = true;">
Enable Expert Mode
</button>
</form>
<ul class="nav navbar-nav navbar-right">
<li ng-class="{active: $root.isActive('/hash')}">
<a href="#!/hash">Hash</a>
</li>
<li ng-class="{active: $root.isActive('/block')}">
<a href="#!/block">Block</a>
</li>
<li ng-class="{active: $root.isActive('/blockchain')}">
<a href="#!/blockchain">Blockchain</a>
</li>
<li ng-class="{active: $root.isActive('/distributed')}">
<a href="#!/distributed">Distributed</a>
</li>
<li ng-class="{active: $root.isActive('/tokens')}">
<a href="#!/tokens">Tokens</a>
</li>
<li ng-class="{active: $root.isActive('/coinbase')}">
<a href="#!/coinbase">Coinbase</a>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" role="button">
Advanced <span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li>
<a href="https://guggero.github.io/cryptography-toolkit/">Cryptography Toolkit</a>
</li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<a ng-if="$root.isActive('/')" href="https://github.com/guggero/blockchain-demo/">
<img src="images/fork-me-on-github-ribbon.png" alt="Fork me on GitHub" class="github-ribbon">
</a>
<div ng-class="$root.$route.current.containerClass" ng-view>
</div>