-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSphereDist.html
More file actions
32 lines (32 loc) · 1.01 KB
/
SphereDist.html
File metadata and controls
32 lines (32 loc) · 1.01 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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>SphereDist.html</title>
<script src="./SphereDist.js"></script>
<script>
var sd = new SphereDist();
function loaded() {
document.getElementById("version").innerHTML = sd.version;
}
function clicked() {
sd.N = document.getElementById("mytext").value;
sd.generate();
var text = sd.get_text();
document.getElementById("mytextarea").value = text;
}
</script>
</head>
<body onload="javascript:loaded()">
<p id="version"></p>
<p>
N: <input type="text" id="mytext" value="100" /> (>= 6)
</p>
<p>
<textarea id="mytextarea" rows="20" cols="65"></textarea>
</p>
<p>
<input type="button" value="Click me!" onclick="javascript:clicked()" />
</p>
</body>
</html>