-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
244 lines (226 loc) · 11 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
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css"
integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<link rel="stylesheet" href="./css/style.css">
<title>Kover</title>
</head>
<body>
<!--HEADER-->
<header class="container full-container bg-info text-white d-flex justify-content-center align-items-center pt-3">
<a href="index.html">
<h1 class=" d-inline text-white display-4 font-weight-bold">
KOVER
</h1>
</a>
<select name="selectLang" id="selectLang" class="selectLang mx-3">
<option value="">Langue</option>
<option value="FR">FRANCAIS</option>
<option value="ES">ESPANOL</option>
<option value="EN">ENGLISH</option>
</select>
</header>
<!--START STEP-->
<main
class="container full-container d-flex flex-column p-3 mx-auto mt-3 mb-2 text-center w-100 w-lg-75 justify-content-around align-items-baseline h-100 rounded"
id="home">
<div class=" d-flex flex-column flex-no-wrap flex-lg-wrap mx-auto">
<p class="border-info text-info m-auto p-2 h3 rounded font-weight-bold mr-4">
Touchez plus de cibles avec votre lettre de motivation !
</p>
<p class="text-dark h4 my-5 mx-4 mx-lg-auto mxtext-center">
<span class="font-weight-bold">
Adaptez-la à vos destinataires
</span><br>
<span>et exportez-la en quelques clics.</span>
</p>
</div>
<button class="btn btn-info w-50 h-100 rounded mx-auto mt-4 h1" id="startButton">
COMMENCER
</button>
</main>
<!--CHOICE STEP-->
<main
class="container full-container d-flex flex-column flex-no-wrap flex-lg-wrap p-3 mx-auto mt-3 mb-2 text-center w-100 w-lg-75 justify-content-around align-items-center h-100 rounded"
id="choice">
<h2 class="text-info mx-auto h2 my-3 font-weight-bold">
Sélectionnez une option
</h2>
<div class="d-flex flex-column flex-lg-row mr-auto ml-auto my-3">
<button class="btn btn-info w-100 w-lg-75 rounded mx-auto mx-lg-5 mt-4 h3 p-2" id="newTextButton">
Saisir/coller une lettre de motivation
</button>
<button class="btn btn-info w-100 w-lg-75 rounded mx-auto mx-lg-5 mt-4 h3 p-2" id="uploadFileButton">
Utiliser un fichier existant
</button>
</div>
</main>
<!--TEXTAREA-->
<main
class="container full-container d-flex flex-column flex-no-wrap flex-lg-wrap p-3 mx-auto mt-3 mb-2 w-100 justify-content-around align-items-center h-100 rounded"
id="textarea">
<h2 class="text-info mx-auto my-3 font-weight-bold">
<span class="text-info p-1 w-3" data-to-step="choice">←</span>
<span>Saisir/coller un texte</span>
</h2>
<!--Outils d'édition de texte-->
<div
class="w-100 rounded-top textControls bg-info d-flex justify-content-center align-items-baseline flex-wrap center text-dark mx-auto my-3">
<button class="btn btn-light rounded m-2 h3" id="pasteText">
COLLER
</button>
<span class="p-2 text-dark m-2">
<select name="fontName" id="fontName">
<option value="Liberation Sans" selected>Liberation Sans</option>
<option value="Ubuntu">Ubuntu</option>
</select>
</span>
<span class="p-2 text-dark m-2">
<select name="fontSize" id="fontSize">
<option value="12" selected>12</option>
<option value="10">10</option>
</select>
</span>
<fieldset class="m-2">
<span class="p-2 text-dark ">
<button id="bold" class="controlButton"><span class="font-weight-bold">G</span></button>
</span>
<span class="p-2 text-dark ">
<button id="italic" class="controlButton"><span class="font-italic">I</span></button>
</span>
<span class="p-2 text-dark ">
<button id="underline" class="controlButton"><span class="font-weight-bold"><u>S</u></span></button>
</span> </fieldset>
<fieldset class="m-2">
<button id="left" class="controlButton">
Gauche
</button>
<button id="center" class="controlButton">
Centre
</button>
<button id="right" class="controlButton">
Droite
</button>
<button id="justify" class="controlButton">
Justifié
</button>
</fieldset>
</div>
<!--Champ de texte et validation-->
<div aria-placeholder="Trouvez vos meilleurs mots !"
class="text-dark bg-light w-100 m-auto rounded-bottom border" contenteditable="true" id="userText">
</div>
<div>
<p id="userText"></p>
</div>
<button class="btn btn-info mw-100 rounded mx-auto mt-4 h3" id="submitText">OK</button>
</main>
<!--SECTIONS STEP-->
<main
class="container full-container d-flex flex-column flex-no-wrap flex-lg-wrap p-3 mx-auto mt-3 mb-2 text-center w-100 w-lg-75 justify-content-around align-items-center h-100 rounded"
id="sections">
<h2 class="text-info mx-auto my-3 font-weight-bold">
<span class="text-info p-1 w-3" data-to-step="choice">←</span>
<span>Choisissez les portions de texte à adapter</span>
</h2>
<div class="container full-container d-flex my-3 align-items-start">
<div class="px-2 bg-light w-75 w-lg-50 mr-3 border text-left" id="getUserText"></div>
<div
class="w-25 w-lg-50 d-flex flex-column flex-wrap justify-content-center align-items-start align-items-center">
<p class="text-dark">
<span class="font-italic">
Sélectionnez une portion de texte à modifier puis cliquez ci-dessous
</span></p>
<button class="btn btn-info rounded mx-auto mt-4 h1 " disabled id="addSectionButton">
AJOUTER
</button>
<ul class="p-2 list-unstyled" id="toModify"></ul>
<p class="text-dark">
<span class="font-italic">
Lorsque chaque élément à adapter figure dans la liste, cliquez ci-dessous
</span>
</p>
<button class="btn btn-success rounded mx-auto mt-4 h1" disabled id="goToEditionButton">
EDITER LES SELECTIONS
</button>
</div>
</div>
</main>
<!--HOW MANY STEP-->
<main
class="container full-container d-flex flex-column flex-no-wrap flex-lg-wrap p-3 mx-auto mt-3 mb-2 text-center w-100 w-lg-75 justify-content-around align-items-center h-100 rounded"
id="howMany">
<h2 class="text-info mx-auto my-3 font-weight-bold">
<span class="text-info p-1 w-3" data-to-step="choice">←</span>
Combien de versions différentes souhaitez-vous générer ?
</h2>
<p><span class="text-info">
( maximum 5 )
<input type="number" name="howManyLetters" id="howManyLetters" placeholder="1" min="1" max="5"
class="my-3">
<button class="btn btn-info rounded mx-auto mt-4 h1" id="howManyButton">OK</button>
</main>
<!--EDITION STEP-->
<main
class="container full-container d-flex flex-column flex-no-wrap flex-lg-wrap p-3 mx-auto mt-3 mb-2 text-center w-100 w-lg-75 justify-content-start align-items-center h-100 rounded"
id="edition">
<h2 class="text-info mx-auto my-3 font-weight-bold" id="lastTitle">
<span class="text-info p-1 w-3" data-to-step="choice">←</span>
<span>Adaptez</span> <span id="numberOfVersions"></span>
<span>nouvelle(s) version(s)</span>
</h2>
<div class="w-100 d-flex flex-column justify-content-center align-items-center">
<div id="letterVersions" class="d-flex flex-column flex-wrap w-100 w-lg-75 mx-auto my-3">
<div id="accordion" class=" accordion justify-content-around align-items-center">
<div
class=" my-3 card d-flex flex-row justify-content-around align-items-center bg-info text-white">
<div>
<h3 class="d-inline card-header" id="headingOne">
Version Originale
</h3>
<button class="btn btn-link text-white btn-info border-light" data-toggle="collapse"
data-target="#collapseOne">↓</button>
</div>
</div>
</div>
</div>
<div id="elementH"></div>
</div>
<button class="btn btn-info rounded mx-auto mt-4 h1" id="finishButton">OK</button>
</main>
<!--DONE-->
<main
class="container full-container d-flex flex-column flex-no-wrap flex-lg-wrap p-3 mx-auto mt-3 mb-2 w-100 w-lg-75 justify-content-around align-items-center h-100 rounded"
id="done">
<h2 class="text-info mx-auto my-3 font-weight-bold">
<span class="text-info p-1 w-3" data-to-step="choice">←</span>
<span>Terminé !</span>
</h2>
</main>
<footer
class="d-flex flex-column flex-lg-row container full-container justify-content-center align-items-center mt-3">
<a href="#" class="text-secondary m-lg-3">KOVER</a>
<span class="d-none d-lg-inline text-secondary">-</span>
<a href="https://www.quentin-g.com" target="_blank" class="text-secondaryv m-lg-3">
quentin-g.com
</a>
</footer>
<!-- jQuery library -->
<script src="./js/jquery-3.5.1.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"
integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous">
</script>
<!--<script src="./js/commonScript.js"></script>
<script src="./js/finish.js"></script>
<script src="./js/edition.js"></script>
<script src="./js/sections.js"></script>
<script src="./js/choice.js"></script>
<script src="./js/kover.js"></script>-->
<script src="./js/global.js"></script>
<script src="./js/translations.js"></script>
<script src="./js/languages.js"></script>
</body>
</html>