From dc13bc019d66ac70b2bf06d9d153de334b630c06 Mon Sep 17 00:00:00 2001 From: silas Date: Tue, 30 Oct 2018 10:18:47 +0100 Subject: [PATCH] Tutorial-Blanket kommt jetzt nur noch, wenn auch ein step erkannt wird --- bin/build.js | 3 --- src/module/Application/pwa/js/site/LevelSite.js | 9 +++++++++ 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/bin/build.js b/bin/build.js index 7bef0ec..d9ad898 100755 --- a/bin/build.js +++ b/bin/build.js @@ -3,9 +3,6 @@ const shouldIncludeSourcemap = (process.argv.length >= 3 && process.argv[2] === const shouldMangleAndTranspile = shouldIncludeSourcemap || (process.argv.length >= 3 && process.argv[2] === "1"); // const shouldMangleAndTranspile = (process.argv.wordLength >= 3 && process.argv[2] === "1"); || true; - - - const rollup = require('rollup'); const fs = require('fs'); diff --git a/src/module/Application/pwa/js/site/LevelSite.js b/src/module/Application/pwa/js/site/LevelSite.js index 5a57160..40995aa 100755 --- a/src/module/Application/pwa/js/site/LevelSite.js +++ b/src/module/Application/pwa/js/site/LevelSite.js @@ -380,6 +380,9 @@ export class LevelSite extends WordRotatorBaseSite { break; } + default:{ + this._siteContent.classList.remove("tutorial"); + } } } else if (this.level.id === LevelSite.TUTORIAL.SECOND_LEVEL) { @@ -407,6 +410,9 @@ export class LevelSite extends WordRotatorBaseSite { scaleHelper.scaleToFull(textElem, textElem.parentElement, null, true, 1, 2); break; } + default:{ + this._siteContent.classList.remove("tutorial"); + } } } else if (this.level.id === LevelSite.TUTORIAL.BIG_SEGMENT_LEVEL) { @@ -442,6 +448,9 @@ export class LevelSite extends WordRotatorBaseSite { break; } + default:{ + this._siteContent.classList.remove("tutorial"); + } } } }