-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
158 lines (158 loc) · 7.59 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
<html>
<head>
<title>declatis -- Name generator</title>
<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/bootstrap-slider.min.css" rel="stylesheet">
<link href="css/bootstrap-tour.min.css" rel="stylesheet">
<link href="css/entypo-plus.css" rel="stylesheet">
<link href="css/declatis.css" rel="stylesheet">
<script src="js/declatis/word.js"></script>
<script src="js/declatis/matrix.js"></script>
<script src="js/declatis/pattern.js"></script>
<script src="js/declatis/dictionary.js"></script>
<script src="js/declatis/app.js"></script>
<script src="js/jquery-3.2.1.min.js"></script>
<script src="js/bootstrap.bundle.min.js"></script>
<script src="js/bootstrap-slider.min.js"></script>
<script src="js/bootstrap-tour.min.js"></script>
<script src="js/declatis/main.js"></script>
<script src="js/declatis/help.js"></script>
<script src="js/jquery.easypiechart.min.js"></script>
</head>
<body>
<div class="container-fluid">
<div id="header" class="row">
<div class="col">
<h2 class="float-left">Déclatis <small class="text-muted">Random word generator</small></h2>
</div>
<div class="col">
<div class="btn-group float-right" role="group">
<button type="button" class="btn btn-info btn-lg" onclick="Help.startTutorial()">
<span class="icon-help-with-circle"></span>
</button>
</div>
</div>
</div>
<div id="content" class="row">
<div class="col-4">
<div class="row form-row">
<div class="col form-label">
Dictionary
</div>
<div class="col">
<div class="dropdown container-fluid" data-toggle="tooltip" data-placement="top" title="Training dictionary">
<button id="current-dictionary" class="btn btn-sm btn-primary dropdown-toggle container-fluid" type="button" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
</button>
<div id="dictionaries" class="dropdown-menu" aria-labelledby="dropdownMenuButton">
</div>
</div>
</div>
</div>
<div class="row form-row">
<div class="col form-label">
Familiarity
</div>
<div class="col">
<div id="k-button-group" class="btn-group container-fluid" data-toggle="buttons">
<label class="btn btn-sm btn-primary container-fluid">
<input type="radio" name="familiarity" onchange="Settings.setK(1)">
Low
</label>
<label class="btn btn-sm btn-primary container-fluid active">
<input type="radio" name="familiarity" onchange="Settings.setK(2)" checked>
Moderate
</label>
<label class="btn btn-sm btn-primary container-fluid">
<input type="radio" name="familiarity" onchange="Settings.setK(3)">
High
</label>
</div>
</div>
</div>
<div id="prefix-suffix" class="row form-row">
<div class="col-6 form-label">
Prefix & suffix
</div>
<div class="col-3">
<input id="prefix" type="text" style="width: 100%;" oninput="Settings.setPrefix()">
</div>
<div class="col-3">
<input id="suffix" type="text" style="width: 100%;" oninput="Settings.setSuffix()">
</div>
</div>
<div class="row form-row">
<div class="col form-label">
Length
</div>
<div class="col text-center">
<span id="character-count-badge" class="badge badge-pill badge-primary">6-10</span>
<input id="character-count" type="text" class="span2" data-slider-min="2" data-slider-max="14" data-slider-step="1" data-slider-value="[6,10]" data-slider-ticks-snap-bounds="200" data-slider-id="character-count-slider"/>
</div>
</div>
<div class="row form-row">
<div class="col-6">
</div>
<div class="col-6 text-center">
<button id="btn-generate" type="button" class="btn btn-lg btn-success" onclick="Action.generate()">
<span class="icon-cycle" data-toggle="tooltip" data-placement="top" title="Regenerate"></span>
</button>
</div>
</div>
</div>
<div class="col">
<div id="alert-row" class="row d-flex flex-wrap justify-content-start">
</div>
<div class="row">
<div class="col"> <!-- generated -->
<div class="row word-set">
<div class="col-4">
<div id="generated-sort" class="btn-group container-fluid" role="group" aria-label="Sort">
<button type="button" class="btn btn-secondary btn-sort btn-sm btn-tool" onclick="Action.sort(WordSet.generated, Settings.ORDER_ALPHA)" data-toggle="tooltip" data-placement="top" title="Sort alphabetically"><img height="20px" src="images/sort-by-alphabet.svg"></button>
<button type="button" class="btn btn-secondary btn-sort btn-tool" onclick="Action.sort(WordSet.generated, Settings.ORDER_SCORE)" data-toggle="tooltip" data-placement="top" title="Sort by score"><img height="20px" src="images/sort-by-order.svg"></button>
<button type="button" class="btn btn-secondary btn-sort btn-tool" onclick="Action.sort(WordSet.generated, Settings.ORDER_LENGTH)" data-toggle="tooltip" data-placement="top" title="Sort by length"><img height="20px" src="images/sort-by-attributes.svg"></button>
</div>
</div>
<div class="col-4">
</div>
<div class="col-4">
<div id="generated-do-all" class="btn-group" role="group">
<button type="button" class="btn btn-light btn-lg text-danger icon-block btn-tool" data-toggle="tooltip" title="Dismiss all" onclick="Action.dismissAll(WordSet.generated)"></button>
<button type="button" class="btn btn-light text-success icon-check btn-tool" data-toggle="tooltip" title="Validate all" onclick="Action.validateAll()"></button>
</div>
</div>
</div>
<div class="row">
<div id="container-generated" class="col d-flex flex-wrap justify-content-between word-container">
</div>
</div>
</div>
<div class="col"> <!-- validated -->
<div class="row word-set">
<div class="col-4">
<div class="btn-group container-fluid" role="group" aria-label="Sort">
<button type="button" class="btn btn-secondary btn-sort btn-sm btn-tool" onclick="Action.sort(WordSet.validated, Settings.ORDER_ALPHA)" data-toggle="tooltip" data-placement="top" title="Sort alphabetically" disabled><img height="20px" src="images/sort-by-alphabet.svg"></button>
<button type="button" class="btn btn-secondary btn-sort btn-tool" onclick="Action.sort(WordSet.validated, Settings.ORDER_SCORE)" data-toggle="tooltip" data-placement="top" title="Sort by score" disabled><img height="20px" src="images/sort-by-order.svg"></button>
<button type="button" class="btn btn-secondary btn-sort btn-tool" onclick="Action.sort(WordSet.validated, Settings.ORDER_LENGTH)" data-toggle="tooltip" data-placement="top" title="Sort by length" disabled><img height="20px" src="images/sort-by-attributes.svg"></button>
</div>
</div>
<div class="col-4">
</div>
<div class="col-4">
<div class="btn-group" role="group">
<button type="button" class="btn btn-light btn-lg text-danger icon-block btn-tool" data-toggle="tooltip" title="Dismiss all" onclick="Action.dismissAll(WordSet.validated)" disabled></button>
<button type="button" class="btn btn-light icon-export btn-tool" data-toggle="tooltip" title="Send to clipboard" onclick="Action.export()" disabled>
<span id="validated-count" class="badge badge-pill badge-primary">0</span>
</button>
</div>
</div>
</div>
<div class="row">
<div id="container-validated" class="col d-flex flex-wrap justify-content-between word-container">
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>