This repository has been archived by the owner on Dec 8, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
60 lines (59 loc) · 1.7 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf8">
<meta name="author" content="Amelia Clarke">
<title>Markov Chains</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans"
rel="stylesheet">
<link href="style.css" rel="stylesheet">
<script src="probs.js"></script>
<script src="probs_cooking.js"></script>
<script src="probs_char.js"></script>
<script src="markov.js"></script>
</head>
<body>
<header>
<h1>Markov chains</h1>
</header>
<main>
<h2>Controls</h2>
<div id="controls">
<div id="main-controls">
<p>
Text type:
<select id="type">
<option value="recipe" selected>Recipe</option>
<option value="char">Characters</option>
<option value="love">Lovecraft</option>
<option value="cust">Custom</option>
<option value="custchar">Custom (chars)</option>
</select>
</p>
<p>
Count:
<input type="number" id="count" min="1" max="2000" value="200">
</p>
<p>
Precision:
<input type="number" id="precision" min="1" max="10" value="1">
</p>
<p>
<button onclick="generate()">Generate text!</button>
</p>
</div>
<div id="scan">
<p>
Custom text:<br>
<textarea id="custom-text" cols="60" rows="10" onchange="toUpdate=true"></textarea>
</p>
</div>
<div class="clear"></div>
</div>
<h2>Output</h2>
<div id="output">
<p id="output-text"> </p>
</div>
</main>
</body>
</html>