Skip to content

Commit 230f3d4

Browse files
committed
feat: CC & Improve
1 parent 67089e4 commit 230f3d4

File tree

3 files changed

+16
-12
lines changed

3 files changed

+16
-12
lines changed

css/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,10 @@ body {
7272
opacity: 0.5;
7373
}
7474

75+
#num3, #num6, #num9, #point, #minus {
76+
background-color: orange;
77+
}
78+
7579
.MDJAminDiv {
7680
z-index: 4444;
7781
position: fixed;

index.html

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
href="favicon.png"
2323
type="image/x-icon"
2424
/>
25-
<title>Calculator</title>
25+
<title>Iphone Calculator</title>
2626
</head>
2727
<body>
2828
<section class="calculator">
@@ -32,61 +32,61 @@
3232
<div class="keys">
3333
<button
3434
class="num"
35-
id="1"
35+
id="num1"
3636
>
3737
1
3838
</button>
3939
<button
4040
class="num"
41-
id="2"
41+
id="num2"
4242
>
4343
2
4444
</button>
4545
<button
4646
class="num"
47-
id="3"
47+
id="num3"
4848
>
4949
3
5050
</button>
5151
<button
5252
class="num"
53-
id="4"
53+
id="num4"
5454
>
5555
4
5656
</button>
5757
<button
5858
class="num"
59-
id="5"
59+
id="num5"
6060
>
6161
5
6262
</button>
6363
<button
6464
class="num"
65-
id="6"
65+
id="num6"
6666
>
6767
6
6868
</button>
6969
<button
7070
class="num"
71-
id="7"
71+
id="num7"
7272
>
7373
7
7474
</button>
7575
<button
7676
class="num"
77-
id="8"
77+
id="num8"
7878
>
7979
8
8080
</button>
8181
<button
8282
class="num"
83-
id="9"
83+
id="num9"
8484
>
8585
9
8686
</button>
8787
<button
8888
class="num"
89-
id="0"
89+
id="num0"
9090
>
9191
0
9292
</button>

js/script.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ equalBtn.addEventListener("click", () => {
3434
screenTxt.textContent = result;
3535
currentInput = result.toString();
3636
} catch (error) {
37-
screenTxt.textContent = "خطا";
37+
screenTxt.textContent = "error";
3838
currentInput = "";
3939
}
4040
});

0 commit comments

Comments
 (0)