-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmarkov.html
37 lines (32 loc) · 995 Bytes
/
markov.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
<html>
<head>
<title>Markov Chains in Javascript</title>
<script type="text/javascript" src="utils.js"></script>
<script type="text/javascript" src="web-utils.js"></script>
<script type="text/javascript" src="markov.js"></script>
<script type="text/javascript" src="init.js"></script>
<style type="text/css">
#top, #contents {
margin: 20px;
padding: 10px;
}
#contents {
border: 1px solid silver;
height: 100%;
}
</style>
</head>
<body onload="init()">
<div id="top">
<form>
<label for="file-input">Choose a text file: </label>
<input type="file" id="file-input" size="60"/><br />
<label for="num-words">Max number of words to generate: </label>
<input id="num-words" size="4" maxlength="4"><br />
<button type="button" onclick="displayFile()">Generate</button>
</form>
</div>
<div id="contents">
</div>
</body>
</html>