diff --git a/public/js/detect.js b/public/js/detect.js index 5e0ecab..6a45217 100644 --- a/public/js/detect.js +++ b/public/js/detect.js @@ -1,3 +1,15 @@ +// warning + +console.log("Woah there!"); +console.log(" "); +console.log("Be careful what you type or copy in this here javascript console."); +console.log("Don't copy and paste some javascript code from a random person on the internet."); +console.log("It can be an account token stealer, which can get that random person into your account."); +console.log("Be safe, and be smart."); +console.log(" "); +console.log("If you know what you're doing, have fun then!"); +console.log(" "); + // Detect if user is on an older domain that isn't recommended. function addWarning() { @@ -7,15 +19,9 @@ function addWarning() { document.body.appendChild(alertDiv); } -if (window.document.location.hostname == "archblox.com") {} else { +if (window.document.location.hostname == "archblox.com") { + console.log("User is on " + window.document.location.hostname + ". Known URL."); +} else { + console.log("User is on " + window.document.location.hostname + ". Unknown URL."); addWarning(); -} - -console.log("Woah there!"); -console.log(" "); -console.log("Be careful what you type or copy in this here javascript console."); -console.log("Don't copy and paste some javascript code from a random person on the internet."); -console.log("It can be an account token stealer, which can get that random person into your account."); -console.log("Be safe, and be smart."); -console.log(" "); -console.log("If you know what you're doing, have fun then!"); \ No newline at end of file +} \ No newline at end of file diff --git a/public/js/detect_iphone.js b/public/js/detect_iphone.js new file mode 100644 index 0000000..8e82a54 --- /dev/null +++ b/public/js/detect_iphone.js @@ -0,0 +1,10 @@ +// warning +console.log("Woah there, admin!"); +console.log(" "); +console.log("Be careful what you type or copy in this here javascript console."); +console.log("Don't copy and paste some javascript code from a random person on the internet, especially if it's not from a developer you trust."); +console.log("It can be an account token stealer, which can get that random person into your account... and access to the entire admin panel."); +console.log("Be safe, and be smart."); +console.log(" "); +console.log("If you know what you're doing, go ahead!"); +console.log(" "); \ No newline at end of file diff --git a/public/js/detect_small.js b/public/js/detect_small.js new file mode 100644 index 0000000..a388dd6 --- /dev/null +++ b/public/js/detect_small.js @@ -0,0 +1,10 @@ +// warning +console.log("Woah there!"); +console.log(" "); +console.log("Be careful what you type or copy in this here javascript console."); +console.log("Don't copy and paste some javascript code from a random person on the internet."); +console.log("It can be an account token stealer, which can get that random person into your account."); +console.log("Be safe, and be smart."); +console.log(" "); +console.log("If you know what you're doing, have fun then!"); +console.log(" "); \ No newline at end of file diff --git a/resources/views/layouts/admin.blade.php b/resources/views/layouts/admin.blade.php index 27e0e67..48dcad2 100644 --- a/resources/views/layouts/admin.blade.php +++ b/resources/views/layouts/admin.blade.php @@ -18,6 +18,7 @@ +
diff --git a/resources/views/layouts/ide.blade.php b/resources/views/layouts/ide.blade.php index b9282a6..8eacd2b 100644 --- a/resources/views/layouts/ide.blade.php +++ b/resources/views/layouts/ide.blade.php @@ -17,6 +17,7 @@ + diff --git a/resources/views/layouts/idenosidebar.blade.php b/resources/views/layouts/idenosidebar.blade.php index c1a30a7..b421562 100644 --- a/resources/views/layouts/idenosidebar.blade.php +++ b/resources/views/layouts/idenosidebar.blade.php @@ -17,6 +17,7 @@ +