Skip to content

Commit 293fcd6

Browse files
author
Brian Genisio
committed
making more tweaks to the Matching activity
1 parent 616a5a4 commit 293fcd6

File tree

5 files changed

+32
-76
lines changed

5 files changed

+32
-76
lines changed

data/answer.md

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -10,50 +10,54 @@ __Responses__
1010

1111
1. **Item 1**
1212
- Selected Answer: No answer selected
13-
- Correct Answer: Discomfort
13+
- Correct Answer: Charismatic
1414
- Result: ✗ Incorrect
1515

1616
2. **Item 2**
1717
- Selected Answer: No answer selected
18-
- Correct Answer: Engagement
18+
- Correct Answer: Thinker
1919
- Result: ✗ Incorrect
2020

2121
3. **Item 3**
2222
- Selected Answer: No answer selected
23-
- Correct Answer: Tension
23+
- Correct Answer: Skeptic
2424
- Result: ✗ Incorrect
2525

2626
4. **Item 4**
2727
- Selected Answer: No answer selected
28-
- Correct Answer: Frustration
28+
- Correct Answer: Follower
2929
- Result: ✗ Incorrect
3030

3131
5. **Item 5**
3232
- Selected Answer: Frustration
33-
- Correct Answer: Relief
33+
- Correct Answer: Controller
3434
- Result: ✗ Incorrect
3535

3636
__Markdown With Blanks__
3737

38-
> **Situation 1**: A teammate says they’re feeling stressed and overwhelmed. [[blank:Discomfort]]
38+
Match each description to the decision-making style it describes.
3939

4040

41-
> **Subtle Cue 2**: Several people are nodding, smiling, and leaning forward during a discussion. [[blank:Engagement]]
4241

42+
> This type gets energized by bold ideas and breakthrough thinking. They absorb information rapidly and want to see bottom-line results. Visual aids showing competitive advantage are essential when presenting to them. [[blank:Charismatic]]
4343
44-
> **Subtle Cue 3**: Voices are raised and people are talking over each other. [[blank:Tension]]
4544

45+
> This type enjoys intellectual challenges and takes pride in being methodical and precise. They genuinely enjoy processing comprehensive data and want to understand your methodology as much as your conclusions. [[blank:Thinker]]
4646
47-
> **Subtle Cue 4**: Someone sighs and looks away when a topic comes up. [[blank:Frustration]]
4847

48+
> This type is suspicious by nature and will aggressively challenge every data point looking for flaws. They are primarily influenced by the credibility of the presenter and need endorsements from people they trust. [[blank:Skeptic]]
4949
50-
> **Subtle Cue 5**: Laughter and relaxed posture spread through the group after a team win. [[blank:Relief]]
50+
51+
> This type makes decisions based on how similar initiatives have worked in the past. They want proven methods, trusted brands, and case studies from companies they admire rather than breakthrough innovations. [[blank:Follower]]
52+
53+
54+
> This type fears feeling out of control, especially regarding information. They want structured raw data they can personally verify and multiple scenarios to evaluate rather than polished conclusions. [[blank:Controller]]
5155
5256
__Suggested Answers__
5357

54-
- Tension
55-
- Engagement
56-
- Frustration
57-
- Relief
58-
- Discomfort
58+
- Thinker
59+
- Follower
60+
- Skeptic
61+
- Controller
62+
- Charismatic
5963

data/question.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,22 @@ Matching
44

55
__Markdown With Blanks__
66

7-
> **Situation 1**: A teammate says they’re feeling stressed and overwhelmed. [[blank:Discomfort]]
7+
Match each description to the decision-making style it describes.
88

