From c40293acd3a00b20d74cf37823b7efb1b75dec9b Mon Sep 17 00:00:00 2001 From: Rasmus Date: Mon, 13 Mar 2023 16:33:45 +0200 Subject: Sissejuhatus Btn clean --- .../pood/fonts/1001fonts-eutemia-i-eula.txt | 31 --- rannak/mangud/arimees/pood/fonts/Eutemia.ttf | Bin 32564 -> 0 bytes rannak/mangud/arimees/pood/index.html | 278 +++++++++++++++++++-- rannak/mangud/arimees/pood/pildid/1.jpg | Bin 0 -> 699049 bytes rannak/mangud/arimees/pood/pildid/10.jpg | Bin 0 -> 2313573 bytes rannak/mangud/arimees/pood/pildid/11.jpg | Bin 0 -> 2186295 bytes rannak/mangud/arimees/pood/pildid/2.jpg | Bin 0 -> 1848150 bytes rannak/mangud/arimees/pood/pildid/3.jpg | Bin 0 -> 2289471 bytes rannak/mangud/arimees/pood/pildid/4.jpg | Bin 0 -> 1680018 bytes rannak/mangud/arimees/pood/pildid/5.jpg | Bin 0 -> 2173516 bytes rannak/mangud/arimees/pood/pildid/6.jpg | Bin 0 -> 3357591 bytes rannak/mangud/arimees/pood/pildid/7.jpg | Bin 0 -> 2657177 bytes rannak/mangud/arimees/pood/pildid/8.jpg | Bin 0 -> 2779167 bytes rannak/mangud/arimees/pood/pildid/9.jpg | Bin 0 -> 2465714 bytes rannak/mangud/arimees/pood/pildid/kingad.png | Bin 2672289 -> 0 bytes rannak/mangud/arimees/pood/pildid/kohver.png | Bin 5128984 -> 0 bytes rannak/mangud/arimees/pood/pildid/kupsis.png | Bin 64952 -> 0 bytes rannak/mangud/arimees/pood/pildid/laud.png | Bin 1280042 -> 0 bytes rannak/mangud/arimees/pood/pildid/sai.png | Bin 2596703 -> 0 bytes rannak/mangud/arimees/pood/pildid/tugitool.png | Bin 5801727 -> 0 bytes rannak/mangud/arimees/pood/script.js | 65 ++--- rannak/mangud/arimees/pood/style.css | 102 ++++++++ rannak/mangud/arimees/pood/styles.css | 167 ------------- 23 files changed, 370 insertions(+), 273 deletions(-) delete mode 100755 rannak/mangud/arimees/pood/fonts/1001fonts-eutemia-i-eula.txt delete mode 100755 rannak/mangud/arimees/pood/fonts/Eutemia.ttf create mode 100644 rannak/mangud/arimees/pood/pildid/1.jpg create mode 100644 rannak/mangud/arimees/pood/pildid/10.jpg create mode 100644 rannak/mangud/arimees/pood/pildid/11.jpg create mode 100644 rannak/mangud/arimees/pood/pildid/2.jpg create mode 100644 rannak/mangud/arimees/pood/pildid/3.jpg create mode 100644 rannak/mangud/arimees/pood/pildid/4.jpg create mode 100644 rannak/mangud/arimees/pood/pildid/5.jpg create mode 100644 rannak/mangud/arimees/pood/pildid/6.jpg create mode 100644 rannak/mangud/arimees/pood/pildid/7.jpg create mode 100644 rannak/mangud/arimees/pood/pildid/8.jpg create mode 100644 rannak/mangud/arimees/pood/pildid/9.jpg delete mode 100755 rannak/mangud/arimees/pood/pildid/kingad.png delete mode 100755 rannak/mangud/arimees/pood/pildid/kohver.png delete mode 100755 rannak/mangud/arimees/pood/pildid/kupsis.png delete mode 100755 rannak/mangud/arimees/pood/pildid/laud.png delete mode 100755 rannak/mangud/arimees/pood/pildid/sai.png delete mode 100755 rannak/mangud/arimees/pood/pildid/tugitool.png create mode 100755 rannak/mangud/arimees/pood/style.css delete mode 100755 rannak/mangud/arimees/pood/styles.css (limited to 'rannak/mangud/arimees/pood') diff --git a/rannak/mangud/arimees/pood/fonts/1001fonts-eutemia-i-eula.txt b/rannak/mangud/arimees/pood/fonts/1001fonts-eutemia-i-eula.txt deleted file mode 100755 index b3cf91f..0000000 --- a/rannak/mangud/arimees/pood/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/pood/fonts/Eutemia.ttf b/rannak/mangud/arimees/pood/fonts/Eutemia.ttf deleted file mode 100755 index c575e59..0000000 Binary files a/rannak/mangud/arimees/pood/fonts/Eutemia.ttf and /dev/null differ diff --git a/rannak/mangud/arimees/pood/index.html b/rannak/mangud/arimees/pood/index.html index 6c2f7b5..1e83723 100755 --- a/rannak/mangud/arimees/pood/index.html +++ b/rannak/mangud/arimees/pood/index.html @@ -1,30 +1,39 @@ + - - - - Pood - - - + + + + Pood + + + + - + + + + + + +
+

