From 760e8fff4d4fd71350ddc9b17e85e95a17d4ce8e Mon Sep 17 00:00:00 2001 From: Rasmus Date: Fri, 31 Mar 2023 19:41:34 +0300 Subject: oops --- rannak/mangud/arimees/pood/index.html | 56 +++++++++++++++++- rannak/mangud/arimees/pood/pildid/12.jpg | Bin 0 -> 618138 bytes rannak/mangud/arimees/pood/pildid/13.jpg | Bin 0 -> 654006 bytes rannak/mangud/arimees/pood/pildid/14.jpg | Bin 0 -> 1812244 bytes rannak/mangud/arimees/pood/pildid/15.jpg | Bin 0 -> 2256889 bytes rannak/mangud/arimees/pood/pildid/16.jpg | Bin 0 -> 1470522 bytes rannak/mangud/arimees/pood/pildid/17.jpg | Bin 0 -> 1770704 bytes rannak/mangud/arimees/pood/pildid/18.jpg | Bin 0 -> 2863613 bytes rannak/mangud/arimees/pood/pildid/avatar.png | Bin rannak/mangud/arimees/pood/script.js | 83 +++++++++++++++++++++++---- rannak/mangud/arimees/pood/style.css | 19 ++++-- 11 files changed, 139 insertions(+), 19 deletions(-) mode change 100755 => 100644 rannak/mangud/arimees/pood/index.html create mode 100644 rannak/mangud/arimees/pood/pildid/12.jpg create mode 100644 rannak/mangud/arimees/pood/pildid/13.jpg create mode 100644 rannak/mangud/arimees/pood/pildid/14.jpg create mode 100644 rannak/mangud/arimees/pood/pildid/15.jpg create mode 100644 rannak/mangud/arimees/pood/pildid/16.jpg create mode 100644 rannak/mangud/arimees/pood/pildid/17.jpg create mode 100644 rannak/mangud/arimees/pood/pildid/18.jpg mode change 100755 => 100644 rannak/mangud/arimees/pood/pildid/avatar.png mode change 100755 => 100644 rannak/mangud/arimees/pood/script.js mode change 100755 => 100644 rannak/mangud/arimees/pood/style.css (limited to 'rannak/mangud/arimees/pood') diff --git a/rannak/mangud/arimees/pood/index.html b/rannak/mangud/arimees/pood/index.html old mode 100755 new mode 100644 index 1e83723..f52a103 --- a/rannak/mangud/arimees/pood/index.html +++ b/rannak/mangud/arimees/pood/index.html @@ -128,9 +128,35 @@ - + + + + + + + + + + + + + @@ -180,10 +206,35 @@ Ajakirja lehekülg - +
+ Ajakirja lehekülg +
+
+ Ajakirja lehekülg +
+
+ Ajakirja lehekülg +
+
+ Ajakirja lehekülg +
+ +
+ Ajakirja lehekülg +
+ +
+ Ajakirja lehekülg +
+ +
+ Ajakirja lehekülg +
+ + @@ -191,6 +242,7 @@

Ostunimekiri

+

Täitmiseks vajuta soovitud kohale ja sisesta andmed.

