-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
82 lines (68 loc) · 2.46 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<head>
<meta charset="utf-8">
<title>ProGrammar</title>
<link href="https://fonts.googleapis.com/css2?family=IBM+Plex+Mono&family=IBM+Plex+Sans:wght@200;400;500&display=swap"
rel="stylesheet">
<link rel="stylesheet" href="https://unpkg.com/[email protected]/css/tachyons.min.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
<script src="https://unpkg.com/dexie@latest/dist/dexie.js"></script>
<style>
.ff-1 {
font-family: 'IBM Plex Sans'
}
.ff-mono {
font-family: 'IBM Plex Mono'
}
label {
display: block;
margin-top: 2px;
}
.td1 {
transition-duration: .15s;
}
</style>
</head>
<body class="mw6 center mt3 ff-1 ">
<h1 class="dark-gray f1"><span class="fw3">Pro</span><span class="fw6">Grammar</span></h1>
<div class="dib v-top">
<fieldset class="br1 mw5 ba b--black-30">
<legend class="">
<button class="td1 ba b--black-30 hover-bg-black pv1 bg-dark-blue ph2 br1 white"
onclick="generate()">
Generate
sentence
</button>
</legend>
<div id="result" class="h4 w5 ff-mono f6 pa2 br1 mt1"> </div>
</fieldset>
</div>
<div class="dib ">
<fieldset class="br1 mw5 ba b--black-30" id="wordForms">
<legend class="bg-dark-gray white ph1 pv1 br1">
new
<select class="bg-inherit white bn" id="wordType" v-model="wordClass" v-on:change="setActiveForm">
<option value="noun">noun</option>
<option value="verb">verb</option>
<option value="adverb">adverb</option>
</select>
</legend>
<div id="nounBox" class="tr">
</div>
<div id="verbBox" class="tr"></div>
</fieldset>
</div>
</body>
<script>
var db = new Dexie('wordsEng');
db.version(1).stores({
nouns: 'base,plural,countable,proper,gender',
verbs: 'base,thirdPres,pastTense,pastPart',
adverbs: 'base'
});
</script>
<script src="tools.js"></script>
<script src="clauses.js"></script>
<script src="wordTypes.js"></script>
<script src="generate.js"></script>
<script src="ui.js"></script>