From 5346af62569c013049100539f7ed38ef4c34adc1 Mon Sep 17 00:00:00 2001 From: Rasmus Luha Date: Wed, 21 Dec 2022 16:19:54 +0200 Subject: =?UTF-8?q?Perenaine=20=C3=9Cl=201,3=20FullDone?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rannak/mangud/perenaine/ristsona/index.html | 21 ++++++++------------- rannak/mangud/perenaine/ristsona/script.js | 28 ++++++++++++++++++++++++++++ rannak/mangud/perenaine/ristsona/style.css | 12 ++++++++++++ 3 files changed, 48 insertions(+), 13 deletions(-) (limited to 'rannak/mangud/perenaine/ristsona') diff --git a/rannak/mangud/perenaine/ristsona/index.html b/rannak/mangud/perenaine/ristsona/index.html index bd09541..e10aa1c 100644 --- a/rannak/mangud/perenaine/ristsona/index.html +++ b/rannak/mangud/perenaine/ristsona/index.html @@ -65,20 +65,15 @@ diff --git a/rannak/mangud/perenaine/ristsona/script.js b/rannak/mangud/perenaine/ristsona/script.js index cacda18..b542037 100644 --- a/rannak/mangud/perenaine/ristsona/script.js +++ b/rannak/mangud/perenaine/ristsona/script.js @@ -171,6 +171,7 @@ function getInputValue() { + // Button funcs function enterSubmit(){ @@ -185,11 +186,38 @@ function enterSubmit(){ } enterSubmit() + +// If All Else Done + + function moveOnEnable(){ + message("Tubli, täitsid ristsõna. Siin on Kartulisalati Retsept", "green"); + const btn = document.querySelector(".moveOn"); btn.disabled = false; btn.onclick = () => location.href = ""; + // Retsept + const middlePart = document.querySelector("table"); + middlePart.parentNode.removeChild(middlePart); + + const leftPart = document.querySelector(".left"); + let eller = document.createElement("span"); + + eller.innerHTML = "- Keeda koorimata aedviljad eelmisel päeval pehmeks. Lase täielikult jahtuda.

- Salati tegemiseks koori keedetud kartulid ja porgandid. Haki aedviljad (kartul, porgand, kurk) ja vorst väikesteks kuubikuteks. Haki kahvliga jahtunud munad. Kastme jaoks sega hapukoor ja majonees omavahel. Lisa soola ja pipart. Kalla kaste salatiainetele ning sega õrnalt läbi.

- Enne serveerimist lase salatil umbes 2-4 tundi sahvris maitsestuda.

- Salatile võib lisada ka hakitud õunakuubikuid ning konservherneid." + eller.classList.add("retsept"); + + leftPart.parentNode.insertBefore(eller, leftPart.nextSibling); + + + // Remove left and right part + leftPart.classList.remove("text-white"); + const rightPart = document.querySelector(".right"); + rightPart.classList.remove("text-white"); + + + + // submit btn const subButton = document.querySelector(".subBtn"); subButton.disabled = true; diff --git a/rannak/mangud/perenaine/ristsona/style.css b/rannak/mangud/perenaine/ristsona/style.css index d0d405e..b37fc5d 100644 --- a/rannak/mangud/perenaine/ristsona/style.css +++ b/rannak/mangud/perenaine/ristsona/style.css @@ -25,6 +25,18 @@ button:disabled{ cursor: not-allowed; } +/* Retsept Lõpus*/ + +.retsept { + margin-top: 5%; + width:60%; + color: #AFFF80; + text-align: center; + font-size: 1.2rem; +} + + + /* Modal Stuff */ -- cgit v1.2.3