diff --git a/index.html b/index.html index 8aeb478..63ddeec 100644 --- a/index.html +++ b/index.html @@ -59,17 +59,17 @@

Apply Effects for Better or Worse

+

+ +

+

diff --git a/src/effects.ts b/src/effects.ts index 669ca06..6f73ebd 100644 --- a/src/effects.ts +++ b/src/effects.ts @@ -252,7 +252,7 @@ export class Effector { } private Zero () { - const msg = "Without zero as a reference point it is much harder to compare values graphically. It usually exaggregates difference between values;"; + const msg = "Without zero as a reference point it is much harder to compare values graphically. It usually exaggerates difference between values;"; // if the effect was active initially an we are asked to activate it again // we return original user source regarding this effect, do nothing: if (this.effects["Zero"]["on"] == this.effects["Zero"]["initial_on"]) return; diff --git a/src/index.ts b/src/index.ts index e1f0063..a0bbd7e 100644 --- a/src/index.ts +++ b/src/index.ts @@ -406,7 +406,7 @@ function updateFeedback(message : string, oldScore : number, score : number, ma } } -document.addEventListener('keypress', (event) => { +$(document).on("keypress",(event) => { firstLaunch = false; quickStart();}); @@ -479,6 +479,7 @@ function setShowEffects() { smoothTextChange("Institute of Computer Graphics, Johannes Kepler University Linz, Austria, 2020",".footer"); },4200); $("#global_div").off(); + $(document).off(); firstLaunch = false; } ) @@ -519,4 +520,6 @@ function quickStart(){ setTimeout(()=>{ smoothTextChange("Institute of Computer Graphics, Johannes Kepler University Linz, Austria, 2020",".footer"); },1500); + $("#global_div").off(); + $(document).off(); }