-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
75 lines (71 loc) · 3.21 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
<!doctype html>
<html lang="fr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Grille d'arithmétique élémentaire</title>
<link rel="stylesheet" href="animate.css">
<link rel="stylesheet" href="index.css">
</head>
<body onload="ctrl.enter.click()">
<header>
<form name="ctrl" onsubmit="onSubmit(event)">
<div class="field">
<span class="toggle">
<input id="mult" type="checkbox" name="opr" value="×" onchange="onChangeStopLastUncheck(event)" checked>
<label for="mult">×</label>
</span>
<span class="toggle">
<input id="div" type="checkbox" name="opr" value="÷" onchange="onChangeStopLastUncheck(event)">
<label for="div">÷</label>
</span>
<span class="toggle">
<input id="add" type="checkbox" name="opr" value="+" onchange="onChangeStopLastUncheck(event)">
<label for="add">+</label>
</span>
<span class="toggle">
<input id="subs" type="checkbox" name="opr" value="-" onchange="onChangeStopLastUncheck(event)">
<label for="subs">-</label>
</span>
</div>
<div class="field">
<label for="qty">Quantité:</label>
<input id="qty" type="text" name="qty" autocomplete="off" pattern="\s*\d*\s*" required size="4" value="8">
</div>
<div class="field">
<label for="nos">Nombres:</label>
<input id="nos" type="text" name="nos" autocomplete="off" pattern="\s*(\d+(\s*[,\-]\s*\1)?)*\s*" required size="4" value="1-10">
</div>
<div class="field">
<button name="enter">
↵
</button>
</div>
</form>
</header>
<main>
<form
name="grid"
data-stickers="01 02 03 04 05 06 07 08 09 10 11 12 13 14 30 32 34"
data-animations="bounce rubberBand shake swing tada wobble jello bounceIn flip lightSpeedIn rotateIn jackInTheBox rollIn">
</form>
</main>
<template id="grid-op">
<div class="op" style="opacity:0">
<output name="a" class="a">a</output>
<span class="o sign">+</span>
<span class="b">b</span>
<span class="sign">=</span>
<input type="number" name="ans" size="2" value="" autocomplete="off" onkeyup="onAnsKeyUp(event)">
</div>
</template>
<template id="grid-footer">
<footer style="opacity:0">
<button name="complete" disabled onclick="onCompleteClick(event)">Corriger</button>
<output name="timer"></output>
<output name="score"></output>
</footer>
</template>
<script src="index.js"></script>
</body>
</html>