Skip to content

Commit 4b28c51

Browse files
committed
update drag and drop content and styling
1 parent 72863cc commit 4b28c51

5 files changed

Lines changed: 62 additions & 30 deletions

File tree

ims-arcade.html

Lines changed: 36 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,6 @@
161161
<!-- =========================== Quiz=========================== -->
162162
<section id="quiz" class="white-bg card-section">
163163
<h2>Quiz</h2>
164-
<h3>IMS topic</h3>
165164
<div class="activity-container">
166165
<div class="activity">
167166
<h3 id="feedback"></h3>
@@ -174,7 +173,6 @@ <h3 id="feedback"></h3>
174173
<!-- =========================== Flip Cards =========================== -->
175174
<section id="flip-cards" class="light-gray-bg card-section">
176175
<h2>Flip cards</h2>
177-
<h3>IMS Regions</h3>
178176
<div id="h5p-container-flipc" style="width: 100%"></div>
179177
<script>
180178
document.addEventListener("DOMContentLoaded", function () {
@@ -190,9 +188,8 @@ <h3>IMS Regions</h3>
190188
</section>
191189

192190
<!-- =========================== Crossword =========================== -->
193-
<section id="crossword" class="light-gray-bg card-section">
191+
<section id="crossword" class="white-bg card-section">
194192
<h2>Crossword</h2>
195-
<h3>IMS topics</h3>
196193
<div id="h5p-container-cw" style="width: 100%"></div>
197194
<script>
198195
document.addEventListener("DOMContentLoaded", function () {
@@ -208,22 +205,42 @@ <h3>IMS topics</h3>
208205
</section>
209206

210207
<!-- =========================== Drag-and-drop =========================== -->
211-
<section id="drag-and-drop" class="white-bg card-section">
208+
<section id="drag-and-drop" class="light-gray-bg card-section">
212209
<h2>Drag and Drop</h2>
213-
<h3>IMS topic</h3>
214210
<div class="game-container">
215-
<p class="sentence">
216-
The <span class="drop-zone"></span> stores application and
217-
database metadata when IMS managed ACBs are implemented.
218-
</p>
219-
<p class="sentence">
220-
The <span class="drop-zone"></span> stores ACB blocks when IMS
221-
managed ACBs are implemented.
222-
</p>
223-
<p class="sentence">
224-
The IMS directory is a <span class="drop-zone"></span> that
225-
automatically reclaims space with dynamic space allocation.
226-
</p>
211+
<ol>
212+
<li class="sentence">
213+
Allows IMS to provide present database data in different ways
214+
and to have any data redundancy be managed by IMS software:
215+
<span class="drop-zone"></span>
216+
</li>
217+
<li class="sentence">
218+
Provides an alternate route into the database:
219+
<span class="drop-zone"></span>
220+
</li>
221+
<li class="sentence">
222+
The only types of segments in the secondary index database where
223+
the content of specified fields in the source segment is
224+
duplicated:
225+
<span class="drop-zone"></span>
226+
</li>
227+
<li class="sentence">
228+
Suppresses certain index entries based on the content of the
229+
designated field of a source segments:
230+
<span class="drop-zone"></span>
231+
</li>
232+
<li class="sentence">
233+
Segments that are used to store data that are intended to vary
234+
in length over time such as text fields:
235+
<span class="drop-zone"></span>
236+
</li>
237+
<li class="sentence">
238+
Allows applications to see only specific fields within a segment
239+
but cannot be allowed to see other information within the same
240+
segment:
241+
<span class="drop-zone"></span>
242+
</li>
243+
</ol>
227244
<div id="word-bank" class="word-bank">
228245
<!-- Draggable words will be added here by JavaScript -->
229246
</div>
@@ -236,9 +253,8 @@ <h3>IMS topic</h3>
236253
</section>
237254

238255
<!-- =========================== Flashcards =========================== -->
239-
<section id="flashcards" class="light-gray-bg card-section">
256+
<section id="flashcards" class="white-bg card-section">
240257
<h2>Flashcards</h2>
241-
<h3>IMS topics</h3>
242258
<div id="h5p-container-fc" style="width: 100%"></div>
243259
<script>
244260
document.addEventListener("DOMContentLoaded", function () {

interactive-activities/fill-in-blank/fill-in-blank.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,13 @@
44
}
55

66
.sentence {
7-
margin-bottom: 2rem;
7+
margin-bottom: 1em;
88
line-height: 2;
9-
font-size: 1.5em;
109
}
1110

1211
.drop-zone {
1312
display: inline-block;
14-
width: 140px; /* Adjust based on expected word length */
13+
width: 300px; /* Adjust based on expected word length */
1514
height: 30px;
1615
border-bottom: 2px dashed #ccc;
1716
margin: 0 5px;
@@ -28,10 +27,11 @@
2827
display: flex;
2928
justify-content: center;
3029
flex-wrap: wrap;
31-
gap: 1rem;
30+
gap: 2rem;
3231
margin-top: 2rem;
3332
border-top: 2px solid #eee;
3433
padding-top: 1rem;
34+
width: 90%;
3535
}
3636

3737
.word-item {

interactive-activities/fill-in-blank/fill-in-blank.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,24 @@ document.addEventListener("DOMContentLoaded", () => {
77
let zoneArr;
88

99
// Define the words to be dragged and shuffled
10-
const words = ["IMS catalog", "PDS", "PDSE", "IMS directory", "ACBLIB"];
11-
const correctWords = ["IMS catalog", "IMS directory", "PDSE"];
10+
const words = [
11+
"Field-level sensitivity",
12+
"Segment-level sensitivity",
13+
"Variable length segments",
14+
"Fixed length segments",
15+
"Logical relationships",
16+
"Secondary index",
17+
"Sparse secondary index",
18+
"Pointer segment",
19+
];
20+
const correctWords = [
21+
"Logical relationships",
22+
"Secondary index",
23+
"Pointer segment",
24+
"Sparse secondary index",
25+
"Variable length segments",
26+
"Field-level sensitivity",
27+
];
1228

1329
let draggedItem = null;
1430
let attemptComplete = false;

interactive-activities/multi-choice-set/multi-choice-set.css

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@
77
.activity-container {
88
background-color: #fff;
99
width: 100%;
10-
padding: 2em;
1110
flex-flow: row nowrap;
1211
align-items: center;
1312
justify-content: center;
1413
}
1514

1615
.activity {
17-
background-color: #fff;
16+
background-color: #f9f9f9;
17+
padding: 2em 3em;
1818
}
1919

2020
.quiz h2 {
@@ -30,7 +30,7 @@
3030
.btn {
3131
padding: 0.2em 2em 0.2em 0.5em;
3232
margin: 0.5em 0;
33-
border: 2px #fff solid;
33+
border: 2px #f9f9f9 solid;
3434
}
3535

3636
.disable {

interactive-activities/multi-choice-set/multi-choice-set.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const questions = [
1717
{ text: "PCB", correct: false },
1818
{ text: "AIB", correct: false },
1919
{ text: "Segment search argument (SSA)", correct: true },
20-
{ text: "COUNT parameter", correct: true },
20+
{ text: "COUNT parameter", correct: false },
2121
],
2222
},
2323
{

0 commit comments

Comments
 (0)