diff options
author | Rasmus <rasmus.luha@gmail.com> | 2023-05-14 16:12:01 +0300 |
---|---|---|
committer | Rasmus <rasmus.luha@gmail.com> | 2023-05-14 16:12:01 +0300 |
commit | 62caa37da257987c9585ac57ab64bb12ea481d0b (patch) | |
tree | c3d6ec3389258db0b807286ac008f7dcd8653636 /rannak | |
parent | 3c64a840a69b2685722765feadf0fec6e571b157 (diff) |
fixes
Former-commit-id: 09885e5cd344caaee9cdc2005b7e88dcc5206213
Diffstat (limited to 'rannak')
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 Binary files differdeleted file mode 100644 index d88d950..0000000 --- a/rannak/mangud/partorg/plakat/img/malev.jpg +++ /dev/null diff --git a/rannak/mangud/partorg/plakat/img/malev.png b/rannak/mangud/partorg/plakat/img/malev.png Binary files differnew file mode 100644 index 0000000..919e667 --- /dev/null +++ b/rannak/mangud/partorg/plakat/img/malev.png diff --git a/rannak/mangud/partorg/plakat/img/malevBlank.png b/rannak/mangud/partorg/plakat/img/malevBlank.png Binary files differindex 85c10f1..b94db71 100644 --- a/rannak/mangud/partorg/plakat/img/malevBlank.png +++ b/rannak/mangud/partorg/plakat/img/malevBlank.png diff --git a/rannak/mangud/partorg/plakat/img/stalin.jpg b/rannak/mangud/partorg/plakat/img/stalin.jpg Binary files differdeleted file mode 100644 index bc0a3a5..0000000 --- a/rannak/mangud/partorg/plakat/img/stalin.jpg +++ /dev/null diff --git a/rannak/mangud/partorg/plakat/img/stalin.png b/rannak/mangud/partorg/plakat/img/stalin.png Binary files differnew file mode 100644 index 0000000..45cd9ef --- /dev/null +++ b/rannak/mangud/partorg/plakat/img/stalin.png diff --git a/rannak/mangud/partorg/plakat/img/stalinBlank.png b/rannak/mangud/partorg/plakat/img/stalinBlank.png Binary files differindex 1f5183e..348df75 100644 --- a/rannak/mangud/partorg/plakat/img/stalinBlank.png +++ b/rannak/mangud/partorg/plakat/img/stalinBlank.png diff --git a/rannak/mangud/partorg/plakat/img/veekogud.jpg b/rannak/mangud/partorg/plakat/img/veekogud.jpg Binary files differdeleted file mode 100644 index 23f04ab..0000000 --- a/rannak/mangud/partorg/plakat/img/veekogud.jpg +++ /dev/null diff --git a/rannak/mangud/partorg/plakat/img/veekogud.png b/rannak/mangud/partorg/plakat/img/veekogud.png Binary files differnew file mode 100644 index 0000000..0e48af9 --- /dev/null +++ b/rannak/mangud/partorg/plakat/img/veekogud.png diff --git a/rannak/mangud/partorg/plakat/img/veekogudBlank.png b/rannak/mangud/partorg/plakat/img/veekogudBlank.png Binary files differindex 85570b1..6589adc 100644 --- a/rannak/mangud/partorg/plakat/img/veekogudBlank.png +++ b/rannak/mangud/partorg/plakat/img/veekogudBlank.png diff --git a/rannak/mangud/partorg/plakat/img/viisAastak.jpg b/rannak/mangud/partorg/plakat/img/viisAastak.png Binary files differindex 20be6ed..c099089 100644 --- a/rannak/mangud/partorg/plakat/img/viisAastak.jpg +++ b/rannak/mangud/partorg/plakat/img/viisAastak.png diff --git a/rannak/mangud/partorg/plakat/img/viisAastakBlank.png b/rannak/mangud/partorg/plakat/img/viisAastakBlank.png Binary files differindex fc0215c..b9a83ad 100644 --- a/rannak/mangud/partorg/plakat/img/viisAastakBlank.png +++ b/rannak/mangud/partorg/plakat/img/viisAastakBlank.png 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; |