mirror of
https://git.srhtnin.garden/sarah/srhtnin.github.io.git
synced 2026-10-13 18:38:11 +02:00
Converted to PHP.
This commit is contained in:
1 parent
e083ead16b
commit
eb6d31fb2f
5 files changed
+12
-31
No files matched your search
File renamed without changes.
File renamed without changes.
@@ -1,7 +1,7 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html lang="en" data-palette="CatppuccinMocha">
|
||||
<div include="./HTML/Bits/Head.html"></div>
|
||||
<?php include __DIR__ . "/HTML/Bits/Head.php"; ?>
|
||||
<body>
|
||||
<main class="MainContainer">
|
||||
<h1>Welcome</h1>
|
||||
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
+11
-4
@@ -1,7 +1,8 @@
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html lang="en" data-palette="CatppuccinMocha">
|
||||
<div include="./HTML/Bits/Head.html"></div>
|
||||
<?php include __DIR__ . "/HTML/Bits/Head.php"; ?>
|
||||
|
||||
<body>
|
||||
<main class="MainContainer">
|
||||
<h1>Welcome</h1>
|
||||
@@ -10,11 +11,13 @@
|
||||
You've arrived at Sarahtonin's homepage.
|
||||
Feel free to browse around as much as you want.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
If you want to access <strong>other links</strong>, you probably need to join my tailscale network.
|
||||
<br>
|
||||
Also, this is simply the homepage. You can use the <strong>navbar</strong> to the right to navigate around.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<b>
|
||||
Have fun snooping!
|
||||
@@ -27,12 +30,15 @@
|
||||
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.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
I made this website because I'd prefer an easier way to share my socials,
|
||||
and to just introduce myself in a better way.
|
||||
</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>
|
||||
|
||||
<h3>Credits</h3>
|
||||
@@ -44,6 +50,7 @@
|
||||
by
|
||||
<a href="https://catppuccin.com/community/">several people</a>.
|
||||
</li>
|
||||
|
||||
<li>
|
||||
The font is
|
||||
<a href="https://github.com/kika/fixedsys">Fixedsys</a>
|
||||
@@ -52,7 +59,7 @@
|
||||
</li>
|
||||
</ul>
|
||||
</main>
|
||||
</body>
|
||||
|
||||
<script src="./JS/Script.js"></script>
|
||||
<script src="./JS/Script.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
Reference in new issue
Block a user