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 creditNote = ``; 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 displayNote = (noteName) => { // console.log(`${notesForEmma[noteName.className.split(' ')[0]]}`); const loveNote = document.querySelector(".love-note"); loveNote.style.display = "block"; 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]]; }; 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 = () => { 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 readThis = document.querySelector(".read-this"); readThis.addEventListener("click", main);