-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
30 lines (30 loc) · 960 Bytes
/
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
<!-- Basic UI for running the demo in the browser -->
<html>
<head>
<title>Sum integers under MPC</title>
<style>
.error {
color: #FF0000;
}
</style>
<script src="https://code.jquery.com/jquery-1.11.1.js"></script>
<script src="client.bundle.js"></script>
</head>
<body>
<h1>Connect JIFF</h1>
<label for="computation_id">Computation ID</label>
<input id="computation_id" value="test"></input>
<br/><br/>
<label for="count">Party Count<label>
<input id="party_count" pattern="[0-9]*" value="2">
<button id="connectButton" onclick="client.connect();">Connect</button>
<br/><br/>
<hr/>
<h1>Sum Numbers under MPC</h1>
<label for="number">Input Number (between 0 and 100)</label>
<input id="number" pattern="[0-9]+">
<button onclick="client.submit();" disabled="disabled" id="button">Sum</button>
<br/>
<div id="output"></div>
</body>
</html>