summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorlucashemi <lucasxberger@gmail.com>2023-01-04 19:24:50 -0300
committerlucashemi <lucasxberger@gmail.com>2023-01-04 19:24:50 -0300
commit0cdfcee8cb3e63d3b46342e203ce1899221e83f0 (patch)
treeb775dcbe7f077add5a590223cdf4ce41aad0bb99 /index.html
parentc8a8bcb952a31e678b85e31d455ce03d440682fe (diff)
Javascript Update
Diffstat (limited to 'index.html')
-rw-r--r--index.html38
1 files changed, 17 insertions, 21 deletions
diff --git a/index.html b/index.html
index f648386..aa37194 100644
--- a/index.html
+++ b/index.html
@@ -10,29 +10,25 @@
</head>
<body>
<div class="container">
- <span class="results buttons">0</span>
- <button class="button-c buttons">C</button>
- <button class="button-z buttons num">0</button>
-
+ <span class="results buttons"></span>
+ <button class="button-C buttons data-value">C</button>
<button class="button-X buttons">X</button>
-
- <button class="button-div buttons sp">/</button>
- <button class="button-mult buttons sp">*</button>
- <button class="button-min buttons sp">-</button>
- <button class="button-plus buttons sp">+</button>
+ <button class="button-div buttons sp" data-value="/">/</button>
+ <button class="button-mult buttons sp" data-value="*">*</button>
+ <button class="button-min buttons sp" data-value="-">-</button>
+ <button class="button-plus buttons sp" data-value="+">+</button>
<button class="button-eq buttons sp">=</button>
-
- <button class="button-dot buttons">.</button>
-
- <button class="button-one buttons num">1</button>
- <button class="button-two buttons num">2</button>
- <button class="button-three buttons num">3</button>
- <button class="button-four buttons num">4</button>
- <button class="button-five buttons num">5</button>
- <button class="button-six buttons num">6</button>
- <button class="button-seven buttons num">7</button>
- <button class="button-eight buttons num">8</button>
- <button class="button-nine buttons num">9</button>
+ <button class="button-dot buttons" data-value=".">.</button>
+ <button class="button-one buttons num" data-value="1">1</button>
+ <button class="button-two buttons num" data-value="2">2</button>
+ <button class="button-three buttons num" data-value="3">3</button>
+ <button class="button-four buttons num" data-value="4">4</button>
+ <button class="button-five buttons num" data-value="5">5</button>
+ <button class="button-six buttons num" data-valuem="6">6</button>
+ <button class="button-seven buttons num" data-value="7">7</button>
+ <button class="button-eight buttons num" data-value="8">8</button>
+ <button class="button-nine buttons num" data-value="9">9</button>
+ <button class="button-zero buttons num" data-value="0">0</button>
</div>
</body>
<script src="./script.js" defer></script>