-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
39 lines (37 loc) · 1.15 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
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Accueil</title>
<link rel="stylesheet" href="css/index.css">
</head>
<body>
<img id="logo" src="media/img/sudoku-title.png" alt="Logo du site"/>
<form action="sudoku.html" id="options">
<input onkeydown="return keyispressed(event)" id="pseudo" name="pseudo" type="text" placeholder="Pseudo" maxlength="30">
<br>
<label>Difficulté :</label>
<select name="difficulty" id="time">
<option value="1min">Très facile (≈1 min)</option>
<option value="10min">Facile (≈10 min)</option>
<option value="15min" selected>Moyen (≈15 min)</option>
<option value="20min">Difficile (>20 min)</option>
</select>
<br>
<div title="Activer les aides">
<input id="help" name="help" type="checkbox">
<label>Aide</label>
</div>
<input id="start" type="submit" value="Lancer une partie !"/>
</form>
<script type="text/javascript">
// Empêche l'utilisateur de mettre des points-virgules dans son pseudo
function keyispressed(e){
if(e.key == ";"){
e.preventDefault();
}
return true;
}
</script>
</body>
</html>