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
Binary file added .DS_Store
Binary file not shown.
47 changes: 47 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div id="container">
<div id="calculator">
<div class="standard">Standard | </div>
<a href="scientific.html" id="scientific">Scientific</a>

<div id= "outcome">
<div class="previously-typed">0</div>
<div class="currently-typed"></div>
<div id="keys"></div>
</div>
<button data-parantheses>(</button>
<button data-parantheses-two>)</button>
<button data-operation>%</button>
<button data-all-clear>AC</button>
<button data-number>7</button>
<button data-number>8</button>
<button data-number>9</button>
<button data-operation>÷</button>
<button data-number>4</button>
<button data-number>5</button>
<button data-number>6</button>
<button data-operation>x</button>
<button data-number>1</button>
<button data-number>2</button>
<button data-number>3</button>
<button data-operation>-</button>
<button data-number>0</button>
<button data-number>.</button>
<button data-equals>=</button>
<button data-operation>+</button>

</div>

</div>

<form name="calculator"></form>

</body>


</html>
61 changes: 61 additions & 0 deletions scientific.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div id="container">
<div id="calculator-two">
<a href="index.html" id="standard">Standard</a>
<div class="standard">| Scientific</div>

<div id= "outcome-two">
<div class="previously-typed">0</div>
<div class="currently-typed"></div>
<div id="keys"></div>
</div>
<button data-function class=span>Rad | Deg</button>
<button data-operation>x!</button>
<button data-parantheses>(</button>
<button data-parantheses-two>)</button>
<button data-operation>%</button>
<button data-all-clear>AC</button>
<button data-function>Inv</button>
<button data-function>sin</button>
<button data-function>ln</button>
<button data-number>7</button>
<button data-number>8</button>
<button data-number>9</button>
<button data-operation>÷</button>
<button data-function>&pi;</button>
<button data-function>cos</button>
<button data-function>log</button>
<button data-number>4</button>
<button data-number>5</button>
<button data-number>6</button>
<button data-operation>x</button>
<button data-function>e</button>
<button data-function>tan</button>
<button data-operation>&radic;</button>
<button data-number>1</button>
<button data-number>2</button>
<button data-number>3</button>
<button data-operation>-</button>
<button data-answer>Ans</button>
<button data-exponential>EXP</button>
<button data-function><i>X</i><span class=sup>y</span></button>
<button data-number>0</button>
<button data-number>.</button>
<button data-equals>=</button>
<button data-operation>+</button>

</div>

</div>

<form name="calculator"></form>

</body>


</html>
104 changes: 104 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
body{
background:linear-gradient(to right,#dcd0ff,#fadadd );
font-family:Georgia;
font-size: 1.25rem;
font-weight: 300;

}

/*Sizing and color of calc*/
#calculator{
width :425px;
height:400px ;
background-color: whitesmoke;
margin: auto;
margin-top: 100px;
display:grid;
justify-content: center;
align-content:center;
grid-template-columns:repeat(4,100px);
grid-template-rows: minmax(100Spx,auto)repeat(5,100px) ;
border-radius: 12px;
}

#calculator-two{
width :800px;
height:530px ;
background-color: whitesmoke;
margin: auto;
margin-top: 100px;
display:grid;
justify-content: center;
align-content:center;
grid-template-columns:repeat(7,100px);
grid-template-rows: minmax(100Spx,auto)repeat(5,100px) ;
border-radius: 12px;
}


button{
font-size:1.5rem;
border:3px solid white;
outline:none;
background-color:lightgray;
border-radius: 12px;
}

button:hover{
background-color: whitesmoke;
}


#outcome{
grid-column: 1 / -1;
background-color: lightgray;
display:flex;
align-items:flex-end;
justify-content:space-around;
flex-direction: column;
padding:10px;
margin-top:30px;
border-radius:12px;
word-wrap:break-word;
word-wrap: break-all;
min-height: 60px;
margin-bottom: 20px;
}

#outcome-two{
grid-column: 1 / -1;
background-color: lightgray;
display:flex;
align-items:flex-end;
justify-content:space-around;
flex-direction: column;
padding:10px;
margin-top:30px;
border-radius:12px;
word-wrap:break-word;
word-wrap: break-all;
min-height: 60px;
margin-bottom: 20px;
}


.previously-typed {
font-size:2.0rem;
}
.currently-typed{
font-size:2.0em;
}

.standard{
margin-bottom:15px;

}

.sup {
position: relative;
bottom: 1ex;
font-size: 80%;
}
.span {
grid-column: span 2;
}