-
Notifications
You must be signed in to change notification settings - Fork 2
/
Calcul.html
59 lines (58 loc) · 3.31 KB
/
Calcul.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
<link rel="icon" href="calcul-icon.png">
<title>Calculatrice</title>
<script src="https://kit.fontawesome.com/6e1f11847a.js" crossorigin="anonymous"></script>
</head>
<body>
<header>
<label id="dark-change">
</header>
<table>
<tr>
<td colspan="3"><input type="text" class="but" id="display" disabled></td>
<td><button onclick="clearStock()" class="depart"><i class="fa-solid fa-trash"></i></button></td>
<td><button onclick="clearoneStock()" class="depart"><i class="fa-solid fa-delete-left"></i> </button></td>
<td><button class="depart" ><a href="sortie.html"><i class="fa fa-power-off" aria-hidden="true"></i></a></button></td>
</tr>
<tr>
<td><button id="1" onclick="addNumber('1')" class="btn">1</button></td>
<td><button id="2" onclick="addNumber('2')" class="btn">2</button></td>
<td><button id="3" onclick="addNumber('3')" class="btn">3</button></td>
<td><button id="+" onclick="addNumber('+')" class="Trait">+</button></td>
<td><button id="-" onclick="addNumber('-')" class="Trait">-</button></td>
<td><button onclick="binaire()" class="Trait">Bin</button></td>
</tr>
<tr>
<td><button id="4" onclick="addNumber('4')" class="btn">4</button></td>
<td><button id="5" onclick="addNumber('5')" class="btn">5</button></td>
<td><button id="6" onclick="addNumber('6')" class="btn">6</button></td>
<td><button id="*" onclick="addNumber('*')" class="Trait">x</button></td>
<td><button id="/" onclick="addNumber('/')" class="Trait">/</button></td>
<td><button onclick="Age()" class="Trait">Age</button></td>
</tr>
<tr>
<td><button id="7" onclick="addNumber('7')" class="btn">7</button></td>
<td><button id="8" onclick="addNumber('8')" class="btn">8</button></td>
<td><button id="9" onclick="addNumber('9')" class="btn">9</button></td>
<td><button ondblclick="carre()" onclick="addNumber('²')" class="Trait" >x²</button></td>
<td><button id="%" onclick="addNumber('%')" class="Trait">%</button></td>
<td><button onclick="mo9abil()" class="Trait">+/-</button></td>
</tr>
<tr>
<td><button id="." onclick="addNumber('.')" class="btn">.</button></td>
<td><button id="0" onclick="addNumber('0')" class="btn">0</button></td>
<td><button id="=" onclick="clalculate()" class="egal">=</button></td>
<td><button id="Ans" class="Trait" onclick="historique()">Ans</button></td>
<td><button class="Trait" onclick="fact()">Fact</button></td>
<td><button id="ra" class="Trait" onclick="romai()">Roman</button></td>
</tr>
</table>
</div>
<script src="calcul.js"></script>
</html>