summaryrefslogtreecommitdiff
path: root/rannak
diff options
context:
space:
mode:
Diffstat (limited to 'rannak')
-rw-r--r--rannak/mangud/arimees/pood/index.html20
-rw-r--r--rannak/mangud/arimees/pood/script.js23
-rw-r--r--rannak/mangud/partorg/plakat/img/malev.jpgbin498451 -> 0 bytes
-rw-r--r--rannak/mangud/partorg/plakat/img/malev.pngbin0 -> 4747120 bytes
-rw-r--r--rannak/mangud/partorg/plakat/img/malevBlank.pngbin690413 -> 971550 bytes
-rw-r--r--rannak/mangud/partorg/plakat/img/stalin.jpgbin168805 -> 0 bytes
-rw-r--r--rannak/mangud/partorg/plakat/img/stalin.pngbin0 -> 29626279 bytes
-rw-r--r--rannak/mangud/partorg/plakat/img/stalinBlank.pngbin25149515 -> 29238010 bytes
-rw-r--r--rannak/mangud/partorg/plakat/img/veekogud.jpgbin223291 -> 0 bytes
-rw-r--r--rannak/mangud/partorg/plakat/img/veekogud.pngbin0 -> 23796934 bytes
-rw-r--r--rannak/mangud/partorg/plakat/img/veekogudBlank.pngbin21683348 -> 22309523 bytes
-rw-r--r--rannak/mangud/partorg/plakat/img/viisAastak.png (renamed from rannak/mangud/partorg/plakat/img/viisAastak.jpg)bin13173619 -> 16730975 bytes
-rw-r--r--rannak/mangud/partorg/plakat/img/viisAastakBlank.pngbin12708001 -> 16607880 bytes
-rw-r--r--rannak/mangud/partorg/plakat/styles.css8
14 files changed, 30 insertions, 21 deletions
diff --git a/rannak/mangud/arimees/pood/index.html b/rannak/mangud/arimees/pood/index.html
index 16233d2..2e72724 100644
--- a/rannak/mangud/arimees/pood/index.html
+++ b/rannak/mangud/arimees/pood/index.html
@@ -256,70 +256,70 @@
<td></td>
<td></td>
<td></td>
- <td></td>
+ <td class="summa"></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
- <td></td>
+ <td class="summa"></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
- <td></td>
+ <td class="summa"></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
- <td></td>
+ <td class="summa"></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
- <td></td>
+ <td class="summa"></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
- <td></td>
+ <td class="summa"></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
- <td></td>
+ <td class="summa"></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
- <td></td>
+ <td class="summa"></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
- <td></td>
+ <td class="summa"></td>
</tr>
<tr>
<td></td>
<td></td>
<td></td>
<td></td>
- <td></td>
+ <td class="summa"></td>
</tr>
</table>
diff --git a/rannak/mangud/arimees/pood/script.js b/rannak/mangud/arimees/pood/script.js
index 20efbe8..985255e 100644
--- a/rannak/mangud/arimees/pood/script.js
+++ b/rannak/mangud/arimees/pood/script.js
@@ -35,6 +35,9 @@ for (let i=0;i < cells.length; i++){
let origText = input.parentElement.getAttribute('data-text');
let curText = this.value;
+ sums = document.querySelectorAll(".summa");
+ console.log(sums);
+
if (origText != curText){
td.removeAttribute('data-clicked');
td.removeAttribute('data-text');
@@ -42,26 +45,32 @@ for (let i=0;i < cells.length; i++){
td.style.cssText = 'padding: .5rem .5rem';
+ totalSumma = 0;
+ sums.forEach(el => {
+ totalSumma += Number(el.innerHTML);
+ });
// Can move on?
for (cell of cells){
- if (cell.textContent == '')
- return;
+ if (totalSumma >= 12000)
+ moveOnEnable();
+ else 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
+ sums.forEach(el => {
+ console.log(el);
+ });
+ }
-
} // onblur func end
diff --git a/rannak/mangud/partorg/plakat/img/malev.jpg b/rannak/mangud/partorg/plakat/img/malev.jpg
deleted file mode 100644
index d88d950..0000000
--- a/rannak/mangud/partorg/plakat/img/malev.jpg
+++ /dev/null
Binary files differ
diff --git a/rannak/mangud/partorg/plakat/img/malev.png b/rannak/mangud/partorg/plakat/img/malev.png
new file mode 100644
index 0000000..919e667
--- /dev/null
+++ b/rannak/mangud/partorg/plakat/img/malev.png
Binary files differ
diff --git a/rannak/mangud/partorg/plakat/img/malevBlank.png b/rannak/mangud/partorg/plakat/img/malevBlank.png
index 85c10f1..b94db71 100644
--- a/rannak/mangud/partorg/plakat/img/malevBlank.png
+++ b/rannak/mangud/partorg/plakat/img/malevBlank.png
Binary files differ
diff --git a/rannak/mangud/partorg/plakat/img/stalin.jpg b/rannak/mangud/partorg/plakat/img/stalin.jpg
deleted file mode 100644
index bc0a3a5..0000000
--- a/rannak/mangud/partorg/plakat/img/stalin.jpg
+++ /dev/null
Binary files differ
diff --git a/rannak/mangud/partorg/plakat/img/stalin.png b/rannak/mangud/partorg/plakat/img/stalin.png
new file mode 100644
index 0000000..45cd9ef
--- /dev/null
+++ b/rannak/mangud/partorg/plakat/img/stalin.png
Binary files differ
diff --git a/rannak/mangud/partorg/plakat/img/stalinBlank.png b/rannak/mangud/partorg/plakat/img/stalinBlank.png
index 1f5183e..348df75 100644
--- a/rannak/mangud/partorg/plakat/img/stalinBlank.png
+++ b/rannak/mangud/partorg/plakat/img/stalinBlank.png
Binary files differ
diff --git a/rannak/mangud/partorg/plakat/img/veekogud.jpg b/rannak/mangud/partorg/plakat/img/veekogud.jpg
deleted file mode 100644
index 23f04ab..0000000
--- a/rannak/mangud/partorg/plakat/img/veekogud.jpg
+++ /dev/null
Binary files differ
diff --git a/rannak/mangud/partorg/plakat/img/veekogud.png b/rannak/mangud/partorg/plakat/img/veekogud.png
new file mode 100644
index 0000000..0e48af9
--- /dev/null
+++ b/rannak/mangud/partorg/plakat/img/veekogud.png
Binary files differ
diff --git a/rannak/mangud/partorg/plakat/img/veekogudBlank.png b/rannak/mangud/partorg/plakat/img/veekogudBlank.png
index 85570b1..6589adc 100644
--- a/rannak/mangud/partorg/plakat/img/veekogudBlank.png
+++ b/rannak/mangud/partorg/plakat/img/veekogudBlank.png
Binary files differ
diff --git a/rannak/mangud/partorg/plakat/img/viisAastak.jpg b/rannak/mangud/partorg/plakat/img/viisAastak.png
index 20be6ed..c099089 100644
--- a/rannak/mangud/partorg/plakat/img/viisAastak.jpg
+++ b/rannak/mangud/partorg/plakat/img/viisAastak.png
Binary files differ
diff --git a/rannak/mangud/partorg/plakat/img/viisAastakBlank.png b/rannak/mangud/partorg/plakat/img/viisAastakBlank.png
index fc0215c..b9a83ad 100644
--- a/rannak/mangud/partorg/plakat/img/viisAastakBlank.png
+++ b/rannak/mangud/partorg/plakat/img/viisAastakBlank.png
Binary files differ
diff --git a/rannak/mangud/partorg/plakat/styles.css b/rannak/mangud/partorg/plakat/styles.css
index bc7ee44..0ebe5f2 100644
--- a/rannak/mangud/partorg/plakat/styles.css
+++ b/rannak/mangud/partorg/plakat/styles.css
@@ -159,7 +159,7 @@ input:disabled{
/*Plakatid*/
.stalin {
- background: url("img/stalin.jpg") no-repeat center;
+ background: url("img/stalin.png") no-repeat center;
background-size: 100% 100%;
text-align: center;
color: black;
@@ -167,7 +167,7 @@ input:disabled{
.veekogud {
- background: url("img/veekogud.jpg") no-repeat center;
+ background: url("img/veekogud.png") no-repeat center;
background-size: 100% 100%;
text-align: center;
color: black;
@@ -175,7 +175,7 @@ input:disabled{
.malev {
- background: url("img/malev.jpg") no-repeat center;
+ background: url("img/malev.png") no-repeat center;
background-size: 100% 100%;
text-align: center;
color: black;
@@ -183,7 +183,7 @@ input:disabled{
.viisAastak {
- background: url("img/viisAastak.jpg") no-repeat center;
+ background: url("img/viisAastak.png") no-repeat center;
background-size: 100% 100%;
text-align: center;
color: black;