Converted to PHP.

This commit is contained in:
sarah committed 2026-08-19 18:07:10 +02:00
1 parent e083ead16b
commit eb6d31fb2f
5 files changed
+11 -30

No files matched your search

File renamed without changes.
File renamed without changes.
+1 -1
View File
@@ -1,7 +1,7 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" data-palette="CatppuccinMocha"> <html lang="en" data-palette="CatppuccinMocha">
<div include="./HTML/Bits/Head.html"></div> <?php include __DIR__ . "/HTML/Bits/Head.php"; ?>
<body> <body>
<main class="MainContainer"> <main class="MainContainer">
<h1>Welcome</h1> <h1>Welcome</h1>
-26
View File
@@ -1,26 +0,0 @@
function includeHTML() {
var z, i, elmnt, file, xhttp;
console.log("Including HTML.")
z = document.getElementsByTagName("*");
for (i = 0; i < z.length; i++) {
elmnt = z[i];
file = elmnt.getAttribute("include");
if (file) {
xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4) {
if (this.status == 200) {elmnt.innerHTML = this.responseText;}
if (this.status == 404) {elmnt.innerHTML = "Page not found.";}
elmnt.removeAttribute("include");
includeHTML();
}
}
xhttp.open("GET", file, true);
xhttp.send();
return;
}
}
}
+10 -3
View File
@@ -1,7 +1,8 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" data-palette="CatppuccinMocha"> <html lang="en" data-palette="CatppuccinMocha">
<div include="./HTML/Bits/Head.html"></div> <?php include __DIR__ . "/HTML/Bits/Head.php"; ?>
<body> <body>
<main class="MainContainer"> <main class="MainContainer">
<h1>Welcome</h1> <h1>Welcome</h1>
@@ -10,11 +11,13 @@
You've arrived at Sarahtonin's homepage. You've arrived at Sarahtonin's homepage.
Feel free to browse around as much as you want. Feel free to browse around as much as you want.
</p> </p>
<p> <p>
If you want to access <strong>other links</strong>, you probably need to join my tailscale network. If you want to access <strong>other links</strong>, you probably need to join my tailscale network.
<br> <br>
Also, this is simply the homepage. You can use the <strong>navbar</strong> to the right to navigate around. Also, this is simply the homepage. You can use the <strong>navbar</strong> to the right to navigate around.
</p> </p>
<p> <p>
<b> <b>
Have fun snooping! Have fun snooping!
@@ -27,12 +30,15 @@
I'm Sarahtonin. The creator of this very website. I'm Sarahtonin. The creator of this very website.
It's a bit strange for me to write in first-person, I suppose. No matter, though. It's a bit strange for me to write in first-person, I suppose. No matter, though.
</p> </p>
<p> <p>
I made this website because I'd prefer an easier way to share my socials, I made this website because I'd prefer an easier way to share my socials,
and to just introduce myself in a better way. and to just introduce myself in a better way.
</p> </p>
<p> <p>
Speaking of introducing myself, you should probably visit the <a href="HTML/Sarahtonin.html">page</a> about me. Speaking of introducing myself, you should probably visit the
<a href="HTML/Sarahtonin.php">page</a> about me.
</p> </p>
<h3>Credits</h3> <h3>Credits</h3>
@@ -44,6 +50,7 @@
by by
<a href="https://catppuccin.com/community/">several people</a>. <a href="https://catppuccin.com/community/">several people</a>.
</li> </li>
<li> <li>
The font is The font is
<a href="https://github.com/kika/fixedsys">Fixedsys</a> <a href="https://github.com/kika/fixedsys">Fixedsys</a>
@@ -52,7 +59,7 @@
</li> </li>
</ul> </ul>
</main> </main>
</body>
<script src="./JS/Script.js"></script> <script src="./JS/Script.js"></script>
</body>
</html> </html>