From 6dfc9fd512470f63fcb86d812293baa6fbb53ed0 Mon Sep 17 00:00:00 2001 From: gocivici Date: Sat, 1 Oct 2022 11:27:58 +0300 Subject: [PATCH] added info page --- index.html | 16 +++++++++------- main.js | 9 ++++++++- style.css | 10 +++++++--- 3 files changed, 24 insertions(+), 11 deletions(-) diff --git a/index.html b/index.html index 5ce70f8..993bd44 100644 --- a/index.html +++ b/index.html @@ -29,8 +29,7 @@ horror - +
@@ -49,7 +48,7 @@
-

Use the movie scene provided to guess the name of the movie.

+

Use the scene provided to guess the name of the movie, each scene features a character from the movie.

@@ -68,7 +67,7 @@
-

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

+

If you win the first round, you'll have the chance to guess which scene features the character that survives the movie in the bonus stage.

@@ -139,12 +138,12 @@
× -

Streak

+ - +
@@ -153,7 +152,10 @@ diff --git a/main.js b/main.js index e89de49..7f1a44c 100644 --- a/main.js +++ b/main.js @@ -49,7 +49,7 @@ function revealButtons(g = guessNo){ - var movies = [["The Texas Chainsaw Massacre",1,"Sally Hardesty"],["It Follows",2,"Jaime Height"],["Friday the 13th",0,"Alice Hardy"],["Event Horizon",2,"Lieutenant Starck"],["Hellraiser",2,"Kirsty Cotton"],["A Nightmare on Elm Street",1,"Nancy Thompson"],["It",1,"Eddie Kaspbrak"],["Rec",2,"Ángela Vidal"],["Saw",1,"Amanda Young"],["Final Destination",2,"Alex Browning"],["The Ring",0,"Rachel Keller"]]; + var movies = [["The Texas Chainsaw Massacre",1,"Sally Hardesty"],["It",1,"Eddie Kaspbrak"],["A Nightmare on Elm Street",1,"Nancy Thompson"],["It Follows",2,"Jaime Height"],["Friday the 13th",0,"Alice Hardy"],["Event Horizon",2,"Lieutenant Starck"],["Hellraiser",2,"Kirsty Cotton"],["Rec",2,"Ángela Vidal"],["Saw",1,"Amanda Young"],["Final Destination",2,"Alex Browning"],["The Ring",0,"Rachel Keller"]]; var pix = []; // autocomplete(document.getElementById("guess"), movies); var gameBeginning = new Date('September 30, 2022 00:00:00'); @@ -511,4 +511,11 @@ function preloadImage(url) var img=new Image(); img.src=url; }; +function resetFunction() { + if (confirm("this will delete all you progress, are you sure?") == true) { + window.localStorage.clear(); + } else { + + } +} //window.localStorage.clear(); \ No newline at end of file diff --git a/style.css b/style.css index e6740bc..4b8d2cb 100644 --- a/style.css +++ b/style.css @@ -2,6 +2,7 @@ #button1,#button2,#button3{ display: none; } + /* #movieName,#bonusQuestion{ display: none; } */ @@ -303,7 +304,7 @@ h3 { .popup { text-align: left; margin: 70px auto; - padding: 20px; + padding: 20px 50px; background: #333; border-radius: 5px; width: 30%; @@ -358,7 +359,9 @@ h3 { /* position: absolute; */ } a { - color: white; + color: red; + background-color: transparent; + /* text-decoration: none; */ } body { @@ -370,7 +373,7 @@ body { text-align: center; } p { - margin:0; + /* margin:0; */ } i{ font-size: 1.5rem; @@ -716,6 +719,7 @@ border-radius: 5px; padding-left: 10px; } .popup{ + padding: 20px; /* padding-left: 5px; padding-right: 5px; */ }