2025-01-30 03:37:53 +00:00
|
|
|
const notesForEmma = {
|
2025-02-09 13:30:39 +00:00
|
|
|
tileOne: `<button class="close-note" style="display: inline-block; margin-left: 30vw; cursor: pointer;" onclick="closeLoveLetter()"></button>
|
2025-02-09 18:27:16 +00:00
|
|
|
<p class="note">Love the woman you are. All of her, genuinely.
|
|
|
|
Don't be afraid of yourself. Don't be afraid to seek help.
|
|
|
|
Don't be afraid to share yourself with others</p>`,
|
2025-02-09 13:30:39 +00:00
|
|
|
tileTwo: `<button class="close-note" style="display: inline-block; margin-left: 30vw; cursor: pointer;" onclick="closeLoveLetter()"></button>
|
2025-02-09 18:27:16 +00:00
|
|
|
<p class="note">How happy you are to be surrounded by people who understand you.
|
|
|
|
Who support you. Who love seeing you at your best</p>`,
|
2025-02-09 13:30:39 +00:00
|
|
|
tileThree: `<button class="close-note" style="display: inline-block; margin-left: 30vw; cursor: pointer;" onclick="closeLoveLetter()"></button>
|
2025-02-09 18:27:16 +00:00
|
|
|
<p class="note">You are getting better.
|
|
|
|
The best part is you can tell you are getting better.
|
|
|
|
Keep working hard. This story has a happy ending. I promise</p>`,
|
2025-02-09 13:30:39 +00:00
|
|
|
tileFour: `<button class="close-note" style="display: inline-block; margin-left: 30vw; cursor: pointer;" onclick="closeLoveLetter()"></button>
|
2025-02-09 18:27:16 +00:00
|
|
|
<p class="note">Embrace the part of you that is quite simply a goofball.
|
|
|
|
You don't have to do it just to fit in any more.
|
|
|
|
You can be silly because quite simply you are sometimes,
|
2025-02-09 13:53:17 +00:00
|
|
|
and that's a lovely thing about you</p>`,
|
2025-02-09 13:30:39 +00:00
|
|
|
tileFive: `<button class="close-note" style="display: inline-block; margin-left: 30vw; cursor: pointer;" onclick="closeLoveLetter()"></button>
|
2025-02-09 18:27:16 +00:00
|
|
|
<p class="note">You've been taking care of yourself and you are noticing.
|
|
|
|
How pretty did you think you looked in the mirror with those lashes?
|
|
|
|
The answer is very. With time all the work you are putting into yourself
|
|
|
|
will show. You're doing a good job, keep it up</p>`,
|
2025-02-09 13:30:39 +00:00
|
|
|
tileSix: `<button class="close-note" style="display: inline-block; margin-left: 30vw; cursor: pointer;" onclick="closeLoveLetter()"></button>
|
2025-02-09 18:27:16 +00:00
|
|
|
<p class="note">When depression tried to isolate you even further,
|
|
|
|
you stood up for yourself. You took action. You made friends at one
|
|
|
|
of your loneliest points. How brave you are to take that risk.
|
|
|
|
How happy you are to know friendship again</p>`,
|
2025-02-09 13:30:39 +00:00
|
|
|
tileSeven: `<button class="close-note" style="display: inline-block; margin-left: 30vw; cursor: pointer;" onclick="closeLoveLetter()"></button>
|
2025-02-09 18:27:16 +00:00
|
|
|
<p class="note" style="margin-bottom: 2rem;">There's a song i want you to listen to.
|
|
|
|
You haven't listened to it in a long time.
|
|
|
|
I want you to remember the times you used to dream of dancing
|
2025-02-08 02:50:41 +00:00
|
|
|
and twirling in your apartment with the stereo on.
|
2025-02-09 18:27:16 +00:00
|
|
|
The only two important things in that moment was the music
|
2025-02-09 12:32:20 +00:00
|
|
|
and what you felt in your heart</p>
|
2025-02-08 02:21:39 +00:00
|
|
|
|
2025-02-09 12:32:20 +00:00
|
|
|
<iframe width="500" height="280"
|
2025-02-08 02:50:41 +00:00
|
|
|
src="https://www.youtube-nocookie.com/embed/hlco1UrtJSc?si=P3YNM8EM27kAn2vA"
|
|
|
|
title="YouTube video player" frameborder="0"
|
|
|
|
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
|
|
|
|
referrerpolicy="strict-origin-when-cross-origin" allowfullscreen>
|
|
|
|
</iframe>`,
|
2025-02-09 13:30:39 +00:00
|
|
|
tileEight: `<button class="close-note" style="display: inline-block; margin-left: 30vw; cursor: pointer;" onclick="closeLoveLetter()"></button>
|
2025-02-09 18:27:16 +00:00
|
|
|
<p class="note">When you're ready, you'll know love again.
|
|
|
|
True love this time. What you are working on now is true love of
|
|
|
|
yourself. Romance can wait for you this time</p>`,
|
2025-02-09 13:30:39 +00:00
|
|
|
tileNine: `<button class="close-note" style="display: inline-block; margin-left: 30vw; cursor: pointer;" onclick="closeLoveLetter()"></button>
|
2025-02-09 18:27:16 +00:00
|
|
|
<p class="note">Current times are all but certain.
|
|
|
|
It is important you don't let your anxiety get the best of you.
|
|
|
|
Do not doubt yourself, you are capable of so much.
|
|
|
|
You have been through so much and made it out okay. You can do this</p>`,
|
2025-02-09 13:30:39 +00:00
|
|
|
tileTen: `<button class="close-note" style="display: inline-block; margin-left: 30vw; cursor: pointer;" onclick="closeLoveLetter()"></button>
|
2025-02-09 18:27:16 +00:00
|
|
|
<p class="note">You need to stop drinking coffee.
|
|
|
|
I know you love it, but you have medication that interacts poorly with
|
|
|
|
it. Right now you can't handle the potential anxiety that caffeine
|
|
|
|
introduces. You can't afford to be drinking a pot of coffee at 11 PM.
|
|
|
|
Please do this for yourself, it will help</p>`,
|
2025-02-09 13:30:39 +00:00
|
|
|
tileEleven: `<button class="close-note" style="display: inline-block; margin-left: 30vw; cursor: pointer;" onclick="closeLoveLetter()"></button>
|
2025-02-09 18:27:16 +00:00
|
|
|
<p class="note">Even though sometimes it feels like they aren't helping.
|
|
|
|
The things you have started doing to take care of yourself are
|
|
|
|
objectively good things. They are important for your physical
|
|
|
|
and mental health. This will take time, but i am so proud of
|
2025-02-08 02:21:39 +00:00
|
|
|
you for continuing to do these very important things even when
|
2025-02-09 18:27:16 +00:00
|
|
|
they don't bring you happiness. Because you know they are
|
2025-02-09 13:53:17 +00:00
|
|
|
important to do regardless</p>`,
|
2025-02-09 13:30:39 +00:00
|
|
|
tileTwelve: `<button class="close-note" style="display: inline-block; margin-left: 30vw; cursor: pointer;" onclick="closeLoveLetter()"></button>
|
2025-02-09 18:27:16 +00:00
|
|
|
<p class="note">Don't run away any more Emma. Don't let depression have that over you.
|
|
|
|
You have people that care about you. Every day you work so hard on
|
2025-02-08 02:21:39 +00:00
|
|
|
caring for yourself and doing the things you need to, even if you
|
2025-02-09 18:27:16 +00:00
|
|
|
still feel like shit at the end of the day. You're in the thick of
|
2025-02-08 02:21:39 +00:00
|
|
|
it now, you've got depression on the run and it wants to make
|
|
|
|
one more push to try and take you in the hole with it.
|
2025-02-09 18:27:16 +00:00
|
|
|
Don't let it. Don't run away</p>`,
|
2025-01-30 03:37:53 +00:00
|
|
|
};
|
2025-01-30 14:52:51 +00:00
|
|
|
|
2025-02-09 18:13:51 +00:00
|
|
|
const creditNote = ``;
|
|
|
|
|
2025-02-09 04:51:49 +00:00
|
|
|
const baxterThoughtImgSrc = [
|
|
|
|
"../img/baxter-thoughts/baxter-thought-one.webp",
|
|
|
|
"../img/baxter-thoughts/baxter-thought-two.webp",
|
|
|
|
"../img/baxter-thoughts/baxter-thought-three.webp",
|
|
|
|
"../img/baxter-thoughts/baxter-thought-four.webp",
|
|
|
|
"../img/baxter-thoughts/baxter-thought-five.webp",
|
|
|
|
"../img/baxter-thoughts/baxter-thought-six.webp",
|
|
|
|
"../img/baxter-thoughts/baxter-thought-seven.webp"
|
|
|
|
];
|
|
|
|
|
2025-02-05 14:44:09 +00:00
|
|
|
const displayNote = (noteName) => {
|
2025-02-09 12:32:20 +00:00
|
|
|
// console.log(`${notesForEmma[noteName.className.split(' ')[0]]}`);
|
|
|
|
const loveNote = document.querySelector(".love-note");
|
2025-02-09 13:30:39 +00:00
|
|
|
loveNote.style.display = "block";
|
2025-02-09 12:32:20 +00:00
|
|
|
loveNote.style.backgroundImage = "url(../img/pink-paper.webp)";
|
|
|
|
loveNote.style.height = "80vh";
|
|
|
|
loveNote.style.width = "40vw";
|
|
|
|
loveNote.style.padding = "3rem";
|
|
|
|
loveNote.innerHTML = notesForEmma[noteName.className.split(' ')[0]];
|
2025-02-05 14:44:09 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
const extraLove = () => {
|
|
|
|
const header = document.querySelector(".header-text");
|
|
|
|
header.innerHTML += '. Always <i class="fa-solid fa-heart"></i>';
|
|
|
|
|
|
|
|
const transHeart = document.querySelector(".trans-pride-heart");
|
|
|
|
transHeart.style.cursor = "default";
|
|
|
|
transHeart.removeEventListener("click", extraLove);
|
|
|
|
}
|
2025-02-05 04:56:05 +00:00
|
|
|
|
2025-02-06 13:14:10 +00:00
|
|
|
const baxterHeadPat = () => {
|
2025-02-09 12:32:20 +00:00
|
|
|
const imgSrcArrayNo = Math.floor(Math.random() * 7);
|
2025-02-09 12:00:36 +00:00
|
|
|
const thoughtBubble = document.querySelector(".baxter-thought");
|
2025-02-09 12:32:20 +00:00
|
|
|
|
2025-02-09 12:00:36 +00:00
|
|
|
thoughtBubble.src = baxterThoughtImgSrc[imgSrcArrayNo];
|
2025-02-06 13:14:10 +00:00
|
|
|
};
|
|
|
|
|
2025-02-09 13:30:39 +00:00
|
|
|
const closeLoveLetter = () => {
|
|
|
|
const loveNote = document.querySelector(".love-note");
|
|
|
|
loveNote.style.display = "none";
|
|
|
|
};
|
|
|
|
|
2025-02-05 14:44:09 +00:00
|
|
|
const main = () => {
|
2025-02-05 04:56:05 +00:00
|
|
|
const tiles = document.querySelectorAll(".tile");
|
2025-02-09 13:30:39 +00:00
|
|
|
|
2025-02-06 13:22:54 +00:00
|
|
|
tiles.forEach((tile) => {
|
|
|
|
tile.style.cursor = "pointer";
|
|
|
|
tile.addEventListener("click", () => {
|
|
|
|
displayNote(tile);
|
2025-02-02 13:08:08 +00:00
|
|
|
});
|
2025-01-31 01:15:40 +00:00
|
|
|
});
|
2025-02-06 13:14:10 +00:00
|
|
|
|
|
|
|
const headPats = document.querySelector(".headpats");
|
|
|
|
headPats.style.cursor = "pointer";
|
|
|
|
headPats.addEventListener("click", baxterHeadPat);
|
2025-02-05 04:56:05 +00:00
|
|
|
|
|
|
|
const transHeart = document.querySelector(".trans-pride-heart");
|
|
|
|
transHeart.style.cursor = "pointer";
|
|
|
|
transHeart.addEventListener("click", extraLove);
|
2025-02-02 13:08:08 +00:00
|
|
|
|
2025-02-05 20:07:15 +00:00
|
|
|
const readThis = document.querySelector(".read-this");
|
|
|
|
readThis.style.cursor = "default";
|
|
|
|
readThis.removeEventListener("click", main);
|
2025-02-05 04:56:05 +00:00
|
|
|
};
|
|
|
|
|
2025-02-05 20:07:15 +00:00
|
|
|
const readThis = document.querySelector(".read-this");
|
|
|
|
readThis.addEventListener("click", main);
|