-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmarkov.html
49 lines (47 loc) · 1.22 KB
/
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
38
39
40
41
42
43
44
45
46
47
48
49
<html>
<head>
<title>Bracery</title>
</head>
<body style="display: flex; flex-direction: row; justify-content: space-around;">
<div style="width: 600px; background-color: #eee; padding: 4px;">
<h1><a href="https://github.com/ihh/bracery">Bracery</a></h1>
<p>
Symbol definitions:
<div>
<textarea id="textdefs" style="width: 100%; min-height: 15em; resize: vertical;">
>common_item
cat
dog
flower
toaster
>relative
mom
dad
uncle
aunt
granda
grandpa
cousin
</textarea>
</div>
<br><p>
Templates:
<div>
<textarea id="tempdefs" style="width: 100%; min-height: 15em; resize: vertical;">
@goodnews>Good news # root bad_news # good_news
$subject={~common_item}[I [love|dig|really like] &plural$subject!|&cap&plural$subject are [great|awesome|amazing]!]
@badnews>Bad news # good_news # bad_news
[Yeah? Well &a$subject [ate|stepped on] your ~relative.|Nope.|I disagree.|[Meh|Whatever]. &plural&cap$subject [suck|are [bad|weak|boring]].]
</textarea>
</div>
<br><p>
Thread (<a id="reset" href="#">reset</a>):
<div id="thread" style="width: 100%; background-color: #ccc;">
</div>
<!-- bracery -->
<script src="bracery.js"></script>
<!-- hook up the UI -->
<script src="markov.js"></script>
</div>
</body>
</html>