const notesForEmma = { tileOne: `

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

`, 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

`, tileSeven: `

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 and twirling in your apartment with the stereo on. The only two important things in that moment was the music and what you felt in your heart

`, 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

`, 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

`, }; const readThisMessage = `

You were out late last night, again. A craving for chocolate had sent you on a quest late at night. You needed something special. This was no time for a Hershey's bar. You took the bus into the city, and found a specialty shop. Quite odd, when did this show up? You entered and a woman behind the counter said "You need these, i can tell."

"Honey, quite simply, you look like you've seen some shit" she said in a playful, yet caring tone. "This box here, each item comes with a note, the notes all have something you've desperately needed to hear. Take them, no charge." Free candy? Who could resist? Certainly not me.

Any ways you wrote this down in your journal so you'd believe yourself. Maybe don't stay up so late anymore, hm?

(a note to the visitor - other items on the page are clickable! Baxter however may have a bit of a preference on where he wants pets).

`; const creditNote = `

credits for resources used to make this event entry

`; 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" ]; const displayReadThisNote = () => { const readNote = document.querySelector(".love-note"); readNote.style.display = "block"; readNote.innerHTML = readThisMessage; }; const displayNote = (noteName) => { const loveNote = document.querySelector(".love-note"); loveNote.style.display = "block"; loveNote.innerHTML = notesForEmma[noteName.className.split(' ')[0]]; }; const displayCredits = () => { const credits = document.querySelector(".love-note"); credits.style.display = "block"; credits.innerHTML = creditNote; }; const extraLove = () => { const header = document.querySelector(".header-text"); header.innerHTML += '. Always '; const transHeart = document.querySelector(".trans-pride-heart"); transHeart.style.cursor = "default"; transHeart.removeEventListener("click", extraLove); } const baxterHeadPat = () => { const imgSrcArrayNo = Math.floor(Math.random() * 7); const thoughtBubble = document.querySelector(".baxter-thought"); thoughtBubble.src = baxterThoughtImgSrc[imgSrcArrayNo]; }; const closeLoveLetter = () => { const loveNote = document.querySelector(".love-note"); loveNote.style.display = "none"; }; const main = () => { displayReadThisNote(); const tiles = document.querySelectorAll(".tile"); tiles.forEach((tile) => { tile.style.cursor = "pointer"; tile.addEventListener("click", () => { displayNote(tile); }); }); const headPats = document.querySelector(".headpats"); headPats.style.cursor = "pointer"; headPats.addEventListener("click", baxterHeadPat); const transHeart = document.querySelector(".trans-pride-heart"); transHeart.style.cursor = "pointer"; transHeart.addEventListener("click", extraLove); const readThis = document.querySelector(".read-this"); readThis.style.cursor = "default"; readThis.removeEventListener("click", main); }; const credits = document.querySelector(".credits"); credits.addEventListener("click", displayCredits); const readThis = document.querySelector(".read-this"); readThis.addEventListener("click", main);