From c525b29ceb91c0abacfe9916aafb1b0b48d47880 Mon Sep 17 00:00:00 2001 From: Rasmus Luha Date: Fri, 24 Feb 2023 17:31:06 +0200 Subject: =?UTF-8?q?Soome=20m=C3=A4ng=20added?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../hinnad/fonts/1001fonts-eutemia-i-eula.txt | 31 --- rannak/mangud/arimees/hinnad/fonts/Eutemia.ttf | Bin 32564 -> 0 bytes rannak/mangud/arimees/hinnad/index.html | 223 ----------------- rannak/mangud/arimees/hinnad/pildid/avatar.png | Bin 73556 -> 0 bytes rannak/mangud/arimees/hinnad/pildid/kingad.png | Bin 2672289 -> 0 bytes rannak/mangud/arimees/hinnad/pildid/kohver.png | Bin 5128984 -> 0 bytes rannak/mangud/arimees/hinnad/pildid/kupsis.png | Bin 64952 -> 0 bytes rannak/mangud/arimees/hinnad/pildid/laud.png | Bin 1280042 -> 0 bytes rannak/mangud/arimees/hinnad/pildid/sai.png | Bin 2596703 -> 0 bytes rannak/mangud/arimees/hinnad/pildid/tugitool.png | Bin 5801727 -> 0 bytes rannak/mangud/arimees/hinnad/script.js | 69 ------ rannak/mangud/arimees/hinnad/styles.css | 175 ------------- .../pood.bak/fonts/1001fonts-eutemia-i-eula.txt | 31 +++ rannak/mangud/arimees/pood.bak/fonts/Eutemia.ttf | Bin 0 -> 32564 bytes rannak/mangud/arimees/pood.bak/index.html | 223 +++++++++++++++++ rannak/mangud/arimees/pood.bak/pildid/avatar.png | Bin 0 -> 73556 bytes rannak/mangud/arimees/pood.bak/pildid/kingad.png | Bin 0 -> 2672289 bytes rannak/mangud/arimees/pood.bak/pildid/kohver.png | Bin 0 -> 5128984 bytes rannak/mangud/arimees/pood.bak/pildid/kupsis.png | Bin 0 -> 64952 bytes rannak/mangud/arimees/pood.bak/pildid/laud.png | Bin 0 -> 1280042 bytes rannak/mangud/arimees/pood.bak/pildid/sai.png | Bin 0 -> 2596703 bytes rannak/mangud/arimees/pood.bak/pildid/tugitool.png | Bin 0 -> 5801727 bytes rannak/mangud/arimees/pood.bak/script.js | 69 ++++++ rannak/mangud/arimees/pood.bak/styles.css | 167 +++++++++++++ .../pood/fonts/1001fonts-eutemia-i-eula.txt | 31 +++ rannak/mangud/arimees/pood/fonts/Eutemia.ttf | Bin 0 -> 32564 bytes rannak/mangud/arimees/pood/index.html | 62 +++++ rannak/mangud/arimees/pood/pildid/avatar.png | Bin 0 -> 73556 bytes rannak/mangud/arimees/pood/pildid/kingad.png | Bin 0 -> 2672289 bytes rannak/mangud/arimees/pood/pildid/kohver.png | Bin 0 -> 5128984 bytes rannak/mangud/arimees/pood/pildid/kupsis.png | Bin 0 -> 64952 bytes rannak/mangud/arimees/pood/pildid/laud.png | Bin 0 -> 1280042 bytes rannak/mangud/arimees/pood/pildid/sai.png | Bin 0 -> 2596703 bytes rannak/mangud/arimees/pood/pildid/tugitool.png | Bin 0 -> 5801727 bytes rannak/mangud/arimees/pood/script.js | 69 ++++++ rannak/mangud/arimees/pood/styles.css | 167 +++++++++++++ rannak/mangud/arimees/soome/fonts/OFL.txt | 93 +++++++ rannak/mangud/arimees/soome/fonts/README.txt | 77 ++++++ .../soome/fonts/Rubik-Italic-VariableFont_wght.ttf | Bin 0 -> 202092 bytes .../soome/fonts/Rubik-VariableFont_wght.ttf | Bin 0 -> 208336 bytes .../arimees/soome/fonts/static/Rubik-Black.ttf | Bin 0 -> 124460 bytes .../soome/fonts/static/Rubik-BlackItalic.ttf | Bin 0 -> 122068 bytes .../arimees/soome/fonts/static/Rubik-Bold.ttf | Bin 0 -> 124900 bytes .../soome/fonts/static/Rubik-BoldItalic.ttf | Bin 0 -> 122244 bytes .../arimees/soome/fonts/static/Rubik-ExtraBold.ttf | Bin 0 -> 124760 bytes .../soome/fonts/static/Rubik-ExtraBoldItalic.ttf | Bin 0 -> 122348 bytes .../arimees/soome/fonts/static/Rubik-Italic.ttf | Bin 0 -> 122212 bytes .../arimees/soome/fonts/static/Rubik-Light.ttf | Bin 0 -> 124436 bytes .../soome/fonts/static/Rubik-LightItalic.ttf | Bin 0 -> 121892 bytes .../arimees/soome/fonts/static/Rubik-Medium.ttf | Bin 0 -> 124988 bytes .../soome/fonts/static/Rubik-MediumItalic.ttf | Bin 0 -> 122324 bytes .../arimees/soome/fonts/static/Rubik-Regular.ttf | Bin 0 -> 125032 bytes .../arimees/soome/fonts/static/Rubik-SemiBold.ttf | Bin 0 -> 124972 bytes .../soome/fonts/static/Rubik-SemiBoldItalic.ttf | Bin 0 -> 122372 bytes rannak/mangud/arimees/soome/index.html | 129 ++++++++++ rannak/mangud/arimees/soome/pildid/avatar.png | Bin 0 -> 73556 bytes rannak/mangud/arimees/soome/script.js | 66 +++++ rannak/mangud/arimees/soome/style.css | 130 ++++++++++ rannak/mangud/index.html | 2 +- rannak/mangud/kaitseliitlane/sundmused/index.html | 2 +- rannak/mangud/partorg/kuulsused/index.html | 2 +- rannak/mangud/partorg/plakat.bak/img/avatar.png | Bin 0 -> 657556 bytes rannak/mangud/partorg/plakat.bak/img/lenin.png | Bin 0 -> 37366 bytes rannak/mangud/partorg/plakat.bak/img/nazi.png | Bin 0 -> 20381 bytes .../mangud/partorg/plakat.bak/img/normalSelect.cur | Bin 0 -> 4286 bytes rannak/mangud/partorg/plakat.bak/img/redStar.png | Bin 0 -> 39590 bytes rannak/mangud/partorg/plakat.bak/img/stalin.jpg | Bin 0 -> 168805 bytes .../mangud/partorg/plakat.bak/img/stalinAddOn.png | Bin 0 -> 976997 bytes rannak/mangud/partorg/plakat.bak/img/testImg.jpg | Bin 0 -> 498451 bytes rannak/mangud/partorg/plakat.bak/img/veekogud.jpg | Bin 0 -> 223291 bytes rannak/mangud/partorg/plakat.bak/index.html | 125 ++++++++++ rannak/mangud/partorg/plakat.bak/main.js | 224 +++++++++++++++++ rannak/mangud/partorg/plakat.bak/style.css | 188 ++++++++++++++ rannak/mangud/partorg/plakat/img/lenin.png | Bin 37366 -> 0 bytes rannak/mangud/partorg/plakat/img/malev.jpg | Bin 0 -> 498451 bytes rannak/mangud/partorg/plakat/img/nazi.png | Bin 20381 -> 0 bytes rannak/mangud/partorg/plakat/img/normalSelect.cur | Bin 4286 -> 0 bytes rannak/mangud/partorg/plakat/img/redStar.png | Bin 39590 -> 0 bytes rannak/mangud/partorg/plakat/img/stalinAddOn.png | Bin 976997 -> 0 bytes rannak/mangud/partorg/plakat/img/viisAastak.jpg | Bin 0 -> 13173619 bytes rannak/mangud/partorg/plakat/index.html | 270 ++++++++++++++++----- rannak/mangud/partorg/plakat/main.js | 222 ----------------- rannak/mangud/partorg/plakat/script.js | 117 +++++++++ rannak/mangud/partorg/plakat/style.css | 188 -------------- rannak/mangud/partorg/plakat/styles.css | 197 +++++++++++++++ 85 files changed, 2371 insertions(+), 978 deletions(-) delete mode 100644 rannak/mangud/arimees/hinnad/fonts/1001fonts-eutemia-i-eula.txt delete mode 100644 rannak/mangud/arimees/hinnad/fonts/Eutemia.ttf delete mode 100644 rannak/mangud/arimees/hinnad/index.html delete mode 100644 rannak/mangud/arimees/hinnad/pildid/avatar.png delete mode 100644 rannak/mangud/arimees/hinnad/pildid/kingad.png delete mode 100644 rannak/mangud/arimees/hinnad/pildid/kohver.png delete mode 100644 rannak/mangud/arimees/hinnad/pildid/kupsis.png delete mode 100644 rannak/mangud/arimees/hinnad/pildid/laud.png delete mode 100644 rannak/mangud/arimees/hinnad/pildid/sai.png delete mode 100644 rannak/mangud/arimees/hinnad/pildid/tugitool.png delete mode 100644 rannak/mangud/arimees/hinnad/script.js delete mode 100644 rannak/mangud/arimees/hinnad/styles.css create mode 100644 rannak/mangud/arimees/pood.bak/fonts/1001fonts-eutemia-i-eula.txt create mode 100644 rannak/mangud/arimees/pood.bak/fonts/Eutemia.ttf create mode 100644 rannak/mangud/arimees/pood.bak/index.html create mode 100644 rannak/mangud/arimees/pood.bak/pildid/avatar.png create mode 100644 rannak/mangud/arimees/pood.bak/pildid/kingad.png create mode 100644 rannak/mangud/arimees/pood.bak/pildid/kohver.png create mode 100644 rannak/mangud/arimees/pood.bak/pildid/kupsis.png create mode 100644 rannak/mangud/arimees/pood.bak/pildid/laud.png create mode 100644 rannak/mangud/arimees/pood.bak/pildid/sai.png create mode 100644 rannak/mangud/arimees/pood.bak/pildid/tugitool.png create mode 100644 rannak/mangud/arimees/pood.bak/script.js create mode 100644 rannak/mangud/arimees/pood.bak/styles.css create mode 100644 rannak/mangud/arimees/pood/fonts/1001fonts-eutemia-i-eula.txt create mode 100644 rannak/mangud/arimees/pood/fonts/Eutemia.ttf create mode 100644 rannak/mangud/arimees/pood/index.html create mode 100644 rannak/mangud/arimees/pood/pildid/avatar.png create mode 100644 rannak/mangud/arimees/pood/pildid/kingad.png create mode 100644 rannak/mangud/arimees/pood/pildid/kohver.png create mode 100644 rannak/mangud/arimees/pood/pildid/kupsis.png create mode 100644 rannak/mangud/arimees/pood/pildid/laud.png create mode 100644 rannak/mangud/arimees/pood/pildid/sai.png create mode 100644 rannak/mangud/arimees/pood/pildid/tugitool.png create mode 100644 rannak/mangud/arimees/pood/script.js create mode 100644 rannak/mangud/arimees/pood/styles.css create mode 100644 rannak/mangud/arimees/soome/fonts/OFL.txt create mode 100644 rannak/mangud/arimees/soome/fonts/README.txt create mode 100644 rannak/mangud/arimees/soome/fonts/Rubik-Italic-VariableFont_wght.ttf create mode 100644 rannak/mangud/arimees/soome/fonts/Rubik-VariableFont_wght.ttf create mode 100644 rannak/mangud/arimees/soome/fonts/static/Rubik-Black.ttf create mode 100644 rannak/mangud/arimees/soome/fonts/static/Rubik-BlackItalic.ttf create mode 100644 rannak/mangud/arimees/soome/fonts/static/Rubik-Bold.ttf create mode 100644 rannak/mangud/arimees/soome/fonts/static/Rubik-BoldItalic.ttf create mode 100644 rannak/mangud/arimees/soome/fonts/static/Rubik-ExtraBold.ttf create mode 100644 rannak/mangud/arimees/soome/fonts/static/Rubik-ExtraBoldItalic.ttf create mode 100644 rannak/mangud/arimees/soome/fonts/static/Rubik-Italic.ttf create mode 100644 rannak/mangud/arimees/soome/fonts/static/Rubik-Light.ttf create mode 100644 rannak/mangud/arimees/soome/fonts/static/Rubik-LightItalic.ttf create mode 100644 rannak/mangud/arimees/soome/fonts/static/Rubik-Medium.ttf create mode 100644 rannak/mangud/arimees/soome/fonts/static/Rubik-MediumItalic.ttf create mode 100644 rannak/mangud/arimees/soome/fonts/static/Rubik-Regular.ttf create mode 100644 rannak/mangud/arimees/soome/fonts/static/Rubik-SemiBold.ttf create mode 100644 rannak/mangud/arimees/soome/fonts/static/Rubik-SemiBoldItalic.ttf create mode 100644 rannak/mangud/arimees/soome/index.html create mode 100644 rannak/mangud/arimees/soome/pildid/avatar.png create mode 100644 rannak/mangud/arimees/soome/script.js create mode 100644 rannak/mangud/arimees/soome/style.css create mode 100644 rannak/mangud/partorg/plakat.bak/img/avatar.png create mode 100644 rannak/mangud/partorg/plakat.bak/img/lenin.png create mode 100644 rannak/mangud/partorg/plakat.bak/img/nazi.png create mode 100644 rannak/mangud/partorg/plakat.bak/img/normalSelect.cur create mode 100644 rannak/mangud/partorg/plakat.bak/img/redStar.png create mode 100644 rannak/mangud/partorg/plakat.bak/img/stalin.jpg create mode 100644 rannak/mangud/partorg/plakat.bak/img/stalinAddOn.png create mode 100644 rannak/mangud/partorg/plakat.bak/img/testImg.jpg create mode 100644 rannak/mangud/partorg/plakat.bak/img/veekogud.jpg create mode 100644 rannak/mangud/partorg/plakat.bak/index.html create mode 100644 rannak/mangud/partorg/plakat.bak/main.js create mode 100644 rannak/mangud/partorg/plakat.bak/style.css delete mode 100644 rannak/mangud/partorg/plakat/img/lenin.png create mode 100644 rannak/mangud/partorg/plakat/img/malev.jpg delete mode 100644 rannak/mangud/partorg/plakat/img/nazi.png delete mode 100644 rannak/mangud/partorg/plakat/img/normalSelect.cur delete mode 100644 rannak/mangud/partorg/plakat/img/redStar.png delete mode 100644 rannak/mangud/partorg/plakat/img/stalinAddOn.png create mode 100644 rannak/mangud/partorg/plakat/img/viisAastak.jpg delete mode 100644 rannak/mangud/partorg/plakat/main.js create mode 100644 rannak/mangud/partorg/plakat/script.js delete mode 100644 rannak/mangud/partorg/plakat/style.css create mode 100644 rannak/mangud/partorg/plakat/styles.css diff --git a/rannak/mangud/arimees/hinnad/fonts/1001fonts-eutemia-i-eula.txt b/rannak/mangud/arimees/hinnad/fonts/1001fonts-eutemia-i-eula.txt deleted file mode 100644 index b3cf91f..0000000 --- a/rannak/mangud/arimees/hinnad/fonts/1001fonts-eutemia-i-eula.txt +++ /dev/null @@ -1,31 +0,0 @@ -1001Fonts Free For Commercial Use License (FFC) - -Preamble -In this license, 'Eutemia I' refers to the given .zip file, which may contain one or numerous fonts. These fonts can be of any type (.ttf, .otf, ...) and together they form a 'font family' or in short a 'typeface'. - -1. Copyright -Eutemia I is the intellectual property of its respective author, provided it is original, and is protected by copyright laws in many parts of the world. - -2. Usage -Eutemia I may be downloaded and used free of charge for both personal and commercial use. Personal use refers to all usage that does not generate financial income in a business manner, for instance: - - - personal scrapbooking for yourself - - recreational websites and blogs for friends and family - - prints such as flyers, posters, t-shirts for churches, charities, and non-profit organizations - -Commercial use refers to usage in a business environment, including: - - - business cards, logos, advertising, websites for companies - - t-shirts, books, apparel that will be sold for money - - flyers, posters for events that charge admission - - freelance graphic design work - - anything that will generate direct or indirect income - -3. Modification -Eutemia I may not be modified, altered, adapted or built upon without written permission by its respective author. This pertains all files within the downloadable font zip-file. - -4. Distribution -While Eutemia I may freely be copied and passed along to other individuals for private use as its original downloadable zip-file, it may not be sold or published without written permission by its respective author. - -5. Disclaimer -Eutemia I is offered 'as is' without any warranty. 1001fonts.com and the respective author of Eutemia I shall not be liable for any damage derived from using this typeface. By using Eutemia I you agree to the terms of this license. \ No newline at end of file diff --git a/rannak/mangud/arimees/hinnad/fonts/Eutemia.ttf b/rannak/mangud/arimees/hinnad/fonts/Eutemia.ttf deleted file mode 100644 index c575e59..0000000 Binary files a/rannak/mangud/arimees/hinnad/fonts/Eutemia.ttf and /dev/null differ diff --git a/rannak/mangud/arimees/hinnad/index.html b/rannak/mangud/arimees/hinnad/index.html deleted file mode 100644 index 5b01902..0000000 --- a/rannak/mangud/arimees/hinnad/index.html +++ /dev/null @@ -1,223 +0,0 @@ - - - - - - Hinnad - - - - - - - -
-

