-
Notifications
You must be signed in to change notification settings - Fork 5
Calculator-Js #4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,107 @@ | ||
|
|
||
| .container { | ||
| text-align: inline-block; | ||
|
|
||
|
|
||
| } | ||
|
|
||
| .card { | ||
| background-color:#0F0140 ; | ||
| margin-top: 200px; | ||
| margin-right: auto; | ||
| margin-left: auto; | ||
| width: 10; | ||
| border-radius: 15% 15% 15% 15%; | ||
|
|
||
|
|
||
| } | ||
|
|
||
|
|
||
|
|
||
| .input { | ||
| text-align: right; | ||
| font-size: 32px; | ||
| margin-right: 65px; | ||
| margin-left: 65px; | ||
| display: inline-block; | ||
| width: 575px; | ||
| height: 100px; | ||
| border-radius: 5% 5% 5% 5%; | ||
|
|
||
|
|
||
|
|
||
| } | ||
|
|
||
|
|
||
|
|
||
| .btm{ | ||
| background-color: #2405F2; | ||
| margin: 40px 15px 15px 15px; | ||
| font-size: 32px; | ||
| margin-left: 10px; | ||
| margin-right: 10px; | ||
| width: 125px; | ||
| text-align: center; | ||
| color: white; | ||
| border-radius: 8% 8% 8% 8%; | ||
| /*height: 55px;*/ | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| } | ||
|
|
||
| /* could not get the purple*/ | ||
|
|
||
| .btm:hover{ | ||
|
|
||
| background-color: #F29F05 ; | ||
| } | ||
|
|
||
|
|
||
| .equal-button{ | ||
| background-color: #6805F2; | ||
|
|
||
| } | ||
|
|
||
|
|
||
|
|
||
|
|
||
| .buttonrow{ | ||
| margin: 50px 20px 50px 20px; | ||
| padding: 5% 5% 5% 5%; | ||
| position: relative; | ||
|
|
||
|
|
||
|
|
||
|
|
||
| } | ||
|
|
||
|
|
||
|
|
||
| #purp{ | ||
| background-color: purple ; | ||
|
|
||
| } | ||
|
|
||
|
|
||
|
|
||
|
|
||
| #purp:hover{ | ||
|
|
||
| background-color: #BF05F2; | ||
|
|
||
| } | ||
|
|
||
| h1{ | ||
| color: white; | ||
| margin-top: 5px; | ||
| margin-left: 70px; | ||
|
|
||
| } | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,116 @@ | ||
| <!DOCTYPE html> | ||
| <html> | ||
| <head> | ||
| <title>Calculator</title> | ||
| <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous"> | ||
| <script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script> | ||
| <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script> | ||
| <link rel="stylesheet" href="Calculator.css"> | ||
| </head> | ||
|
|
||
| <body> | ||
|
|
||
|
|
||
|
|
||
|
|
||
| <div class="card" style="width: 50rem; height: 50rem"> | ||
| <div class="card-body"> | ||
|
|
||
| <div class="container"> | ||
| <form> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I did not specify this but the display at the top should be read only. Drop the form as we don't want it for the next step |
||
|
|
||
| <h1> Standard | Scientific</h1> | ||
| <br> | ||
|
|
||
|
|
||
|
|
||
| <div> | ||
| <input class="input" id="calculator_field" name="calculator_field" value="0"></input> | ||
| </div> | ||
|
|
||
|
|
||
| <span class="buttonrow"> | ||
| <button class="btm equal-button" >(</button> | ||
| <button class="btm equal-button">)</button> | ||
| <button class="btm equal-button" >%</button> | ||
| <button class="btm equal-button" >AC</button> | ||
| </span> | ||
|
|
||
|
|
||
| <span class="buttonrow"> | ||
| <button class="btm">7</button> | ||
| <button class="btm">8</button> | ||
| <button class="btm">9</button> | ||
| <button class="btm equal-button">÷</button> | ||
| </span> | ||
|
|
||
|
|
||
|
|
||
| <span class="buttonrow"> | ||
| <button class="btm">4</button> | ||
| <button class="btm">5</button> | ||
| <button class="btm">6</button> | ||
| <button class="btm equal-button">× </button> | ||
| </span> | ||
|
|
||
|
|
||
|
|
||
| <span class="buttonrow"> | ||
| <button class="btm">1</button> | ||
| <button class="btm">2</button> | ||
| <button class="btm">3</button> | ||
| <button class="btm equal-button">-</button> | ||
| </span> | ||
|
|
||
| <!--Man try to do git on my own--> | ||
|
|
||
| <span class="buttonrow"> | ||
| <button class="btm">0</button> | ||
| <button class="btm ">.</button> | ||
| <button class="btm equal-button" id="purp">=</button> | ||
| <button class="btm equal-button">+</button> | ||
|
|
||
| </span> | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| </form> | ||
|
|
||
|
|
||
| </div> | ||
|
|
||
| </div> | ||
| </div> | ||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
| </body> | ||
|
|
||
|
|
||
|
|
||
|
|
||
| </html> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Minor style issues. Make sure you format/indent your documents correctly. (-2) 95/100 Great work! |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean btn?