ui stuff, proxy?, and whatever else
This commit is contained in:
70
home.html
70
home.html
@ -5,11 +5,11 @@
|
||||
<!-- Google tag (gtag.js) -->
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id=G-J0Y3T4HN4N"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag() { dataLayer.push(arguments); }
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', 'G-J0Y3T4HN4N');
|
||||
gtag('config', 'G-J0Y3T4HN4N');
|
||||
</script>
|
||||
|
||||
<!-- initialize theme vars
|
||||
@ -37,6 +37,7 @@
|
||||
<!-- initialize my stuff -->
|
||||
<link rel="stylesheet" href="/css/main.css" />
|
||||
<link rel="stylesheet" href="/css/pages.css" />
|
||||
<link rel="stylesheet" href="/css/home.css" />
|
||||
<link rel="preload" href="https://fonts.googleapis.com/css2?family=Mulish&display=swap" as="style"
|
||||
onload="this.onload=null;this.rel='stylesheet'" />
|
||||
<script src="/js/main.js" defer></script>
|
||||
@ -59,6 +60,24 @@
|
||||
document.getElementById("randomquote").innerHTML = randomQuote;
|
||||
})
|
||||
.catch((error) => console.error("Error loading quotes:", error));
|
||||
|
||||
fetch("/api/proxy/status")
|
||||
.then((res) => res.json())
|
||||
.then((data) => {
|
||||
if (data.unlocked) document.getElementById("proxyNavCard").style.display = "";
|
||||
})
|
||||
.catch(() => { });
|
||||
|
||||
document.getElementById("openblank").addEventListener("click", (e) => {
|
||||
e.preventDefault();
|
||||
let win = window.open();
|
||||
win.document.body.style.margin = "0";
|
||||
win.document.body.style.height = "100vh";
|
||||
let html = `<style>*{margin:0;padding:0;border:none;height:100vh;width:100vw}</style><iframe src=index.html></iframe>`;
|
||||
win.document.querySelector("html").innerHTML = html;
|
||||
location.href = "https://google.com";
|
||||
window.close();
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<link rel="manifest" href="/manifest.json" />
|
||||
@ -74,16 +93,39 @@
|
||||
<h1 class="title">selenite.</h1>
|
||||
<noscript>enable javascript if you want the games to actually load</noscript>
|
||||
<p id="randomquote">better thank me for this unblocked website</p>
|
||||
<div class="samerow">
|
||||
<div class="img-container">
|
||||
<a href="/users"><img src="img/user_index.svg" /></a>
|
||||
</div>
|
||||
<div class="img-container">
|
||||
<a href="projects.html"><img src="img/games.svg" /></a>
|
||||
</div>
|
||||
<div class="img-container">
|
||||
<a target="_blank" href="https://discord.gg/7jyufnwJNf"><img src="img/discord.svg" /></a>
|
||||
</div>
|
||||
<div class="homeNav">
|
||||
<a class="navCard" href="projects.html">
|
||||
<img src="img/games.svg" />
|
||||
<span>games</span>
|
||||
</a>
|
||||
<a class="navCard" href="apps.html">
|
||||
<img src="img/apps.svg" />
|
||||
<span>apps</span>
|
||||
</a>
|
||||
<a class="navCard" href="proxy.html" id="proxyNavCard" style="display: none;">
|
||||
<img src="img/addlink.svg" />
|
||||
<span>proxy</span>
|
||||
</a>
|
||||
<a class="navCard" href="bookmarklets.html">
|
||||
<img src="img/bookmarklets.svg" />
|
||||
<span>bookmarklets</span>
|
||||
</a>
|
||||
<a class="navCard" href="/users">
|
||||
<img src="img/user_index.svg" />
|
||||
<span>profile</span>
|
||||
</a>
|
||||
<a class="navCard" href="settings.html">
|
||||
<img src="img/settings.svg" />
|
||||
<span>settings</span>
|
||||
</a>
|
||||
<a class="navCard" href="#" id="openblank">
|
||||
<img src="img/open.svg" />
|
||||
<span>open about:blank</span>
|
||||
</a>
|
||||
<a class="navCard" target="_blank" href="https://discord.gg/7jyufnwJNf">
|
||||
<img src="img/discord.svg" />
|
||||
<span>discord</span>
|
||||
</a>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user