Compare commits
No commits in common. "9c29bdb84075eb0db6d3353eb52f4b4bdacf9ce3" and "a2044eed067fd9cbe1b5259f733a9eeb7121185f" have entirely different histories.
9c29bdb840
...
a2044eed06
117
index.html
117
index.html
@ -1,84 +1,49 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
||||
<link rel="manifest" href="/site.webmanifest">
|
||||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
|
||||
<meta name="apple-mobile-web-app-title" content="Isaac's Website">
|
||||
<meta name="application-name" content="Isaac's Website">
|
||||
<meta name="msapplication-TileColor" content="#da532c">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="Keywords" content="minecraft, isaac, shoebottom, jellyfin">
|
||||
<meta name="Description" content="Isaac Shoebottom's website homepage!">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
||||
<link rel="manifest" href="/site.webmanifest">
|
||||
<link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5">
|
||||
<meta name="apple-mobile-web-app-title" content="Isaac's Website">
|
||||
<meta name="application-name" content="Isaac's Website">
|
||||
<meta name="msapplication-TileColor" content="#da532c">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="Keywords" content="blog, git, , isaac, shoebottom, jellyfin">
|
||||
<meta name="Description" content="Isaac Shoebottom's website homepage!">
|
||||
<script>
|
||||
function modeSwitch() {
|
||||
const darkModeButton = document.getElementById("dark-mode-button")
|
||||
const bodyElement = document.querySelector('body')
|
||||
<title>Isaac's Website</title>
|
||||
|
||||
if (darkModeButton.checked) {
|
||||
bodyElement.style.backgroundColor = "rgb(25, 25, 25)"
|
||||
bodyElement.style.color = "rgb(240, 240, 240)"
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
|
||||
localStorage.setItem("root.darkMode", true)
|
||||
}
|
||||
else {
|
||||
bodyElement.style.backgroundColor = "rgb(240, 240, 240)"
|
||||
bodyElement.style.color = "rgb(25, 25, 25)"
|
||||
<body>
|
||||
<div class="text">
|
||||
<h1>Isaac's domain</h1>
|
||||
|
||||
localStorage.setItem("root.darkMode", false)
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<title>Isaac's Website</title>
|
||||
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="text">
|
||||
<h1>Isaac's domain</h1>
|
||||
<div id="dark-mode">
|
||||
<h2>Dark Mode</h2>
|
||||
<div class="button r center" id="button-1">
|
||||
<input type="checkbox" class="checkbox" id="dark-mode-button">
|
||||
<div class="knobs"></div>
|
||||
<div class="layer"></div>
|
||||
</div>
|
||||
<p>List of things on this domain!</p>
|
||||
<ul>
|
||||
<li><a href="https://blog.shoebottom.ca">Memes</a></li>
|
||||
<li><a href="https://git.shoebottom.ca">My Git repos</a></li>
|
||||
<li><a href="https://live.shoebottom.ca">Livestream</a></li>
|
||||
<li><a href="https://jellyfin.shoebottom.ca">Jellyfin</a></li>
|
||||
<!-- <li><a href="https://dynmap.shoebottom.ca">Minecraft Dynmap</a></li> -->
|
||||
<li><a href="/host/memes/">Memes</a></li>
|
||||
<!-- <li><a href="/music/">Music</a></li> -->
|
||||
<!-- <li><a href="/tv/">TV</a></li> -->
|
||||
<!-- <li><a href="/movies/">Movies</a></li> -->
|
||||
<!-- <li><a href="/anime/">Anime</a></li> -->
|
||||
</ul>
|
||||
</div>
|
||||
<p>List of things on this domain!</p>
|
||||
<ul>
|
||||
<li><a href="https://blog.shoebottom.ca">Memes</a></li>
|
||||
<li><a href="https://git.shoebottom.ca">My Git repos</a></li>
|
||||
<li><a href="https://live.shoebottom.ca">Livestream</a></li>
|
||||
<li><a href="https://jellyfin.shoebottom.ca">Jellyfin</a></li>
|
||||
<!-- <li><a href="https://dynmap.shoebottom.ca">Minecraft Dynmap</a></li> -->
|
||||
<li><a href="/host/memes/">Memes</a></li>
|
||||
<!-- <li><a href="/music/">Music</a></li> -->
|
||||
<!-- <li><a href="/tv/">TV</a></li> -->
|
||||
<!-- <li><a href="/movies/">Movies</a></li> -->
|
||||
<!-- <li><a href="/anime/">Anime</a></li> -->
|
||||
</ul>
|
||||
</body>
|
||||
|
||||
<div class="image">
|
||||
<img src="image.jpg" alt="Biden's America" class="image">
|
||||
<img src="image2.jpg" alt="It's ok little minion" class="image">
|
||||
<img src="https://i.imgur.com/aEyOuaF.png" width="30%" height="30%" alt="It's the crazy frog!" class="image">
|
||||
</div>
|
||||
<script>
|
||||
let darkModeCheck = localStorage.getItem("root.darkMode")
|
||||
if (darkModeCheck === "true") {
|
||||
const darkModeCheckbox = document.getElementById("dark-mode-button")
|
||||
darkModeCheckbox.checked = true
|
||||
modeSwitch()
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
|
||||
<div class="image">
|
||||
<img src="image.jpg" alt="Biden's America" class="image">
|
||||
<img src="image2.jpg" alt="It's ok little minion" class="image">
|
||||
<img src="https://i.imgur.com/aEyOuaF.png" width="30%" height="30%" alt="It's the crazy frog!" class="image">
|
||||
</div>
|
||||
|
||||
</html>
|
||||
|
||||
</html>
|
||||
|
108
style.css
108
style.css
@ -1,22 +1,20 @@
|
||||
.text {
|
||||
font-family: 'Trebuchet MS', sans-serif;
|
||||
margin: 0 auto;
|
||||
max-width: 300px;
|
||||
max-width:300px;
|
||||
width: 50%;
|
||||
line-height: 1.6;
|
||||
font-size: 18px;
|
||||
color: #444;
|
||||
padding: 010px;
|
||||
line-height:1.6;
|
||||
font-size:18px;
|
||||
color:#444;
|
||||
padding:010px;
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
}
|
||||
|
||||
h1 {
|
||||
line-height: 1.2;
|
||||
line-height:1.2;
|
||||
}
|
||||
|
||||
html {
|
||||
cursor: url(troll.cur), url(glaceon.gif), auto;
|
||||
cursor:url(troll.cur),url(glaceon.gif),auto;
|
||||
}
|
||||
|
||||
.image {
|
||||
@ -29,95 +27,3 @@ html {
|
||||
/* display: block; */
|
||||
display: none;
|
||||
}
|
||||
|
||||
#dark-mode{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#dark-mode #button-1 {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
/* Button css */
|
||||
#button-1 .knobs:before {
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 4px;
|
||||
left: 4px;
|
||||
width: 20px;
|
||||
height: 10px;
|
||||
color: #fff;
|
||||
font-size: 10px;
|
||||
font-weight: bold;
|
||||
text-align: center;
|
||||
line-height: 1;
|
||||
padding: 9px 4px;
|
||||
background-color: #fff;
|
||||
border-radius: 50%;
|
||||
transition: 0.3s cubic-bezier(0.18, 0.89, 0.35, 1.15) all;
|
||||
box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.35), 0 10px 10px -5px rgba(0, 0, 0, 0.20);
|
||||
}
|
||||
|
||||
#button-1 .checkbox:checked+.knobs:before {
|
||||
content: '';
|
||||
left: 32px;
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
#button-1 .checkbox:checked~.layer {
|
||||
background-color: #1f1f1f;
|
||||
}
|
||||
|
||||
#button-1 .knobs,
|
||||
#button-1 .knobs:before,
|
||||
#button-1 .layer {
|
||||
transition: 0.3s ease all;
|
||||
}
|
||||
|
||||
.knobs,
|
||||
.layer {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
.button {
|
||||
position: relative;
|
||||
top: 50%;
|
||||
width: 65px;
|
||||
height: 36px;
|
||||
margin: -20px auto 0 auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.button.r,
|
||||
.button.r .layer {
|
||||
border-radius: 100px;
|
||||
}
|
||||
|
||||
.checkbox {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
z-index: 3;
|
||||
}
|
||||
|
||||
.knobs {
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.layer {
|
||||
width: 100%;
|
||||
background-color: #d3d3d3;
|
||||
transition: 0.3s ease all;
|
||||
z-index: 1;
|
||||
}
|
Loading…
Reference in New Issue
Block a user