diff --git a/Calculator/index.html b/Calculator/index.html deleted file mode 100644 index 41bc2af7..00000000 --- a/Calculator/index.html +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - - - - Calculator - - - -
-
- -
- - - - -
-
- - - - -
-
- - - - -
-
- - - - -
- -
- - - - -
-
-
- - - - - \ No newline at end of file diff --git a/Calculator/scripts/script.js b/Calculator/scripts/script.js deleted file mode 100644 index 305772de..00000000 --- a/Calculator/scripts/script.js +++ /dev/null @@ -1,27 +0,0 @@ -let input = document.getElementById('inputBox'); -let buttons = document.querySelectorAll('button'); - -let string = ""; -let arr = Array.from(buttons); -arr.forEach(button => { - button.addEventListener('click', (e) => { - if (e.target.innerHTML == '=') { - string = eval(string); - input.value = string; - } - - else if (e.target.innerHTML == 'AC') { - string = ""; - input.value = string; - } - else if (e.target.innerHTML == 'DEL') { - string = string.substring(0, string.length - 1); - input.value = string; - } - else { - string += e.target.innerHTML; - input.value = string; - } - - }) -}); \ No newline at end of file diff --git a/Calculator/src/calci.css b/Calculator/src/calci.css new file mode 100644 index 00000000..7b2a00bb --- /dev/null +++ b/Calculator/src/calci.css @@ -0,0 +1,68 @@ +body{ + background-color: aliceblue; +} +*{ + margin:0; + padding:0; + box-sizing:border-box; + background-color: #ecf0f3; + font-family: sans-serif; + outline:none; +} +.container{ + height:100vh; + display:flex; + justify-content:center; + align-items:center; +} +.calci{ + padding:15px; + border-radius:30px; + display:grid; + grid-template-columns: repeat(4,68px); + box-shadow: inset 5px 5px 12px #ffffff, + 5px 5px 12px rgba(0,0,0,.16); +} +input{ + grid-column:span 4 ; + height:60px; + width:250px; + background-color: #ecf0f3; + box-shadow: inset -5px -5px 12px #ffffff, + 5px 5px 12px rgba(0,0,0,.16); + border:none; + border-radius:30px; + font-size: 50px; + text-align: end; + margin:auto; + margin-top:40px; + margin-bottom:30px; + padding:20px; + color:rgba(70,70,70); + +} +input:hover{ + background-color: aqua; +} +button{ + height:48px; + width:48px; + background-color: #ecf0f3; + box-shadow: inset -5px -5px 12px #ffffff, + 5px 5px 12px rgba(0,0,0,.16); + border:none; + border-radius:30px; + margin:8px; + font-size: 15px; +} +.equal{ + width:115px; + border-radius: 40px; + background-color:#ecf0f3; + box-shadow: inset -5px -5px 12px #ffffff, + 5px 5px 12px rgba(0,0,0,.16); +} +button:hover{ + background-color:aqua; +} + \ No newline at end of file diff --git a/Calculator/src/index.html b/Calculator/src/index.html new file mode 100644 index 00000000..bb769e6a --- /dev/null +++ b/Calculator/src/index.html @@ -0,0 +1,56 @@ + + + + + + Document + + + +
+
+ + + + + + + + + + + + + + + + + + + + + +
+
+ + + \ No newline at end of file diff --git a/Calculator/src/style.css b/Calculator/src/style.css deleted file mode 100644 index d608264c..00000000 --- a/Calculator/src/style.css +++ /dev/null @@ -1,74 +0,0 @@ -@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap'); - -* { - margin: 0; - padding: 0; - box-sizing: border-box; - font-family: 'Poppins', sans-serif; -} - -body { - background: linear-gradient(45deg, #0a0a0a, #3a4452); - user-select: none; - width: 100%; - height: 100vh; - display: flex; - justify-content: center; - align-items: center; -} - -.calculator { - border: 1px solid #717377; - padding: 5px; - border-radius: 16px; - background: transparent; - box-shadow: 0px 3px 15px rgba(113, 115, 119, 0.5); -} - -input { - width: 320px; - border: none; - padding: 24px; - margin: 10px; - background: transparent; - box-shadow: 0px 3px 15px rgba(21, 20, 20, 0.463); - border-radius: 16px; - font-size: 40px; - text-align: right; - cursor: pointer; - color: #ffffff; -} -input:hover{ - background-color:skyblue; -} - -input::placeholder { - color: #ffffff; -} - -button { - border: none; - width: 60px; - height: 60px; - margin: 10px; - border-radius: 50%; - background: transparent; - color: #ffffff; - font-size: 20px; - box-shadow: -8px -8px 15px rgba(255, 255, 255, 0.1); - cursor: pointer; -} -button:hover{ - background-color: aqua; -} - -.equalBtn { - background-color: #fb7c14; -} - -.operator { - color: #6dee0a; -} -.operator:hover{ - background-color: yellow; -} \ No newline at end of file