This repository was archived by the owner on Aug 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
50 lines (50 loc) · 1.77 KB
/
index.html
File metadata and controls
50 lines (50 loc) · 1.77 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DCP Example - Triangular Numbers</title>
<link rel="icon" type="image/svg+xml" href="img/favicon.svg" />
<link rel="stylesheet" type="text/css" href="css/index.css" />
<!-- Loads dcp-client into the `window.dcp` object -->
<script src="https://scheduler.distributed.computer/dcp-client/dcp-client.js"></script>
<script src="js/index.js" defer></script>
</head>
<body>
<main>
<h1>Triangular Numbers</h1>
<p>
A triangular number gives the number of objects arranged in an
equilateral triangle. To illustrate here are the first 4 triangular
numbers.
</p>
<img id="illustration" src="img/triangular-numbers.svg" alt="" />
<p>
This application finds all of the triangular numbers in a given interval
[a, b]. After choosing the search interval press Compute and the job
will be sent to the DCP network.
</p>
<div class="input-group">
<label for="inputA">a:</label>
<input id="inputA" type="number" min="1" step="1" value="1" />
</div>
<div class="input-group">
<label for="inputB">b:</label>
<input id="inputB" type="number" min="1" step="1" value="30" />
</div>
<button id="compute-button">Compute</button>
<div id="status"></div>
<div id="progress-container" hidden>
<div
id="progressbar"
role="progressbar"
aria-valuemin="0"
aria-valuemax="100"
></div>
</div>
<div id="resultsMsg" hidden>
Triangular numbers found so far: <span id="results">none</span>
</div>
</main>
</body>
</html>