From aa77d182fd9d71e4c2cabd45f50efe5ca3d99002 Mon Sep 17 00:00:00 2001 From: Thomas FORGIONE Date: Thu, 28 May 2015 15:13:38 +0200 Subject: [PATCH] Cleaning --- js/prototype/ReplayCamera.js | 9 +++++---- js/prototype/main.js | 5 ----- js/prototype/tutorial.js | 5 ----- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/js/prototype/ReplayCamera.js b/js/prototype/ReplayCamera.js index 62bd030..f45c0c3 100644 --- a/js/prototype/ReplayCamera.js +++ b/js/prototype/ReplayCamera.js @@ -48,11 +48,12 @@ ReplayCamera.prototype.update = function(time) { this.linearMotion(time / 5); } else if (this.event.type == 'arrow') { this.hermiteMotion(time); - } else if (this.event.type == 'coin') { - // Nothing to do - } else if (this.event.type == 'reset') { - // Nothing to do } + // } else if (this.event.type == 'coin') { + // // Nothing to do + // } else if (this.event.type == 'reset') { + // // Nothing to do + // } } } diff --git a/js/prototype/main.js b/js/prototype/main.js index 6c0ec6b..fe22abe 100644 --- a/js/prototype/main.js +++ b/js/prototype/main.js @@ -19,11 +19,6 @@ var isFullscreen = false; var previousTime; var main_section = document.getElementById('main-section'); -var offset = function() { - return - document.getElementById('nav').offsetHeight - + document.getElementById('main-div').offsetHeight; -} console.log(document.getElementById('main-div').offsetHeight); var container_size = { diff --git a/js/prototype/tutorial.js b/js/prototype/tutorial.js index 444b52e..3d9e356 100644 --- a/js/prototype/tutorial.js +++ b/js/prototype/tutorial.js @@ -19,11 +19,6 @@ var previousTime; var tutorial; var main_section = document.getElementById('main-section'); -var offset = function() { - return - document.getElementById('nav').offsetHeight - + document.getElementById('main-div').offsetHeight; -} console.log(document.getElementById('main-div').offsetHeight); var container_size = {