/
5-key-practices.html
591 lines (502 loc) · 28.9 KB
/
5-key-practices.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
<section class="key_practices_button_container">
<!-- <input type="radio" id="btn1" checked="checked">
<input type="radio" id="btn2">
<input type="radio" id="btn3">
<input type="radio" id="btn4" >
<input type="radio" id="btn5" > -->
<label for="btn1" id = "key_practice_btn1" class="key_practice_btn">Modeling</label>
<label for="btn2" id = "key_practice_btn2" class="key_practice_btn">Eliciting Student Responses</label>
<label for="btn3" id = "key_practice_btn3" class="key_practice_btn">Providing Frequent & Targeted Practice Opportunities</label>
<label for="btn4" id = "key_practice_btn4" class="key_practice_btn">Using Affirmative & Corrective Feedback</label>
<label for="btn5" id = "key_practice_btn5" class="key_practice_btn">Restructuring Tasks & Activities</label>
</section>
<section class="key_practices_container">
<div class="select-box-container">
<div class="select-box" >
<select id="change-display">
<option selected disabled>Select a key practice</div></option>
<option value="1">Modeling</option>
<option value="2">Eliciting Student Responses</option>
<option value="3">Providing Frequent & Targeted Practice Opportunities</option>
<option value="4">Using Affirmative & Corrective Feedback</option>
<option value="5">Restructuring Tasks & Activities</option>
</select>
</div>
</div>
<div id="hidden-prac1" class='hidden-practices'>
<div class="collapsible-container">
<h3>Modeling</h3>
<p>Modeling ensures that students have a clear understanding of the components of a skill or strategy.
Modeling is used to rep resent what experts do and to make skills and strategies explicit. When teachers
model, they provide a clear explanation and demonstrate how to complete a task, often using a think
aloud. When working with students with disabilities, models should be frequent and detailed. </p>
[collapsible heading="Why is modeling important for students with disabilities?" elem="h4"]
<p>Issues with memory and information processing are particularly challenging for students with
disabilities. If their brains are consumed by committing information to memory or recalling information,
it means that they can less fluidly complete tasks. Modeling lessens the cognitive load by breaking
skills or strategies into essential steps; students with disabilities benefit from someone demonstrating
a skill successfully and from hearing the internal dialogue of someone who is proficient in that skill.
</p>
[/collapsible]
[collapsible heading="What could this look like?" elem="h4"]
<ul>
<li>Using clear and concise language</li>
<li>Naming, labeling, and breaking down procedural and/or conceptual skills and strategies</li>
<li>Using think aloud to externalize their inner dialogue</li>
<li>Using examples and non-examples to highlight what is critical for students to understand and to
correct common misconceptions</li>
</ul>
[/collapsible]
</div>
</div>
<div id="hidden-prac2" class='hidden-practices'>
<div class="collapsible-container">
<h3>Eliciting Student Responses</h3>
<p>Special education teachers use a variety of verbal and nonverbal strategies to elicit student responses.
They elicit student responses regularly and for one of two purposes: to check for student understanding
and to engage students in constructing knowledge. By checking for understanding, teachers can gauge
whether students are ready to move on to practicing a skill or strategy, or whether any content needs to
be retaught. Teachers may also elicit responses to help students elaborate their thinking or make
connections between critical concepts. </p>
[collapsible heading="Why is eliciting responses important for students with disabilities?" elem="h4"]
<p>For teachers of students with disabilities, questions plays a number of key roles in the classroom. When
students have attention issues, frequent responses ensure that they maintain their engagement in
instruction. Further, for the student who is not confident in their own expertise or who is overwhelmed
by complex learning tasks, effective questioning may serve to scaffold students’ construction of
knowledge. </p>
[/collapsible]
[collapsible heading="What could this look like?" elem="h4"]
<ul>
<li>Using strategies (such as response cards, think-pair-share, choral responses) that elicit thinking
from more than one student at a time</li>
<li>Drawing out student thinking through the use of visual, verbal, or gestural prompts</li>
<li>Using many closed-ended questions to build to more cognitively-demanding questions</li>
<li>Encouraging students to explain, justify, or elaborate on their or others’ responses</li>
</ul>
[/collapsible]
</div>
</div>
<div id="hidden-prac3" class='hidden-practices'>
<div class="collapsible-container">
<h3>Providing Frequent and Targeted Practice Opportunities</h3>
<p>Teachers provide practice opportunities to a) check for errors or misconceptions, b) build fluency and
automaticity, and c) eventually allow students to work without support. These practice opportunities can
be either guided or independent. Many students are not ready to practice independently after a teacher
models a skill, so guided practice provides teachers with an opportunity to use prompts to gradually
release responsibility to students. On the other hand, independent practice is a time for students to
apply a new skill or strategy with minimal support. Throughout guided and independent practice, teachers
frequently monitor students’ work for errors or misconceptions.</p>
[collapsible heading="Why are practice opportunities important for students with disabilities?" elem="h4"]
<p>After the initial round of modeling, many students are not ready to work independently. Students need to
practice new material as they learn it. We also know that students with disabilities benefit from more
practice. According to Rosenshine (2012), “Students need to spend additional time rephrasing,
elaborating, and summarizing new material in order to store it in long-term memory.” This type of
rehearsing helps students to retrieve information from their long-term memory quickly and helps them to
develop fluency and automaticity with foundational skills. When students spend time becoming automatic
in a skill, they have more time and space in their brains to devote to higher order skills such as
comprehension and application.</p>
[/collapsible]
[collapsible heading="What could this look like?" elem="h4"]
<ul>
<li>Explicitly stating how the practice opportunities are related to the instructional target</li>
<li>Adjusting the complexity of practice opportunities based on student responses</li>
<li>Leading students through a skill or strategy using prompts and cues, such as mini-reminders</li>
<li>Encouraging students to self-prompt</li>
<li>Allowing students to complete independent practice and then providing specific feedback</li>
</ul>
[/collapsible]
</div>
</div>
<div id="hidden-prac4" class='hidden-practices'>
<div class="collapsible-container">
<h3>Using Affirmative and Corrective Feedback</h3>
<p>Teacher feedback helps students to understand two things. First, affirmative feedback students what they
have done well and should continue doing. Second, corrective feedback tells students what and how they
can improve their work. To be effective, this feedback should be timely and, during guided practice, it
should be immediate. During independent practice, it should be delayed to allow for practice. </p>
[collapsible heading="Why is feedback important for students with disabilities?" elem="h4"]
<p>By offering feedback throughout guided and independent practice, teachers create additional learning
opportunities for students. They quickly and explicitly teach students the expectations for high-quality
work. They prevent students from inaccurately practicing skills and strategies — and therefore decrease
future errors and ensure successful learning. </p>
[/collapsible]
[collapsible heading="What could this look like?" elem="h4"]
<ul>
<li>Providing corrective feedback to address specific errors and misconceptions (e.g., OK, James, 7 x 3
is 21 but 7 x 4 is 28. Let’s try it again... )</li>
<li>Prompting students to re-apply a skill or strategy successfully following corrective feedback</li>
<li>Providing affirmative feedback that highlights what a student did well(e.g., Yes, James, you are
correct that 7 x 4 is 28. Good job! )</li>
<li>Offering feedback in a timely and direct manner</li>
</ul>
[/collapsible]
</div>
</div>
<div id="hidden-prac5" class='hidden-practices'>
<div class="collapsible-container">
<h3>Restructuring Tasks and Activities</h3>
<p>Sometimes, students aren’t successful using skills or strategies the first time around. They might have
misconceptions about new content or be focused on irrelevant or distracting details. When this happens,
instead of continuing down the same instructional path, teachers restructure tasks and activities to
efficiently and effectively help students succeed. Using student responses to drive their instructional
decisions, teachers adjust tasks and activities so that students are consistently moving toward mastery
of the planned instructional objective. </p>
[collapsible heading="Why is restructuring important for students with disabilities?" elem="h4"]
<p>In special education, teachers restructure tasks and questions in order to ensure that students
experience high rates of success and make progress toward the planned instructional objective. This is
different than in general education, where teachers might restructure tasks based on student interest or
questions with the goal of extending learning.</p>
[/collapsible]
[collapsible heading="What could this look like?" elem="h4"]
<ul>
<li>Making a task more or less complex based on student responses</li>
<li>Remodeling a skill or strategy when students do not demonstrate mastery</li>
<li>Using instructional prompts, reminders, and cues when students are unsuccessful (e.g., saying, “OK,
let’s look at our anchor chart and use it to guide our steps when solving this problem”)</li>
<li>Reviewing previously learned materials and explicitly connecting the review to student errors,
misconceptions, or exhibited needs</li>
</ul>
[/collapsible]
</div>
</div>
</section>
<div class="video-carousel">
<input class="prac1 video-input" type="radio" name="slider" >
<input class="prac1 video-input" type="radio" name="slider" >
<input class="prac2 video-input" type="radio" name="slider" >
<input class="prac2 video-input" type="radio" name="slider" >
<input class="prac3 video-input" type="radio" name="slider" >
<input class="prac3 video-input" type="radio" name="slider" >
<input class="prac4 video-input" type="radio" name="slider" >
<input class="prac4 video-input" type="radio" name="slider" >
<input class="prac5 video-input" type="radio" name="slider" >
<input class="prac5 video-input" type="radio" name="slider" >
<input class="prac5 video-input" type="radio" name="slider" >
<div class='icon-navigateleft' id='btn-prev'></div>
<div class="cards">
<div class="video-card hidden-prac1">
<video class='videos' controls preload = 'auto'
src="/setleaders/files/2020/07/Boston-University-Welcomes-the-Worlds-Grad-Students.mp4#t=5"></video>
<p class='video-caption'>Video 1, dolor sit amet consectetur adipisicing elit. Labore cum sed suscipit
consequatur, modi eius odit consectetur autem id necessitatibus. </p>
</div>
<div class="video-card hidden-prac1" >
<video class='videos' controls preload = 'auto'
src="/setleaders/files/2020/07/Boston-University-Welcomes-the-Worlds-Grad-Students.mp4#t=15"></video>
<p class='video-caption'>Video 2, c finibus velit id finibus feugiat. Sed placerat, quam sit amet malesuada pulvinar, tortor lorem vestibulum nulla, et tempus nunc metus et arcu.</p>
</div>
<div class="video-card hidden-prac2">
<video class='videos' controls preload = 'auto'
src="/setleaders/files/2020/07/Boston-University-Welcomes-the-Worlds-Grad-Students.mp4#t=25"></video>
<p class='video-caption'>Video 3, Praesent mollis sed purus quis sodales. Morbi vehicula nunc sit amet odio luctus, efficitur finibus lorem posuere. In porta turpis quis velit lacinia dapibus. </p>
</div>
<div class="video-card hidden-prac2">
<video class='videos' controls
src="/setleaders/files/2020/07/Boston-University-Welcomes-the-Worlds-Grad-Students.mp4#t=35"></video>
<p class='video-caption'>Video 4, Donec at quam hendrerit, sollicitudin diam vitae, tempor mauris. Pellentesque nec ante est. Phasellus erat nibh, lobortis vehicula elit convallis, volutpat ornare nisi.</p>
</div>
<div class="video-card hidden-prac3" >
<video class='videos' controls preload = 'auto'
src="/setleaders/files/2020/07/Boston-University-Welcomes-the-Worlds-Grad-Students.mp4#t=45"></video>
<p class='video-caption'>Video 5, Integer sit amet accumsan ante. Nullam tincidunt elit nibh, vel malesuada leo blandit non. Nullam aliquet nisi et magna tristique, non molestie ante ornare.</p>
</div>
<div class="video-card hidden-prac3">
<video class='videos' controls preload = 'auto'
src="/setleaders/files/2020/07/Boston-University-Welcomes-the-Worlds-Grad-Students.mp4#t=55"></video>
<p class='video-caption'>Video 6, Quisque facilisis lectus dolor, ut ullamcorper orci venenatis eu. Vivamus aliquam quam dui, vestibulum mattis sapien imperdiet vel. </p>
</div>
<div class="video-card hidden-prac4">
<video class='videos' controls preload = 'auto'
src="/setleaders/files/2020/07/Boston-University-Welcomes-the-Worlds-Grad-Students.mp4#t=65"></video>
<p class='video-caption'>Video 7, Nulla vitae nunc ligula. Donec nisl lorem, eleifend nec venenatis ac, dictum eu libero. Integer posuere urna ut tellus ullamcorper pellentesque.</p>
</div>
<div class="video-card hidden-prac4">
<video class='videos' controls preload = 'auto'
src="/setleaders/files/2020/07/Boston-University-Welcomes-the-Worlds-Grad-Students.mp4#t=75"></video>
<p class='video-caption'>Video 8, Morbi quis diam id est volutpat cursus. Aliquam in purus non nulla facilisis vulputate in at nibh. Mauris dictum at nibh ut mattis.</p>
</div>
<div class="video-card hidden-prac5">
<video class='videos' controls preload = 'auto'
src="/setleaders/files/2020/07/Boston-University-Welcomes-the-Worlds-Grad-Students.mp4#t=85"></video>
<p class='video-caption'>Video 9, Curabitur nec hendrerit augue, gravida accumsan augue. Integer vestibulum elit eget hendrerit tempor. Donec at lectus ac dolor feugiat tempor sit amet sit amet leo. </p>
</div>
<div class="video-card hidden-prac5">
<video class='videos' controls preload = 'auto'
src="/setleaders/files/2020/07/Boston-University-Welcomes-the-Worlds-Grad-Students.mp4#t=95"></video>
<p class='video-caption'>Video 10, Integer vel dictum dui. Cras aliquet vehicula tincidunt. Sed thisum mi magna, at convallis eros mollis non. </p>
</div>
<div class="video-card hidden-prac5">
<video class='videos' controls preload = 'auto'
src="/setleaders/files/2020/07/Boston-University-Welcomes-the-Worlds-Grad-Students.mp4#t=105"></video>
<p class='video-caption'>Video 11, In viverra justo ac ligula volutpat, non lobortis eros luctus. Interdum et malesuada fames ac ante ipsum primis in faucibus.</p>
</div>
</div>
<div class='icon-navigateright' id='btn-next'></div>
</div>
<script>
// BANNER STUFF
// var bannerSubtitleField = document.querySelector('.bu-banner-subtitle');
// bannerSubtitleField.innerHTML = "Modeling <br> Eliciting Student Responses <br> Practice Opportunities <br> Feedback <br> Restructuring Tasks and Activities";
// bannerSubtitleField.style.textAlign = 'left';
var bannerSubtitleField = document.querySelector('.bu-banner-subtitle');
bannerSubtitleField.innerHTML = "Click the boxes below to explore five key instructional practices for students with disabilities. <br> These five evidence-based practices were selected by a team of special education researchers based on input from practitioners, recent research in special education, and the work of the CEEDAR Center.";
bannerSubtitleField.style.textAlign = 'center';
// SELECT BOX STUFF
var displayPrac = '.video-card';
var itemsCount = document.querySelectorAll(displayPrac).length;
var videoCard = document.querySelectorAll(displayPrac);
var radioSelector = "input[type='radio' ]";
var videoRadio = document.querySelectorAll(radioSelector);
var narrowCondition = window.matchMedia("(max-width: 650px)");
const allVideoRadio = document.querySelectorAll("input[type='radio']");
const totalItemsCount = allVideoRadio.length;
const allVideoCards = document.querySelectorAll('.video-card');
var btnNext = document.querySelector("#btn-next");
var btnPrev = document.querySelector("#btn-prev");
var allVideos = document.querySelectorAll('.videos');
// var keyPracBtn1 = document.querySelector("#key_practice_btn1").addEventListener("click", functio)
allVideos.forEach(v => {
v.addEventListener('loadedmetadata', function(){
if (v.buffered.length === 0) return;
var bufferedSeconds = v.buffered.end(0) - v.buffered.start(0);
console.log(bufferedSeconds + ' seconds of video are ready to play!');
})
});
function stopVideosPlaying(){
allVideos.forEach(v => {
v.pause();
})
}
function mediaQueryDisplay(condition){
if(condition.matches){
btnNext.style.display = 'none';
btnPrev.style.display = 'none';
allVideoCards.forEach(v => {
v.style.display = 'none';
})
if(videoCard.length != allVideoCards.length){
videoCard.forEach(c => {
c.style.display = 'flex';
c.style.flexDirection = 'column';
})
}
}
else{
var currentPracVideoIndex = -1;
var tempBound = totalItemsCount;
var tempInt = currentPracVideoIndex;
if (displayPrac == '.video-card'){
currentPracVideoIndex = 0;
btnPrev.style.display = "none";
btnNext.style.display = 'none';
for(let i = 0;i<totalItemsCount;i++){
allVideoRadio[i].checked = false;
allVideoRadio[i].style.display = 'none';
}
}
else{
btnPrev.style.display = "block";
btnNext.style.display = 'block';
for(let i = 0;i<totalItemsCount;i++){
allVideoRadio[i].checked = false;
allVideoCards[i].style.display = 'none';
if(allVideoRadio[i].classList.contains(displayPrac.slice(-5))){
if(currentPracVideoIndex == -1){
currentPracVideoIndex = i;
}
}
}
allVideoRadio[currentPracVideoIndex].checked = true;
allVideoCards[currentPracVideoIndex].style.display = 'flex';
allVideoCards[currentPracVideoIndex].style.flexDirection = 'row';
}
tempInt = currentPracVideoIndex;
tempBound = tempInt + itemsCount;
btnNext.addEventListener('click',()=>{
stopVideosPlaying()
for(let i = 0;i<totalItemsCount;i++){
allVideoCards[i].style.display = 'none';
allVideoRadio[i].checked = false;
}
console.log('displayPrac: ',displayPrac, " tempBound: ", tempBound);
if(currentPracVideoIndex < (tempBound - 1)){
console.log("tempInt: ", tempInt);
currentPracVideoIndex += 1;
}
else{
currentPracVideoIndex = tempInt;
}
allVideoRadio[currentPracVideoIndex].checked = true;
allVideoCards[currentPracVideoIndex].style.display = 'flex';
allVideoCards[currentPracVideoIndex].style.flexDirection = 'row';
})
btnPrev.addEventListener('click',()=>{
stopVideosPlaying()
for(let i = 0;i<totalItemsCount;i++){
allVideoCards[i].style.display = 'none';
allVideoRadio[i].checked = false;
}
if(currentPracVideoIndex > tempInt){
currentPracVideoIndex -= 1;
}
else{
currentPracVideoIndex = tempBound - 1;
}
allVideoRadio[currentPracVideoIndex].checked = true;
allVideoCards[currentPracVideoIndex].style.display = 'flex';
allVideoCards[currentPracVideoIndex].style.flexDirection = 'row';
})
}
}
mediaQueryDisplay(narrowCondition);
narrowCondition.addListener(mediaQueryDisplay);
function updateVar(id){
displayPrac = '.' + id;
videoCard = document.querySelectorAll(displayPrac);
itemsCount = videoCard.length;
radioSelector = '.'.concat(displayPrac.slice(-5));
videoRadio = document.querySelectorAll(radioSelector);
currentPrac = id;
}
document.getElementById("change-display").addEventListener("change", function() {
var style = this.value == 1 ? 'block' : 'none';
document.getElementById('hidden-prac1').style.display = style;
if (this.value == 1) {
stopVideosPlaying();
updateVar('hidden-prac1');
mediaQueryDisplay(narrowCondition);
narrowCondition.addListener(mediaQueryDisplay);
}
});
document.getElementById("change-display").addEventListener("change", function() {
var style = this.value == 2 ? 'block' : 'none';
document.getElementById('hidden-prac2').style.display = style;
if (this.value == 2) {
stopVideosPlaying();
updateVar('hidden-prac2');
mediaQueryDisplay(narrowCondition);
narrowCondition.addListener(mediaQueryDisplay);
}
});
document.getElementById("change-display").addEventListener("change", function() {
var style = this.value == 3 ? 'block' : 'none';
document.getElementById('hidden-prac3').style.display = style;
if (this.value == 3) {
stopVideosPlaying();
updateVar('hidden-prac3');
mediaQueryDisplay(narrowCondition);
narrowCondition.addListener(mediaQueryDisplay);
}
});
document.getElementById("change-display").addEventListener("change", function() {
var style = this.value == 4 ? 'block' : 'none';
document.getElementById('hidden-prac4').style.display = style;
if (this.value == 4) {
stopVideosPlaying();
updateVar('hidden-prac4');
mediaQueryDisplay(narrowCondition);
narrowCondition.addListener(mediaQueryDisplay);
}
});
document.getElementById("change-display").addEventListener("change", function() {
var style = this.value == 5 ? 'block' : 'none';
document.getElementById('hidden-prac5').style.display = style;
if (this.value == 5) {
// displayPracVideo('hidden-prac5');
stopVideosPlaying();
updateVar('hidden-prac5');
mediaQueryDisplay(narrowCondition);
narrowCondition.addListener(mediaQueryDisplay);
}
});
// var keyPracticeBtns = document.querySelectorAll(".key_practice_btn");
var keyPracBtn1 = document.querySelector("#key_practice_btn1");
var keyPracBtn2 = document.querySelector("#key_practice_btn2");
var keyPracBtn3 = document.querySelector("#key_practice_btn3");
var keyPracBtn4 = document.querySelector("#key_practice_btn4");
var keyPracBtn5 = document.querySelector("#key_practice_btn5");
var keyPracticeBtns = [keyPracBtn1, keyPracBtn2, keyPracBtn3, keyPracBtn4, keyPracBtn5];
var keyPracText1 = document.querySelector("#hidden-prac1");
var keyPracText2 = document.querySelector("#hidden-prac2");
var keyPracText3 = document.querySelector("#hidden-prac3");
var keyPracText4 = document.querySelector("#hidden-prac4");
var keyPracText5 = document.querySelector("#hidden-prac5");
function hideAllText(){
keyPracText1.style.display = "none";
keyPracText2.style.display = "none";
keyPracText3.style.display = "none";
keyPracText4.style.display = "none";
keyPracText5.style.display = "none";
}
function resetAllStyle(){
for(var i = 0; i<keyPracticeBtns.length;i++){
keyPracticeBtns[i].style.background = "white";
keyPracticeBtns[i].style.color = "#7AA8BF";
}
}
keyPracBtn1.addEventListener("click", function(){
var pracString = "hidden-prac1";
var style = 'block';
hideAllText();
document.getElementById(pracString).style.display = style;
stopVideosPlaying();
updateVar(pracString);
mediaQueryDisplay(narrowCondition);
narrowCondition.addListener(mediaQueryDisplay);
resetAllStyle()
keyPracBtn1.style.background = "#7AA8BF";
keyPracBtn1.style.color = "white";
});
keyPracBtn2.addEventListener("click", function(){
var pracString = "hidden-prac2";
var style = 'block';
hideAllText();
document.getElementById(pracString).style.display = style;
stopVideosPlaying();
updateVar(pracString);
mediaQueryDisplay(narrowCondition);
narrowCondition.addListener(mediaQueryDisplay);
resetAllStyle();
keyPracBtn2.style.background = "#7AA8BF";
keyPracBtn2.style.color = "white";
});
keyPracBtn3.addEventListener("click", function(){
var pracString = "hidden-prac3";
var style = 'block';
hideAllText();
document.getElementById(pracString).style.display = style;
stopVideosPlaying();
updateVar(pracString);
mediaQueryDisplay(narrowCondition);
narrowCondition.addListener(mediaQueryDisplay);
resetAllStyle();
keyPracBtn3.style.background = "#7AA8BF";
keyPracBtn3.style.color = "white";
});
keyPracBtn4.addEventListener("click", function(){
var pracString = "hidden-prac4";
var style = 'block';
hideAllText();
document.getElementById(pracString).style.display = style;
stopVideosPlaying();
updateVar(pracString);
mediaQueryDisplay(narrowCondition);
narrowCondition.addListener(mediaQueryDisplay);
resetAllStyle();
keyPracBtn4.style.background = "#7AA8BF";
keyPracBtn4.style.color = "white";
});
keyPracBtn5.addEventListener("click", function(){
var pracString = "hidden-prac5";
var style = 'block';
hideAllText();
document.getElementById(pracString).style.display = style;
stopVideosPlaying();
updateVar(pracString);
mediaQueryDisplay(narrowCondition);
narrowCondition.addListener(mediaQueryDisplay);
resetAllStyle();
keyPracBtn5.style.background = "#7AA8BF";
keyPracBtn5.style.color = "white";
});
</script>