Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
107 changes: 107 additions & 0 deletions Calculator.css
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{
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did you mean btn?

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;

}





116 changes: 116 additions & 0 deletions Calculator.html
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>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The 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">&#247;</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">&times; </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>
Copy link
Copy Markdown

Choose a reason for hiding this comment

The 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!