From 42d127e039eb164bbf9c410401c3cc77a70cbcdd Mon Sep 17 00:00:00 2001 From: gocivici Date: Mon, 26 Sep 2022 16:40:31 +0300 Subject: [PATCH] stuff --- index.html | 4 ++-- main.js | 10 ++++++++-- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 5338e8f..51c0369 100644 --- a/index.html +++ b/index.html @@ -45,7 +45,7 @@
-

If you guess wrong a new +

If you guess wrong or submit while empty, a new scene from the movie is revealed. You have a maximum of 3 guesses to find the movie.

@@ -58,7 +58,7 @@
-

If you win you'll have the chance to guess which image contains the survivor who escapes the movie in the bonus stage.

+

If you win you'll have the chance to guess which image contains the survivor in the bonus stage.

diff --git a/main.js b/main.js index 01e1b14..f01e94d 100644 --- a/main.js +++ b/main.js @@ -14,11 +14,12 @@ window.addEventListener ("load", function() { loader.style.display = 'none'; }); +guess='Skipped'; if(!localStorage.getItem('playedBefore')){ // window.location = window.location.href + "#info"; - window.location = "https://gorkem.cc/horo#info" - // window.location = "file:///C:/Users/gogob/Documents/dEATHDLE/Test/index.html#info" + // window.location = "https://gorkem.cc/horo#info" + window.location = "file:///C:/Users/gogob/Documents/dEATHDLE/Test/index.html#info" localStorage.setItem('playedBefore',"true"); } @@ -323,6 +324,7 @@ console.log("day count:" + dayCount); console.log(textResult); document.getElementById("guessForm").reset(); markCalendar(); + guess = "Skipped" } @@ -356,13 +358,17 @@ console.log("day count:" + dayCount); } } }); + autoCompleteJS.input.addEventListener("selection", function (event) { + // guess = "skipped" + // event.detail.selection.value = "skipped"; const feedback = event.detail; // Prepare User's Selected Value guess = event.detail.selection.value autoCompleteJS.input.value = guess; // Console log autoComplete data feedback console.log(event.detail.selection.value); + // checkGuess(); }); function copyToClipboard() {