From 7122ca8f8f660d5d79a84517a9ff5965ce618f2d Mon Sep 17 00:00:00 2001 From: Abuzer ALACA Date: Tue, 26 Nov 2019 18:50:06 +0100 Subject: [PATCH 1/3] Added first and second homework --- Week1/Homework/js-exercises/ErrorDebug.js | 3 +++ Week1/Homework/js-exercises/logHello.js | 12 ++++++++++++ 2 files changed, 15 insertions(+) create mode 100644 Week1/Homework/js-exercises/ErrorDebug.js create mode 100644 Week1/Homework/js-exercises/logHello.js diff --git a/Week1/Homework/js-exercises/ErrorDebug.js b/Week1/Homework/js-exercises/ErrorDebug.js new file mode 100644 index 000000000..032bc346e --- /dev/null +++ b/Week1/Homework/js-exercises/ErrorDebug.js @@ -0,0 +1,3 @@ +"use strict"; + +console.log("I'm awesome"); diff --git a/Week1/Homework/js-exercises/logHello.js b/Week1/Homework/js-exercises/logHello.js new file mode 100644 index 000000000..427708433 --- /dev/null +++ b/Week1/Homework/js-exercises/logHello.js @@ -0,0 +1,12 @@ +"use strict"; + +console.log("Merhaba, Dunya"); +console.log("Hello, World"); +console.log("Cześć, świecie"); +console.log("Ola mundo"); +console.log("Привет Дуня"); +console.log("नमस्कार, दुन्या"); +console.log("こんにちは、World"); +console.log("Silav, cîhan"); +console.log("مرحبا ، العالم"); +console.log("Hola mundo"); From d41b0438b0411ae21f96b6a9637c0afc625d5028 Mon Sep 17 00:00:00 2001 From: Abuzer ALACA Date: Tue, 26 Nov 2019 19:51:31 +0100 Subject: [PATCH 2/3] Erased the worng folder --- Week1/Homework/js-exercises/ErrorDebug.js | 3 --- Week1/Homework/js-exercises/logHello.js | 12 ------------ 2 files changed, 15 deletions(-) delete mode 100644 Week1/Homework/js-exercises/ErrorDebug.js delete mode 100644 Week1/Homework/js-exercises/logHello.js diff --git a/Week1/Homework/js-exercises/ErrorDebug.js b/Week1/Homework/js-exercises/ErrorDebug.js deleted file mode 100644 index 032bc346e..000000000 --- a/Week1/Homework/js-exercises/ErrorDebug.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -console.log("I'm awesome"); diff --git a/Week1/Homework/js-exercises/logHello.js b/Week1/Homework/js-exercises/logHello.js deleted file mode 100644 index 427708433..000000000 --- a/Week1/Homework/js-exercises/logHello.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -console.log("Merhaba, Dunya"); -console.log("Hello, World"); -console.log("Cześć, świecie"); -console.log("Ola mundo"); -console.log("Привет Дуня"); -console.log("नमस्कार, दुन्या"); -console.log("こんにちは、World"); -console.log("Silav, cîhan"); -console.log("مرحبا ، العالم"); -console.log("Hola mundo"); From bf1e897763eae4f97de3cf6d1d17d7748cbff114 Mon Sep 17 00:00:00 2001 From: Abuzer ALACA Date: Wed, 27 Nov 2019 22:16:28 +0100 Subject: [PATCH 3/3] Added calculator --- Week1/Calculator/index.html | 177 ++++++++++++++++++++++++++++++++++++ Week1/Calculator/style.css | 74 +++++++++++++++ 2 files changed, 251 insertions(+) create mode 100644 Week1/Calculator/index.html create mode 100644 Week1/Calculator/style.css diff --git a/Week1/Calculator/index.html b/Week1/Calculator/index.html new file mode 100644 index 000000000..ab1183a91 --- /dev/null +++ b/Week1/Calculator/index.html @@ -0,0 +1,177 @@ + + + + + + + + + Calculator + + + +

HTML Calculator

+
+
+
0
+
+
+
AC
+
+
+ ÷ +
+
+
+
7
+
8
+
9
+
+ x +
+
+
+
4
+
5
+
6
+
+
+
+
+
1
+
2
+
3
+
-
+
+
+
0
+
.
+
=
+
+
+ + + + + \ No newline at end of file diff --git a/Week1/Calculator/style.css b/Week1/Calculator/style.css new file mode 100644 index 000000000..4044a0096 --- /dev/null +++ b/Week1/Calculator/style.css @@ -0,0 +1,74 @@ +@import url("https://fonts.googleapis.com/css?family=Roboto:100&display=swap"); + +body { + font-family: "Roboto", sans-serif; + user-select: none; +} + +h1 { + text-align: center; + margin-top: 50px; +} + +.calc-parent { + margin-left: calc(50% - 125px); +} +.calc-btn { + background-color: silver; + color: #000; + width: 25px; + height: 45px; + border: 1px solid gray; + text-align: center; + cursor: pointer; + font-size: 32px; + font-weight: 100; + padding-top: 3px; +} + +.calc-btn:hover { + background-color: orange; +} + +.row { + display: table; + table-layout: fixed; + width: 250px; +} + +.column { + display: table-cell; +} + +#calc-zero { + width: 52.66666667px; + border-radius: 0 0 0 7px; +} + +#calc-clear { + width: 52.66666667px; +} + +#calc-equals { + border-radius: 0 0 7px 0; +} + +#calc-display-val { + height: 80px; + color: white; + text-align: right; + border-right: 1px solid gray; + border-left: 1px solid gray; + border-top: 1px solid gray; + font-size: 48px; + background-color: #383838; + overflow: hidden; + white-space: nowrap; + padding: 12px 12px 0 12px; + border-radius: 7px 7px 0 0; +} + +.calc-btn-operator { + background-color: orange; + color: white; +}