Pood

+

+ Vali kataloogidest erineivaid tooteid, mida soovid osta +
+ ning arvuta ka nende kurss +

-
-

Pood

-

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

-
-
- -
+
+
+
- - +
@@ -41,10 +50,22 @@
@@ -53,10 +74,219 @@
+ +
+

Sirvi ajakirja

+ +
+ + + + + + + + + +
+ +
+ Ajakirja lehekülg +
+ +
+ Ajakirja lehekülg +
+ +
+ Ajakirja lehekülg +
+ +
+ Ajakirja lehekülg +
+ +
+ Ajakirja lehekülg +
+ +
+ Ajakirja lehekülg +
+ +
+ Ajakirja lehekülg +
+ +
+ Ajakirja lehekülg +
+ +
+ Ajakirja lehekülg +
+ +
+ Ajakirja lehekülg +
+ +
+ Ajakirja lehekülg +
+ +
+ + + +
+ + + + + +

Ostunimekiri

+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ToodeHind(FIM)Hind(Rubla)TükkiSumma(Rubla)
+ + +
+ + + + +
+ + + + - + + - - diff --git a/rannak/mangud/arimees/pood/pildid/1.jpg b/rannak/mangud/arimees/pood/pildid/1.jpg new file mode 100644 index 0000000..fc78d01 Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/1.jpg differ diff --git a/rannak/mangud/arimees/pood/pildid/10.jpg b/rannak/mangud/arimees/pood/pildid/10.jpg new file mode 100644 index 0000000..7eb4231 Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/10.jpg differ diff --git a/rannak/mangud/arimees/pood/pildid/11.jpg b/rannak/mangud/arimees/pood/pildid/11.jpg new file mode 100644 index 0000000..e91c8b5 Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/11.jpg differ diff --git a/rannak/mangud/arimees/pood/pildid/2.jpg b/rannak/mangud/arimees/pood/pildid/2.jpg new file mode 100644 index 0000000..aab350e Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/2.jpg differ diff --git a/rannak/mangud/arimees/pood/pildid/3.jpg b/rannak/mangud/arimees/pood/pildid/3.jpg new file mode 100644 index 0000000..9bfc7d6 Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/3.jpg differ diff --git a/rannak/mangud/arimees/pood/pildid/4.jpg b/rannak/mangud/arimees/pood/pildid/4.jpg new file mode 100644 index 0000000..ec8a0af Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/4.jpg differ diff --git a/rannak/mangud/arimees/pood/pildid/5.jpg b/rannak/mangud/arimees/pood/pildid/5.jpg new file mode 100644 index 0000000..d728f57 Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/5.jpg differ diff --git a/rannak/mangud/arimees/pood/pildid/6.jpg b/rannak/mangud/arimees/pood/pildid/6.jpg new file mode 100644 index 0000000..ce21865 Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/6.jpg differ diff --git a/rannak/mangud/arimees/pood/pildid/7.jpg b/rannak/mangud/arimees/pood/pildid/7.jpg new file mode 100644 index 0000000..4a6c15d Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/7.jpg differ diff --git a/rannak/mangud/arimees/pood/pildid/8.jpg b/rannak/mangud/arimees/pood/pildid/8.jpg new file mode 100644 index 0000000..f63c3a0 Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/8.jpg differ diff --git a/rannak/mangud/arimees/pood/pildid/9.jpg b/rannak/mangud/arimees/pood/pildid/9.jpg new file mode 100644 index 0000000..e49c49b Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/9.jpg differ diff --git a/rannak/mangud/arimees/pood/pildid/kingad.png b/rannak/mangud/arimees/pood/pildid/kingad.png deleted file mode 100755 index ef106ae..0000000 Binary files a/rannak/mangud/arimees/pood/pildid/kingad.png and /dev/null differ diff --git a/rannak/mangud/arimees/pood/pildid/kohver.png b/rannak/mangud/arimees/pood/pildid/kohver.png deleted file mode 100755 index 485b6db..0000000 Binary files a/rannak/mangud/arimees/pood/pildid/kohver.png and /dev/null differ diff --git a/rannak/mangud/arimees/pood/pildid/kupsis.png b/rannak/mangud/arimees/pood/pildid/kupsis.png deleted file mode 100755 index 2419f89..0000000 Binary files a/rannak/mangud/arimees/pood/pildid/kupsis.png and /dev/null differ diff --git a/rannak/mangud/arimees/pood/pildid/laud.png b/rannak/mangud/arimees/pood/pildid/laud.png deleted file mode 100755 index e3036dc..0000000 Binary files a/rannak/mangud/arimees/pood/pildid/laud.png and /dev/null differ diff --git a/rannak/mangud/arimees/pood/pildid/sai.png b/rannak/mangud/arimees/pood/pildid/sai.png deleted file mode 100755 index 8add13c..0000000 Binary files a/rannak/mangud/arimees/pood/pildid/sai.png and /dev/null differ diff --git a/rannak/mangud/arimees/pood/pildid/tugitool.png b/rannak/mangud/arimees/pood/pildid/tugitool.png deleted file mode 100755 index c48bd50..0000000 Binary files a/rannak/mangud/arimees/pood/pildid/tugitool.png and /dev/null differ diff --git a/rannak/mangud/arimees/pood/script.js b/rannak/mangud/arimees/pood/script.js index 3b3e67b..8803bbe 100755 --- a/rannak/mangud/arimees/pood/script.js +++ b/rannak/mangud/arimees/pood/script.js @@ -4,66 +4,29 @@ document.addEventListener('DOMContentLoaded', () => { }); +const selectors = document.querySelectorAll('select'); -const kurss = 15.6; -doneCounter = 0; +for(el of selectors){ + el.addEventListener('change', () => { - -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(); - } + let selected = new Array(); + for (el of selectors){ + if (!selected.includes(el.value) && el.value != 'Vali') + selected.push(el.value); } - - 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!"; - - } - - - - }) + if (selected.length == 6) + moveOnEnable(); + + }); } +// If All Else Done -function enableAllGood(){ +function moveOnEnable(){ const btn = document.querySelector(".moveOn"); btn.disabled = false; btn.onclick = () => location.href = ""; } + diff --git a/rannak/mangud/arimees/pood/style.css b/rannak/mangud/arimees/pood/style.css new file mode 100755 index 0000000..e4de8d1 --- /dev/null +++ b/rannak/mangud/arimees/pood/style.css @@ -0,0 +1,102 @@ +* {box-sizing: border-box;} + + +body{ + background-color: #43464b; +} + + +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 */ + +.main { + display: flex; + align-items: center; + justify-content: center; + flex-direction: column; +} + +.main h3 { + padding-top: 1rem; + color: white; +} + +.tab-content img{ + max-width : 50vw; + heigth: auto; +} + + +table { + padding-top: 1rem; + font-size: 1.1rem; +} diff --git a/rannak/mangud/arimees/pood/styles.css b/rannak/mangud/arimees/pood/styles.css deleted file mode 100755 index 58bc290..0000000 --- a/rannak/mangud/arimees/pood/styles.css +++ /dev/null @@ -1,167 +0,0 @@ -* {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); - } -} -- cgit v1.2.3