-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
110 lines (109 loc) · 3.39 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="style.css" />
<title>Document</title>
</head>
<body>
<div class="container">
<form action="">
<div>
<!-- TODO: enlever le texte dans ce paragraphe et la valeur de #input ci dessous -->
<p class="text-right tex-white" id="calcul"></p>
</div>
<div>
<input
class="text-right text-1 text-right w-max p-15"
name="userInput"
type="text"
value=""
id="input"
onblur="this.focus()"
maxlength="10"
autofocus
/>
</div>
<div>
<div class="buttons">
<div>
<button type="reset" class="danger" id="reset">AC</button>
</div>
<div>
<button type="button" class="secondary" id="clear">C</button>
</div>
<div>
<button type="button" class="secondary" id="plusoumoins">+/-</button>
</div>
<div>
<button type="submit" class="secondary" id="percentage">%</button>
</div>
<div>
<button type="submit" id="divideby">÷</button>
</div>
<div>
<button type="button" class="numpad digit">7</button>
</div>
<div>
<button type="button" class="numpad digit">8</button>
</div>
<div>
<button type="button" class="numpad digit">9</button>
</div>
<div>
<button type="submit" id="times">×</button>
</div>
<div>
<button type="button" class="numpad digit">4</button>
</div>
<div>
<button type="button" class="numpad digit">5</button>
</div>
<div>
<button type="button" class="numpad digit">6</button>
</div>
<div>
<button type="submit" id="minus">-</button>
</div>
<div>
<button type="button" class="numpad digit">1</button>
</div>
<div>
<button type="button" class="numpad digit">2</button>
</div>
<div>
<button type="button" class="numpad digit">3</button>
</div>
<div>
<button type="submit" id="plus">+</button>
</div>
<div>
<button type="button" class="numpad dot">.</button>
</div>
<div>
<button type="button" class="numpad digit">0</button>
</div>
<div>
<button type="submit" id="equals" >=</button>
</div>
<div>
<button type="submit" id="exp" >e</button>
</div>
<div>
<button type="submit" id="exposant" >exp</button>
</div>
<div>
<button type="button" id="two-zero" >00</button>
</div>
<div>
<button type="submit" id="neperien" >ln</button>
</div>
</div>
</div>
</form>
</div>
<script src="./calculator.js"></script>
<script src="./script.js"></script>
</body>
</html>