From 48194def6a9a81556b3c4a3cede6f3e83917d204 Mon Sep 17 00:00:00 2001 From: Conkley Date: Wed, 29 Jun 2022 22:09:57 +1000 Subject: [PATCH] 403 fix --- public/js/403.js | 16 ++++++++++++++++ resources/views/errors/403.blade.php | 3 ++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 public/js/403.js diff --git a/public/js/403.js b/public/js/403.js new file mode 100644 index 0000000..3375ed0 --- /dev/null +++ b/public/js/403.js @@ -0,0 +1,16 @@ +var time = 5; + +function redirect() { + window.location.replace("https://morblox.us"); +} + +function countdown() { + if (time > 0) { + time--; + document.getElementById('timeElement').innerHTML = time; + console.log(time); + } +} + +setInterval(countdown, 1000); +setTimeout(redirect, 5000); \ No newline at end of file diff --git a/resources/views/errors/403.blade.php b/resources/views/errors/403.blade.php index d3aaffe..46e10af 100644 --- a/resources/views/errors/403.blade.php +++ b/resources/views/errors/403.blade.php @@ -14,6 +14,7 @@ + @@ -25,7 +26,7 @@

403 Forbidden

OH SHIT WHAT HAVE YOU DONE GO BACK NOW BEFORE LUIGI KILLS US ALL!!!!!!

-

Luigi: I AM GOING TO KILL EVERYONE IN {{ #a timer counts down to 0 here, when it reaches 0 redirect the client }}!

+

Luigi: I AM GOING TO KILL EVERYONE IN 5

Angry Luigi