diff options
| author | Pinapelz <yukais@pinapelz.com> | 2025-11-30 00:24:04 -0500 |
|---|---|---|
| committer | Pinapelz <yukais@pinapelz.com> | 2025-11-30 00:24:04 -0500 |
| commit | d4896c1517597109fba637f1e43b0b5e9d1b33e2 (patch) | |
| tree | 972377a394af5ca2207973067019096bb37889c8 | |
| parent | 11d2a2d2a82676514dc94512e40bfe39cdf20b03 (diff) | |
update socials
| -rw-r--r-- | pinapelz.moe/about.html | 12 | ||||
| -rw-r--r-- | pinapelz.moe/index.html | 13 | ||||
| -rw-r--r-- | pinapelz.moe/scripts/index.js | 36 |
3 files changed, 36 insertions, 25 deletions
diff --git a/pinapelz.moe/about.html b/pinapelz.moe/about.html index 47d92bb..9a491c8 100644 --- a/pinapelz.moe/about.html +++ b/pinapelz.moe/about.html @@ -47,9 +47,15 @@ X: <a href="https://x.com/pinapelz">@pinapelz</a> </li> <li> - Fediverse: - <a href="https://social.moekyun.me/@pinapelz" - >@pinapelz@social.moekyun.me</a + Fedi: + <a href="https://sakurajima.social/@pinapelz" + >@pinapelz@sakurajima.social</a + > + </li> + <li> + Bluesky: + <a href="https://bsky.app/profile/pinapelz.moe" + >@pinapelz.moe</a > </li> <li>Discord: @pinapelz</li> diff --git a/pinapelz.moe/index.html b/pinapelz.moe/index.html index 187dce0..1e83370 100644 --- a/pinapelz.moe/index.html +++ b/pinapelz.moe/index.html @@ -83,7 +83,6 @@ <li><a href="/">home</a></li> <li><a href="/about.html">webmaster</a></li> <li><a href="/projects.html">projects</a></li> - <li><a href="https://moekyun.me">moeify my link</a></li> </ul> <img src="assets/pfp.webp" @@ -106,9 +105,15 @@ X: <a href="https://x.com/pinapelz">@pinapelz</a> </li> <li> - Fediverse: - <a href="https://social.moekyun.me/@pinapelz" - >@pinapelz@social.moekyun.me</a + Fedi: + <a href="https://sakurajima.social/@pinapelz" + >@pinapelz@sakurajima.social</a + > + </li> + <li> + Bluesky: + <a href="https://bsky.app/profile/pinapelz.moe" + >@pinapelz.moe</a > </li> <li>Discord: @pinapelz</li> diff --git a/pinapelz.moe/scripts/index.js b/pinapelz.moe/scripts/index.js index e3dc338..1c1bf94 100644 --- a/pinapelz.moe/scripts/index.js +++ b/pinapelz.moe/scripts/index.js @@ -45,25 +45,25 @@ document.addEventListener("DOMContentLoaded", () => { const quoteElement = document.getElementById("quote"); quoteElement.innerHTML = `<i>${getRandomQuote()}</i>`; }); - function updateClock() { const clockElement = document.getElementById('clock'); const now = new Date(); - const hours = String(now.getHours()).padStart(2, '0'); - const minutes = String(now.getMinutes()).padStart(2, '0'); - const seconds = String(now.getSeconds()).padStart(2, '0'); - const day = String(now.getDate()).padStart(2, '0'); - const month = String(now.getMonth() + 1).padStart(2, '0'); - const year = now.getFullYear(); + const pstTime = new Date(now.toLocaleString("en-US", {timeZone: "America/Los_Angeles"})); + const hours = String(pstTime.getHours()).padStart(2, '0'); + const minutes = String(pstTime.getMinutes()).padStart(2, '0'); + const seconds = String(pstTime.getSeconds()).padStart(2, '0'); + const day = String(pstTime.getDate()).padStart(2, '0'); + const month = String(pstTime.getMonth() + 1).padStart(2, '0'); + const year = pstTime.getFullYear(); let message = "good day!"; - if (now.getHours() >= 0 && now.getHours() < 7) { - message = "(you should go to bed)"; - } else if (now.getHours() < 12) { - message = "good morning"; - } else if (now.getHours() >= 12 && now.getHours() < 18) { - message = "afternoon to you!"; - } else if (now.getHours() >= 18) { - message = "evening :)"; + if (pstTime.getHours() >= 0 && pstTime.getHours() < 7) { + message = "(its late for me)"; + } else if (pstTime.getHours() < 12) { + message = "its morning for me"; + } else if (pstTime.getHours() >= 12 && pstTime.getHours() < 18) { + message = "its afternoon for me"; + } else if (pstTime.getHours() >= 18) { + message = "evening rn for me"; } clockElement.innerHTML = `<span>${month}/${day}/${year} ${hours}:${minutes}:${seconds}</span> ` + message; } @@ -88,7 +88,7 @@ document.addEventListener("DOMContentLoaded", () => { } positions.forEach(pos => { const distance = Math.sqrt(Math.pow(randomTop - pos.top, 2) + Math.pow(randomLeft - pos.left, 2)); - if (distance < 10) { + if (distance < 10) { overlap = true; } }); @@ -135,7 +135,7 @@ document.addEventListener("DOMContentLoaded", () => { function displayRandomImage() { const randomIndex = Math.floor(Math.random() * images.length); const randomImage = images[randomIndex]; - + const imageContainer = document.querySelector('.random-image-container'); imageContainer.innerHTML = `<img src="${randomImage}" alt="Random Image" class="border-img">`; } @@ -144,4 +144,4 @@ document.addEventListener("DOMContentLoaded", () => { }); setInterval(updateClock, 1000); -updateClock();
\ No newline at end of file +updateClock(); |
