-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
254 lines (214 loc) · 11.2 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
245
246
247
248
249
250
251
252
253
254
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="author" content="PathoTeam">
<title>Patho Search</title>
<link rel="icon" href="icons/favicon.png" />
<link rel="stylesheet" type="text/css" href="./styles.css" media="screen" />
<script type="text/javascript" src="index.js"></script>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<script type="text/javascript" src="https://unpkg.com/@zxing/library@latest"></script>
<script src="https://smtpjs.com/v3/smtp.js"></script>
</head>
<body>
<!-- Toolbar -->
<nav>
<div class="nav-fixed">
<a href="#" data-target="slide-out" class="sidenav-trigger left show-on-large "><i
class="material-icons">menu</i></a>
<ul class="show-on-med-and-down">
<li class="hide-on-med-and-down">
<div class="center row">
<div class="col s12 ">
</div>
</div>
</li>
<div class="button-div">
<div id="phoneButton" style="float: right;" class="hide">
<a id="appSelectButton" class="waves-effect waves-light btn modal-trigger button-icons-barTop"
href="#"><i class="small material-icons left">speaker_phone</i>Scan</a>
</div>
<div id="searchButton" style="float: right;" class="hide">
<a id="searchSelect" class="waves-effect waves-light btn modal-trigger button-icons-barTop"
href="#"><i class="small material-icons left">search</i>Search</a>
</div>
<a id="buttonConnectionTop" class="waves-effect waves-light btn modal-trigger button-connect"
href="#connexion">Connexion</a>
</div>
</ul>
</div>
</nav>
<!-- Big Search bar -->
<div id="search-bar" class="show">
<form>
<img id="patho-logo" src="images/logoPathoSearch.png">
<div class="row">
<div class="col s12">
<div class="row">
<div class="input-field col s12">
<div class="autocomplete">
<input id="searchBar" type="text" placeholder="Rechercher...">
<button id="buttonSearchTag" class="btn red waves-effect waves-light" type="button"
onclick="app.searchBar.getRequest()">Rechercher
<i class="material-icons right">search</i>
</button>
</div>
</div>
</div>
</div>
</form>
</div>
<!-- Sidenav -->
<ul id="slide-out" class="sidenav">
<li>
<div class="user-view">
<div class="background">
<img src="images/fond.jpeg">
</div>
<a href="#user"><img class="circle" src="images/default-avatar.jpg"></a>
<a href="#name"><span class="white-text name">Pierre Delocroix</span></a>
<a href="#email"><span class="white-text email">[email protected]</span></a>
</div>
</li>
<li id="phoneTrigger">
<a id="appSelect" class="waves-effect waves-light modal-trigger" href="#"><i
class="material-icons">phonelink_ring</i>Application smartphone</a>
</li>
<li id="searchBarTrigger">
<a id="searchBarSelect" class="waves-effect waves-light modal-trigger" href="#"><i
class="material-icons">search</i>Moteur de
recherche</a>
</li>
<li>
<a class="waves-effect waves-light modal-trigger" href="#signUP"><i
class="material-icons">group_add</i>Créer un compte</a>
</li>
</ul>
<!-- Modal Structure : This is used to create User account -->
<div id="signUP" class="modal modal-fixed-footer">
<div class="modal-content">
<div class="row">
<form class="col s12">
<div class="row">
<div id="firstStepCreateAccount">
<div class="input-field col s12 center">
<h4>Demande de création de compte</h4>
</div>
<div class="input-field col s6 offset-s3">
<input id="icon_prefix_firstName" type="text" class="validate">
<label for="icon_prefix">Prénom</label>
<span class="helper-text" data-error="incorrect" data-success="correct"></span>
</div>
<div class="input-field col s6 offset-s3">
<input id="icon_prefix_lastName" type="text" class="validate">
<label for="icon_prefix">Nom</label>
<span class="helper-text" data-error="incorrect" data-success="correct"></span>
</div>
<form class="col s12">
<div class="row">
<div class="input-field col s12">
<i class="material-icons prefix">mail_outline</i>
<input id="email" type="email" class="validate">
<label for="email">E-mail</label>
<span class="helper-text" data-error="incorrect" data-success="correct"></span>
</div>
</div>
</form>
<form action="#">
<p>
<label>
<input name="group1" type="radio" checked />
<span>Utilisateur</span>
</label>
</p>
<p>
<label>
<input name="group1" type="radio" />
<span>Administrateur</span>
</label>
</p>
</form>
</div>
<div id="secondStepCreateAccount" class="hide">
<div class="input-field col s12 center">
<h4>Demande de création de compte</h4>
</div>
<!-- TODO faire un password strengh meter -->
<div class="input-field col s6 offset-s3">
<input id="pwd" type="password" required minlength="6" class="validate">
<label for="pwd">Mot de passe</label>
<span class="helper-text" data-error="+6 caractères" data-success="correct"></span>
</div>
<div class="input-field col s6 offset-s3">
<input id="pwdCheck" type="password" required minlength="6" class="validate">
<label for="pwdCheck">Entrer à nouveau votre mot de passe</label>
<span class="helper-text" data-error="+6 caractères" data-success="correct"></span>
</div>
<div class="input-field col s6 offset-s3">
<label>
<input id="show_pwd_createAccount" type="checkbox" />
<span>voir le mot de passe</span>
</label>
</div>
</div>
</div>
</form>
</div>
</div>
<div class="modal-footer">
<a id="createAccountBack" class="waves-effect waves-red btn-flat">Retour</a>
<a id="createAccountValidation" class="waves-effect waves-red btn-flat">Suivant</a>
</div>
</div>
<!-- Modal Structure : This is used to connect to the DB -->
<div id="connexion" class="modal">
<div class="modal-content">
<div class="row">
<form class="col s12">
<div class="row">
<div class="input-field col s12 center">
<h4>Connexion</h4>
</div>
<div id="firstStepConnexion">
<div class="input-field col s6 offset-s3">
<input id="connexion_firstName" type="text" class="validate">
<label for="icon_prefix">Prénom</label>
<span class="helper-text" data-error="incorrect" data-success="correct"></span>
</div>
<div class="input-field col s6 offset-s3">
<input id="connexion_lastName" type="text" class="validate">
<label for="icon_prefix">Nom</label>
<span class="helper-text" data-error="incorrect" data-success="correct"></span>
</div>
<div class="input-field col s6 offset-s3 center">
<u><a id="fillSignUp" style="color: black;">Faire une demande de création de
compte</a></u>
</div>
</div>
<div id="secondStepConnexion" class="hide">
<div class="input-field col s6 offset-s3">
<input id="mdpConnexion" type="password" required minlength="6" class="validate">
<label for="icon_prefix">Mot de passe</label>
</div>
<!-- TODO voir pouquoi l'affichage du mot de passe ne foncitonne pas -> voir dans le fichier design.js -->
<div class="input-field col s6 offset-s3">
<label>
<input id="show_pwd" type="checkbox" />
<span>voir le mot de passe</span>
</label>
</div>
</div>
</div>
</form>
</div>
</div>
<div class="modal-footer">
<a id="connexion-validation" href="#" class="waves-effect waves-red btn-flat">Suivant</a>
</div>
</div>
<div id="phoneAppDiv"></div>
<ul id="resultHandler" class="collapsible" style="display: none;"></ul>
</body>
</html>