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html>
|
2 |
+
<html lang="en">
|
3 |
+
<head>
|
4 |
+
<meta charset="UTF-8">
|
5 |
+
<title>Networking Practice Game</title>
|
6 |
+
<style>
|
7 |
+
/* General Styles */
|
8 |
+
body {
|
9 |
+
font-family: Arial, sans-serif;
|
10 |
+
background: #f2f2f2;
|
11 |
+
margin: 0;
|
12 |
+
padding: 0;
|
13 |
+
}
|
14 |
+
.container {
|
15 |
+
max-width: 800px;
|
16 |
+
margin: 50px auto;
|
17 |
+
padding: 20px;
|
18 |
+
background: #fff;
|
19 |
+
border-radius: 8px;
|
20 |
+
box-shadow: 0 0 10px rgba(0,0,0,0.1);
|
21 |
+
}
|
22 |
+
h1, h2 {
|
23 |
+
text-align: center;
|
24 |
+
color: #333;
|
25 |
+
}
|
26 |
+
p {
|
27 |
+
text-align: center;
|
28 |
+
}
|
29 |
+
.feedback {
|
30 |
+
margin-top: 15px;
|
31 |
+
text-align: center;
|
32 |
+
font-weight: bold;
|
33 |
+
}
|
34 |
+
.error {
|
35 |
+
color: red;
|
36 |
+
}
|
37 |
+
.success {
|
38 |
+
color: green;
|
39 |
+
}
|
40 |
+
button {
|
41 |
+
display: block;
|
42 |
+
margin: 20px auto;
|
43 |
+
padding: 10px 20px;
|
44 |
+
font-size: 16px;
|
45 |
+
border: none;
|
46 |
+
background: #4dd0e1;
|
47 |
+
color: #fff;
|
48 |
+
border-radius: 5px;
|
49 |
+
cursor: pointer;
|
50 |
+
}
|
51 |
+
button:hover {
|
52 |
+
background: #26c6da;
|
53 |
+
}
|
54 |
+
input[type="text"], textarea {
|
55 |
+
width: 100%;
|
56 |
+
padding: 10px;
|
57 |
+
margin: 10px 0;
|
58 |
+
border: 1px solid #ccc;
|
59 |
+
border-radius: 5px;
|
60 |
+
font-size: 16px;
|
61 |
+
}
|
62 |
+
.hidden {
|
63 |
+
display: none;
|
64 |
+
}
|
65 |
+
/* Persona Cards */
|
66 |
+
.persona-list {
|
67 |
+
display: flex;
|
68 |
+
flex-wrap: wrap;
|
69 |
+
justify-content: center;
|
70 |
+
margin: 20px 0;
|
71 |
+
}
|
72 |
+
.persona {
|
73 |
+
background: #e0f7fa;
|
74 |
+
border: 2px solid #4dd0e1;
|
75 |
+
border-radius: 8px;
|
76 |
+
width: 180px;
|
77 |
+
padding: 15px;
|
78 |
+
text-align: center;
|
79 |
+
cursor: pointer;
|
80 |
+
margin: 10px;
|
81 |
+
transition: transform 0.2s, background 0.2s;
|
82 |
+
}
|
83 |
+
.persona:hover {
|
84 |
+
transform: scale(1.05);
|
85 |
+
background: #b2ebf2;
|
86 |
+
}
|
87 |
+
</style>
|
88 |
+
</head>
|
89 |
+
<body>
|
90 |
+
<div class="container">
|
91 |
+
<h1>Networking Practice Game</h1>
|
92 |
+
|
93 |
+
<!-- Level 1: Locate the Mentor -->
|
94 |
+
<div id="level1">
|
95 |
+
<h2>Level 1: Find Your Mentor</h2>
|
96 |
+
<p>Your purpose: <strong>Find a mentor</strong></p>
|
97 |
+
<p>Select the person that fits this purpose:</p>
|
98 |
+
<div class="persona-list">
|
99 |
+
<div class="persona" data-role="mentor">
|
100 |
+
<h3>Mentor</h3>
|
101 |
+
<p>An experienced guide who can offer wisdom.</p>
|
102 |
+
</div>
|
103 |
+
<div class="persona" data-role="job">
|
104 |
+
<h3>Job Opportunity</h3>
|
105 |
+
<p>Someone who might help you get a job.</p>
|
106 |
+
</div>
|
107 |
+
<div class="persona" data-role="sales">
|
108 |
+
<h3>Sales Contact</h3>
|
109 |
+
<p>Someone who might help you make a sale.</p>
|
110 |
+
</div>
|
111 |
+
<div class="persona" data-role="filler">
|
112 |
+
<h3>Fun Filler</h3>
|
113 |
+
<p>Fun to talk to, but not directly helpful.</p>
|
114 |
+
</div>
|
115 |
+
</div>
|
116 |
+
<div id="level1Feedback" class="feedback"></div>
|
117 |
+
</div>
|
118 |
+
|
119 |
+
<!-- Level 2: Initiate Conversation -->
|
120 |
+
<div id="level2" class="hidden">
|
121 |
+
<h2>Level 2: Initiate a Meaningful Conversation</h2>
|
122 |
+
<p>Now that you've identified the mentor, start a conversation by asking an interesting question or sharing a unique story.</p>
|
123 |
+
<textarea id="conversationInput" rows="4" placeholder="Type your conversation starter here..."></textarea>
|
124 |
+
<button id="submitConversation">Send Message</button>
|
125 |
+
<div id="level2Feedback" class="feedback"></div>
|
126 |
+
</div>
|
127 |
+
|
128 |
+
<!-- Level 3: Follow-Up Challenge -->
|
129 |
+
<div id="level3" class="hidden">
|
130 |
+
<h2>Level 3: Follow-Up Challenge</h2>
|
131 |
+
<p>Recall a specific detail the mentor mentioned during your conversation. For example, the mentor mentioned they love <strong>sailing</strong>. What was it?</p>
|
132 |
+
<input type="text" id="followUpInput" placeholder="Enter the detail here...">
|
133 |
+
<button id="submitFollowUp">Submit Follow-Up</button>
|
134 |
+
<div id="level3Feedback" class="feedback"></div>
|
135 |
+
</div>
|
136 |
+
</div>
|
137 |
+
|
138 |
+
<script>
|
139 |
+
// Level 1: Persona selection
|
140 |
+
const personas = document.querySelectorAll('.persona');
|
141 |
+
const level1Feedback = document.getElementById('level1Feedback');
|
142 |
+
const level1Div = document.getElementById('level1');
|
143 |
+
const level2Div = document.getElementById('level2');
|
144 |
+
|
145 |
+
personas.forEach(persona => {
|
146 |
+
persona.addEventListener('click', () => {
|
147 |
+
const role = persona.getAttribute('data-role');
|
148 |
+
if (role === 'mentor') {
|
149 |
+
level1Feedback.textContent = "Correct! You've found the mentor.";
|
150 |
+
level1Feedback.classList.remove('error');
|
151 |
+
level1Feedback.classList.add('success');
|
152 |
+
// Move to Level 2 after a brief pause
|
153 |
+
setTimeout(() => {
|
154 |
+
level1Div.classList.add('hidden');
|
155 |
+
level2Div.classList.remove('hidden');
|
156 |
+
}, 1000);
|
157 |
+
} else {
|
158 |
+
level1Feedback.textContent = "That's not the right person. Please choose the mentor.";
|
159 |
+
level1Feedback.classList.remove('success');
|
160 |
+
level1Feedback.classList.add('error');
|
161 |
+
}
|
162 |
+
});
|
163 |
+
});
|
164 |
+
|
165 |
+
// Level 2: Conversation initiation
|
166 |
+
const submitConversationBtn = document.getElementById('submitConversation');
|
167 |
+
const conversationInput = document.getElementById('conversationInput');
|
168 |
+
const level2Feedback = document.getElementById('level2Feedback');
|
169 |
+
const level3Div = document.getElementById('level3');
|
170 |
+
|
171 |
+
submitConversationBtn.addEventListener('click', () => {
|
172 |
+
const text = conversationInput.value.trim();
|
173 |
+
// Basic validation: message should be long enough and include either a question or narrative trigger
|
174 |
+
if (text.length < 20) {
|
175 |
+
level2Feedback.textContent = "Your message is too short. Please provide more detail.";
|
176 |
+
level2Feedback.classList.remove('success');
|
177 |
+
level2Feedback.classList.add('error');
|
178 |
+
} else if (!text.includes("?") && !text.toLowerCase().includes("story")) {
|
179 |
+
level2Feedback.textContent = "Try to ask a question or share a unique story to engage the mentor.";
|
180 |
+
level2Feedback.classList.remove('success');
|
181 |
+
level2Feedback.classList.add('error');
|
182 |
+
} else {
|
183 |
+
level2Feedback.textContent = "Great conversation starter! The mentor is engaged.";
|
184 |
+
level2Feedback.classList.remove('error');
|
185 |
+
level2Feedback.classList.add('success');
|
186 |
+
// Proceed to Level 3 after a short delay
|
187 |
+
setTimeout(() => {
|
188 |
+
document.getElementById('level2').classList.add('hidden');
|
189 |
+
level3Div.classList.remove('hidden');
|
190 |
+
}, 1000);
|
191 |
+
}
|
192 |
+
});
|
193 |
+
|
194 |
+
// Level 3: Follow-up challenge
|
195 |
+
const submitFollowUpBtn = document.getElementById('submitFollowUp');
|
196 |
+
const followUpInput = document.getElementById('followUpInput');
|
197 |
+
const level3Feedback = document.getElementById('level3Feedback');
|
198 |
+
const expectedDetail = "sailing"; // The detail that the mentor mentioned
|
199 |
+
|
200 |
+
submitFollowUpBtn.addEventListener('click', () => {
|
201 |
+
const answer = followUpInput.value.trim().toLowerCase();
|
202 |
+
if (answer.includes(expectedDetail)) {
|
203 |
+
level3Feedback.textContent = "Excellent! You've recalled the detail and can follow up effectively.";
|
204 |
+
level3Feedback.classList.remove('error');
|
205 |
+
level3Feedback.classList.add('success');
|
206 |
+
} else {
|
207 |
+
level3Feedback.textContent = "That's not quite right. Remember, the mentor mentioned they love sailing.";
|
208 |
+
level3Feedback.classList.remove('success');
|
209 |
+
level3Feedback.classList.add('error');
|
210 |
+
}
|
211 |
+
});
|
212 |
+
</script>
|
213 |
+
</body>
|
214 |
</html>
|
215 |
+
|