Fix WebApp issues

This commit is contained in:
Thomas G 2023-03-10 12:09:18 +11:00
parent b0a177fbad
commit c461120d3b
13 changed files with 111 additions and 22 deletions

9
public/manifest.json Normal file
View File

@ -0,0 +1,9 @@
{
"name": "ARCHBLOX",
"short_name": "ARCHBLOX",
"lang": "en-US",
"start_url": "/",
"scope": "/",
"display": "standalone",
"version": "1.0.0"
}

BIN
public/temp/.DS_Store vendored

Binary file not shown.

View File

@ -17,6 +17,17 @@
<script>
getDarkMode()
</script>
<script>
var a=document.getElementsByTagName("a");
for(var i=0;i<a.length;i++)
{
a[i].onclick=function()
{
window.location=this.getAttribute("href");
return false
}
}
</script>
<script src="https://archblox.com/js/detect.css" defer></script>
</head>

View File

@ -17,6 +17,17 @@
<script>
getDarkMode()
</script>
<script>
var a=document.getElementsByTagName("a");
for(var i=0;i<a.length;i++)
{
a[i].onclick=function()
{
window.location=this.getAttribute("href");
return false
}
}
</script>
<script src="https://archblox.com/js/detect.css" defer></script>
</head>

View File

@ -17,6 +17,17 @@
<script>
getDarkMode()
</script>
<script>
var a=document.getElementsByTagName("a");
for(var i=0;i<a.length;i++)
{
a[i].onclick=function()
{
window.location=this.getAttribute("href");
return false
}
}
</script>
<script src="https://archblox.com/js/detect.css" defer></script>
</head>

View File

@ -17,6 +17,17 @@
<script>
getDarkMode()
</script>
<script>
var a=document.getElementsByTagName("a");
for(var i=0;i<a.length;i++)
{
a[i].onclick=function()
{
window.location=this.getAttribute("href");
return false
}
}
</script>
<script src="https://archblox.com/js/detect.css" defer></script>
</head>

View File

@ -1,21 +0,0 @@
window.onload = function() {
var morblox = document.getElementById("morblox")
var usernamecontainer = document.getElementById("UsernameContainer");
if (window.location.hostname == "archblox.com") {
morblox.className = "invisible";
} else {
morblox.className = "";
}
if (localStorage.getItem("username") == null) {
localStorage.setItem("username","");
}
var username = localStorage.getItem("username");
usernamecontainer.innerHTML = "Saved Username: " + username
document.getElementById('SaveButton').onclick = function() {
var usernameset = document.getElementById("UsernameSet").value;
var usernamecontainer = document.getElementById("UsernameContainer");
localStorage.setItem("username",usernameset);
usernamecontainer.innerHTML = "Saved Username: " + usernameset
alert("Please click on the \"Home\" link or the \"Profile\" link in order to test Username features")
};
};

View File

@ -1,7 +1,9 @@
{
"name": "ARCHBLOX",
"short_name": "ARCHBLOX",
"lang": "en-US",
"start_url": "index.html",
"start_url": "/",
"scope": "/",
"display": "standalone",
"version": "1.0.0"
}

View File

@ -19,6 +19,17 @@
<link href="{{ asset('css/app.css?id=e5Az527Gb1') }}" rel="stylesheet">
<link href="/css/AdminPanelCSS.css" rel="stylesheet">
<link href="/css/AdminPanel.css" rel="stylesheet">
<script>
var a=document.getElementsByTagName("a");
for(var i=0;i<a.length;i++)
{
a[i].onclick=function()
{
window.location=this.getAttribute("href");
return false
}
}
</script>
<script src="{{ asset('js/detect_iphone.js') }}" defer></script>
</head>

View File

@ -50,6 +50,17 @@
getDarkMode();
</script>
@endauth
<script>
var a=document.getElementsByTagName("a");
for(var i=0;i<a.length;i++)
{
a[i].onclick=function()
{
window.location=this.getAttribute("href");
return false
}
}
</script>
<script src="{{ asset('js/detect.js?id=' . Str::random(8)) }}" defer></script>
@yield('extras')
</head>

View File

@ -17,6 +17,17 @@
<meta name="viewport" content="width=device-width, viewport-fit=cover, initial-scale=1">
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}">
<link href="{{ asset('css/app.css?id=e5Az527Gb1') }}" rel="stylesheet">
<script>
var a=document.getElementsByTagName("a");
for(var i=0;i<a.length;i++)
{
a[i].onclick=function()
{
window.location=this.getAttribute("href");
return false
}
}
</script>
<script src="{{ asset('js/detect_small.js') }}" defer></script>
</head>

View File

@ -18,6 +18,17 @@
<link rel="icon" type="image/x-icon" href="{{ asset('favicon.ico') }}">
<link href="{{ asset('css/app.css?id=e5Az527Gb1') }}" rel="stylesheet">
<link href="{{ asset('css/appdark.css?id=e5Az527Gb1') }}" rel="stylesheet">
<script>
var a=document.getElementsByTagName("a");
for(var i=0;i<a.length;i++)
{
a[i].onclick=function()
{
window.location=this.getAttribute("href");
return false
}
}
</script>
<script src="{{ asset('js/detect_small.js') }}" defer></script>
</head>

View File

@ -141,6 +141,17 @@ $splash = array(
}
</style>
@endauth
<script>
var a=document.getElementsByTagName("a");
for(var i=0;i<a.length;i++)
{
a[i].onclick=function()
{
window.location=this.getAttribute("href");
return false
}
}
</script>
<script src="{{ asset('js/detect.js') }}" defer></script>
@yield('extras')
</head>