diff --git a/src/public/4acd7872dbae41e89c548130f6dca980.html b/src/public/4acd7872dbae41e89c548130f6dca980.html index 1c2cb4a..4693347 100644 --- a/src/public/4acd7872dbae41e89c548130f6dca980.html +++ b/src/public/4acd7872dbae41e89c548130f6dca980.html @@ -6,8 +6,9 @@ -

Placeholder...

- +
+

Placeholder...

+
\ No newline at end of file diff --git a/src/public/access/false/safebox.html b/src/public/access/false/safebox.html index 4282de0..fb293c1 100644 --- a/src/public/access/false/safebox.html +++ b/src/public/access/false/safebox.html @@ -7,11 +7,13 @@ - -

- Unlock the secured safe quickly... -

+
+ +

+ Unlock the secured safe quickly... +

+
\ No newline at end of file diff --git a/src/public/access/true/safebox.html b/src/public/access/true/safebox.html index 126fc74..cc6c3cc 100644 --- a/src/public/access/true/safebox.html +++ b/src/public/access/true/safebox.html @@ -7,12 +7,15 @@ - -

Congratulations, you got the certificate!!!

-

- Find the hidden link to - continue... -

+
+ +

Congratulations, you got the certificate!!!

+

+ Find the hidden link to + + continue... +

+
\ No newline at end of file diff --git a/src/public/enter_school.html b/src/public/enter_school.html index e296b48..d0cee64 100644 --- a/src/public/enter_school.html +++ b/src/public/enter_school.html @@ -6,9 +6,11 @@ - -

Enter the door...

Test +
+ +

Enter the door...

Test +
\ No newline at end of file diff --git a/src/public/math_abi.html b/src/public/math_abi.html index d3af9f6..991b4f5 100644 --- a/src/public/math_abi.html +++ b/src/public/math_abi.html @@ -6,36 +6,39 @@ -
-
- -
-

Solve the task...

-
- + document.getElementById("math-form").addEventListener("submit", function (event) { + event.preventDefault(); + let nullstelle = document.getElementById("nullstelle").value; + if (checkInput(nullstelle)) { + document.getElementById("wrong-solution").classList.add("hidden"); + document.getElementById("wrong-solution").classList.remove("visible"); + window.location.href = "/access/false/safebox.html"; + } + else { + document.getElementById("nullstelle").focus(); + document.getElementById("wrong-solution").classList.remove("hidden"); + document.getElementById("wrong-solution").classList.add("visible"); + } + }); + \ No newline at end of file diff --git a/src/public/start.html b/src/public/start.html index 850009a..fd53176 100644 --- a/src/public/start.html +++ b/src/public/start.html @@ -6,6 +6,7 @@ +
Your goal in this small hacker game is to enroll in university. You start as a student and all you have to do is pass your final math exam. To make @@ -17,6 +18,7 @@

Start your task and good luck...

+
\ No newline at end of file diff --git a/src/public/stylesheets/style.css b/src/public/stylesheets/style.css index b175100..e0f2c15 100644 --- a/src/public/stylesheets/style.css +++ b/src/public/stylesheets/style.css @@ -27,6 +27,14 @@ body { padding: 0px; font: 26px "Lucida Grande", Helvetica, Arial, sans-serif; color: white; + display: flex; + justify-content: center; + /* Centers horizontally */ + align-items: center; + /* Centers vertically */ + height: 100vh; + /* Ensures full height */ + margin: 0; } a { diff --git a/src/public/userpass.html b/src/public/userpass.html index 993c7c7..aee8fc5 100644 --- a/src/public/userpass.html +++ b/src/public/userpass.html @@ -5,52 +5,56 @@ - -
- -

Enter your credentials...

-
- + document.getElementById("login-hint-map").addEventListener("mouseout", function (event) { + document.getElementById("login-hint").style.visibility = "hidden"; + }); +
\ No newline at end of file diff --git a/src/views/index.ejs b/src/views/index.ejs index 35abfc3..bdba268 100644 --- a/src/views/index.ejs +++ b/src/views/index.ejs @@ -7,8 +7,10 @@ -

Hi...

- Go to Start!! +
+

Hi...

+ Go to Start!! +
\ No newline at end of file