-
Notifications
You must be signed in to change notification settings - Fork 0
/
app.html
158 lines (157 loc) · 9.36 KB
/
app.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
<!DOCTYPE html>
<html lang="en">
<head>
<title>WLG</title>
<meta charset="UTF-8"/>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:opsz,wght,FILL,GRAD@20..48,100..700,0..1,-50..200" />
</head>
<body>
<hr/>
<div class="container">
<div class="row">
<div class="col-md-8">
<div class="card">
<div class="card-header">
<div class="container">
<div class="row">
<div class="col-md-11">
<h3>Temporary List</h3>
</div>
<div class="col-md-1">
<form method="POST" action="/?act=generateList">
<input type="text" id="stored_typo" name="stored_typo" hidden>
<textarea id="wordList" name="wordList" hidden></textarea>
<button type="submit" class="btn btn-success" style="border-radius: 50%;" onclick="generation()">
<span class="material-symbols-outlined" style="margin-top: 5px">play_arrow</span>
</button>
</form>
</div>
</div>
</div>
</div>
<div class="card-body">
<div class="container">
<div class="row">
<div class="col-md-6">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="input-group">
<input type="file" class="form-control" id="upload_file" aria-label="Upload">
</div>
</div>
</div>
<br>
<div class="row">
<div class="col-md-12">
<form method="post" action="/?act=applyTransformation" id="formTransformation">
<div class="from-check">
<input type="checkbox" class="form-check-input" id="validTransfo" name="validTransfo">
<label for="validTransfo">Active transformation</label>
</div>
</form>
</div>
</div>
<br>
<div class="row">
<div class="col-md-12">
<form class="needs-validation" novalidate id="formTypo">
<div class="input-group mb-3" id="areaTypoValidation">
<input type="text" class="form-control" id="typo" name="typo" placeholder="Regular Expression : @#**" aria-label="Typo to use for your words" aria-describedby="add_typo_button">
<button class="btn btn-outline-secondary" type="button"
id="add_typo_button" onclick="addTypo()">
ADD
</button>
<div id="validationTypo"></div>
</div>
</form>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h4>Possible elements</h4>
<p># : a word</p>
<p>* : a number</p>
<p>@ : a symbol</p>
</div>
</div>
</div>
</div>
<div class="col-md-6">
<div class="container">
<div class="row">
<div class="col-md-12">
<div class="input-group mb-3">
<input type="text" class="form-control" id="wordToAdd" name="wordToAdd"
placeholder="Word to add to the list" aria-label="Word to add to the list"
aria-describedby="add_word_button">
<button class="btn btn-outline-secondary" type="button"
id="add_word_button" onclick="addWord()">
ADD
</button>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<table class="table table-dark table-striped">
<thead>
<tr>
<td>#</td>
<td>Word</td>
</tr>
</thead>
<tbody class="table-striped" id="temporary_list">
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-4">
<div class="card">
<div class="card-header">
<div class="container">
<div class="row">
<div class="col-md-10">
<h3>Generate List</h3>
</div>
<div class="col-md-2">
<button type="button" class="btn btn-success" style="border-radius: 50%;" id="btn_dl">
<a href="/result.txt" style="text-outline: none; color: white">
<span class="material-symbols-outlined" style="margin-top: 5px;" id="span_dl">
file_download
</span>
</a>
</button>
</div>
</div>
</div>
</div>
<div class="card-body">
<table class="table table-dark table-striped">
<thead>
<tr>
<td>#</td>
<td>Word</td>
</tr>
</thead>
<tbody class="table-striped" id="generate_list">
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<script src="js/chat-mode_server.js"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ka7Sk0Gln4gmtz2MlQnikT1wXgYsOg+OMhuP+IlRH9sENBO0LRn5q+8nbTov4+1p" crossorigin="anonymous"></script>
</body>
</html>