Skip to content

Commit

Permalink
added homescreen check
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnPoole3rd committed Dec 22, 2023
1 parent aae249a commit 52e846b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
21 changes: 21 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,22 @@
</head>
<body>

<script>
var standalone = document.getElementById("standalone");
var webpage = document.getElementById("webpage");
if (window.navigator.standalone)
{
standalone.style.display = "block";
webpage.style.display = "none";
}
else
{
standalone.style.display = "none";
webpage.style.display = "block";
}
</script>

<div id="standalone">
<h1><b>WELCOME!</b></h1>
<p>Hello! This is the hub of all of my forks. The code in these forks is not mine,
it belongs to the creators of the code.</p>
Expand All @@ -22,6 +38,11 @@ <h1><b>WELCOME!</b></h1>
<a href="https://acb.caculatorgeo.online/demo">Roblox</a>
<br>
<a href="https://167.71.43.43/">Croxy</a>
</div>

<div id="webpage">
<h1>PLEASE ADD TO HOMESCREEN</h1>
</div>

<body style="background-color:#FD8219;">
</body>
Expand Down
5 changes: 0 additions & 5 deletions manifest.json

This file was deleted.

0 comments on commit 52e846b

Please sign in to comment.