Files
frontend/home.html
2026-08-17 14:23:34 -04:00

132 lines
4.2 KiB
HTML
Executable File

<!DOCTYPE html>
<html lang="en">
<head>
<!-- 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());
gtag('config', 'G-J0Y3T4HN4N');
</script>
<!-- initialize theme vars
https://coolors.co/10002b-240046-3c096c-5a189a-7b2cbf-9d4edd-c77dff-e0aaff -->
<!-- initialize externals -->
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Organization",
"name": "Selenite",
"alternateName": "selenite.cc",
"url": "https://selenite.cc",
"logo": "https://selenite.cc/favicon.png",
"sameAs": [
"https://github.com/selenite-cc",
"https://youtube.com/@selenitecc",
"https://tiktok.com/@selenitecc",
"https://selenite.cc",
]
}
</script>
<!-- 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>
<!-- <script src="/js/widget.js"></script> -->
<script defer>
document.addEventListener("DOMContentLoaded", () => {
setBackground();
fetch("/quotes.json")
.then((response) => response.json())
.then((data) => {
let randomQuote = data[Math.floor(Math.random() * data.length)];
if (randomQuote.includes("OGNUM1") && randomQuote.includes("SQRTNUM1")) {
const ognum = Math.floor(Math.random() * 3000);
randomQuote = `the square root of ${ognum} is ${Math.sqrt(ognum)}`;
} else if (randomQuote.includes("CURRENTURL")) {
randomQuote = window.location.hostname;
}
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" />
<!-- seo + other things -->
<title>Selenite</title>
<link rel="icon" href="/favicon.ico" />
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3045051195337951"
crossorigin="anonymous"></script>
</head>
<alerts> </alerts>
<body>
<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="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>
</html>