-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
196 lines (166 loc) · 5.5 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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<!DOCTYPE html>
<html>
<head>
<!--<meta http-equiv="refresh" content="120">-->
<!-- Framework Imports -->
<script src="https://code.jquery.com/jquery-3.4.1.min.js"></script>
<script src="https://unpkg.com/vue@next"></script>
<script src="https://unpkg.com/[email protected]/dist/vue-router.js"></script>
<link rel="stylesheet" href="style.css">
<script src="https://requirejs.org/docs/release/2.3.6/minified/require.js"></script>
<script type="text/javascript" src="./node_modules/text-to-speech-js/lib/index.js"></script>
<script type="text/javascript" src="./node_modules/fuzzyset.js/dist/fuzzyset.js"></script>
<meta charset="UTF-8">
<!--
<div id="counter">
<span>Counter: {{ counter }}</span>
</div>
-->
<title>Bearzlet</title>
</head>
<body>
<div id="title">
<span>{{title}}</span>
</div>
<!--
We are using Node.js <span id="node-version"></span>,
Chromium <span id="chrome-version"></span>,
and Electron <span id="electron-version"></span>.
-->
<!--
<div id="demo">
<button @click="show = !show">
Toggle
</button>
<transition name="fade">
<p v-if="show">hello</p>
</transition>
</div>
-->
<div id="logout_div">
<template v-if="show">
<button id="logout">Logout</button>
</template>
</div>
<div id="login_div">
<template v-if="show">
<br>
<h2>Login: </h2>
Username:<input id="lusername" type="text">
<br>
Password:<input id="lpassword" type="password">
<br>
<button id="login">Login</button>
<br>
</template>
</div>
<div id="makeacct_div" >
<template v-if="show">
<h2>Make Account: </h2>
Username:<input id="cusername" type="text">
<br>
Password:<input id="cpassword" type="password">
<br>
Email:<input id="cemail" type="email">
<br>
<button id="makeacct">Make Account</button>
<br>
</template>
</div>
<!-- <br>
<button id="queery">QUEERy</button>
<button id="loadsets">Load seets</button> -->
<div id="sets">
<!-- <template v-if="show">
</template> -->
</div>
<div id="fileRead_div">
<div id="fileRead">
<template v-if="show">
<h2 id="uploadset">Upload A New Set</h2>
<input type="file" id="fileUpload" ref="myFile" @change="selectedFile(), $event"></input><br/>
<p id="upload_success" class="green" v-if="success">Uploaded!</p>
<!-- <div v-if="lines.length">
<p>Your file contains {{lines.length}} lines:</p>
<ul>
<li v-for="l in lines">{{l}}</li>
</ul>
</div> -->
</template>
</div>
</div>
<p id="ajaxtest"></p>
<div id="flashcards_div">
<template v-if="show">
<br>
<br>
<table>
<thead>
</thead>
<tbody>
<!--Fire Image original page: https://pixabay.com/illustrations/flame-fire-transparent-burn-hot-3561350/ -->
<!--Fire Image specific src: https://cdn.pixabay.com/photo/2018/07/25/12/59/flame-3561350_960_720.png-->
<tr>
<td class="tblfirel">
<button class="fnext" id="flashcardBack">←</button>
</td>
<td class="tblmsg">
<button @click="showSide = !showSide" v-if="showSide" class="card">{{side1}}</button>
<button @click="showSide = !showSide" v-else class="card">{{side2}}</button>
</td>
<td>
<button class="fnext" id="flashcardNext">→</button>
</td>
</tr>
</tbody>
</table>
</template>
</div>
<div id="write_div">
<template v-if="show">
<br>
<br>
<p>Definition: {{definition}}</p>
Word:<input id="write_word" type="text">
<button id="write_submit">check</button>
<button id="writeNext">→</button>
<br>
<p id="write_correct" class="green" v-if="correct">Correct!</p>
<p id="write_correctfuzzy" class="green" v-if="correctfuzzy">Did you mean {{word}}? We'll give it to you!</p>
<p id="write_incorrect" class="red" v-if="incorrect">Incorrect!</p>
</template>
</div>
<div id="spell_div">
<template v-if="show">
<br>
<br>
<!-- <p> Audio here for {{definition}}</p> -->
<button id="spell_audio">Click to Hear Definition</button>
Word:<input id="spell_word" type="text">
<button id="spell_submit">check</button>
<button id="spellNext">→</button>
<br>
<p id="spell_correct" class="green" v-if="correct">Correct!</p>
<p id="spell_correctfuzzy" class="green" v-if="correctfuzzy">Did you mean {{word}}? We'll give it to you!</p>
<p id="spell_incorrect" class="red" v-if="incorrect">Incorrect!</p>
</template>
</div>
<div id="close_game_div">
<br>
<br>
<button v-if="show" id="close_game">Close Game</button>
</div>
<p>This app was compiled on the command line by me, Evin!</p>
<!-- You can also require other files to run in this process -->
<script src="./renderer.js"></script>
<script src="./frontend.js"></script>
</body>
</html>
<!--
set file template
set name
private (true/false)
word; definition
word; definition
....
-->