Hinnad

-

Leia toodete tolleaegne hind Eesti Markades, kasutades Rubla ja Marga vahelist kurssi.

-
-
- -
- -
- - - -
- - - - - - - -

Kurss: 1 Mark = 15.6 Rubla

-
- - - -
- -
- Tugitool -
-

Tugitool

- -
-
-

Rublades

- 109.2 - -
-
-

Markades

- -
-
- - - -
-
- - - - -
- Laud -
-

Laud

- -
-
-

Rublades

- 62.4 - -
-
-

Markades

- -
-
- - - -
-
- - - - - -
- Küpsised -
-

Küpsised

- -
-
-

Rublades

- 140.4 - -
-
-

Markades

- -
-
- - - -
-
- - - - -
- Sai -
-

Saiapäts

- -
-
-

Rublades

- 78 - -
-
-

Markades

- -
-
- - - -
-
- - - - -
- Kohver -
-

Kohver

- -
-
-

Rublades

- 156 - -
-
-

Markades

- -
-
- - - -
-
- - - - - -
- Kingad -
-

Kingad

- -
-
-

Rublades

- 312 - -
-
-

Markades

- -
-
- - - -
-
- - -
- - - - - - - - - diff --git a/rannak/mangud/arimees/hinnad/pildid/avatar.png b/rannak/mangud/arimees/hinnad/pildid/avatar.png deleted file mode 100644 index 3cb21cf..0000000 Binary files a/rannak/mangud/arimees/hinnad/pildid/avatar.png and /dev/null differ diff --git a/rannak/mangud/arimees/hinnad/pildid/kingad.png b/rannak/mangud/arimees/hinnad/pildid/kingad.png deleted file mode 100644 index ef106ae..0000000 Binary files a/rannak/mangud/arimees/hinnad/pildid/kingad.png and /dev/null differ diff --git a/rannak/mangud/arimees/hinnad/pildid/kohver.png b/rannak/mangud/arimees/hinnad/pildid/kohver.png deleted file mode 100644 index 485b6db..0000000 Binary files a/rannak/mangud/arimees/hinnad/pildid/kohver.png and /dev/null differ diff --git a/rannak/mangud/arimees/hinnad/pildid/kupsis.png b/rannak/mangud/arimees/hinnad/pildid/kupsis.png deleted file mode 100644 index 2419f89..0000000 Binary files a/rannak/mangud/arimees/hinnad/pildid/kupsis.png and /dev/null differ diff --git a/rannak/mangud/arimees/hinnad/pildid/laud.png b/rannak/mangud/arimees/hinnad/pildid/laud.png deleted file mode 100644 index e3036dc..0000000 Binary files a/rannak/mangud/arimees/hinnad/pildid/laud.png and /dev/null differ diff --git a/rannak/mangud/arimees/hinnad/pildid/sai.png b/rannak/mangud/arimees/hinnad/pildid/sai.png deleted file mode 100644 index 8add13c..0000000 Binary files a/rannak/mangud/arimees/hinnad/pildid/sai.png and /dev/null differ diff --git a/rannak/mangud/arimees/hinnad/pildid/tugitool.png b/rannak/mangud/arimees/hinnad/pildid/tugitool.png deleted file mode 100644 index c48bd50..0000000 Binary files a/rannak/mangud/arimees/hinnad/pildid/tugitool.png and /dev/null differ diff --git a/rannak/mangud/arimees/hinnad/script.js b/rannak/mangud/arimees/hinnad/script.js deleted file mode 100644 index 3b3e67b..0000000 --- a/rannak/mangud/arimees/hinnad/script.js +++ /dev/null @@ -1,69 +0,0 @@ -document.addEventListener('DOMContentLoaded', () => { - let btn = document.querySelector('.modalButton'); - btn.click(); -}); - - - -const kurss = 15.6; -doneCounter = 0; - - -const kontrollBtns = document.querySelectorAll(".kontrolliKaarti"); -for (let nupp of kontrollBtns){ - nupp.addEventListener("click", (e) => { - let rublaHind = e.target.previousElementSibling.children[0].children[1].innerHTML; - let pakkumine = e.target.previousElementSibling.children[1].children[1].value; - - if (pakkumine*kurss == rublaHind){ - - //Change color - e.target.offsetParent.style.background = "#288654"; - e.target.previousElementSibling.children[0].style.borderRight = ".5rem solid #288654"; - e.target.previousElementSibling.children[1].style.borderLeft = ".5rem solid #288654"; - - //Change Element - - (e.target.previousElementSibling.children[1].children[1]).remove(); - const newEl = document.createElement("span"); - newEl.classList.add("symbol"); - newEl.innerHTML = pakkumine + " M"; - e.target.previousElementSibling.children[1].appendChild(newEl); - - e.target.remove(); - doneCounter++; - - - // InfoTxt - let infoTxt = document.querySelector(".infoTxt") - infoTxt.innerHTML = ""; - - if (doneCounter >= 6){ - enableAllGood(); - } - } - - - else{ - // Inputvalue Reset - e.target.previousElementSibling.children[1].children[1].value = ""; - - // InfoTxt - let infoTxt = document.querySelector(".infoTxt") - infoTxt.style.color = "red"; - infoTxt.innerHTML = "Proovi Uuesti!"; - - } - - - - }) -} - - - -function enableAllGood(){ - const btn = document.querySelector(".moveOn"); - btn.disabled = false; - btn.onclick = () => location.href = ""; -} diff --git a/rannak/mangud/arimees/hinnad/styles.css b/rannak/mangud/arimees/hinnad/styles.css deleted file mode 100644 index 5e02923..0000000 --- a/rannak/mangud/arimees/hinnad/styles.css +++ /dev/null @@ -1,175 +0,0 @@ -@font-face { - font-family: 'fontDos'; - src: local('fonts/Eutemia.ttf'); -} - - - -* {box-sizing: border-box;} - -body{ - background-color: #4D5157; - font-family: "fontDos" -} -h1{ - color: #2FF924; - font-weight: bold; -} - -/* Modal Stuff */ - -.avatar { - border-radius: 20px; - width: 100%; -} - -.modalHeaderWrapper{ - text-align: center; - margin: 0; - width: 100%; -} - -.closeModalButton { - border-radius: 50px; -} - -.modalButton{ - position: absolute; - top: 0; - right: 0; - padding: 6px; - padding: 9px 25px; - background-color: rgba(0,136,169,1); - border: none; - border-radius: 50px; - cursor: pointer; - transition: all 0.3 ease 0; - margin: 3%; - font-size: 1.2rem; -} - -.modalButton:hover{ - background-color: rgba(0,136,169,0.8); -} - -/* To unduck chrome modal pic size */ -.modal-header img { - max-width: 15rem; - height: auto; - padding: .3rem; -} - - - - - -/* Move On */ - -.moveOn{ - display: inline-block; - border: none; - padding: 6px 12px; - margin-botton: 0; - font-size: 1rem; - font-weight: normal; - text-align: center; - cursor: pointer; - border-radius: 4px; - background-color: #4BB543; - color: white; -} - -button:disabled{ - opacity: 0.5; - cursor: not-allowed; -} - - - -/* Pood Itself */ -.main { - padding: 1% 10%; - display: flex; - flex-wrap: wrap; - justify-content: center; -} - -h3, h5 { - text-align: center; -} - - - - - -/* PoeKaart */ - -.card { - margin: 2rem .5rem; - padding: .5rem; - width: calc(20% - 1rem); - color: black; - background-color: #D22730; -} - -.card img { - height: 57%; -} - - -.card-body{ - padding: 0; - margin: 0; -} -.cardInnerWrapper { - background-color: white; - display:flex; - paddig: 0; - margin: 0; -} - -.rublaHind, .symbol{ - font-size: 1.5rem; -} - -.uno { - width: 50%; - border-right: .5rem solid #D22730; -} - -.dos { - border-left: .5rem solid #D22730; - width: 50%; -} - -.dos input { - width: 80%; - margin-bottom: 1rem; -} - -.kontrolliKaarti{ - margin-top: 1rem; - display: inline-block; - border: none; - padding: 3px 6px; - margin-botton: 0; - font-size: 1.07rem; - font-weight: normal; - text-align: center; - cursor: pointer; - border-radius: 4px; - background-color: #006E33; - color: white; -} - - - - - -/* Media Querries*/ - -@media screen and (max-width: 1650px) { - .card{ - width: calc(25% - 1rem); - } -} diff --git a/rannak/mangud/arimees/pood.bak/fonts/1001fonts-eutemia-i-eula.txt b/rannak/mangud/arimees/pood.bak/fonts/1001fonts-eutemia-i-eula.txt new file mode 100644 index 0000000..b3cf91f --- /dev/null +++ b/rannak/mangud/arimees/pood.bak/fonts/1001fonts-eutemia-i-eula.txt @@ -0,0 +1,31 @@ +1001Fonts Free For Commercial Use License (FFC) + +Preamble +In this license, 'Eutemia I' refers to the given .zip file, which may contain one or numerous fonts. These fonts can be of any type (.ttf, .otf, ...) and together they form a 'font family' or in short a 'typeface'. + +1. Copyright +Eutemia I is the intellectual property of its respective author, provided it is original, and is protected by copyright laws in many parts of the world. + +2. Usage +Eutemia I may be downloaded and used free of charge for both personal and commercial use. Personal use refers to all usage that does not generate financial income in a business manner, for instance: + + - personal scrapbooking for yourself + - recreational websites and blogs for friends and family + - prints such as flyers, posters, t-shirts for churches, charities, and non-profit organizations + +Commercial use refers to usage in a business environment, including: + + - business cards, logos, advertising, websites for companies + - t-shirts, books, apparel that will be sold for money + - flyers, posters for events that charge admission + - freelance graphic design work + - anything that will generate direct or indirect income + +3. Modification +Eutemia I may not be modified, altered, adapted or built upon without written permission by its respective author. This pertains all files within the downloadable font zip-file. + +4. Distribution +While Eutemia I may freely be copied and passed along to other individuals for private use as its original downloadable zip-file, it may not be sold or published without written permission by its respective author. + +5. Disclaimer +Eutemia I is offered 'as is' without any warranty. 1001fonts.com and the respective author of Eutemia I shall not be liable for any damage derived from using this typeface. By using Eutemia I you agree to the terms of this license. \ No newline at end of file diff --git a/rannak/mangud/arimees/pood.bak/fonts/Eutemia.ttf b/rannak/mangud/arimees/pood.bak/fonts/Eutemia.ttf new file mode 100644 index 0000000..c575e59 Binary files /dev/null and b/rannak/mangud/arimees/pood.bak/fonts/Eutemia.ttf differ diff --git a/rannak/mangud/arimees/pood.bak/index.html b/rannak/mangud/arimees/pood.bak/index.html new file mode 100644 index 0000000..5b01902 --- /dev/null +++ b/rannak/mangud/arimees/pood.bak/index.html @@ -0,0 +1,223 @@ + + + + + + Hinnad + + + + + + + +
+

Hinnad

+

Leia toodete tolleaegne hind Eesti Markades, kasutades Rubla ja Marga vahelist kurssi.

+
+
+ +
+ +
+ + + +
+ + + + + + + +

Kurss: 1 Mark = 15.6 Rubla

+
+ + + +
+ +
+ Tugitool +
+

Tugitool

+ +
+
+

Rublades

+ 109.2 + +
+
+

Markades

+ +
+
+ + + +
+
+ + + + +
+ Laud +
+

Laud

+ +
+
+

Rublades

+ 62.4 + +
+
+

Markades

+ +
+
+ + + +
+
+ + + + + +
+ Küpsised +
+

Küpsised

+ +
+
+

Rublades

+ 140.4 + +
+
+

Markades

+ +
+
+ + + +
+
+ + + + +
+ Sai +
+

Saiapäts

+ +
+
+

Rublades

+ 78 + +
+
+

Markades

+ +
+
+ + + +
+
+ + + + +
+ Kohver +
+

Kohver

+ +
+
+

Rublades

+ 156 + +
+
+

Markades

+ +
+
+ + + +
+
+ + + + + +
+ Kingad +
+

Kingad

+ +
+
+

Rublades

+ 312 + +
+
+

Markades

+ +
+
+ + + +
+
+ + +
+ + + + + + + + + diff --git a/rannak/mangud/arimees/pood.bak/pildid/avatar.png b/rannak/mangud/arimees/pood.bak/pildid/avatar.png new file mode 100644 index 0000000..3cb21cf Binary files /dev/null and b/rannak/mangud/arimees/pood.bak/pildid/avatar.png differ diff --git a/rannak/mangud/arimees/pood.bak/pildid/kingad.png b/rannak/mangud/arimees/pood.bak/pildid/kingad.png new file mode 100644 index 0000000..ef106ae Binary files /dev/null and b/rannak/mangud/arimees/pood.bak/pildid/kingad.png differ diff --git a/rannak/mangud/arimees/pood.bak/pildid/kohver.png b/rannak/mangud/arimees/pood.bak/pildid/kohver.png new file mode 100644 index 0000000..485b6db Binary files /dev/null and b/rannak/mangud/arimees/pood.bak/pildid/kohver.png differ diff --git a/rannak/mangud/arimees/pood.bak/pildid/kupsis.png b/rannak/mangud/arimees/pood.bak/pildid/kupsis.png new file mode 100644 index 0000000..2419f89 Binary files /dev/null and b/rannak/mangud/arimees/pood.bak/pildid/kupsis.png differ diff --git a/rannak/mangud/arimees/pood.bak/pildid/laud.png b/rannak/mangud/arimees/pood.bak/pildid/laud.png new file mode 100644 index 0000000..e3036dc Binary files /dev/null and b/rannak/mangud/arimees/pood.bak/pildid/laud.png differ diff --git a/rannak/mangud/arimees/pood.bak/pildid/sai.png b/rannak/mangud/arimees/pood.bak/pildid/sai.png new file mode 100644 index 0000000..8add13c Binary files /dev/null and b/rannak/mangud/arimees/pood.bak/pildid/sai.png differ diff --git a/rannak/mangud/arimees/pood.bak/pildid/tugitool.png b/rannak/mangud/arimees/pood.bak/pildid/tugitool.png new file mode 100644 index 0000000..c48bd50 Binary files /dev/null and b/rannak/mangud/arimees/pood.bak/pildid/tugitool.png differ diff --git a/rannak/mangud/arimees/pood.bak/script.js b/rannak/mangud/arimees/pood.bak/script.js new file mode 100644 index 0000000..3b3e67b --- /dev/null +++ b/rannak/mangud/arimees/pood.bak/script.js @@ -0,0 +1,69 @@ +document.addEventListener('DOMContentLoaded', () => { + let btn = document.querySelector('.modalButton'); + btn.click(); +}); + + + +const kurss = 15.6; +doneCounter = 0; + + +const kontrollBtns = document.querySelectorAll(".kontrolliKaarti"); +for (let nupp of kontrollBtns){ + nupp.addEventListener("click", (e) => { + let rublaHind = e.target.previousElementSibling.children[0].children[1].innerHTML; + let pakkumine = e.target.previousElementSibling.children[1].children[1].value; + + if (pakkumine*kurss == rublaHind){ + + //Change color + e.target.offsetParent.style.background = "#288654"; + e.target.previousElementSibling.children[0].style.borderRight = ".5rem solid #288654"; + e.target.previousElementSibling.children[1].style.borderLeft = ".5rem solid #288654"; + + //Change Element + + (e.target.previousElementSibling.children[1].children[1]).remove(); + const newEl = document.createElement("span"); + newEl.classList.add("symbol"); + newEl.innerHTML = pakkumine + " M"; + e.target.previousElementSibling.children[1].appendChild(newEl); + + e.target.remove(); + doneCounter++; + + + // InfoTxt + let infoTxt = document.querySelector(".infoTxt") + infoTxt.innerHTML = ""; + + if (doneCounter >= 6){ + enableAllGood(); + } + } + + + else{ + // Inputvalue Reset + e.target.previousElementSibling.children[1].children[1].value = ""; + + // InfoTxt + let infoTxt = document.querySelector(".infoTxt") + infoTxt.style.color = "red"; + infoTxt.innerHTML = "Proovi Uuesti!"; + + } + + + + }) +} + + + +function enableAllGood(){ + const btn = document.querySelector(".moveOn"); + btn.disabled = false; + btn.onclick = () => location.href = ""; +} diff --git a/rannak/mangud/arimees/pood.bak/styles.css b/rannak/mangud/arimees/pood.bak/styles.css new file mode 100644 index 0000000..58bc290 --- /dev/null +++ b/rannak/mangud/arimees/pood.bak/styles.css @@ -0,0 +1,167 @@ +* {box-sizing: border-box;} + +body{ + background-color: #43464b; +} +h1{ + color: #2FF924; + font-weight: bold; +} + +/* Modal Stuff */ + +.avatar { + border-radius: 20px; + width: 100%; +} + +.modalHeaderWrapper{ + text-align: center; + margin: 0; + width: 100%; +} + +.closeModalButton { + border-radius: 50px; +} + +.modalButton{ + position: absolute; + top: 0; + right: 0; + padding: 6px; + padding: 9px 25px; + background-color: rgba(0,136,169,1); + border: none; + border-radius: 50px; + cursor: pointer; + transition: all 0.3 ease 0; + margin: 3%; + font-size: 1.2rem; +} + +.modalButton:hover{ + background-color: rgba(0,136,169,0.8); +} + +/* To unduck chrome modal pic size */ +.modal-header img { + max-width: 15rem; + height: auto; + padding: .3rem; +} + + + + + +/* Move On */ + +.moveOn{ + display: inline-block; + border: none; + padding: 6px 12px; + margin-botton: 0; + font-size: 1rem; + font-weight: normal; + text-align: center; + cursor: pointer; + border-radius: 4px; + background-color: #4BB543; + color: white; +} + +button:disabled{ + opacity: 0.5; + cursor: not-allowed; +} + + + +/* Pood Itself */ +.main { + padding: 1% 10%; + display: flex; + flex-wrap: wrap; + justify-content: center; +} + +h3, h5 { + text-align: center; +} + + + + + +/* PoeKaart */ + +.card { + margin: 2rem .5rem; + padding: .5rem; + width: calc(20% - 1rem); + color: black; + background-color: #D22730; +} + +.card img { + height: 57%; +} + + +.card-body{ + padding: 0; + margin: 0; +} +.cardInnerWrapper { + background-color: white; + display:flex; + paddig: 0; + margin: 0; +} + +.rublaHind, .symbol{ + font-size: 1.5rem; +} + +.uno { + width: 50%; + border-right: .5rem solid #D22730; +} + +.dos { + border-left: .5rem solid #D22730; + width: 50%; +} + +.dos input { + width: 80%; + margin-bottom: 1rem; +} + +.kontrolliKaarti{ + margin-top: 1rem; + display: inline-block; + border: none; + padding: 3px 6px; + margin-botton: 0; + font-size: 1.07rem; + font-weight: normal; + text-align: center; + cursor: pointer; + border-radius: 4px; + background-color: #006E33; + color: white; +} + + + + + +/* Media Querries*/ + +@media screen and (max-width: 1650px) { + .card{ + width: calc(25% - 1rem); + } +} diff --git a/rannak/mangud/arimees/pood/fonts/1001fonts-eutemia-i-eula.txt b/rannak/mangud/arimees/pood/fonts/1001fonts-eutemia-i-eula.txt new file mode 100644 index 0000000..b3cf91f --- /dev/null +++ b/rannak/mangud/arimees/pood/fonts/1001fonts-eutemia-i-eula.txt @@ -0,0 +1,31 @@ +1001Fonts Free For Commercial Use License (FFC) + +Preamble +In this license, 'Eutemia I' refers to the given .zip file, which may contain one or numerous fonts. These fonts can be of any type (.ttf, .otf, ...) and together they form a 'font family' or in short a 'typeface'. + +1. Copyright +Eutemia I is the intellectual property of its respective author, provided it is original, and is protected by copyright laws in many parts of the world. + +2. Usage +Eutemia I may be downloaded and used free of charge for both personal and commercial use. Personal use refers to all usage that does not generate financial income in a business manner, for instance: + + - personal scrapbooking for yourself + - recreational websites and blogs for friends and family + - prints such as flyers, posters, t-shirts for churches, charities, and non-profit organizations + +Commercial use refers to usage in a business environment, including: + + - business cards, logos, advertising, websites for companies + - t-shirts, books, apparel that will be sold for money + - flyers, posters for events that charge admission + - freelance graphic design work + - anything that will generate direct or indirect income + +3. Modification +Eutemia I may not be modified, altered, adapted or built upon without written permission by its respective author. This pertains all files within the downloadable font zip-file. + +4. Distribution +While Eutemia I may freely be copied and passed along to other individuals for private use as its original downloadable zip-file, it may not be sold or published without written permission by its respective author. + +5. Disclaimer +Eutemia I is offered 'as is' without any warranty. 1001fonts.com and the respective author of Eutemia I shall not be liable for any damage derived from using this typeface. By using Eutemia I you agree to the terms of this license. \ No newline at end of file diff --git a/rannak/mangud/arimees/pood/fonts/Eutemia.ttf b/rannak/mangud/arimees/pood/fonts/Eutemia.ttf new file mode 100644 index 0000000..c575e59 Binary files /dev/null and b/rannak/mangud/arimees/pood/fonts/Eutemia.ttf differ diff --git a/rannak/mangud/arimees/pood/index.html b/rannak/mangud/arimees/pood/index.html new file mode 100644 index 0000000..6c2f7b5 --- /dev/null +++ b/rannak/mangud/arimees/pood/index.html @@ -0,0 +1,62 @@ + + + + + + Pood + + + + + + + +
+

Pood

+

Leia toodete tolleaegne hind Eesti Markades, kasutades Rubla ja Marga vahelist kurssi.

+
+
+ +
+ +
+ + + +
+ + + + + + + + + + + + + diff --git a/rannak/mangud/arimees/pood/pildid/avatar.png b/rannak/mangud/arimees/pood/pildid/avatar.png new file mode 100644 index 0000000..3cb21cf Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/avatar.png differ diff --git a/rannak/mangud/arimees/pood/pildid/kingad.png b/rannak/mangud/arimees/pood/pildid/kingad.png new file mode 100644 index 0000000..ef106ae Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/kingad.png differ diff --git a/rannak/mangud/arimees/pood/pildid/kohver.png b/rannak/mangud/arimees/pood/pildid/kohver.png new file mode 100644 index 0000000..485b6db Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/kohver.png differ diff --git a/rannak/mangud/arimees/pood/pildid/kupsis.png b/rannak/mangud/arimees/pood/pildid/kupsis.png new file mode 100644 index 0000000..2419f89 Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/kupsis.png differ diff --git a/rannak/mangud/arimees/pood/pildid/laud.png b/rannak/mangud/arimees/pood/pildid/laud.png new file mode 100644 index 0000000..e3036dc Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/laud.png differ diff --git a/rannak/mangud/arimees/pood/pildid/sai.png b/rannak/mangud/arimees/pood/pildid/sai.png new file mode 100644 index 0000000..8add13c Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/sai.png differ diff --git a/rannak/mangud/arimees/pood/pildid/tugitool.png b/rannak/mangud/arimees/pood/pildid/tugitool.png new file mode 100644 index 0000000..c48bd50 Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/tugitool.png differ diff --git a/rannak/mangud/arimees/pood/script.js b/rannak/mangud/arimees/pood/script.js new file mode 100644 index 0000000..3b3e67b --- /dev/null +++ b/rannak/mangud/arimees/pood/script.js @@ -0,0 +1,69 @@ +document.addEventListener('DOMContentLoaded', () => { + let btn = document.querySelector('.modalButton'); + btn.click(); +}); + + + +const kurss = 15.6; +doneCounter = 0; + + +const kontrollBtns = document.querySelectorAll(".kontrolliKaarti"); +for (let nupp of kontrollBtns){ + nupp.addEventListener("click", (e) => { + let rublaHind = e.target.previousElementSibling.children[0].children[1].innerHTML; + let pakkumine = e.target.previousElementSibling.children[1].children[1].value; + + if (pakkumine*kurss == rublaHind){ + + //Change color + e.target.offsetParent.style.background = "#288654"; + e.target.previousElementSibling.children[0].style.borderRight = ".5rem solid #288654"; + e.target.previousElementSibling.children[1].style.borderLeft = ".5rem solid #288654"; + + //Change Element + + (e.target.previousElementSibling.children[1].children[1]).remove(); + const newEl = document.createElement("span"); + newEl.classList.add("symbol"); + newEl.innerHTML = pakkumine + " M"; + e.target.previousElementSibling.children[1].appendChild(newEl); + + e.target.remove(); + doneCounter++; + + + // InfoTxt + let infoTxt = document.querySelector(".infoTxt") + infoTxt.innerHTML = ""; + + if (doneCounter >= 6){ + enableAllGood(); + } + } + + + else{ + // Inputvalue Reset + e.target.previousElementSibling.children[1].children[1].value = ""; + + // InfoTxt + let infoTxt = document.querySelector(".infoTxt") + infoTxt.style.color = "red"; + infoTxt.innerHTML = "Proovi Uuesti!"; + + } + + + + }) +} + + + +function enableAllGood(){ + const btn = document.querySelector(".moveOn"); + btn.disabled = false; + btn.onclick = () => location.href = ""; +} diff --git a/rannak/mangud/arimees/pood/styles.css b/rannak/mangud/arimees/pood/styles.css new file mode 100644 index 0000000..58bc290 --- /dev/null +++ b/rannak/mangud/arimees/pood/styles.css @@ -0,0 +1,167 @@ +* {box-sizing: border-box;} + +body{ + background-color: #43464b; +} +h1{ + color: #2FF924; + font-weight: bold; +} + +/* Modal Stuff */ + +.avatar { + border-radius: 20px; + width: 100%; +} + +.modalHeaderWrapper{ + text-align: center; + margin: 0; + width: 100%; +} + +.closeModalButton { + border-radius: 50px; +} + +.modalButton{ + position: absolute; + top: 0; + right: 0; + padding: 6px; + padding: 9px 25px; + background-color: rgba(0,136,169,1); + border: none; + border-radius: 50px; + cursor: pointer; + transition: all 0.3 ease 0; + margin: 3%; + font-size: 1.2rem; +} + +.modalButton:hover{ + background-color: rgba(0,136,169,0.8); +} + +/* To unduck chrome modal pic size */ +.modal-header img { + max-width: 15rem; + height: auto; + padding: .3rem; +} + + + + + +/* Move On */ + +.moveOn{ + display: inline-block; + border: none; + padding: 6px 12px; + margin-botton: 0; + font-size: 1rem; + font-weight: normal; + text-align: center; + cursor: pointer; + border-radius: 4px; + background-color: #4BB543; + color: white; +} + +button:disabled{ + opacity: 0.5; + cursor: not-allowed; +} + + + +/* Pood Itself */ +.main { + padding: 1% 10%; + display: flex; + flex-wrap: wrap; + justify-content: center; +} + +h3, h5 { + text-align: center; +} + + + + + +/* PoeKaart */ + +.card { + margin: 2rem .5rem; + padding: .5rem; + width: calc(20% - 1rem); + color: black; + background-color: #D22730; +} + +.card img { + height: 57%; +} + + +.card-body{ + padding: 0; + margin: 0; +} +.cardInnerWrapper { + background-color: white; + display:flex; + paddig: 0; + margin: 0; +} + +.rublaHind, .symbol{ + font-size: 1.5rem; +} + +.uno { + width: 50%; + border-right: .5rem solid #D22730; +} + +.dos { + border-left: .5rem solid #D22730; + width: 50%; +} + +.dos input { + width: 80%; + margin-bottom: 1rem; +} + +.kontrolliKaarti{ + margin-top: 1rem; + display: inline-block; + border: none; + padding: 3px 6px; + margin-botton: 0; + font-size: 1.07rem; + font-weight: normal; + text-align: center; + cursor: pointer; + border-radius: 4px; + background-color: #006E33; + color: white; +} + + + + + +/* Media Querries*/ + +@media screen and (max-width: 1650px) { + .card{ + width: calc(25% - 1rem); + } +} diff --git a/rannak/mangud/arimees/soome/fonts/OFL.txt b/rannak/mangud/arimees/soome/fonts/OFL.txt new file mode 100644 index 0000000..cdb3773 --- /dev/null +++ b/rannak/mangud/arimees/soome/fonts/OFL.txt @@ -0,0 +1,93 @@ +Copyright 2015 The Rubik Project Authors (https://github.com/googlefonts/rubik) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/rannak/mangud/arimees/soome/fonts/README.txt b/rannak/mangud/arimees/soome/fonts/README.txt new file mode 100644 index 0000000..c5792a2 --- /dev/null +++ b/rannak/mangud/arimees/soome/fonts/README.txt @@ -0,0 +1,77 @@ +Rubik Variable Font +=================== + +This download contains Rubik as both variable fonts and static fonts. + +Rubik is a variable font with this axis: + wght + +This means all the styles are contained in these files: + Rubik-VariableFont_wght.ttf + Rubik-Italic-VariableFont_wght.ttf + +If your app fully supports variable fonts, you can now pick intermediate styles +that aren’t available as static fonts. Not all apps support variable fonts, and +in those cases you can use the static font files for Rubik: + static/Rubik-Light.ttf + static/Rubik-Regular.ttf + static/Rubik-Medium.ttf + static/Rubik-SemiBold.ttf + static/Rubik-Bold.ttf + static/Rubik-ExtraBold.ttf + static/Rubik-Black.ttf + static/Rubik-LightItalic.ttf + static/Rubik-Italic.ttf + static/Rubik-MediumItalic.ttf + static/Rubik-SemiBoldItalic.ttf + static/Rubik-BoldItalic.ttf + static/Rubik-ExtraBoldItalic.ttf + static/Rubik-BlackItalic.ttf + +Get started +----------- + +1. Install the font files you want to use + +2. Use your app's font picker to view the font family and all the +available styles + +Learn more about variable fonts +------------------------------- + + https://developers.google.com/web/fundamentals/design-and-ux/typography/variable-fonts + https://variablefonts.typenetwork.com + https://medium.com/variable-fonts + +In desktop apps + + https://theblog.adobe.com/can-variable-fonts-illustrator-cc + https://helpx.adobe.com/nz/photoshop/using/fonts.html#variable_fonts + +Online + + https://developers.google.com/fonts/docs/getting_started + https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Fonts/Variable_Fonts_Guide + https://developer.microsoft.com/en-us/microsoft-edge/testdrive/demos/variable-fonts + +Installing fonts + + MacOS: https://support.apple.com/en-us/HT201749 + Linux: https://www.google.com/search?q=how+to+install+a+font+on+gnu%2Blinux + Windows: https://support.microsoft.com/en-us/help/314960/how-to-install-or-remove-a-font-in-windows + +Android Apps + + https://developers.google.com/fonts/docs/android + https://developer.android.com/guide/topics/ui/look-and-feel/downloadable-fonts + +License +------- +Please read the full license text (OFL.txt) to understand the permissions, +restrictions and requirements for usage, redistribution, and modification. + +You can use them in your products & projects – print or digital, +commercial or otherwise. + +This isn't legal advice, please consider consulting a lawyer and see the full +license for all details. diff --git a/rannak/mangud/arimees/soome/fonts/Rubik-Italic-VariableFont_wght.ttf b/rannak/mangud/arimees/soome/fonts/Rubik-Italic-VariableFont_wght.ttf new file mode 100644 index 0000000..58d5f50 Binary files /dev/null and b/rannak/mangud/arimees/soome/fonts/Rubik-Italic-VariableFont_wght.ttf differ diff --git a/rannak/mangud/arimees/soome/fonts/Rubik-VariableFont_wght.ttf b/rannak/mangud/arimees/soome/fonts/Rubik-VariableFont_wght.ttf new file mode 100644 index 0000000..fa161b9 Binary files /dev/null and b/rannak/mangud/arimees/soome/fonts/Rubik-VariableFont_wght.ttf differ diff --git a/rannak/mangud/arimees/soome/fonts/static/Rubik-Black.ttf b/rannak/mangud/arimees/soome/fonts/static/Rubik-Black.ttf new file mode 100644 index 0000000..1613299 Binary files /dev/null and b/rannak/mangud/arimees/soome/fonts/static/Rubik-Black.ttf differ diff --git a/rannak/mangud/arimees/soome/fonts/static/Rubik-BlackItalic.ttf b/rannak/mangud/arimees/soome/fonts/static/Rubik-BlackItalic.ttf new file mode 100644 index 0000000..fc12676 Binary files /dev/null and b/rannak/mangud/arimees/soome/fonts/static/Rubik-BlackItalic.ttf differ diff --git a/rannak/mangud/arimees/soome/fonts/static/Rubik-Bold.ttf b/rannak/mangud/arimees/soome/fonts/static/Rubik-Bold.ttf new file mode 100644 index 0000000..7ec66a6 Binary files /dev/null and b/rannak/mangud/arimees/soome/fonts/static/Rubik-Bold.ttf differ diff --git a/rannak/mangud/arimees/soome/fonts/static/Rubik-BoldItalic.ttf b/rannak/mangud/arimees/soome/fonts/static/Rubik-BoldItalic.ttf new file mode 100644 index 0000000..f6e0780 Binary files /dev/null and b/rannak/mangud/arimees/soome/fonts/static/Rubik-BoldItalic.ttf differ diff --git a/rannak/mangud/arimees/soome/fonts/static/Rubik-ExtraBold.ttf b/rannak/mangud/arimees/soome/fonts/static/Rubik-ExtraBold.ttf new file mode 100644 index 0000000..1ca9932 Binary files /dev/null and b/rannak/mangud/arimees/soome/fonts/static/Rubik-ExtraBold.ttf differ diff --git a/rannak/mangud/arimees/soome/fonts/static/Rubik-ExtraBoldItalic.ttf b/rannak/mangud/arimees/soome/fonts/static/Rubik-ExtraBoldItalic.ttf new file mode 100644 index 0000000..598f72a Binary files /dev/null and b/rannak/mangud/arimees/soome/fonts/static/Rubik-ExtraBoldItalic.ttf differ diff --git a/rannak/mangud/arimees/soome/fonts/static/Rubik-Italic.ttf b/rannak/mangud/arimees/soome/fonts/static/Rubik-Italic.ttf new file mode 100644 index 0000000..0c6d991 Binary files /dev/null and b/rannak/mangud/arimees/soome/fonts/static/Rubik-Italic.ttf differ diff --git a/rannak/mangud/arimees/soome/fonts/static/Rubik-Light.ttf b/rannak/mangud/arimees/soome/fonts/static/Rubik-Light.ttf new file mode 100644 index 0000000..9229768 Binary files /dev/null and b/rannak/mangud/arimees/soome/fonts/static/Rubik-Light.ttf differ diff --git a/rannak/mangud/arimees/soome/fonts/static/Rubik-LightItalic.ttf b/rannak/mangud/arimees/soome/fonts/static/Rubik-LightItalic.ttf new file mode 100644 index 0000000..d3bba74 Binary files /dev/null and b/rannak/mangud/arimees/soome/fonts/static/Rubik-LightItalic.ttf differ diff --git a/rannak/mangud/arimees/soome/fonts/static/Rubik-Medium.ttf b/rannak/mangud/arimees/soome/fonts/static/Rubik-Medium.ttf new file mode 100644 index 0000000..0895d3e Binary files /dev/null and b/rannak/mangud/arimees/soome/fonts/static/Rubik-Medium.ttf differ diff --git a/rannak/mangud/arimees/soome/fonts/static/Rubik-MediumItalic.ttf b/rannak/mangud/arimees/soome/fonts/static/Rubik-MediumItalic.ttf new file mode 100644 index 0000000..e839613 Binary files /dev/null and b/rannak/mangud/arimees/soome/fonts/static/Rubik-MediumItalic.ttf differ diff --git a/rannak/mangud/arimees/soome/fonts/static/Rubik-Regular.ttf b/rannak/mangud/arimees/soome/fonts/static/Rubik-Regular.ttf new file mode 100644 index 0000000..0967c8c Binary files /dev/null and b/rannak/mangud/arimees/soome/fonts/static/Rubik-Regular.ttf differ diff --git a/rannak/mangud/arimees/soome/fonts/static/Rubik-SemiBold.ttf b/rannak/mangud/arimees/soome/fonts/static/Rubik-SemiBold.ttf new file mode 100644 index 0000000..b631487 Binary files /dev/null and b/rannak/mangud/arimees/soome/fonts/static/Rubik-SemiBold.ttf differ diff --git a/rannak/mangud/arimees/soome/fonts/static/Rubik-SemiBoldItalic.ttf b/rannak/mangud/arimees/soome/fonts/static/Rubik-SemiBoldItalic.ttf new file mode 100644 index 0000000..f9eb73b Binary files /dev/null and b/rannak/mangud/arimees/soome/fonts/static/Rubik-SemiBoldItalic.ttf differ diff --git a/rannak/mangud/arimees/soome/index.html b/rannak/mangud/arimees/soome/index.html new file mode 100644 index 0000000..f178d55 --- /dev/null +++ b/rannak/mangud/arimees/soome/index.html @@ -0,0 +1,129 @@ + + + + + + + Soome + + + + + + + + + + + + +
+

Soome

+ +

+ Leia sõnastikust soomekeelsetele sõnadele vasted ja asenda need kirja. +

+ +
+ +
+ +
+ +
+
+ + + + + + + +
+ +
+

Sõnastik

+ +
    +
  • halba - odav
  • +
  • housut - püksid
  • +
  • kaikki kunnossa – kõik on korras
  • +
  • kaikki parhaat- kõike head
  • +
  • kassi - kott
  • +
  • kesä - suvi
  • +
  • moikkaa – tere
  • +
  • ostoksille - ostlema
  • +
  • pibo - kootud suusamüts
  • +
  • puhelin - telefon
  • +
  • puhuma - rääkima
  • +
  • pulma - probleem
  • +
  • purukummi - näts
  • +
  • pusero – sametist dressipluus
  • +
  • takki- jope
  • +
  • T-paita - T-särk
  • +
+
+ + +
+

Kiri

+ +

+ Moikka + , jälle mina, Toits!! + Ma ei saa sinuga pikalt puhuda . + Pulma on + selles, et kiirustan laevale, sõidan Helsingisse ostoksille , + sealt saab halba kraami! Kuluvaid on kindlasti juurde vaja ja + pibod ning T-paitad + lähevad ka hästi kaubaks. + Eelmisest korrast on veel mõned puserod , + takkid ja veits purukummi + alles, aga nendega pulma pole, kätte küll midagi ei jää. + Võtan seekord suurema kassi - äkki saan kassette ka. + Ööbin Pekka juures, tal on puhelin - võtan ühendust. + Nii et praegu on kaikki kunnossa ! +
+
+ Kaikki parhaat teile seniks! +

+ +
+
+ + + + + + + + + diff --git a/rannak/mangud/arimees/soome/pildid/avatar.png b/rannak/mangud/arimees/soome/pildid/avatar.png new file mode 100644 index 0000000..3cb21cf Binary files /dev/null and b/rannak/mangud/arimees/soome/pildid/avatar.png differ diff --git a/rannak/mangud/arimees/soome/script.js b/rannak/mangud/arimees/soome/script.js new file mode 100644 index 0000000..25ffedd --- /dev/null +++ b/rannak/mangud/arimees/soome/script.js @@ -0,0 +1,66 @@ +document.addEventListener('DOMContentLoaded', () => { + let btn = document.querySelector('.modalButton'); + btn.click(); +}); + + +let map = {}; +map["Moikka"] = "tere"; +map["puhuda"] = "rääkida"; +map["Pulma"] = "probleem"; +map["ostoksille"] = "ostlema"; +map["halba"] = "odavat"; +map["pibod"] = "kootudsuusamütsid"; +map["Tpaitad"] = "t-särgid"; +//map["kesähousut"] = "t-särgid"; +map["puserod"] = "sametistdressipluusid" +map["takkid"] = "joped" +map["purukummi"] = "nätsu" +map["pulma"] = "probleemi"; +map["kassi"] = "koti"; +map["puhelin"] = "telefon"; +map["kaikkiKunnossa"] = "kõikkorras"; +map["KaikkiParhaat"] = "kõikehead"; + + +let total = Object.keys(map).length; +rightOnes = new Array(); + + +const words = document.querySelectorAll("span"); + +for (let w of words){ + w.addEventListener('DOMSubtreeModified', () => { + + sone = w.id; + + let x = w.innerText.replace(/\s/g, ""); + let ignoringSpaces = x.toLowerCase(); + + if (ignoringSpaces == map[sone]) { + + let index = rightOnes.indexOf(sone); + if (index == -1) { + rightOnes.push(sone); + } + + w.setAttribute("contenteditable", false); + w.style.color = "lime"; + } + + + if (rightOnes.length == total) + moveOnEnable(); + }); +} + + + +// If All Else Done + +function moveOnEnable(){ + const btn = document.querySelector(".moveOn"); + btn.disabled = false; + btn.onclick = () => location.href = ""; +} + diff --git a/rannak/mangud/arimees/soome/style.css b/rannak/mangud/arimees/soome/style.css new file mode 100644 index 0000000..5912b9b --- /dev/null +++ b/rannak/mangud/arimees/soome/style.css @@ -0,0 +1,130 @@ +@font-face { + font-family: 'fontUno'; + src: url('fonts/static/Rubik-Light.ttf'); +} +* {box-sizing: border-box;} + + +body{ + background-color: #43464b; + font-family: 'fontUno'; +} + + +h1 { + color: #2FF924; + font-weight: bold; +} + +.moveOn{ + display: inline-block; + border: none; + padding: 6px 12px; + margin-botton: 0; + font-size: 1rem; + font-weight: normal; + text-align: center; + cursor: pointer; + border-radius: 4px; + background-color: #4BB543; + color: white; +} + +button:disabled{ + opacity: 0.5; + cursor: not-allowed; +} + + + + +/* Modal Stuff */ + +.avatar { + border-radius: 20px; + width: 100%; + max-width: 15rem; +} + +.modalHeaderWrapper{ + text-align: center; + margin: 0; + width: 100%; +} + + + +.closeModalButton { + border-radius: 50px; +} + +.modalButton{ + position: absolute; + top: 0; + right: 0; + padding: 6px; + padding: 9px 25px; + background-color: rgba(0,136,169,1); + border: none; + border-radius: 50px; + cursor: pointer; + transition: all 0.3 ease 0; + margin: 3%; + font-size: 1.2rem; +} + +.modalButton:hover{ + background-color: rgba(0,136,169,0.8); +} + + + + + +/* Main */ +.content { + margin-top: 3rem; + display: flex; + height: 100%; +} + +.leftSide{ + width: 30%; + text-align: center; + color: white; +} +.rightSide{ + width: 70%; + text-align: center; + border-left: 7px solid black; + color: white; + padding-top: 2rem; +} + + + + +.rightSide p{ + padding: 0 3rem; + font-size: 1.8rem; +} + +h2, h3{ + font-weight: bold; + color: black; +} + +h2{ + font-size: 2.7rem; +} + +ul { + padding: 0; + font-size: 1.17rem; + list-style-type: none; +} + +span{ + color: #1fcfcf; + font-weight: bold +} diff --git a/rannak/mangud/index.html b/rannak/mangud/index.html index 9ce5578..8492c60 100644 --- a/rannak/mangud/index.html +++ b/rannak/mangud/index.html @@ -54,7 +54,7 @@

Ärimees

    -
  1. Hinnad
  2. +
  3. Soome
diff --git a/rannak/mangud/kaitseliitlane/sundmused/index.html b/rannak/mangud/kaitseliitlane/sundmused/index.html index 3e83187..70cd636 100644 --- a/rannak/mangud/kaitseliitlane/sundmused/index.html +++ b/rannak/mangud/kaitseliitlane/sundmused/index.html @@ -3,7 +3,7 @@ - Kuusused + Sündmused diff --git a/rannak/mangud/partorg/kuulsused/index.html b/rannak/mangud/partorg/kuulsused/index.html index 80fc8c9..4740414 100644 --- a/rannak/mangud/partorg/kuulsused/index.html +++ b/rannak/mangud/partorg/kuulsused/index.html @@ -13,7 +13,7 @@
-

Olulised isikud

+

Kuulsused

Vii kokku inimese nimi ja nägu.

diff --git a/rannak/mangud/partorg/plakat.bak/img/avatar.png b/rannak/mangud/partorg/plakat.bak/img/avatar.png new file mode 100644 index 0000000..485a70c Binary files /dev/null and b/rannak/mangud/partorg/plakat.bak/img/avatar.png differ diff --git a/rannak/mangud/partorg/plakat.bak/img/lenin.png b/rannak/mangud/partorg/plakat.bak/img/lenin.png new file mode 100644 index 0000000..e36df3d Binary files /dev/null and b/rannak/mangud/partorg/plakat.bak/img/lenin.png differ diff --git a/rannak/mangud/partorg/plakat.bak/img/nazi.png b/rannak/mangud/partorg/plakat.bak/img/nazi.png new file mode 100644 index 0000000..87e616e Binary files /dev/null and b/rannak/mangud/partorg/plakat.bak/img/nazi.png differ diff --git a/rannak/mangud/partorg/plakat.bak/img/normalSelect.cur b/rannak/mangud/partorg/plakat.bak/img/normalSelect.cur new file mode 100644 index 0000000..fdd943c Binary files /dev/null and b/rannak/mangud/partorg/plakat.bak/img/normalSelect.cur differ diff --git a/rannak/mangud/partorg/plakat.bak/img/redStar.png b/rannak/mangud/partorg/plakat.bak/img/redStar.png new file mode 100644 index 0000000..b6eee79 Binary files /dev/null and b/rannak/mangud/partorg/plakat.bak/img/redStar.png differ diff --git a/rannak/mangud/partorg/plakat.bak/img/stalin.jpg b/rannak/mangud/partorg/plakat.bak/img/stalin.jpg new file mode 100644 index 0000000..bc0a3a5 Binary files /dev/null and b/rannak/mangud/partorg/plakat.bak/img/stalin.jpg differ diff --git a/rannak/mangud/partorg/plakat.bak/img/stalinAddOn.png b/rannak/mangud/partorg/plakat.bak/img/stalinAddOn.png new file mode 100644 index 0000000..d3e05fd Binary files /dev/null and b/rannak/mangud/partorg/plakat.bak/img/stalinAddOn.png differ diff --git a/rannak/mangud/partorg/plakat.bak/img/testImg.jpg b/rannak/mangud/partorg/plakat.bak/img/testImg.jpg new file mode 100644 index 0000000..d88d950 Binary files /dev/null and b/rannak/mangud/partorg/plakat.bak/img/testImg.jpg differ diff --git a/rannak/mangud/partorg/plakat.bak/img/veekogud.jpg b/rannak/mangud/partorg/plakat.bak/img/veekogud.jpg new file mode 100644 index 0000000..23f04ab Binary files /dev/null and b/rannak/mangud/partorg/plakat.bak/img/veekogud.jpg differ diff --git a/rannak/mangud/partorg/plakat.bak/index.html b/rannak/mangud/partorg/plakat.bak/index.html new file mode 100644 index 0000000..4754c9b --- /dev/null +++ b/rannak/mangud/partorg/plakat.bak/index.html @@ -0,0 +1,125 @@ + + + + + + Plakat + + + + + + +
+ +
+ +
+

Kujunda Plakatit

+

Vali välja üks plakat ja muuda/lisa selle kujundust vastavalt enda äranägemisele.

+ + + + + + +
+ +
+
+

+ + +

+ +

+ + +

+ + +
+
+ + + + +

Vali Plakat

+
+ Jossup Saloninjo Plakat + Veekogude Plakat + Veekogude Plakat +
+ + + + +
+ + + + +
+ +
+ + +
+ + + + + + + + + + + + + + + + diff --git a/rannak/mangud/partorg/plakat.bak/main.js b/rannak/mangud/partorg/plakat.bak/main.js new file mode 100644 index 0000000..11809cb --- /dev/null +++ b/rannak/mangud/partorg/plakat.bak/main.js @@ -0,0 +1,224 @@ +document.addEventListener('DOMContentLoaded', () => { + let btn = document.querySelector('.modalButton'); + btn.click(); +}); + + +console.log("FAAAAK"); + +/* Inital Setup*/ + +const canvas = document.getElementById('drawing-board'); +const toolbar = document.getElementById('toolbar'); +const ctx = canvas.getContext('2d'); + +let canvasOffsetX = canvas.offsetLeft; +let canvasOffsetY = canvas.offsetTop; + +let CurImage = document.getElementById("stalin"); + +canvas.width = window.innerWidth - canvasOffsetX; +canvas.height = window.innerHeight - canvasOffsetY; + + + +function copyImageToCanvas(image, x, y) { + ctx.drawImage(image, 0, 0, canvas.width, canvas.height) +} + + + + +// Initial Drawring +setTimeout(() => { + copyImageToCanvas(CurImage, canvasOffsetX, canvasOffsetY); +}, 300); + + + +window.onresize = () => { + canvasOffsetX = canvas.offsetLeft; + canvasOffsetY = canvas.offsetTop; + canvas.width = window.innerWidth - canvasOffsetX; + canvas.height = window.innerHeight - canvasOffsetY; + copyImageToCanvas(CurImage, canvasOffsetX, canvasOffsetY); +} + + + + +/* EventHandlers and stuff*/ + +let addOnHasBeenAdded = false; +let addOnActive = false; +let newAddOn; +let hasPainted = false; + +let isPainting = false; +let lineWidth = 5; +let startX; +let startY; + +const pildid = new Array(); +const addOns = new Array(); + +toolbar.addEventListener('click', e => { + + + //Plakatid + const stalinImg = document.getElementById("stalin"); + const veekogudImg = document.getElementById("veekogud"); + const testing = document.getElementById("testing"); + + pildid.push(stalinImg); + pildid.push(veekogudImg); + pildid.push(testing); + + + //Addons + + const naziImg = document.getElementById("nazi"); + const lenin = document.getElementById("lenin"); + const redStar = document.getElementById("redStar"); + const stalinAddOn = document.getElementById("stalinAddOn"); + + addOns.push(naziImg); + addOns.push(lenin); + addOns.push(redStar); + addOns.push(stalinAddOn); + + + + + if (e.target.id === "stalin" || e.target.id === "veekogud" || e.target.id === "testing") { + for (el in pildid) { + pildid[el].classList.remove("picked"); + } + let newPicked = document.getElementById(e.target.id); + newPicked.classList.add("picked"); + + // Draw New Pick + CurImage = newPicked; + copyImageToCanvas(CurImage, canvasOffsetX, canvasOffsetY); + moveOnDisable(); + } + + + else if (e.target.id === 'clear') { + ctx.clearRect(0, 0, canvas.width, canvas.height); + copyImageToCanvas(CurImage, canvasOffsetX, canvasOffsetY); + moveOnDisable(); + } + + + else if (e.target.id === 'nazi' || e.target.id === 'lenin' || e.target.id === 'redStar' || e.target.id === 'stalinAddOn') { + addOnActive = true; + document.body.style.cursor = "url('img/normalSelect.cur'), auto"; + + for (el in addOns) { + addOns[el].classList.remove("addOnPicked"); + } + + newAddOn = document.getElementById(e.target.id); + newAddOn.classList.add("addOnPicked"); + } + + +}); + + + +canvas.addEventListener('click', e => { + + if(addOnActive == true){ + addOnActive = false; + document.body.style.cursor = "auto"; + + for (el in addOns) { + addOns[el].classList.remove("addOnPicked"); + } + + let xCord = e.offsetX - (newAddOn.clientWidth / 2) + let yCord = e.offsetY - (newAddOn.clientHeight / 2) + ctx.drawImage(newAddOn, xCord, yCord, newAddOn.clientWidth, newAddOn.clientHeight); + + + addOnHasBeenAdded = true; + if (hasPainted) + moveOnEnable(); + } +}); + + + + + + + + +/* Drawing stuff from here */ + +toolbar.addEventListener('change', e => { + if(e.target.id === 'stroke') { + ctx.strokeStyle = e.target.value; + } + + if(e.target.id === 'lineWidth') { + lineWidth = e.target.value; + } + +}); + + + +const draw = (e) => { + if(!isPainting) { + return; + } + + ctx.lineWidth = lineWidth; + ctx.lineCap = 'round'; + + ctx.lineTo(e.clientX - canvasOffsetX, e.clientY); + //ctx.lineTo(e.clientX - abiOffset, e.clientY); + ctx.stroke(); + + hasPainted = true; + if (addOnHasBeenAdded) + moveOnEnable(); +} + + + +canvas.addEventListener('mousedown', (e) => { + isPainting = true; + startX = e.clientX; + startY = e.clientY; +}); + + + +canvas.addEventListener('mouseup', e => { + isPainting = false; + ctx.stroke(); + ctx.beginPath(); +}); + + +canvas.addEventListener('mousemove', draw); + + + + +// Move On Stuff + +function moveOnEnable(){ + const btn = document.querySelector(".moveOn"); + btn.disabled = false; + btn.onclick = () => location.href = "../sonaragastik"; +} + +function moveOnDisable(){ + const btn = document.querySelector(".moveOn"); + btn.disabled = true; +} diff --git a/rannak/mangud/partorg/plakat.bak/style.css b/rannak/mangud/partorg/plakat.bak/style.css new file mode 100644 index 0000000..215c073 --- /dev/null +++ b/rannak/mangud/partorg/plakat.bak/style.css @@ -0,0 +1,188 @@ +body { + height: 100%; + overflow: hidden; + color: white; + background-color: #43464b; +} + +h1 { + color: #a1000e; + font-weight: bold; +} + + +/* Move on ja Sissejuhatus Button */ + +.avatar { + border-radius: 20px; + width: 100%; + max-width: 15rem; +} + + +.modalHeaderWrapper{ + text-align: center; + margin: 0; + width: 100%; +} + +button:disabled{ + opacity: 0.5; + cursor: not-allowed; +} + +.moveOn{ + display: inline-block; + border: none; + padding: 6px 12px; + margin-botton: 0; + font-size: 1rem; + font-weight: normal; + text-align: center; + cursor: pointer; + border-radius: 4px; + background-color: #4BB543; + color: white; +} + +/* Modal Stuff */ + + +.closeModalButton { + border-radius: 50px; +} + +.modalButton{ + background-color: rgba(0,136,169,1); + border: none; + border-radius: 50px; + cursor: pointer; + transition: all 0.3 ease 0; + font-size: 1.2rem; + text-align: center; + margin-left: 30px; +} + +.modalButton:hover{ + background-color: rgba(0,136,169,0.8); +} + + + +/* Main */ + +.wrapper { + height: 100%; + display: flex; +} + +/* Toolbar */ +.intro{ + text-align: center; + border-bottom: 2px solid gray; + padding: 7px; +} + + +#toolbar { + display: flex; + flex-direction: column; + align-items: center; + padding: 5px; + width: 20%; + min-width:350px; + background-color: #43464b; +} + +#clear{ + background-color: #1565c0; + border: none; + border-radius: 4px; + font-size:1.3rem; + color:white; + padding: 2px; +} + +#toolbar * {margin-bottom: 6px;} +#toolbar input {width: 4rem;} + +.toolbarDiv {width: 100%;} + +form { + display: flex; + align-items: center; +} + +label { + display: table-cell; + font-size: 1.2rem; +} + + + +/* Img Picker */ +.pickingSec { + height: 50%; + overflow: hidden; + overflow-y: scroll; +} + + +.valiTxt { + border-bottom: 4px solid gray; + padding-top: 10px; +} + + +.picked{ + border: 2px solid lime; +} + + +.addOnPicked{ + border: 2px solid aqua; +} + + + +.pickImg { + width: 50%; + height: auto; + padding: 10px; + margin-left: calc(25% - 5px); +} + + + +/* Canvas */ +canvas{ + display: block; + margin: 0 auto; +} + + + + + +/* Responsivness */ + +@media screen and (max-width: 1400px) { + .pickImg { + width: 30%; + height: auto; + padding: 7px; + margin-left: calc(7% - 21px); + } + +} + + +@media screen and (max-width: 900px) { + .pickImg { + width: 24%; + height: auto; + padding: 3px; + margin-left: calc(1% - 10px); + } + +} diff --git a/rannak/mangud/partorg/plakat/img/lenin.png b/rannak/mangud/partorg/plakat/img/lenin.png deleted file mode 100644 index e36df3d..0000000 Binary files a/rannak/mangud/partorg/plakat/img/lenin.png and /dev/null differ diff --git a/rannak/mangud/partorg/plakat/img/malev.jpg b/rannak/mangud/partorg/plakat/img/malev.jpg new file mode 100644 index 0000000..d88d950 Binary files /dev/null and b/rannak/mangud/partorg/plakat/img/malev.jpg differ diff --git a/rannak/mangud/partorg/plakat/img/nazi.png b/rannak/mangud/partorg/plakat/img/nazi.png deleted file mode 100644 index 87e616e..0000000 Binary files a/rannak/mangud/partorg/plakat/img/nazi.png and /dev/null differ diff --git a/rannak/mangud/partorg/plakat/img/normalSelect.cur b/rannak/mangud/partorg/plakat/img/normalSelect.cur deleted file mode 100644 index fdd943c..0000000 Binary files a/rannak/mangud/partorg/plakat/img/normalSelect.cur and /dev/null differ diff --git a/rannak/mangud/partorg/plakat/img/redStar.png b/rannak/mangud/partorg/plakat/img/redStar.png deleted file mode 100644 index b6eee79..0000000 Binary files a/rannak/mangud/partorg/plakat/img/redStar.png and /dev/null differ diff --git a/rannak/mangud/partorg/plakat/img/stalinAddOn.png b/rannak/mangud/partorg/plakat/img/stalinAddOn.png deleted file mode 100644 index d3e05fd..0000000 Binary files a/rannak/mangud/partorg/plakat/img/stalinAddOn.png and /dev/null differ diff --git a/rannak/mangud/partorg/plakat/img/viisAastak.jpg b/rannak/mangud/partorg/plakat/img/viisAastak.jpg new file mode 100644 index 0000000..20be6ed Binary files /dev/null and b/rannak/mangud/partorg/plakat/img/viisAastak.jpg differ diff --git a/rannak/mangud/partorg/plakat/index.html b/rannak/mangud/partorg/plakat/index.html index 9f1416b..e65040a 100644 --- a/rannak/mangud/partorg/plakat/index.html +++ b/rannak/mangud/partorg/plakat/index.html @@ -2,81 +2,38 @@ - - Plakat + + Plakatid - + - -
-
+ -
-

Kujunda Plakatit

-

Vali välja üks plakat ja muuda/lisa selle kujundust vastavalt enda äranägemisele.

- - - - - - -
- -
-
-

- - -

- -

- - -

- - -
-
- - - - -

Vali Plakat

-
- Jossup Saloninjo Plakat - Veekogude Plakat -
+
+

Plakatid

+

Leia iga plakati õige ajastu, ning muuda ka plakati teksti. +
+ Kui oled valinud õige ajastu ja muutunud plakati lause, muutub see roheliseks, + näitamaks, et sellega on kõik korras. +

+
+
+ +
- -

Vali Lisasid

-
- red star - lenin - Nazi Flag - Stalin -
- -
- - - - -
- -
- +
-
+ + +
@@ -92,7 +49,6 @@
@@ -115,7 +70,188 @@ - + +
+ + + +
+ + + + + diff --git a/rannak/mangud/partorg/plakat/main.js b/rannak/mangud/partorg/plakat/main.js deleted file mode 100644 index 9ae8e54..0000000 --- a/rannak/mangud/partorg/plakat/main.js +++ /dev/null @@ -1,222 +0,0 @@ -document.addEventListener('DOMContentLoaded', () => { - let btn = document.querySelector('.modalButton'); - btn.click(); -}); - - -console.log("FAAAAK"); - -/* Inital Setup*/ - -const canvas = document.getElementById('drawing-board'); -const toolbar = document.getElementById('toolbar'); -const ctx = canvas.getContext('2d'); - -let canvasOffsetX = canvas.offsetLeft; -let canvasOffsetY = canvas.offsetTop; - -let CurImage = document.getElementById("stalin"); - -canvas.width = window.innerWidth - canvasOffsetX; -canvas.height = window.innerHeight - canvasOffsetY; - - - -function copyImageToCanvas(image, x, y) { - ctx.drawImage(image, 0, 0, canvas.width, canvas.height) -} - - - - -// Initial Drawring -setTimeout(() => { - copyImageToCanvas(CurImage, canvasOffsetX, canvasOffsetY); -}, 300); - - - -window.onresize = () => { - canvasOffsetX = canvas.offsetLeft; - canvasOffsetY = canvas.offsetTop; - canvas.width = window.innerWidth - canvasOffsetX; - canvas.height = window.innerHeight - canvasOffsetY; - copyImageToCanvas(CurImage, canvasOffsetX, canvasOffsetY); -} - - - - -/* EventHandlers and stuff*/ - -let addOnHasBeenAdded = false; -let addOnActive = false; -let newAddOn; -let hasPainted = false; - -let isPainting = false; -let lineWidth = 5; -let startX; -let startY; - -const pildid = new Array(); -const addOns = new Array(); - -toolbar.addEventListener('click', e => { - - - //Plakatid - const stalinImg = document.getElementById("stalin"); - const veekogudImg = document.getElementById("veekogud"); - - pildid.push(stalinImg); - pildid.push(veekogudImg); - - - //Addons - - const naziImg = document.getElementById("nazi"); - const lenin = document.getElementById("lenin"); - const redStar = document.getElementById("redStar"); - const stalinAddOn = document.getElementById("stalinAddOn"); - - addOns.push(naziImg); - addOns.push(lenin); - addOns.push(redStar); - addOns.push(stalinAddOn); - - - - - if (e.target.id === "stalin" || e.target.id === "veekogud") { - for (el in pildid) { - pildid[el].classList.remove("picked"); - } - let newPicked = document.getElementById(e.target.id); - newPicked.classList.add("picked"); - - // Draw New Pick - CurImage = newPicked; - copyImageToCanvas(CurImage, canvasOffsetX, canvasOffsetY); - moveOnDisable(); - } - - - else if (e.target.id === 'clear') { - ctx.clearRect(0, 0, canvas.width, canvas.height); - copyImageToCanvas(CurImage, canvasOffsetX, canvasOffsetY); - moveOnDisable(); - } - - - else if (e.target.id === 'nazi' || e.target.id === 'lenin' || e.target.id === 'redStar' || e.target.id === 'stalinAddOn') { - addOnActive = true; - document.body.style.cursor = "url('img/normalSelect.cur'), auto"; - - for (el in addOns) { - addOns[el].classList.remove("addOnPicked"); - } - - newAddOn = document.getElementById(e.target.id); - newAddOn.classList.add("addOnPicked"); - } - - -}); - - - -canvas.addEventListener('click', e => { - - if(addOnActive == true){ - addOnActive = false; - document.body.style.cursor = "auto"; - - for (el in addOns) { - addOns[el].classList.remove("addOnPicked"); - } - - let xCord = e.offsetX - (newAddOn.clientWidth / 2) - let yCord = e.offsetY - (newAddOn.clientHeight / 2) - ctx.drawImage(newAddOn, xCord, yCord, newAddOn.clientWidth, newAddOn.clientHeight); - - - addOnHasBeenAdded = true; - if (hasPainted) - moveOnEnable(); - } -}); - - - - - - - - -/* Drawing stuff from here */ - -toolbar.addEventListener('change', e => { - if(e.target.id === 'stroke') { - ctx.strokeStyle = e.target.value; - } - - if(e.target.id === 'lineWidth') { - lineWidth = e.target.value; - } - -}); - - - -const draw = (e) => { - if(!isPainting) { - return; - } - - ctx.lineWidth = lineWidth; - ctx.lineCap = 'round'; - - ctx.lineTo(e.clientX - canvasOffsetX, e.clientY); - //ctx.lineTo(e.clientX - abiOffset, e.clientY); - ctx.stroke(); - - hasPainted = true; - if (addOnHasBeenAdded) - moveOnEnable(); -} - - - -canvas.addEventListener('mousedown', (e) => { - isPainting = true; - startX = e.clientX; - startY = e.clientY; -}); - - - -canvas.addEventListener('mouseup', e => { - isPainting = false; - ctx.stroke(); - ctx.beginPath(); -}); - - -canvas.addEventListener('mousemove', draw); - - - - -// Move On Stuff - -function moveOnEnable(){ - const btn = document.querySelector(".moveOn"); - btn.disabled = false; - btn.onclick = () => location.href = "../sonaragastik"; -} - -function moveOnDisable(){ - const btn = document.querySelector(".moveOn"); - btn.disabled = true; -} diff --git a/rannak/mangud/partorg/plakat/script.js b/rannak/mangud/partorg/plakat/script.js new file mode 100644 index 0000000..4d4ee36 --- /dev/null +++ b/rannak/mangud/partorg/plakat/script.js @@ -0,0 +1,117 @@ +document.addEventListener('DOMContentLoaded', () => { + let btn = document.querySelector('.modalButton'); + btn.click(); +}); + + + + + + + + + +// FROM HERE TODO + + +// Init Setup - to access later +let dingDong = document.querySelector(".addedText"); +dingDong.style.top = "50%"; +dingDong.style.left = "50%"; + + +// Position +const ules = document.querySelectorAll(".ules"); +const alla = document.querySelectorAll(".alla"); +const vasak = document.querySelectorAll(".vasak"); +const parem = document.querySelectorAll(".parem"); + +ules.forEach(el => { + el.addEventListener("click" , e => { + let theText = e.target.parentElement.parentElement.parentElement.childNodes[1].childNodes[1]; + let curTop = theText.style["top"]; + curTop = curTop.substring(0, curTop.length-1) + + if (Number(curTop) >= 5) + theText.style["top"] = Number(curTop)-5+"%"; + }); +}) + +alla.forEach(el => { + el.addEventListener("click" , e => { + let theText = e.target.parentElement.parentElement.parentElement.childNodes[1].childNodes[1]; + let curTop = theText.style["top"]; + curTop = curTop.substring(0, curTop.length-1) + + if (Number(curTop) <= 85) + theText.style["top"] = Number(curTop)+5+"%"; + }); +}) + +vasak.forEach(el => { + el.addEventListener("click", e => { + let theText = e.target.parentElement.parentElement.parentElement.childNodes[1].childNodes[1]; + let curLeft = theText.style["left"]; + curLeft = curLeft.substring(0, curLeft.length-1) + + console.log("Vasak"); + console.log(theText.innerHTML); + + if (Number(curLeft) >= 5) + theText.style["left"] = Number(curLeft)-5+"%"; + }); +}) + +parem.forEach(el => { + el.addEventListener("click", e => { + let theText = e.target.parentElement.parentElement.parentElement.childNodes[1].childNodes[1]; + let curLeft = theText.style["left"]; + curLeft = curLeft.substring(0, curLeft.length-1) + + if (Number(curLeft) >= 5) + theText.style["left"] = Number(curLeft)+5+"%"; + }); +}) + + + + +// Muuda Text button + +const muudaBtn = document.querySelector(".muuda"); + +muudaBtn.addEventListener("click", e => { + console.log(e); +}); + + + + + + + + + + + +function checkIfAllGood(){ + let rightDone = []; + + for (let j=0; j < lists.length; j++){ + const list = lists[j]; + if (list.className.includes("startBasket")) + continue; + else if (list.children.length == 1){ + if (list.id == list.children[0].id){ + if (!rightDone.includes(list.id)) + rightDone.push(list.id); + } + } + } // For loop end + + if (rightDone.length == 6) { + const btn = document.querySelector(".moveOn"); + btn.disabled = false; + btn.onclick = () => location.href = ""; + } +} diff --git a/rannak/mangud/partorg/plakat/style.css b/rannak/mangud/partorg/plakat/style.css deleted file mode 100644 index 215c073..0000000 --- a/rannak/mangud/partorg/plakat/style.css +++ /dev/null @@ -1,188 +0,0 @@ -body { - height: 100%; - overflow: hidden; - color: white; - background-color: #43464b; -} - -h1 { - color: #a1000e; - font-weight: bold; -} - - -/* Move on ja Sissejuhatus Button */ - -.avatar { - border-radius: 20px; - width: 100%; - max-width: 15rem; -} - - -.modalHeaderWrapper{ - text-align: center; - margin: 0; - width: 100%; -} - -button:disabled{ - opacity: 0.5; - cursor: not-allowed; -} - -.moveOn{ - display: inline-block; - border: none; - padding: 6px 12px; - margin-botton: 0; - font-size: 1rem; - font-weight: normal; - text-align: center; - cursor: pointer; - border-radius: 4px; - background-color: #4BB543; - color: white; -} - -/* Modal Stuff */ - - -.closeModalButton { - border-radius: 50px; -} - -.modalButton{ - background-color: rgba(0,136,169,1); - border: none; - border-radius: 50px; - cursor: pointer; - transition: all 0.3 ease 0; - font-size: 1.2rem; - text-align: center; - margin-left: 30px; -} - -.modalButton:hover{ - background-color: rgba(0,136,169,0.8); -} - - - -/* Main */ - -.wrapper { - height: 100%; - display: flex; -} - -/* Toolbar */ -.intro{ - text-align: center; - border-bottom: 2px solid gray; - padding: 7px; -} - - -#toolbar { - display: flex; - flex-direction: column; - align-items: center; - padding: 5px; - width: 20%; - min-width:350px; - background-color: #43464b; -} - -#clear{ - background-color: #1565c0; - border: none; - border-radius: 4px; - font-size:1.3rem; - color:white; - padding: 2px; -} - -#toolbar * {margin-bottom: 6px;} -#toolbar input {width: 4rem;} - -.toolbarDiv {width: 100%;} - -form { - display: flex; - align-items: center; -} - -label { - display: table-cell; - font-size: 1.2rem; -} - - - -/* Img Picker */ -.pickingSec { - height: 50%; - overflow: hidden; - overflow-y: scroll; -} - - -.valiTxt { - border-bottom: 4px solid gray; - padding-top: 10px; -} - - -.picked{ - border: 2px solid lime; -} - - -.addOnPicked{ - border: 2px solid aqua; -} - - - -.pickImg { - width: 50%; - height: auto; - padding: 10px; - margin-left: calc(25% - 5px); -} - - - -/* Canvas */ -canvas{ - display: block; - margin: 0 auto; -} - - - - - -/* Responsivness */ - -@media screen and (max-width: 1400px) { - .pickImg { - width: 30%; - height: auto; - padding: 7px; - margin-left: calc(7% - 21px); - } - -} - - -@media screen and (max-width: 900px) { - .pickImg { - width: 24%; - height: auto; - padding: 3px; - margin-left: calc(1% - 10px); - } - -} diff --git a/rannak/mangud/partorg/plakat/styles.css b/rannak/mangud/partorg/plakat/styles.css new file mode 100644 index 0000000..7d974e1 --- /dev/null +++ b/rannak/mangud/partorg/plakat/styles.css @@ -0,0 +1,197 @@ +* { + box-sizing: border-box; +} +h1 { + color: #154734; + font-weight: bold; +} +body{ + background-color: #4D5157; +} + +.moveOn{ + display: inline-block; + border: none; + padding: 6px 12px; + margin-botton: 0; + font-size: 1rem; + font-weight: normal; + text-align: center; + cursor: pointer; + border-radius: 4px; + background-color: #4BB543; + color: white; +} + +button:disabled{ + opacity: 0.5; + cursor: not-allowed; +} + + + + + +/* Modal Stuff */ + +.avatar { + border-radius: 20px; + width: 100%; + max-width: 15rem; +} + +.modalHeaderWrapper{ + text-align: center; + margin: 0; + width: 100%; +} + + + + +.closeModalButton { + border-radius: 50px; +} + +.modalButton{ + position: absolute; + top: 0; + right: 0; + padding: 25px; + background-color: rgba(0,136,169,1); + border: none; + border-radius: 50px; + cursor: pointer; + transition: all 0.3 ease 0; + margin: 3%; + font-size: 1.2rem; +} + +.modalButton:hover{ + background-color: rgba(0,136,169,0.8); +} + + + + + +/* Main Stuff*/ +.main{ + background-color: #2f2f2f; + margin: 10 10%; +} + +.nav-tabs { + display: flex; + justify-content: center; +} + +.wrapper{ + display: flex; + justify-content: center; +} + +.plakatWrapper, .innerWrapper{ + width: 48%; +} + + +.innerWrapper{ + padding: 2rem; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; +} + + +/* Input stuff*/ + +select{ + height: 3rem; + font-size: 2rem; +} + +label{ + padding: 1rem; + padding-top: 4rem; + font-size: 1.2rem; +} + +input { + height: 2rem; + width: 75%; +} + +.innerWrapper button { + margin-top: 1rem; +} + +.innerWrapper button { + background-color: #596B6E; + border: none; + border-radius: 4px; + font-size:1.3rem; + color:white; + padding: 5px; +} + + + + + + + + +/*Plakatid*/ + +.stalin { + background: url("img/stalin.jpg") no-repeat center; + background-size: 100%; + font-size: 2rem; + text-align: center; + color: black; +} + + +.veekogud { + background: url("img/veekogud.jpg") no-repeat center; + background-size: 100%; + font-size: 2rem; + text-align: center; + color: black; +} + + +.malev { + background: url("img/malev.jpg") no-repeat center; + background-size: 100% 100%; + font-size: 2rem; + text-align: center; + color: black; +} + + +.viisAastak { + background: url("img/viisAastak.jpg") no-repeat center; + background-size: 100% 100%; + font-size: 2rem; + text-align: center; + color: black; +} + +.pikkPlakat{ + height: 78vh; +} + +.plakatWrapper{ + position: relative; + overflow: hidden; + clear: both; +} +.addedText { + position: absolute; +} + + + -- cgit v1.2.3