Thanks to visit codestin.com
Credit goes to github.com

Skip to content

JavaScript1 Week2 exercises #18

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

Open
wants to merge 25 commits into
base: George-Mouzakis
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
25 commits
Select commit Hold shift + click to select a range
d96bc4b
branch test
GMouzakis Jan 16, 2020
49c8a1b
JavaScript Week1 Homework done GMouzakis
GMouzakis Jan 24, 2020
d14bdcf
Add files via upload
GMouzakis Jan 24, 2020
6893ed8
fixed some calculator bugs
GMouzakis Feb 2, 2020
6ddab31
calc changes
GMouzakis Feb 2, 2020
a20eeac
Merge branch 'George-Mouzakis' of https://github.com/GMouzakis/JavaSc…
GMouzakis Feb 2, 2020
cfa0bbb
fixed some directory problems
GMouzakis Feb 2, 2020
e9d39f8
JS1 Week1 Exercises
GMouzakis Feb 2, 2020
949f057
JS1 Week1 exercises
GMouzakis Feb 2, 2020
a636abe
JS1 Week1 Exercises
GMouzakis Feb 2, 2020
8e5476a
Merge branch 'George-Mouzakis' of https://github.com/GMouzakis/JavaSc…
GMouzakis Feb 3, 2020
d24ddcf
JavaScript1 Week2 exercises
GMouzakis Feb 9, 2020
5f78285
JS1 Week1 Week2 exercises
GMouzakis Feb 10, 2020
fcbc872
Merge pull request #1 from GMouzakis/George-Mouzakis
GMouzakis Feb 10, 2020
e5e1aad
Merge branch 'master' of https://github.com/GMouzakis/JavaScript1
GMouzakis Feb 10, 2020
0cf43aa
folder fixes
GMouzakis Feb 10, 2020
c372e70
JS1_w2e5 fix
GMouzakis Feb 11, 2020
960ee42
JS1_Week2_Project_GradeCalculator
GMouzakis Feb 12, 2020
fa53d05
JS1 Week3 exercises and some fixes
GMouzakis Feb 12, 2020
ca68def
JS1 w2 project gradeCalculator fix
GMouzakis Feb 13, 2020
6ba4dfb
Create README.md
GMouzakis Feb 13, 2020
c0e08c5
Merge branch 'master' of https://github.com/GMouzakis/JavaScript1
GMouzakis Feb 13, 2020
8ee876b
JS1 w3 project CreditCard Validator
GMouzakis Feb 16, 2020
4ed7563
JS1 week3 project CreditCard Validator fix
GMouzakis Feb 16, 2020
ec28eae
JS1 week3 project CreditCard Validator fix
GMouzakis Feb 16, 2020
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 Week1/homework/calculator/bkgd.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
324 changes: 324 additions & 0 deletions Week1/homework/calculator/calc.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
53 changes: 53 additions & 0 deletions Week1/homework/calculator/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
<!DOCTYPE html>

<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, width=device-width, user-scalable=true" />
<title>Simple Calculator</title>
<meta name="description" content="A simple calculator made by Georgios Mouzakis for JS week1 homework.">
<link rel="stylesheet" href="main.css">
<script type="text/javascript" src="main.js"></script>
</head>

<body>
<div class="container">
<h4>Simple Calculator</h4>
<tr>
<td colspan="5"><div id="display-container"><div id="display1"><small><small><span></span></small></small></div><div id="h1"><small><small><span></span></small></small></div></div></td>
</tr>

<tr>
<td><button id="c" class="top" onclick='getElementById("h1").innerHTML = c("")'>C</button></td>
</tr>

<tr>
<td><button onclick='getElementById("h1").innerHTML = digit("7")'>7</button></td>
<td><button onclick='getElementById("h1").innerHTML = digit("8")'>8</button></td>
<td><button onclick='getElementById("h1").innerHTML = digit("9")'>9</button></td>
<td><button onclick='getElementById("h1").innerHTML = operators("+")'>+</button></td>
</tr>

<tr>
<td><button onclick='getElementById("h1").innerHTML = digit("4")'>4</button></td>
<td><button onclick='getElementById("h1").innerHTML = digit("5")'>5</button></td>
<td><button onclick='getElementById("h1").innerHTML = digit("6")'>6</button></td>
<td><button onclick='getElementById("h1").innerHTML = operators("-")'>-</button></td>
</tr>

<tr>
<td><button onclick='getElementById("h1").innerHTML = digit("1")'>1</button></td>
<td><button onclick='getElementById("h1").innerHTML = digit("2")'>2</button></td>
<td><button onclick='getElementById("h1").innerHTML = digit("3")'>3</button></td>
<td><button onclick='getElementById("h1").innerHTML = operators("/")'>/</button></td>
</tr>

<tr>
<td><button onclick='getElementById("h1").innerHTML = dot(".")'>.</button></td>
<td><button onclick='getElementById("h1").innerHTML = digit("0")'>0</button></td>
<td><button onclick='getElementById("h1").innerHTML = equal()'>=</button></td>
<td><button onclick='getElementById("h1").innerHTML = operators("*")'>X</button></td>
</tr>
</div>
</body>
</html>
Loading