Download index.html from rrr257/Scripts: direct link, hf CLI and curl.
- Browser
- Download file 42.5 kB
-
https://huggingface.co/spaces/rrr257/Scripts/resolve/main/index.html
- Command line
-
hf download hf://spaces/rrr257/Scripts/index.html
-
curl -L -o index.html https://huggingface.co/spaces/rrr257/Scripts/resolve/main/index.html
42.5 kB
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Scenario Practice</title> | |
| <style> | |
| * { margin: 0; padding: 0; box-sizing: border-box; } | |
| body { | |
| font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; | |
| background: linear-gradient(to bottom right, #dbeafe, #bfdbfe); | |
| min-height: 100vh; | |
| padding: 2rem; | |
| } | |
| .container { max-width: 64rem; margin: 0 auto; } | |
| header { text-align: center; margin-bottom: 2rem; } | |
| .title { font-size: 2.5rem; color: #1e3a8a; font-weight: bold; margin-bottom: 0.5rem; } | |
| .subtitle { color: #1e40af; font-size: 1.125rem; } | |
| .category-selection { | |
| background: white; | |
| border-radius: 1rem; | |
| box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); | |
| padding: 2rem; | |
| margin-bottom: 2rem; | |
| } | |
| .category-title { | |
| font-size: 1.25rem; | |
| font-weight: 600; | |
| color: #1e3a8a; | |
| margin-bottom: 1rem; | |
| text-align: center; | |
| } | |
| .categories { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); | |
| gap: 1rem; | |
| } | |
| .category-btn { | |
| padding: 1.25rem; | |
| background: #eff6ff; | |
| border: 2px solid #bfdbfe; | |
| border-radius: 0.75rem; | |
| font-weight: 600; | |
| color: #1e40af; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| text-align: center; | |
| } | |
| .category-btn:hover { | |
| background: #dbeafe; | |
| border-color: #93c5fd; | |
| transform: translateY(-2px); | |
| } | |
| .scene-selection { | |
| background: white; | |
| border-radius: 1rem; | |
| box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); | |
| padding: 2rem; | |
| margin-bottom: 2rem; | |
| } | |
| .scene-list { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| .scene-card { | |
| padding: 1.5rem; | |
| background: #eff6ff; | |
| border: 2px solid #bfdbfe; | |
| border-radius: 0.75rem; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| } | |
| .scene-card:hover { | |
| background: #dbeafe; | |
| border-color: #93c5fd; | |
| transform: translateY(-2px); | |
| } | |
| .scene-card.intense { | |
| background: #fff1f2; | |
| border-color: #fca5a5; | |
| } | |
| .scene-card.intense:hover { | |
| background: #ffe4e6; | |
| border-color: #f87171; | |
| transform: translateY(-2px); | |
| } | |
| .scene-title { | |
| font-size: 1.125rem; | |
| font-weight: 600; | |
| color: #1e40af; | |
| margin-bottom: 0.5rem; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| flex-wrap: wrap; | |
| } | |
| .scene-card.intense .scene-title { color: #9f1239; } | |
| .scene-description { | |
| color: #3b82f6; | |
| font-size: 0.875rem; | |
| } | |
| .scene-card.intense .scene-description { color: #e11d48; } | |
| .intense-badge { | |
| display: inline-block; | |
| background: #e11d48; | |
| color: white; | |
| font-size: 0.7rem; | |
| font-weight: 700; | |
| padding: 0.15rem 0.5rem; | |
| border-radius: 999px; | |
| letter-spacing: 0.05em; | |
| text-transform: uppercase; | |
| } | |
| .script-display { | |
| background: white; | |
| border-radius: 1rem; | |
| box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); | |
| padding: 2rem; | |
| margin-bottom: 2rem; | |
| } | |
| .roles-header { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| gap: 1rem; | |
| margin-bottom: 2rem; | |
| } | |
| .role-card { | |
| padding: 1.5rem; | |
| border-radius: 0.75rem; | |
| border: 2px solid; | |
| } | |
| .role-card.person1 { | |
| background: #dbeafe; | |
| border-color: #3b82f6; | |
| } | |
| .role-card.person2 { | |
| background: #fef3c7; | |
| border-color: #f59e0b; | |
| } | |
| .role-name { | |
| font-size: 1.25rem; | |
| font-weight: bold; | |
| margin-bottom: 0.5rem; | |
| } | |
| .role-card.person1 .role-name { color: #1e40af; } | |
| .role-card.person2 .role-name { color: #92400e; } | |
| .role-mood { | |
| font-size: 0.875rem; | |
| font-style: italic; | |
| } | |
| .role-card.person1 .role-mood { color: #3b82f6; } | |
| .role-card.person2 .role-mood { color: #d97706; } | |
| .dialog-container { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| .dialog-line { | |
| padding: 1rem 1.5rem; | |
| border-radius: 0.75rem; | |
| border: 2px solid; | |
| } | |
| .dialog-line.person1 { | |
| background: #dbeafe; | |
| border-color: #3b82f6; | |
| margin-right: 2rem; | |
| } | |
| .dialog-line.person2 { | |
| background: #fef3c7; | |
| border-color: #f59e0b; | |
| margin-left: 2rem; | |
| } | |
| .speaker { | |
| font-weight: bold; | |
| margin-bottom: 0.5rem; | |
| } | |
| .dialog-line.person1 .speaker { color: #1e40af; } | |
| .dialog-line.person2 .speaker { color: #92400e; } | |
| .dialog-text { | |
| line-height: 1.6; | |
| } | |
| .dialog-line.person1 .dialog-text { color: #1e3a8a; } | |
| .dialog-line.person2 .dialog-text { color: #78350f; } | |
| .controls { | |
| display: flex; | |
| gap: 1rem; | |
| justify-content: center; | |
| flex-wrap: wrap; | |
| } | |
| .btn { | |
| padding: 0.75rem 2rem; | |
| border: none; | |
| border-radius: 0.5rem; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| font-size: 1rem; | |
| } | |
| .btn-primary { | |
| background: #3b82f6; | |
| color: white; | |
| } | |
| .btn-primary:hover { | |
| background: #2563eb; | |
| transform: translateY(-2px); | |
| } | |
| .btn-secondary { | |
| background: #e5e7eb; | |
| color: #374151; | |
| } | |
| .btn-secondary:hover { | |
| background: #d1d5db; | |
| transform: translateY(-2px); | |
| } | |
| .hidden { display: none; } | |
| @media (max-width: 768px) { | |
| .roles-header { grid-template-columns: 1fr; } | |
| .dialog-line.person1 { margin-right: 0; } | |
| .dialog-line.person2 { margin-left: 0; } | |
| } | |
| </style> | |
| </head> | |
| <body> | |
| <div class="container"> | |
| <header> | |
| <h1 class="title">π Scenario Practice</h1> | |
| <p class="subtitle">Practice acting in different scenarios with scripted dialogs</p> | |
| </header> | |
| <div id="categorySelection" class="category-selection"> | |
| <h2 class="category-title">Choose a Scenario Category</h2> | |
| <div class="categories"> | |
| <button class="category-btn" onclick="showScenes('customer-service')"> | |
| <div style="font-size: 2rem; margin-bottom: 0.5rem;">ποΈ</div> | |
| <div>Customer Service</div> | |
| </button> | |
| <button class="category-btn" onclick="showScenes('conflict-resolution')"> | |
| <div style="font-size: 2rem; margin-bottom: 0.5rem;">π€</div> | |
| <div>Conflict Resolution</div> | |
| </button> | |
| <button class="category-btn" onclick="showScenes('social-situations')"> | |
| <div style="font-size: 2rem; margin-bottom: 0.5rem;">π¬</div> | |
| <div>Social Situations</div> | |
| </button> | |
| </div> | |
| </div> | |
| <div id="sceneSelection" class="scene-selection hidden"> | |
| <h2 class="category-title" id="sceneSelectionTitle">Select a Scene</h2> | |
| <div class="scene-list" id="sceneList"></div> | |
| <div class="controls" style="margin-top: 1.5rem;"> | |
| <button class="btn btn-secondary" onclick="backToCategories()">β Back to Categories</button> | |
| </div> | |
| </div> | |
| <div id="scriptDisplay" class="script-display hidden"> | |
| <div class="roles-header" id="rolesHeader"></div> | |
| <div class="dialog-container" id="dialogContainer"></div> | |
| <div class="controls" style="margin-top: 2rem;"> | |
| <button class="btn btn-secondary" onclick="backToScenes()">β Back to Scenes</button> | |
| <button class="btn btn-primary" onclick="backToCategories()">Choose Different Category</button> | |
| </div> | |
| </div> | |
| </div> | |
| <script> | |
| const scenarios = { | |
| 'customer-service': { | |
| title: 'Customer Service Scenarios', | |
| scenes: [ | |
| { | |
| title: 'Angry Customer Returns Defective Product', | |
| description: 'Handle a frustrated customer demanding a refund for a broken item', | |
| person1: { name: 'Customer', mood: 'Angry and frustrated' }, | |
| person2: { name: 'Store Employee', mood: 'Professional and calm' }, | |
| dialog: [ | |
| { speaker: 1, text: "I need to speak to a manager right now! This is completely unacceptable. I cannot believe you sell products like this." }, | |
| { speaker: 2, text: "I understand you're upset, and I'm really sorry you're having this experience. I'm here to help you β can you tell me what happened?" }, | |
| { speaker: 1, text: "I bought this coffee maker three days ago and it's already broken! It won't even turn on. I specifically bought it because it had good reviews." }, | |
| { speaker: 2, text: "I'm truly sorry to hear that. That's definitely not the experience we want you to have. Do you have your receipt with you?" }, | |
| { speaker: 1, text: "Yes, here it is. I paid $89 for this piece of junk! That's not a small amount of money." }, | |
| { speaker: 2, text: "Thank you. I can see you purchased it on Monday, so you're well within our return window. Let me pull up your options." }, | |
| { speaker: 1, text: "I don't want store credit. I want my money back, plain and simple. I'm not going to spend it here again after this." }, | |
| { speaker: 2, text: "Absolutely, a full refund is completely available to you. Would you prefer cash back or back to your card?" }, | |
| { speaker: 1, text: "Back to my card is fine. I just want to be done with this." }, | |
| { speaker: 2, text: "Of course. I'm processing that right now. It should appear within two to three business days." }, | |
| { speaker: 1, text: "What about the time I wasted driving back here? I had to rearrange my whole morning." }, | |
| { speaker: 2, text: "You're right, your time has value. I'd like to offer you a $15 store credit as a goodwill gesture β completely separate from your refund, no strings attached." }, | |
| { speaker: 1, text: "Hmm. I appreciate that, actually. I didn't expect you to say that." }, | |
| { speaker: 2, text: "We genuinely want to make this right. Your refund is complete, and here's your credit slip. Is there anything else I can do for you today?" }, | |
| { speaker: 1, text: "No, I think that covers it. Thank you for actually listening and not just brushing me off." } | |
| ] | |
| }, | |
| { | |
| title: 'Customer Confused About Product Features', | |
| description: 'Help a confused customer understand how a product works', | |
| person1: { name: 'Customer', mood: 'Confused and uncertain' }, | |
| person2: { name: 'Sales Associate', mood: 'Helpful and patient' }, | |
| dialog: [ | |
| { speaker: 1, text: "Excuse me, I'm looking at these wireless headphones but I'm not sure which one to get. There are so many options it's overwhelming." }, | |
| { speaker: 2, text: "I'd be happy to help narrow it down! What will you mainly be using them for β music, calls, working out?" }, | |
| { speaker: 1, text: "Mostly for working out at the gym. But I also want to use them for phone calls during my commute." }, | |
| { speaker: 2, text: "Perfect, that actually narrows it down a lot. You'll want something sweat-resistant with a strong microphone. These two models are both great fits." }, | |
| { speaker: 1, text: "What's the difference between them? They look almost the same to me, and the price difference is confusing." }, | |
| { speaker: 2, text: "The biggest difference is battery life β this one lasts 8 hours, and this one lasts 12. Both are water-resistant and have really clear call quality." }, | |
| { speaker: 1, text: "Hmm, 12 hours sounds better for sure. But is it really worth the extra $30? I don't want to overspend." }, | |
| { speaker: 2, text: "If you work out every day, the longer battery means charging maybe twice a week instead of every night. Plus this model has noise cancellation on calls, which is great for commuting." }, | |
| { speaker: 1, text: "Oh, the noise cancellation would actually be really useful on the subway. I hadn't thought of that." }, | |
| { speaker: 2, text: "Exactly β that's one of the most popular features for commuters. A lot of customers say it makes a huge difference on phone calls in noisy environments." }, | |
| { speaker: 1, text: "Do they come in other colors? Black feels a little boring for the gym." }, | |
| { speaker: 2, text: "They come in black, white, and a really nice navy blue. The blue is actually the most popular color right now." }, | |
| { speaker: 1, text: "I like the blue. Can I try them on before I decide? I want to make sure they feel secure." }, | |
| { speaker: 2, text: "Absolutely! Here, try these on and do a little movement β shake your head, see how they feel. I want to make sure they'll stay put during your workouts." }, | |
| { speaker: 1, text: "Oh wow, these feel really solid. I think I'm sold. I'll take the blue ones with the 12-hour battery." } | |
| ] | |
| }, | |
| { | |
| title: 'Pizza Order Mix-Up (Fun)', | |
| description: 'A customer ordered pepperoni but got pineapple pizza instead', | |
| person1: { name: 'Customer', mood: 'Disappointed but trying to stay positive' }, | |
| person2: { name: 'Pizza Shop Manager', mood: 'Apologetic and eager to fix the mistake' }, | |
| dialog: [ | |
| { speaker: 1, text: "Hi, um, I think there's been a mix-up with my order. I ordered a large pepperoni pizza, but what's in this box is... definitely not pepperoni." }, | |
| { speaker: 2, text: "Oh no! I'm so sorry β what did you get instead? Let me see the order." }, | |
| { speaker: 1, text: "Pineapple. Lots and lots of pineapple. I'm genuinely not a pineapple-on-pizza person. Like, at all." }, | |
| { speaker: 2, text: "I am so sorry! That's completely our mistake. Someone grabbed the wrong box at the counter. Let me make this right for you immediately." }, | |
| { speaker: 1, text: "It's okay, mistakes happen. But I do have some very hungry kids at home who are currently staging a small protest." }, | |
| { speaker: 2, text: "Ha! Okay, I will personally make your pepperoni pizza right now. It'll be ready in 15 minutes. And please, keep the pineapple pizza β it's on us." }, | |
| { speaker: 1, text: "Really? That's very generous of you, but I honestly don't think anyone in my family will eat it. My kids would rather starve." }, | |
| { speaker: 2, text: "Maybe a neighbor? Or here's a thought β you could try one slice yourself. Some die-hard pepperoni people have converted. It's been known to happen." }, | |
| { speaker: 1, text: "That is an extremely bold claim. I've been anti-pineapple-pizza for thirty years." }, | |
| { speaker: 2, text: "All the more reason to try it now! Look, I'm also throwing in a free order of garlic breadsticks for the inconvenience β that should help soften the blow either way." }, | |
| { speaker: 1, text: "Free breadsticks? Now we're talking. My kids might forgive the whole situation if breadsticks are involved." }, | |
| { speaker: 2, text: "That's the spirit! I'll have everything boxed up and ready to go in about 12 minutes. Can I get you anything while you wait? Water, a soda?" }, | |
| { speaker: 1, text: "A soda would be great, thank you. You know, you've handled this really well. I came in a little annoyed and now I'm actually having a good time." }, | |
| { speaker: 2, text: "That's what we're here for! Messing up the order and then completely winning you over β it's all part of the plan." }, | |
| { speaker: 1, text: "Ha! Well, it's working. And if the pineapple pizza actually converts me, I'll come back and admit it personally." } | |
| ] | |
| }, | |
| { | |
| title: 'Irate Customer Threatens to Go to Corporate', | |
| description: 'A customer escalates a billing dispute and threatens to report the store', | |
| intense: true, | |
| person1: { name: 'Customer', mood: 'Furious and threatening escalation' }, | |
| person2: { name: 'Store Manager', mood: 'Stressed but trying to stay professional' }, | |
| dialog: [ | |
| { speaker: 1, text: "I have been overcharged on my account for three months in a row! I want every single cent back, and I want to know who is responsible for this." }, | |
| { speaker: 2, text: "I hear you, and I understand this is extremely frustrating. I want to get to the bottom of this right now. Can I pull up your account?" }, | |
| { speaker: 1, text: "I already called customer service twice and nothing was fixed. I was told the charges were 'under review.' It's been six weeks. Six weeks!" }, | |
| { speaker: 2, text: "That is absolutely not acceptable, and I'm sorry you've had to come in person to get this resolved. I am not going to let you leave today without a real answer." }, | |
| { speaker: 1, text: "I'm warning you β if this isn't fixed today, I'm calling corporate headquarters. I've already looked up the number. I will use it." }, | |
| { speaker: 2, text: "You have every right to do that, and I wouldn't blame you. But please give me the next few minutes to see exactly what's happened here and what I can fix right now." }, | |
| { speaker: 1, text: "I'm looking at my statements. That's $47 in charges I never agreed to. I want that money back in my account, not store credit, not a voucher β actual money." }, | |
| { speaker: 2, text: "I'm looking at the notes on your account right now. I can see the charges and I can also see that the previous agents marked it for review but never completed the refund. That is our failure, not yours." }, | |
| { speaker: 1, text: "So you admit it was a mistake. Then why did it take three calls and an in-person visit to get someone to say that?" }, | |
| { speaker: 2, text: "There is no good excuse for that. The system flagged a dispute but no one followed through to close it. I'm escalating your refund status to priority right now." }, | |
| { speaker: 1, text: "I want that in writing. I want to leave here with something that says exactly what I'm getting back and when." }, | |
| { speaker: 2, text: "Absolutely. I'll print out a refund confirmation right now with the amount, the timeline, and my direct contact information. If you don't see the credit in five business days, call me directly β not the general line." }, | |
| { speaker: 1, text: "I also want an explanation of how this happened so I know it won't happen again. I've been a customer here for eight years." }, | |
| { speaker: 2, text: "Eight years is significant, and you deserve better than this experience. I'm going to flag your account for a manual review of all future charges for the next six months, and I'll personally check in after the refund clears." }, | |
| { speaker: 1, text: "Alright. If the refund hits by Friday like you're promising, I won't be calling corporate. But I mean it β I will if it doesn't." } | |
| ] | |
| } | |
| ] | |
| }, | |
| 'conflict-resolution': { | |
| title: 'Conflict Resolution Scenarios', | |
| scenes: [ | |
| { | |
| title: 'Roommates Arguing About Chores', | |
| description: 'Two roommates need to resolve tension over household responsibilities', | |
| person1: { name: 'Roommate A', mood: 'Frustrated and feeling taken advantage of' }, | |
| person2: { name: 'Roommate B', mood: 'Defensive but willing to talk' }, | |
| dialog: [ | |
| { speaker: 1, text: "We need to talk. I've been doing all the dishes for the past two weeks straight and I'm completely tired of it." }, | |
| { speaker: 2, text: "I've been really swamped with work lately. I was honestly planning to do them this weekend." }, | |
| { speaker: 1, text: "That's what you said last weekend, and the weekend before. The sink is always full and I'm always the one dealing with it." }, | |
| { speaker: 2, text: "Okay, I know I've been slacking. But you don't have to come at me like this β I feel like I'm getting attacked." }, | |
| { speaker: 1, text: "I'm not attacking you. I'm frustrated because we made an agreement and it's not being honored. That's not an attack, it's a fact." }, | |
| { speaker: 2, text: "You're right, I haven't held up my end. I'm sorry. I've let things pile up and I know that's not fair to you." }, | |
| { speaker: 1, text: "Thank you for saying that. I just need us to be on the same page, because I can't keep doing this alone." }, | |
| { speaker: 2, text: "Agreed. Let's come up with an actual system β not just a vague 'we'll figure it out' thing, but something specific." }, | |
| { speaker: 1, text: "What if we split the week? You handle dishes Monday through Thursday, I do Friday through Sunday?" }, | |
| { speaker: 2, text: "That feels fair. What about the bigger stuff β cleaning the bathroom, taking out trash? We should cover that too while we're at it." }, | |
| { speaker: 1, text: "Good point. We could alternate those weekly, like we rotate who does the full clean-up each Sunday." }, | |
| { speaker: 2, text: "I like that. Simple enough that we both know what's expected. Let's write it down so neither of us can claim they forgot." }, | |
| { speaker: 1, text: "Agreed. And if one of us falls behind because of a rough week, just say something in advance instead of letting it build up." }, | |
| { speaker: 2, text: "That's fair. I should have just told you I was overwhelmed instead of hoping you wouldn't notice." }, | |
| { speaker: 1, text: "Exactly. I'd rather hear that than feel like I'm being ignored. Let's put the schedule on the fridge tonight." } | |
| ] | |
| }, | |
| { | |
| title: 'Neighbors Dispute Over Noise', | |
| description: 'Neighbors need to resolve a complaint about loud music', | |
| person1: { name: 'Neighbor (Complainant)', mood: 'Tired and irritated' }, | |
| person2: { name: 'Neighbor (Music Player)', mood: 'Surprised and apologetic' }, | |
| dialog: [ | |
| { speaker: 1, text: "Hi, I'm sorry to bother you, but I really need to talk to you about the music. It's been going on for a few nights now." }, | |
| { speaker: 2, text: "Oh wow β is it that loud? I honestly had no idea it was carrying through the walls like that." }, | |
| { speaker: 1, text: "Yeah, pretty loud. I have to be up at 5:30 for work and the last few nights I've barely slept." }, | |
| { speaker: 2, text: "I'm really sorry. I would want someone to tell me immediately if I were doing that. Why didn't you knock sooner?" }, | |
| { speaker: 1, text: "I didn't want to be the complaining neighbor, you know? But it's been affecting my whole day and I just couldn't let it go another night." }, | |
| { speaker: 2, text: "No, I'm glad you came over. Honestly, I'd rather know than have you quietly resenting me." }, | |
| { speaker: 1, text: "I don't resent you at all β I just need to actually sleep. I don't want you to stop playing music, just maybe keep it lower after 10 PM?" }, | |
| { speaker: 2, text: "That is completely reasonable. Ten o'clock is a totally fair cutoff and I should have been doing that anyway." }, | |
| { speaker: 1, text: "I really appreciate that. And if it ever slips, just know I'll knock instead of stewing about it. I promise I won't make a big deal of it." }, | |
| { speaker: 2, text: "Please do! I'd much rather get a quick knock than have this build into something bigger. I actually felt terrible when you just told me." }, | |
| { speaker: 1, text: "You shouldn't feel terrible β you just didn't know. That's on me for waiting too long to say something." }, | |
| { speaker: 2, text: "Well, we both learned something today. Can I ask what kind of music bothers you most? I play a lot of bass-heavy stuff late at night." }, | |
| { speaker: 1, text: "Honestly it's mainly the bass that travels through the wall. The melody stuff I barely notice." }, | |
| { speaker: 2, text: "That's actually super useful to know. I can turn the bass down specifically after 9 and keep the rest at a normal level. Would that help?" }, | |
| { speaker: 1, text: "That would be perfect, honestly. Thank you for being so easy to talk to about this. I was nervous to knock." } | |
| ] | |
| }, | |
| { | |
| title: 'Siblings Fighting Over TV Remote (Fun)', | |
| description: 'Two siblings argue over what to watch on TV', | |
| person1: { name: 'Older Sibling', mood: 'Annoyed and claiming seniority' }, | |
| person2: { name: 'Younger Sibling', mood: 'Stubborn and refusing to give in' }, | |
| dialog: [ | |
| { speaker: 1, text: "Give me the remote right now. I was here first and the game starts in five minutes." }, | |
| { speaker: 2, text: "Absolutely not! You watched your show for two hours yesterday. It is completely my turn." }, | |
| { speaker: 1, text: "The game is only live right now. Your show is on streaming β you can pause it, rewind it, watch it whenever you want." }, | |
| { speaker: 2, text: "I've been waiting all week for this episode! Mom specifically said we need to learn to share. Share, not 'whoever gets to the couch first wins.'" }, | |
| { speaker: 1, text: "It is not the same on my phone. The screen is tiny and the speakers are terrible. Be reasonable, it's just one game." }, | |
| { speaker: 2, text: "You always say that! 'Just one game, just one show,' and then somehow I'm always the one watching it on a laptop in my room." }, | |
| { speaker: 1, text: "That's not true! Last Saturday you had the TV from noon until 10 PM. I literally watched three movies on my phone that day." }, | |
| { speaker: 2, text: "Those were really good movies though. Okay fine, what if we actually compromise for once like adults?" }, | |
| { speaker: 1, text: "I'm listening. But if your compromise involves me missing the first quarter, it's already rejected." }, | |
| { speaker: 2, text: "Watch the first half of the game. Then I get the TV for two full hours β no interruptions, no 'just five more minutes.'" }, | |
| { speaker: 1, text: "Two hours is a lot. What if the game goes into overtime? I can't just turn it off mid-game." }, | |
| { speaker: 2, text: "Then you owe me an extra hour tomorrow. We keep score. I'll literally write it on the whiteboard in the kitchen." }, | |
| { speaker: 1, text: "...You know what, I kind of respect the structure of that proposal. Alright, but we shake on it. An actual handshake." }, | |
| { speaker: 2, text: "Done. And if you break the deal, I'm telling Mom and I'm bringing the whiteboard as evidence." }, | |
| { speaker: 1, text: "Fair enough. Now scoot over β the game's starting and you're blocking the screen with your head." } | |
| ] | |
| }, | |
| { | |
| title: 'Best Friends on the Verge of Ending the Friendship', | |
| description: 'A long-brewing conflict explodes when one friend finally confronts the other about years of feeling unsupported', | |
| intense: true, | |
| person1: { name: 'Friend A', mood: 'Heartbroken, furious, and finally saying everything' }, | |
| person2: { name: 'Friend B', mood: 'Blindsided, defensive, but deeply guilty' }, | |
| dialog: [ | |
| { speaker: 1, text: "I need to say something and I need you to actually hear me this time. I've been rehearsing this for weeks because I'm terrified of your reaction, but I can't keep pretending everything is fine." }, | |
| { speaker: 2, text: "You're scaring me. What's going on? Why do you sound like this?" }, | |
| { speaker: 1, text: "Because I'm exhausted. I have shown up for every single crisis in your life β your breakup, your job loss, your dad's illness. Every single one. And when my mom got sick last year, you called me twice. Twice in six months." }, | |
| { speaker: 2, text: "That's β I mean, I was going through a really hard time myself. I didn't realize you needed me that much. You always seem so put together." }, | |
| { speaker: 1, text: "I seem put together because I have to be! Because one of us always has to hold things together and it has always been me. I am not actually fine. I was never fine, I just didn't want to burden you." }, | |
| { speaker: 2, text: "I didn't know you felt that way. Why didn't you say anything sooner? I'm not a mind reader." }, | |
| { speaker: 1, text: "I tried. I said 'I'm struggling' and you changed the subject. I said 'I could really use a friend right now' and you said you were too busy and then posted photos from a party that same night." }, | |
| { speaker: 2, text: "Oh god. I remember that night. I didn't even think β I just... that's awful. I'm so sorry. I don't have an excuse for that." }, | |
| { speaker: 1, text: "I'm not telling you this to make you feel guilty. I'm telling you because I'm seriously considering whether this friendship is something I can keep investing in, and you deserve to know that." }, | |
| { speaker: 2, text: "Please don't say that. You are the most important person in my life. The thought of losing you β I can't even finish that sentence." }, | |
| { speaker: 1, text: "Then I need you to understand how serious this is. It's not a fight we can hug out in five minutes. Something has to actually change, or I can't keep doing this." }, | |
| { speaker: 2, text: "I hear you. I know saying sorry isn't enough right now, but I need you to know I am devastated that I made you feel invisible. That's the opposite of who I want to be to you." }, | |
| { speaker: 1, text: "I believe that you feel that now. But I need to see it, not just hear it. I need you to check in without me always being the one to reach out first." }, | |
| { speaker: 2, text: "I can do that. I want to do that. Can we start over β not pretend the last year didn't happen, but actually start being honest with each other from here?" }, | |
| { speaker: 1, text: "That's what I want too. But I'm not ready to just move on tonight. I need a little time, and I need you to respect that without panicking or disappearing." } | |
| ] | |
| } | |
| ] | |
| }, | |
| 'social-situations': { | |
| title: 'Social Situations', | |
| scenes: [ | |
| { | |
| title: 'Making Small Talk at a Party', | |
| description: 'Two people who just met try to start a conversation', | |
| person1: { name: 'Guest A', mood: 'Friendly but slightly nervous' }, | |
| person2: { name: 'Guest B', mood: 'Outgoing and welcoming' }, | |
| dialog: [ | |
| { speaker: 1, text: "Hi! I don't think we've met. I'm Alex β I work with Sarah from her current job." }, | |
| { speaker: 2, text: "Oh nice! I'm Jordan. Sarah and I go way back β we were roommates in college for three years." }, | |
| { speaker: 1, text: "Oh wow, so you've known her forever. She's always mentioning college friends but I didn't know who was who." }, | |
| { speaker: 2, text: "Ha! Yeah, I'm one of the chaos era friends. What do you do β are you in the same department as her?" }, | |
| { speaker: 1, text: "Sort of adjacent. I'm in software development. She's in project management so we work together a lot." }, | |
| { speaker: 2, text: "That's cool! I'm in graphic design now, which is funny because I studied marketing and swore I'd never do anything visual." }, | |
| { speaker: 1, text: "Oh interesting β what made you switch? I actually did the reverse, I was a biology major who ended up coding." }, | |
| { speaker: 2, text: "No way! Biology to software is such an unexpected path. How did that even happen?" }, | |
| { speaker: 1, text: "I took a coding elective in my junior year just to fill a credit, and I got completely hooked. I coded until 3 AM the night after that first class." }, | |
| { speaker: 2, text: "That's amazing when something just clicks like that. Do you work on anything interesting right now or is it all corporate backend stuff?" }, | |
| { speaker: 1, text: "Actually, I'm working on a health app right now that tracks recovery patterns. It's kind of the perfect mix of my biology background and coding β I'm really excited about it." }, | |
| { speaker: 2, text: "That sounds genuinely cool. There's so much noise in the health app space but real data-driven stuff is different. Who's the target user?" }, | |
| { speaker: 1, text: "Mainly people recovering from injuries, athletes who overtrain, that kind of thing. The gap is that most apps track performance, not recovery." }, | |
| { speaker: 2, text: "See, that's the kind of product thinking I respect β solving a real gap instead of copying what already exists. I'd love to hear more about it." }, | |
| { speaker: 1, text: "I would love to talk about it more β I don't get to geek out about it much. Want to grab some food? I think I saw a really good-looking charcuterie board over there." } | |
| ] | |
| }, | |
| { | |
| title: 'Declining an Invitation Politely', | |
| description: 'Someone needs to turn down a social invitation without hurting feelings', | |
| person1: { name: 'Friend (Inviting)', mood: 'Excited and hopeful' }, | |
| person2: { name: 'Friend (Declining)', mood: 'Apologetic but firm' }, | |
| dialog: [ | |
| { speaker: 1, text: "Hey! So a bunch of us are going to the Midnight Riders concert on Saturday night. You have to come β it's going to be incredible." }, | |
| { speaker: 2, text: "Oh fun! I love them. Who else is going?" }, | |
| { speaker: 1, text: "Me, Tyler, Priya, and maybe two of Priya's friends from her work. We're getting dinner first and then heading over." }, | |
| { speaker: 2, text: "That sounds like such a great night. I really wish I could, but I actually can't make Saturday β I have a family thing I already committed to." }, | |
| { speaker: 1, text: "No! Can you get out of it? This is The Midnight Riders. They barely ever tour near us." }, | |
| { speaker: 2, text: "I know, and trust me I am genuinely bummed. But it's my grandma's 80th birthday dinner. There's no version of the world where I skip that." }, | |
| { speaker: 1, text: "Okay, 80th birthday is a legitimate excuse. That's a real event. I'll allow it." }, | |
| { speaker: 2, text: "Ha! Thank you for your approval. I really am sad to miss it though β please take a million videos." }, | |
| { speaker: 1, text: "Obviously. I'm going to send you a voice note of the entire encore whether you want it or not." }, | |
| { speaker: 2, text: "I absolutely want it. And I'm serious β let me know when you guys plan the next thing. I want to actually be there for one." }, | |
| { speaker: 1, text: "Actually, we were talking about doing that new immersive escape room next month β the one that's supposedly terrifyingly hard." }, | |
| { speaker: 2, text: "Count me in immediately. I love escape rooms and I love suffering, so that's perfect." }, | |
| { speaker: 1, text: "I'll keep you in the group chat loop. Seriously though, your grandma is lucky to have you show up for her like that." }, | |
| { speaker: 2, text: "She means a lot to me. Concerts come back around, but she only turns 80 once." }, | |
| { speaker: 1, text: "Okay, now you made it wholesome and I can't be annoyed anymore. Have fun at the dinner β and I'll send you the concert videos." } | |
| ] | |
| }, | |
| { | |
| title: 'Awkward Elevator Encounter (Fun)', | |
| description: 'Two people stuck in an elevator trying to make conversation', | |
| person1: { name: 'Person A', mood: 'Awkward and trying too hard' }, | |
| person2: { name: 'Person B', mood: 'Amused and going with it' }, | |
| dialog: [ | |
| { speaker: 1, text: "So... nice weather we're having out there, right? Really lovely day." }, | |
| { speaker: 2, text: "We're in an elevator. With no windows. I genuinely cannot verify that claim." }, | |
| { speaker: 1, text: "Right. Yes. That is an excellent point and I have no rebuttal. Let's just pretend I didn't say that." }, | |
| { speaker: 2, text: "Already forgotten. Fresh start β go ahead." }, | |
| { speaker: 1, text: "Um... do you work in this building?" }, | |
| { speaker: 2, text: "Well, I'm standing in the elevator pressing a floor button, so statistically... probably yes." }, | |
| { speaker: 1, text: "Ha! Yeah, that was another bad one. I promise I am a normal, functional person in every other context." }, | |
| { speaker: 2, text: "Elevator small talk is just uniquely brutal. There's no good answer to anything. Even 'how are you' feels wrong in an elevator." }, | |
| { speaker: 1, text: "Right? Like what are you supposed to say β 'Great, just standing here at close range with a stranger for thirty seconds.' It's too honest." }, | |
| { speaker: 2, text: "Exactly! And the worst part is the moment one person speaks, the other feels obligated to respond, and now we're both trapped." }, | |
| { speaker: 1, text: "We should just establish a social contract β nobody has to talk in elevators. Complete amnesty. We all just look at our phones and pretend." }, | |
| { speaker: 2, text: "I would sign that petition immediately. Though I do appreciate that this particular elevator conversation has been better than average." }, | |
| { speaker: 1, text: "High bar we've cleared: better than staring at the floor numbers in silence." }, | |
| { speaker: 2, text: "The floor numbers are actually pretty interesting when you really commit to looking at them. Anyway β this is my floor." }, | |
| { speaker: 1, text: "Well, it's been a genuine pleasure. Best thirty seconds of small talk I've had all week, possibly all month." } | |
| ] | |
| }, | |
| { | |
| title: 'Confronting a Friend About a Public Humiliation', | |
| description: 'Someone discovers their close friend mocked them in front of a group, forcing a painful and charged confrontation', | |
| intense: true, | |
| person1: { name: 'Hurt Friend', mood: 'Devastated, humiliated, and barely holding it together' }, | |
| person2: { name: 'Friend Who Caused the Hurt', mood: 'Caught off guard, defensive, then crumbling with guilt' }, | |
| dialog: [ | |
| { speaker: 1, text: "I need to talk to you right now, and I need you to not interrupt me until I'm done. Can you do that?" }, | |
| { speaker: 2, text: "You're freaking me out. What happened? Are you okay?" }, | |
| { speaker: 1, text: "No, I'm not okay. Maya told me what you said about me at Priya's party. She showed me the group chat. I saw the screenshots." }, | |
| { speaker: 2, text: "Oh god. I β it wasn't β I didn't mean for it to get back to you. It was just stupid venting, it wasn't serious." }, | |
| { speaker: 1, text: "You called me exhausting. You said spending time with me feels like a chore. In a group chat with eight people I know, some of whom I see every week." }, | |
| { speaker: 2, text: "I know how that sounds. I was in a bad mood and I said something awful and I can't take it back, and I am so ashamed that you had to read that." }, | |
| { speaker: 1, text: "Do you know what it felt like to read that? I've been crying since last night. I keep replaying every conversation we've had wondering what you actually think of me." }, | |
| { speaker: 2, text: "Please don't do that. What I said does not reflect how I actually feel about you. I was being petty and vicious and it was completely wrong." }, | |
| { speaker: 1, text: "But why did you even think it? That doesn't just come from nowhere. You don't say something like that unless part of you means it." }, | |
| { speaker: 2, text: "I think I was frustrated about something between us that I never actually said out loud. That's not an excuse β saying it behind your back instead of to your face is cowardly and cruel." }, | |
| { speaker: 1, text: "If you were frustrated with me, you should have told me. I would have listened. I always listen to you. That's literally what I do." }, | |
| { speaker: 2, text: "I know. And I took that for granted. I took you for granted, and you deserve so much better than how I handled this." }, | |
| { speaker: 1, text: "I don't know how to trust you right now. I don't know how to sit across from you and feel safe saying anything after knowing that's how you talk about me when I'm not there." }, | |
| { speaker: 2, text: "That's fair. I don't expect you to trust me right now. I broke something and I know it. I just need you to know that I would do anything to fix it." }, | |
| { speaker: 1, text: "I'm not ready to say it's okay, because it's not okay. But I also don't want to just throw away four years of friendship without giving you the chance to actually prove that you mean that." } | |
| ] | |
| } | |
| ] | |
| } | |
| }; | |
| let currentCategory = null; | |
| let currentScene = null; | |
| function showScenes(category) { | |
| currentCategory = category; | |
| const categoryData = scenarios[category]; | |
| document.getElementById('categorySelection').classList.add('hidden'); | |
| document.getElementById('sceneSelection').classList.remove('hidden'); | |
| document.getElementById('sceneSelectionTitle').textContent = categoryData.title; | |
| const sceneList = document.getElementById('sceneList'); | |
| sceneList.innerHTML = ''; | |
| categoryData.scenes.forEach((scene, index) => { | |
| const sceneCard = document.createElement('div'); | |
| sceneCard.className = scene.intense ? 'scene-card intense' : 'scene-card'; | |
| sceneCard.onclick = () => showScript(index); | |
| sceneCard.innerHTML = ` | |
| <div class="scene-title"> | |
| ${scene.title} | |
| ${scene.intense ? '<span class="intense-badge">π₯ Intense</span>' : ''} | |
| </div> | |
| <div class="scene-description">${scene.description}</div> | |
| `; | |
| sceneList.appendChild(sceneCard); | |
| }); | |
| } | |
| function showScript(sceneIndex) { | |
| currentScene = sceneIndex; | |
| const scene = scenarios[currentCategory].scenes[sceneIndex]; | |
| document.getElementById('sceneSelection').classList.add('hidden'); | |
| document.getElementById('scriptDisplay').classList.remove('hidden'); | |
| const rolesHeader = document.getElementById('rolesHeader'); | |
| rolesHeader.innerHTML = ` | |
| <div class="role-card person1"> | |
| <div class="role-name">${scene.person1.name}</div> | |
| <div class="role-mood">${scene.person1.mood}</div> | |
| </div> | |
| <div class="role-card person2"> | |
| <div class="role-name">${scene.person2.name}</div> | |
| <div class="role-mood">${scene.person2.mood}</div> | |
| </div> | |
| `; | |
| const dialogContainer = document.getElementById('dialogContainer'); | |
| dialogContainer.innerHTML = ''; | |
| scene.dialog.forEach(line => { | |
| const dialogLine = document.createElement('div'); | |
| dialogLine.className = `dialog-line person${line.speaker}`; | |
| const speakerName = line.speaker === 1 ? scene.person1.name : scene.person2.name; | |
| dialogLine.innerHTML = ` | |
| <div class="speaker">${speakerName}:</div> | |
| <div class="dialog-text">${line.text}</div> | |
| `; | |
| dialogContainer.appendChild(dialogLine); | |
| }); | |
| } | |
| function backToScenes() { | |
| document.getElementById('scriptDisplay').classList.add('hidden'); | |
| document.getElementById('sceneSelection').classList.remove('hidden'); | |
| } | |
| function backToCategories() { | |
| document.getElementById('scriptDisplay').classList.add('hidden'); | |
| document.getElementById('sceneSelection').classList.add('hidden'); | |
| document.getElementById('categorySelection').classList.remove('hidden'); | |
| currentCategory = null; | |
| currentScene = null; | |
| } | |
| </script> | |
| </body> | |
| </html> |