-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
40 lines (37 loc) · 1.27 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge;chrome=1" />
<link type="text/css" rel="stylesheet" href="style/main.css"/>
<script src="https://unpkg.com/vue@3/dist/vue.global.js"></script>
<script src="https://unpkg.com/vue-router@4.1.6/dist/vue-router.global.js"></script>
<script type='module' src='script/main.js'></script>
</head>
<body>
<div id='genling'>
<router-view></router-view>
</div>
<template id='generator'>
<div class='toolbar'>
<select v-model='selectedLanguage' @change='setCurrentRoute'>
<option v-for='language in languages' :value='language'>{{ language.name }}</option>
</select>
</div>
<div class='toolbar'>
<select v-model='selectedScript' @change='setCurrentRoute'>
<option v-for='script in selectedLanguage.scripts' :value='script'>{{ script.name }}</option>
<option :value="rawScript">{{ rawScript.name }}</option>
</select>
<input type='number' min='0' v-model='wordAmount'/>
<button @click='generate'>Generate</button>
<label>Debug: <input type='checkbox' v-model='debug'/></label>
</div>
<div>
<ul class='words'>
<li v-for='word in wordList'>{{ word }}</li>
</ul>
</div>
</template>
</body>
</html>