morblox.us site detection
This commit is contained in:
parent
427cd369f4
commit
b8b6cfc4b6
|
|
@ -0,0 +1,12 @@
|
|||
// Detect if user is on an older domain that isn't recommended.
|
||||
|
||||
function addWarning() {
|
||||
let alertDiv = document.createElement("div");
|
||||
alertDiv.innerHTML = "You are on an unsupported url of the site. Please go to <a href='https://archblox.com'>archblox.com</a> instead.";
|
||||
alertDiv.setAttribute("id","alert");
|
||||
document.body.appendChild(alertDiv);
|
||||
}
|
||||
|
||||
if (window.location.href == "https://archblox.com" || window.location.href == "http://archblox.com") {} else {
|
||||
addWarning();
|
||||
}
|
||||
|
|
@ -1,7 +1,6 @@
|
|||
@extends('layouts.loggedout')
|
||||
@section('title')
|
||||
<title>{{ env('APP_NAME') }} - It's Archaic!
|
||||
</title>
|
||||
<title>{{ env('APP_NAME') }} - It's Archaic!</title>
|
||||
@endsection
|
||||
@section('titlediscord')
|
||||
<meta content="{{ env('APP_NAME') }}" property="og:title" />
|
||||
|
|
@ -9,6 +8,9 @@
|
|||
@section('descdiscord')
|
||||
<meta content="ARCHBLOX is a work in progress 2012 ROBLOX revival with a heavy emphasis on Skeuomorphic UI." property="og:description" />
|
||||
@endsection
|
||||
@section('extras')
|
||||
<script src="{{ asset('js/detect.js') }}"></script>
|
||||
@endsection
|
||||
@section('contentloggedout')
|
||||
<h1>Welcome to ARCHBLOX!</h1>
|
||||
<p>ARCHBLOX is a Work-In-Progress revival.</p>
|
||||
|
|
|
|||
Loading…
Reference in New Issue