File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed
Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -22,10 +22,7 @@ body {
2222 border : black 1px solid;
2323 border-radius : 15px ;
2424 overflow : hidden;
25- display : grid;
2625 background-color : rgb (27 22 22 / 39% );
27- justify-content : center;
28-
2926}
3027
3128.sliding-part {
@@ -42,9 +39,15 @@ body {
4239 background-color : rgb (27 22 22 / 39% );
4340 transform : translateX (0px );
4441 transition : transform 2s ;
45-
42+ }
43+
44+ .computation-history {
45+ height : 530px ;
46+ width : 400px ;
4647
4748}
49+
50+
4851.history-btn ,
4952.child {
5053 border : 1px black solid;
8891 grid-column-end : 2 ;
8992}
9093
94+
95+
Original file line number Diff line number Diff line change 3535 < div data-value =") " data-operator class ="child operator "> )</ div >
3636 </ div >
3737 < div class ="computation-history ">
38+ hello
3839
3940 </ div >
4041
Original file line number Diff line number Diff line change 11const btns = document . querySelectorAll ( "[data-value]" ) ;
2+ const computationHistory = document . querySelector ( ".computation-history" ) ;
23let screen = document . querySelector ( "[data-screen]" ) ;
34const historyBtn = document . querySelector ( ".history-btn" ) ;
45const slidingPart = document . querySelector ( ".sliding-part" ) ;
56const operators = document . querySelectorAll ( "[data-operator]" ) ;
67
8+
79const operatorRegex = / [ \/ * \- + ] / ;
810const ZERO = 0 ;
911const ZERO_DOT = '0.' ;
@@ -14,10 +16,12 @@ console.log(slidingPart)
1416
1517historyBtn . addEventListener ( "click" , ( ) => {
1618 slidingPart . classList . toggle ( "slide" )
17- console . log ( "history btn" )
1819} )
1920
2021
22+ console . log ( computationHistory )
23+
24+
2125
2226
2327let data = [ ] ;
You can’t perform that action at this time.
0 commit comments