This commit is contained in:
gocivici 2022-09-26 16:40:31 +03:00
parent 08bb80e967
commit 42d127e039
2 changed files with 10 additions and 4 deletions

View File

@ -45,7 +45,7 @@
<div class="content"> <div class="content">
<i class="fas fa-tint"></i> <i class="fas fa-tint"></i>
<div class="InstructionText"> <div class="InstructionText">
<p>If you guess wrong a new <p>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.</p> scene from the movie is revealed. You have a maximum of 3 guesses to find the movie.</p>
</div> </div>
</div> </div>
@ -58,7 +58,7 @@
<div class="content"> <div class="content">
<i class="fas fa-star"></i> <i class="fas fa-star"></i>
<div class="InstructionText"> <div class="InstructionText">
<p>If you win you'll have the chance to guess which image contains the survivor who escapes the movie in the bonus stage.</p> <p>If you win you'll have the chance to guess which image contains the survivor in the bonus stage.</p>
</div> </div>
</div> </div>

10
main.js
View File

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