9-
> **Subtle Cue 2**: Several people are nodding, smiling, and leaning forward during a discussion. [[blank:Engagement]]
9+
> This type gets energized by bold ideas and breakthrough thinking. They absorb information rapidly and want to see bottom-line results. Visual aids showing competitive advantage are essential when presenting to them. [[blank:Charismatic]]
1010
11-
> **Subtle Cue 3**: Voices are raised and people are talking over each other. [[blank:Tension]]
11+
> This type enjoys intellectual challenges and takes pride in being methodical and precise. They genuinely enjoy processing comprehensive data and want to understand your methodology as much as your conclusions. [[blank:Thinker]]
1212
13-
> **Subtle Cue 4**: Someone sighs and looks away when a topic comes up. [[blank:Frustration]]
13+
> This type is suspicious by nature and will aggressively challenge every data point looking for flaws. They are primarily influenced by the credibility of the presenter and need endorsements from people they trust. [[blank:Skeptic]]
1414
15-
> **Subtle Cue 5**: Laughter and relaxed posture spread through the group after a team win. [[blank:Relief]]
15+
> This type makes decisions based on how similar initiatives have worked in the past. They want proven methods, trusted brands, and case studies from companies they admire rather than breakthrough innovations. [[blank:Follower]]
16+
17+
> This type fears feeling out of control, especially regarding information. They want structured raw data they can personally verify and multiple scenarios to evaluate rather than polished conclusions. [[blank:Controller]]
1618
1719
__Suggested Answers__
1820

19-
- Discomfort
20-
- Engagement
21-
- Tension
22-
- Frustration
23-
- Relief
21+
- Charismatic
22+
- Thinker
23+
- Skeptic
24+
- Follower
25+
- Controller

public/modules/matching.css

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -45,35 +45,6 @@
4545
overflow-x: hidden;
4646
}
4747

48-
.matching-header {
49-
display: flex;
50-
gap: 10px;
51-
align-items: flex-end;
52-
padding-bottom: 16px;
53-
padding-left: 0;
54-
padding-right: 0;
55-
padding-top: 0;
56-
margin-bottom: 0;
57-
}
58-
59-
.matching-heading {
60-
flex: 1 0 0;
61-
color: var(--Colors-Text-Body-Strong);
62-
margin: 0;
63-
padding: 0;
64-
min-height: 0;
65-
min-width: 0;
66-
position: relative;
67-
flex-shrink: 0;
68-
}
69-
70-
.matching-heading p {
71-
margin: 0;
72-
padding: 0;
73-
line-height: inherit;
74-
max-width: 585px;
75-
}
76-
7748
.matching-actions {
7849
display: flex;
7950
gap: 6px;
@@ -142,7 +113,6 @@
142113
}
143114

144115
.horizontal-cards-card {
145-
min-height: 284px !important;
146116
width: 390px !important;
147117
min-width: 390px !important;
148118
}

public/modules/matching.js

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -15,35 +15,15 @@ export function initMatching({ activity, state, postResults, persistedAnswers =
1515
// Create the matching container
1616
elContainer.innerHTML = `
1717
<div id="matching" class="matching">
18-
<div class="matching-header">
19-
<div class="matching-heading heading-small"></div>
20-
</div>
2118
<div id="matching-cards-container" class="matching-cards-container"></div>
2219
<div id="matching-choices" class="matching-choices" role="listbox" aria-label="Answer choices"></div>
2320
</div>
2421
`;
2522

2623
const elMatching = document.getElementById('matching');
27-
const elMatchingHeader = elMatching.querySelector('.matching-header');
28-
const elMatchingHeading = elMatching.querySelector('.matching-heading');
2924
const elMatchingCardsContainer = document.getElementById('matching-cards-container');
3025
const elMatchingChoices = document.getElementById('matching-choices');
3126

32-
// Set the prompt content as the heading if it exists
33-
if (elMatchingHeading && (matching.promptHtml || matching.prompt)) {
34-
elMatchingHeading.innerHTML = matching.promptHtml || matching.prompt;
35-
// Check if content is actually present after setting
36-
const hasContent = elMatchingHeading.textContent.trim().length > 0;
37-
if (!hasContent && elMatchingHeader) {
38-
elMatchingHeader.style.display = 'none';
39-
}
40-
} else {
41-
// Hide header if no prompt data
42-
if (elMatchingHeader) {
43-
elMatchingHeader.style.display = 'none';
44-
}
45-
}
46-
4727
// Selection state - initialize with persisted answers if available
4828
const selectedByItemIdx = matching.items.map((_, idx) => {
4929
if (persistedAnswers && persistedAnswers[idx] !== undefined) {

0 commit comments

Comments
 (0)