diff --git a/rannak/mangud/arimees/pood/pildid/12.jpg b/rannak/mangud/arimees/pood/pildid/12.jpg new file mode 100644 index 0000000..6cc8de1 Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/12.jpg differ diff --git a/rannak/mangud/arimees/pood/pildid/13.jpg b/rannak/mangud/arimees/pood/pildid/13.jpg new file mode 100644 index 0000000..dd4121e Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/13.jpg differ diff --git a/rannak/mangud/arimees/pood/pildid/14.jpg b/rannak/mangud/arimees/pood/pildid/14.jpg new file mode 100644 index 0000000..f9bb4be Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/14.jpg differ diff --git a/rannak/mangud/arimees/pood/pildid/15.jpg b/rannak/mangud/arimees/pood/pildid/15.jpg new file mode 100644 index 0000000..5522a85 Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/15.jpg differ diff --git a/rannak/mangud/arimees/pood/pildid/16.jpg b/rannak/mangud/arimees/pood/pildid/16.jpg new file mode 100644 index 0000000..f981ab5 Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/16.jpg differ diff --git a/rannak/mangud/arimees/pood/pildid/17.jpg b/rannak/mangud/arimees/pood/pildid/17.jpg new file mode 100644 index 0000000..e87ebfe Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/17.jpg differ diff --git a/rannak/mangud/arimees/pood/pildid/18.jpg b/rannak/mangud/arimees/pood/pildid/18.jpg new file mode 100644 index 0000000..1de7aa5 Binary files /dev/null and b/rannak/mangud/arimees/pood/pildid/18.jpg differ diff --git a/rannak/mangud/arimees/pood/pildid/avatar.png b/rannak/mangud/arimees/pood/pildid/avatar.png old mode 100755 new mode 100644 diff --git a/rannak/mangud/arimees/pood/script.js b/rannak/mangud/arimees/pood/script.js old mode 100755 new mode 100644 index 8803bbe..5a48c84 --- a/rannak/mangud/arimees/pood/script.js +++ b/rannak/mangud/arimees/pood/script.js @@ -4,25 +4,84 @@ document.addEventListener('DOMContentLoaded', () => { }); -const selectors = document.querySelectorAll('select'); -for(el of selectors){ - el.addEventListener('change', () => { - let selected = new Array(); - for (el of selectors){ - if (!selected.includes(el.value) && el.value != 'Vali') - selected.push(el.value); +const cells = document.querySelectorAll("td"); + +for (let i=0;i < cells.length; i++){ + cells[i].onclick = function(){ + + if (this.hasAttribute('data-clicked')) + return; + + this.setAttribute('data-clicked', 'yes') + this.setAttribute('data-text', this.innerHTML) + + let input = document.createElement('input'); + input.setAttribute('type', 'text'); + input.value = this.innerHTML; + input.style.width = this.offsetWidth - (this.clientLeft * 2) + 'px'; + input.style.height = this.offsetHeight - (this.clientTop * 2) + 'px'; + input.style.border = '0px'; + input.fontFamily = 'inherit'; + input.fontSize = 'inherit'; + input.textAlign = 'inherit'; + input.style.backgroundColor = 'LightGoldenRodYellow'; + + + // On offclick + input.onblur = function(){ + let td = input.parentElement; + let origText = input.parentElement.getAttribute('data-text'); + let curText = this.value; + + if (origText != curText){ + td.removeAttribute('data-clicked'); + td.removeAttribute('data-text'); + td.innerHTML = curText; + td.style.cssText = 'padding: .5rem .5rem'; + + + // Can move on? + for (cell of cells){ + if (cell.textContent == '') + return; + } + moveOnEnable(); + } + else { + td.removeAttribute('data-clicked'); + td.removeAttribute('data-text'); + td.innerHTML = origText; + td.style.cssText = 'padding: .5rem .5rem'; + } + + + // Here Check if Done + //TODO + + + + } // onblur func end + + + input.onkeypress = function (){ + if (event.keyCode == 13) + this.onblur(); } - if (selected.length == 6) - moveOnEnable(); + this.innerHTML = ''; + this.style.cssText = 'padding: 0px'; + this.append(input); + this.firstElementChild.select(); - }); -} + + } // OnClick Loop +} //ForLoop + -// If All Else Done +// If All Done function moveOnEnable(){ const btn = document.querySelector(".moveOn"); diff --git a/rannak/mangud/arimees/pood/style.css b/rannak/mangud/arimees/pood/style.css old mode 100755 new mode 100644 index e4de8d1..61bdfe7 --- a/rannak/mangud/arimees/pood/style.css +++ b/rannak/mangud/arimees/pood/style.css @@ -3,6 +3,7 @@ body{ background-color: #43464b; + color: white; } @@ -78,6 +79,12 @@ button:disabled{ /* Main */ + +.tab-pane { + text-align: center; +} + + .main { display: flex; align-items: center; @@ -85,14 +92,12 @@ button:disabled{ flex-direction: column; } -.main h3 { - padding-top: 1rem; - color: white; +h3{ + padding-top: 3rem; } .tab-content img{ - max-width : 50vw; - heigth: auto; + max-height: 87vh; } @@ -100,3 +105,7 @@ table { padding-top: 1rem; font-size: 1.1rem; } + +img:hover{ + scale: 1.37; +} -- cgit v1.2.3