2025-01-30 03:37:53 +00:00
|
|
|
const notesForEmma = {
|
2025-02-09 12:32:20 +00:00
|
|
|
tileOne: `<p>love the woman you are. all of her, genuinely.
|
2025-02-08 02:50:41 +00:00
|
|
|
don't be afraid of yourself. don't be afraid to seek help.
|
2025-02-09 12:32:20 +00:00
|
|
|
don't be afraid to share yourself with others</p>`,
|
2025-02-08 02:50:41 +00:00
|
|
|
tileTwo: `how happy you are to be surrounded by people who understand you.
|
|
|
|
who support you. who love seeing you at your best`,
|
|
|
|
tileThree: `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`,
|
|
|
|
tileFour: `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,
|
|
|
|
and that's a lovely thing about you`,
|
|
|
|
tileFive: `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`,
|
|
|
|
tileSix: `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`,
|
2025-02-09 12:32:20 +00:00
|
|
|
tileSeven: `<p style="margin-bottom: 2rem;">there's a song i want you to listen to.
|
2025-02-08 02:50:41 +00:00
|
|
|
you haven't listened to it in a long time.
|
|
|
|
i want you to remember the times you used to dream of dancing
|
|
|
|
and twirling in your apartment with the stereo on.
|
|
|
|
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>`,
|
|
|
|
tileEight: `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`,
|
|
|
|
tileNine: `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`,
|
|
|
|
tileTen: `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`,
|
2025-02-08 02:21:39 +00:00
|
|
|
tileEleven: `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
|
|
|
|
you for continuing to do these very important things even when
|
|
|
|
they don't bring you happiness. because you know they are
|
|
|
|
important to do regardless`,
|
|
|
|
tileTwelve: `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
|
|
|
|
caring for yourself and doing the things you need to, even if you
|
|
|
|
still feel like shit at the end of the day. you're in the thick of
|
|
|
|
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.
|
|
|
|
don't let it. don't run away`,
|
2025-01-30 03:37:53 +00:00
|
|
|
};
|
2025-01-30 14:52:51 +00:00
|
|
|
|
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");
|
|
|
|
loveNote.style.backgroundImage = "url(../img/pink-paper.webp)";
|
|
|
|
loveNote.style.height = "80vh";
|
|
|
|
loveNote.style.width = "40vw";
|
|
|
|
loveNote.style.padding = "3rem";
|
|
|
|
loveNote.style.fontSize = "1.75rem";
|
|
|
|
loveNote.style.fontFamily = "learning-curve-regular";
|
|
|
|
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-05 14:44:09 +00:00
|
|
|
const main = () => {
|
2025-02-05 04:56:05 +00:00
|
|
|
const tiles = document.querySelectorAll(".tile");
|
|
|
|
|
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);
|