-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
96 lines (96 loc) · 3.4 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
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
92
93
94
95
96
<html>
<head>
<meta charset="UTF-8">
<link rel="stylesheet" type="text/css" href="style.css">
<script src="main.js"></script>
</head>
<body>
<h1>ORAM visualizer</h1>
<ul class="flex-container horizontal-container">
<li class="panel">
<div>
<a>Algorithm View</a>
<select class="pull-right" id="algorithm-selector">
<option value="none">None</option>
<option value="trivial">Trivial ORAM</option>
<option value="square-root">Square Root ORAM</option>
<option value="binary-tree">Binary Tree ORAM</option>
<option value="custom">Custom...</option>
</select>
</div>
<textarea id="editor" disabled></textarea>
</li>
<li class="panel" id="logical-panel">
<a>Logical View</a>
<div class="logical-view tree disabled" id="tree"></div>
<div class="logical-view disabled" id="square-root">
<div>
<span>
<p>Permuted</p>
</span>
<div class="bucket" id="permuted"></div>
</div>
<div>
<span>
<p>Shelter</p>
</span>
<div class="bucket" id="shelter"></div>
</div>
</div>
<div class="logical-view" id="none">Not used by this algorithm.</div>
</li>
<li class="panel" id="memory-panel">
<a>Memory View</a>
<input class="input-small small-text pull-right" id="memory-size" type="number" min="32" max="4096" step="32" value="32">
<div class="bucket" id="memory">
</div>
<div id="statistics">
<table>
<tr>
<td>Reads</td>
<td class="align-right"><a id="total-reads">0</a></td>
</tr>
<tr>
<td></td>
<td class="align-right"><a id="percent-reads">0</a>%</td>
</tr>
<tr>
<td>Writes</td>
<td class="align-right"><a id="total-writes">0</a></td>
</tr>
<tr>
<td></td>
<td class="align-right"><a id="percent-writes">0</a>%</td>
</tr>
<tr>
<td>Total</td>
<td class="align-right" id="statistics-total"><a id="total-accesses">0</a></td>
</tr>
</table>
</div>
<input type="checkbox" id="hide-memory-checkbox">
<label for="hide-memory-checkbox">Hide memory contents</label>
</li>
</ul>
<li class="panel" id="simulation-panel">
Test:
<select id="testcase-selector">
<option value="add_retrieve">Add/retrieve integers</option>
<option value="sum">Sum of 8 integers</option>
<option value="sort">Sort 16 integers</option>
<option value="custom">Custom...</option>
</select>
<button type="button" id="run-button">Run</button>
<a id="status"></a>
<div class="pull-right" id="speed-slider-container">
<a>Speed:</a>
<input type="range" min="1" max="100" value="50" class="slider" id="speed-slider">
</div>
</li>
<iframe class = "hidden" id='algorithm-frame' src='worker.html'></iframe>
<iframe class = "hidden" id='test-frame' src='worker.html'></iframe>
<footer>
Created by Olav Sortland Thoresen as preparation for master's thesis at <a href="https://ntnu.edu">NTNU</a>.
</footer>
</body>
</html>