I'm just a silly doggo
This commit is contained in:
parent
e3c43d9ade
commit
a6cbbd9504
|
@ -1,12 +1,58 @@
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<title>gmem.ca</title>
|
<title>gmem.ca</title>
|
||||||
</head>
|
<link rel="stylesheet" href="./styles.css">
|
||||||
<body>
|
</head>
|
||||||
|
<body>
|
||||||
|
<main>
|
||||||
|
<input type="checkbox" name="language" />
|
||||||
|
<label for="language">Dog Mode</label>
|
||||||
|
<header>
|
||||||
|
<img src="./avatar.png">
|
||||||
<h1>arf arf</h1>
|
<h1>arf arf</h1>
|
||||||
<p><i>*wags tail*</i> awoo woof woof <a href="https://floofy.tech/@arch" rel="me">bark</a></p>
|
</header>
|
||||||
<p><a href="https://fursona.gmem.ca/gmem.ca">yip arf</a></p>
|
<p id="social"><i>*wags tail*</i> awoo woof woof <a href="https://floofy.tech/@arch" rel="me">bark</a></p>
|
||||||
</body>
|
<p id="fursona"><a href="https://fursona.gmem.ca/gmem.ca">yip arf</a></p>
|
||||||
|
</main>
|
||||||
|
<style>
|
||||||
|
header {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
height: 10vh;
|
||||||
|
}
|
||||||
|
img {
|
||||||
|
max-width: 100%;
|
||||||
|
max-height: 100%;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<script>
|
||||||
|
const checkbox = document.querySelector("input[name=language]");
|
||||||
|
const header = document.querySelector("h1");
|
||||||
|
const social = document.querySelector("#social");
|
||||||
|
const fursona = document.querySelector("#fursona");
|
||||||
|
|
||||||
|
addEventListener("load", (event) => reloaddog());
|
||||||
|
checkbox.addEventListener('change', function() {
|
||||||
|
toggledog(this.checked);
|
||||||
|
});
|
||||||
|
|
||||||
|
const toggledog = (status) => {
|
||||||
|
localStorage.setItem("dog", status);
|
||||||
|
reloaddog();
|
||||||
|
}
|
||||||
|
const reloaddog = () => {
|
||||||
|
if (localStorage.getItem("dog") == "true") {
|
||||||
|
header.innerHTML = "arf arf!";
|
||||||
|
social.innerHTML = "<i>*wags tail*</i> awoo woof woof <a href=\"https://floofy.tech/@arch\" rel=\"me\">bark</a>"
|
||||||
|
fursona.innerHTML = "<a href=\"https://fursona.gmem.ca/gmem.ca\">yip arf</a>"
|
||||||
|
} else {
|
||||||
|
header.innerHTML = "Arch is a dog";
|
||||||
|
social.innerHTML = "<i>hi!</i> follow me on the <a href=\"https://floofy.tech/@arch\" rel=\"me\">fedi</a>"
|
||||||
|
fursona.innerHTML = "<a href=\"https://fursona.gmem.ca/gmem.ca\">check out my fursona</a>"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
99
gmem.ca/styles.css
Normal file
99
gmem.ca/styles.css
Normal file
|
@ -0,0 +1,99 @@
|
||||||
|
/** XESS by Xe Iaso
|
||||||
|
|
||||||
|
https://github.com/Xe/Xess
|
||||||
|
|
||||||
|
Copyright (c) 2021 Xe <me@christine.website>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
|
*/
|
||||||
|
|
||||||
|
main {
|
||||||
|
font-family: monospace, monospace;
|
||||||
|
max-width: 38rem;
|
||||||
|
padding: 2rem;
|
||||||
|
margin: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media only screen and (max-device-width: 736px) {
|
||||||
|
main {
|
||||||
|
padding: 0rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
::selection {
|
||||||
|
background: #d3869b;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
background: #282828;
|
||||||
|
color: #ebdbb2;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
background-color: #3c3836;
|
||||||
|
padding: 1em;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
a, a:active, a:visited {
|
||||||
|
color: #b16286;
|
||||||
|
background-color: #1d2021;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5 {
|
||||||
|
margin-bottom: .1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
border-left: 1px solid #bdae93;
|
||||||
|
margin: 0.5em 10px;
|
||||||
|
padding: 0.5em 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
footer {
|
||||||
|
align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (prefers-color-scheme: light) {
|
||||||
|
body {
|
||||||
|
background: #fbf1c7;
|
||||||
|
color: #3c3836;
|
||||||
|
}
|
||||||
|
|
||||||
|
pre {
|
||||||
|
background-color: #ebdbb2;
|
||||||
|
padding: 1em;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
a, a:active, a:visited {
|
||||||
|
color: #b16286;
|
||||||
|
background-color: #f9f5d7;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1, h2, h3, h4, h5 {
|
||||||
|
margin-bottom: .1rem;
|
||||||
|
}
|
||||||
|
|
||||||
|
blockquote {
|
||||||
|
border-left: 1px solid #655c54;
|
||||||
|
margin: 0.5em 10px;
|
||||||
|
padding: 0.5em 10px;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in a new issue