Ordentliche GameEnded-Seite
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -1 +1 @@
|
||||
<div><div data-translation=game-ended></div></div>
|
||||
<div class="max-height flex-center"><div data-translation=game-ended class=center></div></div>
|
||||
@@ -1 +1 @@
|
||||
<div class="max-height overflow-hidden"><div id=segment-leaf-template class="segment segment-leaf"><div class=leaf-element></div></div><div id=segment-parent-template class="segment segment-parent"><div class=child-container></div></div><div id=segment-row-template class="segment segment-row"><div class=child-container></div></div><div id=segment-triangle-template class="segment segment-triangle"><div class=child-container></div></div><div class=max-height><div class="text-right max-width"><button class="button right show-while-playing" id=help-button data-translation=help></button></div><div class="height-20 show-when-won center flex-center fill-me"><div class="grow max-width"><b data-translation=won id=won-text></b></div><div id=coin-container><div id=coin-template class=coin style="opacity: 0"><img src=img/coin.png></div></div></div><div class="flex-center level-container"><div id=level></div></div><div class="show-when-won flex-center height-20"><button class="button max-width" id=continue-button data-translation=continue></button></div></div></div>
|
||||
<div class="max-height overflow-hidden"><div id=segment-leaf-template class="segment segment-leaf"><div class=leaf-element></div></div><div id=segment-parent-template class="segment segment-parent"><div class=child-container></div></div><div id=segment-row-template class="segment segment-row"><div class=child-container></div></div><div id=segment-triangle-template class="segment segment-triangle"><div class=child-container></div></div><div class="max-height fill-me"><div class="text-right max-width"><button class="button show-while-playing" id=help-button data-translation=help></button></div><div class="height-20 show-when-won center flex-center fill-me"><div class="grow max-width"><b data-translation=won id=won-text></b></div><div id=coin-container><div id=coin-template class=coin style="opacity: 0"><img src=img/coin.png></div></div></div><div class="flex-center level-container grow"><div id=level></div></div><div class="show-when-won flex-center height-20"><button class="button max-width" id=continue-button data-translation=continue></button></div></div></div>
|
||||
@@ -5738,7 +5738,7 @@ class LevelSite extends WordRotatorBaseSite {
|
||||
|
||||
const db = WordRotatorDb.getInstance();
|
||||
const nextLevelJson = await db.loadNextLevel([20, 40, 60, 100, 120, 140, 160]);
|
||||
// const nextLevelJson = await db.loadNextLevel([120]);
|
||||
|
||||
if (nextLevelJson === null) {
|
||||
this.startSite(EndSite);
|
||||
return;
|
||||
@@ -5816,8 +5816,7 @@ class LevelSite extends WordRotatorBaseSite {
|
||||
audio.addEventListener('loadeddata', r);
|
||||
})
|
||||
]);
|
||||
console.log(Helper.basePath("/sound/single_coin_fall_on_concrete_.mp3"));
|
||||
audio.src = Helper.basePath("/sound/single_coin_fall_on_concrete_.mp3");
|
||||
audio.src = Helper.basePath("sound/single_coin_fall_on_concrete_.mp3");
|
||||
|
||||
for (let i = 0; i < coinsPerLevel; i++) {
|
||||
let coinElem = Helper.cloneNode(this.coinTemplate);
|
||||
@@ -5915,6 +5914,8 @@ class SynchronizeSite extends WordRotatorBaseSite {
|
||||
"dateLastSync": dateLastSync
|
||||
}));
|
||||
if (!res["success"]) {
|
||||
FlashMessenger.addMessage("sync-error", null, 6000);
|
||||
newLastSync = null;
|
||||
break;
|
||||
}
|
||||
res = res["result"];
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user