How to use textContent method in Playwright Internal

Best JavaScript code snippet using playwright-internal

Run Playwright Internal automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

calc.js

Source: calc.js Github

copy
1//Variables
2var pantalla = document.getElementById('pantalla');
3var operacion = document.getElementById('operacion');
4var btn1 = document.getElementById('btn1');
5var btn2 = document.getElementById('btn2');
6var btn3 = document.getElementById('btn3');
7var btn4 = document.getElementById('btn4');
8var btn5 = document.getElementById('btn5');
9var btn6 = document.getElementById('btn6');
10var btn7 = document.getElementById('btn7');
11var btn8 = document.getElementById('btn8');
12var btn9 = document.getElementById('btn9');
13var btn0 = document.getElementById('btn0');
14var btnDiv = document.getElementById('btn/');
15var btnMult = document.getElementById('btn*');
16var btnRest = document.getElementById('btn-');
17var btnSum = document.getElementById('btn+');
18var btnC = document.getElementById('btnC');
19var btnEq = document.getElementById('btn=');
20var op1;
21var op2;
22var simbolo;
23
24//Eventos
25btn1.onclick = function(e){
26    if (simbolo == '=') {
27        pantalla.textContent = '';
28        operacion.textContent = 'OP';
29        simbolo = ' ';
30    }
31    pantalla.textContent = pantalla.textContent + '1';
32}
33
34btn2.onclick = function(e){
35    if (simbolo == '=') {
36        pantalla.textContent = '';
37        operacion.textContent = 'OP';
38        simbolo = ' ';
39    }
40    pantalla.textContent = pantalla.textContent + '2';
41}
42
43btn3.onclick = function(e){
44    if (simbolo == '=') {
45        pantalla.textContent = '';
46        operacion.textContent = 'OP';
47        simbolo = ' ';
48    }
49    pantalla.textContent = pantalla.textContent + '3';
50}
51
52btn4.onclick = function(e){
53    if (simbolo == '=') {
54        pantalla.textContent = '';
55        operacion.textContent = 'OP';
56        simbolo = ' ';
57    }
58    pantalla.textContent = pantalla.textContent + '4';
59}
60
61btn5.onclick = function(e){
62    if (simbolo == '=') {
63        pantalla.textContent = '';
64        operacion.textContent = 'OP';
65        simbolo = ' ';
66    }
67    pantalla.textContent = pantalla.textContent + '5';
68}
69
70btn6.onclick = function(e){
71    if (simbolo == '=') {
72        pantalla.textContent = '';
73        operacion.textContent = 'OP';
74        simbolo = ' ';
75    }
76    pantalla.textContent = pantalla.textContent + '6';
77}
78
79btn7.onclick = function(e){
80    if (simbolo == '=') {
81        pantalla.textContent = '';
82        operacion.textContent = 'OP';
83        simbolo = ' ';
84    }
85    pantalla.textContent = pantalla.textContent + '7';
86}
87
88btn8.onclick = function(e){
89    if (simbolo == '=') {
90        pantalla.textContent = '';
91        operacion.textContent = 'OP';
92        simbolo = ' ';
93    }
94    pantalla.textContent = pantalla.textContent + '8';
95}
96
97btn9.onclick = function(e){
98    if (simbolo == '=') {
99        pantalla.textContent = '';
100        operacion.textContent = 'OP';
101        simbolo = ' ';
102    }
103    pantalla.textContent = pantalla.textContent + '9';
104}
105
106btn0.onclick = function(e){
107    if (simbolo == '=') {
108        pantalla.textContent = '';
109        operacion.textContent = 'OP';
110        simbolo = ' ';
111    }
112    pantalla.textContent = pantalla.textContent + '0';
113}
114
115btnC.onclick = function(e){
116    pantalla.textContent = '';
117    operacion.textContent = 'OP';
118}
119
120btnSum.onclick = function(e){
121    op1 = pantalla.textContent;
122    simbolo = '+';
123    pantalla.textContent = '';
124    operacion.textContent = simbolo;
125}
126
127btnRest.onclick = function (e){
128    op1 = pantalla.textContent;
129    simbolo = '-';
130    pantalla.textContent = '';
131    operacion.textContent = simbolo;
132}
133
134btnMult.onclick = function (e){
135    op1 = pantalla.textContent;
136    simbolo = '*';
137    pantalla.textContent = '';
138    operacion.textContent = simbolo;
139}
140
141btnDiv.onclick = function (e){
142    op1 = pantalla.textContent;
143    simbolo = '/';
144    pantalla.textContent = '';
145    operacion.textContent = simbolo;
146}
147
148btnEq.onclick = function(e){
149    op2 = pantalla.textContent;
150    pantalla.textContent = '';
151    if (simbolo == '+') {
152        pantalla.textContent = parseInt(op1) + parseInt(op2);
153        op1 = parseInt(op1) + parseInt(op2);
154        operacion.textContent = '=';
155        simbolo = '=';
156    }else if (simbolo == '-') {
157        pantalla.textContent = parseInt(op1) - parseInt(op2);
158        op1 = parseInt(op1) - parseInt(op2);
159        operacion.textContent = '=';
160        simbolo = '=';
161    }else if(simbolo == '*'){
162        pantalla.textContent = parseInt(op1) * parseInt(op2);
163        op1 = parseInt(op1) * parseInt(op2);
164        operacion.textContent = '=';
165        simbolo = '=';
166    }else if(simbolo == '/'){
167        pantalla.textContent = parseInt(op1) / parseInt(op2);
168        op1 = parseInt(op1) / parseInt(op2);
169        operacion.textContent = '=';
170        simbolo = '=';
171    }else if (simbolo == '=') {
172        pantalla.textContent = '';
173        operacion.textContent = 'OP';
174    }
175}
Full Screen

index.js

Source: index.js Github

copy
1function set_color(tag) {
2    if (tag.textContent >= 0)
3        tag.setAttribute('bgcolor', 'crimson');
4    else
5        tag.setAttribute('bgcolor', 'limegreen');
6}
7
8
9function percentage_changed() {
10    var bucks = parseInt($('#bucks-percent')[0].value) / 100;
11    var cashback = parseFloat($('#cash-percent')[0].value) / 100;
12    $('.item').each(function(idx){
13        var kids = $(this).children();
14        kids[6].textContent = (kids[4].textContent * prices[kids[2].textContent.toLowerCase()]).toFixed(2); // melt: weight * spot
15        kids[7].textContent = (kids[5].textContent * bucks).toFixed(2); // bucks: price * bucks percentage
16        if (kids[7].textContent > 100)
17            kids[7].textContent = 100;
18        kids[8].textContent = (kids[5].textContent - kids[6].textContent - kids[7].textContent).toFixed(2); // melt difference with bucks: price - melt - bucks
19        set_color(kids[8]);
20        kids[9].textContent = ((kids[8].textContent / kids[6].textContent) * 100).toFixed(2); // % melt diff = meltdiff / melt * 100
21        set_color(kids[9]);
22        kids[10].textContent = (kids[5].textContent * cashback).toFixed(2); // x% cashback cc: price * cashback percentage
23        kids[11].textContent = (kids[5].textContent - kids[6].textContent - kids[7].textContent - kids[10].textContent).toFixed(2); // melt difference with bucks and cashback: price - melt - bucks - cashback
24        set_color(kids[11]);
25        kids[12].textContent = ((kids[11].textContent / kids[6].textContent) * 100).toFixed(2); // % melt cash diff = meltcashdiff / melt * 100
26        set_color(kids[12]);
27        kids[13].textContent = (kids[7].textContent / kids[4].textContent).toFixed(2); // bucks/ozt: bucks / weight
28    });
29    $('#item-table').tablesorter();
30    // var table = $('#item-table')[0];
31    // sorttable.makeSortable(table);
32}
33
34/*
35function toggle_columns(checkbox) {
36    if (checkbox.is(':checked')) {
37        $('.percent').show();
38        $('.dollars').hide();
39    }
40    else {
41        $('.percent').hide();
42        $('.dollars').show();
43    }
44}
45
46
47function pageload() {
48    percentage_changed();
49    toggle_columns($($('#toggle')[0]));
50}
51*/
52
Full Screen

script.js

Source: script.js Github

copy
1console.log("Подключено");
2
3// Че же написать
4
5
6//6а
7let sixA1 = document.querySelectorAll("th, td");
8sixA1 = sixA1[15];
9console.log(sixA1);
10
11//6б
12let sixB1 = document.querySelectorAll("th, td");
13sixB1 = sixB1[16];
14console.log(sixB1);
15
16//6в
17let sixV1 = document.querySelectorAll("th, td");
18sixV1 = sixV1[17];
19console.log(sixV1);
20
21//7a
22let sevenA1 = document.querySelectorAll("th, td");
23sevenA1 = sevenA1[18];
24console.log(sevenA1);
25
26//7б
27let sevenB1 = document.querySelectorAll("th, td");
28sevenB1 = sevenB1[19];
29console.log(sevenB1);
30
31//7в
32let sevenV1 = document.querySelectorAll("th, td");
33sevenV1 = sevenV1[20];
34console.log(sevenV1);
35
36//8а
37let eightA1 = document.querySelectorAll("th, td");
38eightA1 = eightA1[21];
39console.log(eightA1);
40
41//8б
42let eightB1 = document.querySelectorAll("th, td");
43eightB1 = eightB1[22];
44console.log(eightB1);
45
46//8в
47let eightV1 = document.querySelectorAll("th, td");
48eightV1 = eightV1[23];
49console.log(eightV1);
50
51
52
53// Вторая строка
54
55
56
57//6а
58let sixA2 = document.querySelectorAll("th, td");
59sixA2 = sixA2[26];
60console.log(sixA2);
61
62//6б
63let sixB2 = document.querySelectorAll("th, td");
64sixB2 = sixB2[27];
65console.log(sixB2);
66
67//6в
68let sixV2 = document.querySelectorAll("th, td");
69sixV2 = sixV2[28];
70console.log(sixV2);
71
72//7a
73let sevenA2 = document.querySelectorAll("th, td");
74sevenA2 = sevenA2[29];
75console.log(sevenA2);
76
77//7б
78let sevenB2 = document.querySelectorAll("th, td");
79sevenB2 = sevenB2[30];
80console.log(sevenB2);
81
82//7в
83let sevenV2 = document.querySelectorAll("th, td");
84sevenV2 = sevenV2[31];
85console.log(sevenV2);
86
87//8а
88let eightA2 = document.querySelectorAll("th, td");
89eightA2 = eightA2[32];
90console.log(eightA2);
91
92//8б
93let eightB2 = document.querySelectorAll("th, td");
94eightB2 = eightB2[33];
95console.log(eightB2);
96
97//8в
98let eightV2 = document.querySelectorAll("th, td");
99eightV2 = eightV2[34];
100console.log(eightV2);
101
102
103
104// Третяяя строка
105
106
107
108//6а
109let sixA3 = document.querySelectorAll("th, td");
110sixA3 = sixA3[37];
111console.log(sixA3);
112
113//6б
114let sixB3 = document.querySelectorAll("th, td");
115sixB3 = sixB3[38];
116console.log(sixB3);
117
118//6в
119let sixV3 = document.querySelectorAll("th, td");
120sixV3 = sixV3[39];
121console.log(sixV3);
122
123//7a
124let sevenA3 = document.querySelectorAll("th, td");
125sevenA3 = sevenA3[40];
126console.log(sevenA3);
127
128//7б
129let sevenB3 = document.querySelectorAll("th, td");
130sevenB3 = sevenB3[41];
131console.log(sevenB3);
132
133//7в
134let sevenV3 = document.querySelectorAll("th, td");
135sevenV3 = sevenV3[42];
136console.log(sevenV3);
137
138//8а
139let eightA3 = document.querySelectorAll("th, td");
140eightA3 = eightA3[43];
141console.log(eightA3);
142
143//8б
144let eightB3 = document.querySelectorAll("th, td");
145eightB3 = eightB3[44];
146console.log(eightB3);
147
148//8в
149let eightV3 = document.querySelectorAll("th, td");
150eightV3 = eightV3[45];
151console.log(eightV3);
152
153
154
155// Четвертая строка
156
157
158
159//6а
160let sixA4 = document.querySelectorAll("th, td");
161sixA4 = sixA4[48];
162console.log(sixA4);
163
164//6б
165let sixB4 = document.querySelectorAll("th, td");
166sixB4 = sixB4[49];
167console.log(sixB4);
168
169//6в
170let sixV4 = document.querySelectorAll("th, td");
171sixV4 = sixV4[50];
172console.log(sixV4);
173
174//7a
175let sevenA4 = document.querySelectorAll("th, td");
176sevenA4 = sevenA4[51];
177console.log(sevenA4);
178
179//7б
180let sevenB4 = document.querySelectorAll("th, td");
181sevenB4 = sevenB4[52];
182console.log(sevenB4);
183
184//7в
185let sevenV4 = document.querySelectorAll("th, td");
186sevenV4 = sevenV4[53];
187console.log(sevenV4);
188
189//8а
190let eightA4 = document.querySelectorAll("th, td");
191eightA4 = eightA4[54];
192console.log(eightA4);
193
194//8б
195let eightB4 = document.querySelectorAll("th, td");
196eightB4 = eightB4[55];
197console.log(eightB4);
198
199//8в
200let eightV4 = document.querySelectorAll("th, td");
201eightV4 = eightV4[56];
202console.log(eightV4);
203
204
205// Пятая строка
206
207
208//6а
209let sixA5 = document.querySelectorAll("th, td");
210sixA5 = sixA5[59];
211console.log(sixA5);
212
213//6б
214let sixB5 = document.querySelectorAll("th, td");
215sixB5 = sixB5[60];
216console.log(sixB5);
217
218//6в
219let sixV5 = document.querySelectorAll("th, td");
220sixV5 = sixV5[61];
221console.log(sixV5);
222
223//7a
224let sevenA5 = document.querySelectorAll("th, td");
225sevenA5 = sevenA5[62];
226console.log(sevenA5);
227
228//7б
229let sevenB5 = document.querySelectorAll("th, td");
230sevenB5 = sevenB5[63];
231console.log(sevenB5);
232
233//7в
234let sevenV5 = document.querySelectorAll("th, td");
235sevenV5 = sevenV5[64];
236console.log(sevenV5);
237
238//8а
239let eightA5 = document.querySelectorAll("th, td");
240eightA5 = eightA5[65];
241console.log(eightA5);
242
243//8б
244let eightB5 = document.querySelectorAll("th, td");
245eightB5 = eightB5[66];
246console.log(eightB5);
247
248//8в
249let eightV5 = document.querySelectorAll("th, td");
250eightV5 = eightV5[67];
251console.log(eightV5);
252
253
254// Шестая строка
255
256
257//6а
258let sixA6 = document.querySelectorAll("th, td");
259sixA6 = sixA6[70];
260console.log(sixA6);
261
262//6б
263let sixB6 = document.querySelectorAll("th, td");
264sixB6 = sixB6[71];
265console.log(sixB6);
266
267//6в
268let sixV6 = document.querySelectorAll("th, td");
269sixV6 = sixV6[72];
270console.log(sixV6);
271
272//7a
273let sevenA6 = document.querySelectorAll("th, td");
274sevenA6 = sevenA6[73];
275console.log(sevenA6);
276
277//7б
278let sevenB6 = document.querySelectorAll("th, td");
279sevenB6 = sevenB6[74];
280console.log(sevenB6);
281
282//7в
283let sevenV6 = document.querySelectorAll("th, td");
284sevenV6 = sevenV6[75];
285console.log(sevenV6);
286
287//8а
288let eightA6 = document.querySelectorAll("th, td");
289eightA6 = eightA6[76];
290console.log(eightA6);
291
292//8б
293let eightB6 = document.querySelectorAll("th, td");
294eightB6 = eightB6[77];
295console.log(eightB6);
296
297//8в
298let eightV6 = document.querySelectorAll("th, td");
299eightV6 = eightV6[78];
300console.log(eightV6);
301
302
303// Седьмая строка
304
305
306//6а
307let sixA7 = document.querySelectorAll("th, td");
308sixA7 = sixA7[81];
309console.log(sixA7);
310
311//6б
312let sixB7 = document.querySelectorAll("th, td");
313sixB7 = sixB7[82];
314console.log(sixB7);
315
316//6в
317let sixV7 = document.querySelectorAll("th, td");
318sixV7 = sixV7[83];
319console.log(sixV7);
320
321//7a
322let sevenA7 = document.querySelectorAll("th, td");
323sevenA7 = sevenA7[84];
324console.log(sevenA7);
325
326//7б
327let sevenB7 = document.querySelectorAll("th, td");
328sevenB7 = sevenB7[85];
329console.log(sevenB7);
330
331//7в
332let sevenV7 = document.querySelectorAll("th, td");
333sevenV7 = sevenV7[86];
334console.log(sevenV7);
335
336//8а
337let eightA7 = document.querySelectorAll("th, td");
338eightA7 = eightA7[87];
339console.log(eightA7);
340
341//8б
342let eightB7 = document.querySelectorAll("th, td");
343eightB7 = eightB7[88];
344console.log(eightB7);
345
346//8в
347let eightV7 = document.querySelectorAll("th, td");
348eightV7 = eightV7[89];
349console.log(eightV7);
350
351
352// Седьмая строка
353
354
355//6а
356let sixA8 = document.querySelectorAll("th, td");
357sixA8 = sixA8[92];
358console.log(sixA8);
359
360//6б
361let sixB8 = document.querySelectorAll("th, td");
362sixB8 = sixB8[93];
363console.log(sixB8);
364
365//6в
366let sixV8 = document.querySelectorAll("th, td");
367sixV8 = sixV8[94];
368console.log(sixV8);
369
370//7a
371let sevenA8 = document.querySelectorAll("th, td");
372sevenA8 = sevenA8[95];
373console.log(sevenA8);
374
375//7б
376let sevenB8 = document.querySelectorAll("th, td");
377sevenB8 = sevenB8[96];
378console.log(sevenB8);
379
380//7в
381let sevenV8 = document.querySelectorAll("th, td");
382sevenV8 = sevenV8[97];
383console.log(sevenV8);
384
385//8а
386let eightA8 = document.querySelectorAll("th, td");
387eightA8 = eightA8[98];
388console.log(eightA8);
389
390//8б
391let eightB8 = document.querySelectorAll("th, td");
392eightB8 = eightB8[99];
393console.log(eightB8);
394
395//8в
396let eightV8 = document.querySelectorAll("th, td");
397eightV8 = eightV8[100];
398console.log(eightV8);
399
400
401// Выделяем элементы кнопок с классами
402
403let ponedelnik = document.getElementById("pn");
404let vtornik = document.getElementById("vt");
405let sreda = document.getElementById("sr");
406let chetverg = document.getElementById("ch");
407let patnicha = document.getElementById("pt");
408let subbota = document.getElementById("sb");
409
410// console.log(ponedelnik, vtornik, sreda, chetverg, patnicha, subbota);
411
412// Выделяем день недели
413
414let zagolovokDenNedely = document.querySelectorAll("th, td");
415zagolovokDenNedely = zagolovokDenNedely[12];
416// console.log(zagolovokDenNedely);
417
418
419
420
421
422
423
424
425// Основной код
426
427const pn = {
428    sixA: "",
429    sixB: "",
430    sixV: "",
431    sevenA: "",
432    sevenB: "",
433    sevenV: "",
434    eightA: "",
435    eightB: "",
436    eightV: "",
437
438    sixA1: "",
439    sixB1: "",
440    sixV1: "",
441    sevenA1: "",
442    sevenB1: "",
443    sevenV1: "",
444    eightA1: "",
445    eightB1: "",
446    eightV1: "",
447
448    sixA2: "",
449    sixB2: "",
450    sixV2: "",
451    sevenA2: "",
452    sevenB2: "",
453    sevenV2: "",
454    eightA2: "",
455    eightB2: "",
456    eightV2: "",
457
458    sixA3: "",
459    sixB3: "",
460    sixV3: "",
461    sevenA3: "",
462    sevenB3: "",
463    sevenV3: "",
464    eightA3: "",
465    eightB3: "",
466    eightV3: "",
467
468    sixA4: "",
469    sixB4: "",
470    sixV4: "",
471    sevenA4: "",
472    sevenB4: "",
473    sevenV4: "",
474    eightA4: "",
475    eightB4: "",
476    eightV4: "",
477
478    sixA5: "",
479    sixB5: "",
480    sixV5: "",
481    sevenA5: "",
482    sevenB5: "",
483    sevenV5: "",
484    eightA5: "",
485    eightB5: "",
486    eightV5: "",
487
488    sixA6: "",
489    sixB6: "",
490    sixV6: "",
491    sevenA6: "",
492    sevenB6: "",
493    sevenV6: "",
494    eightA6: "",
495    eightB6: "",
496    eightV6: "",
497
498    sixA7: "",
499    sixB7: "",
500    sixV7: "",
501    sevenA7: "",
502    sevenB7: "",
503    sevenV7: "",
504    eightA7: "",
505    eightB7: "",
506    eightV7: "",
507
508}; // База данных на понедельник
509
510
511const vt = {
512    sixA: "",
513    sixB: "",
514    sixV: "",
515    sevenA: "",
516    sevenB: "",
517    sevenV: "",
518    eightA: "",
519    eightB: "",
520    eightV: "",
521
522    sixA1: "",
523    sixB1: "",
524    sixV1: "",
525    sevenA1: "",
526    sevenB1: "",
527    sevenV1: "",
528    eightA1: "",
529    eightB1: "",
530    eightV1: "",
531
532    sixA2: "",
533    sixB2: "",
534    sixV2: "",
535    sevenA2: "",
536    sevenB2: "",
537    sevenV2: "",
538    eightA2: "",
539    eightB2: "",
540    eightV2: "",
541
542    sixA3: "",
543    sixB3: "",
544    sixV3: "",
545    sevenA3: "",
546    sevenB3: "",
547    sevenV3: "",
548    eightA3: "",
549    eightB3: "",
550    eightV3: "",
551
552    sixA4: "",
553    sixB4: "",
554    sixV4: "",
555    sevenA4: "",
556    sevenB4: "",
557    sevenV4: "",
558    eightA4: "",
559    eightB4: "",
560    eightV4: "",
561
562    sixA5: "",
563    sixB5: "",
564    sixV5: "",
565    sevenA5: "",
566    sevenB5: "",
567    sevenV5: "",
568    eightA5: "",
569    eightB5: "",
570    eightV5: "",
571
572    sixA6: "",
573    sixB6: "",
574    sixV6: "",
575    sevenA6: "",
576    sevenB6: "",
577    sevenV6: "",
578    eightA6: "",
579    eightB6: "",
580    eightV6: "",
581
582    sixA7: "",
583    sixB7: "",
584    sixV7: "",
585    sevenA7: "",
586    sevenB7: "",
587    sevenV7: "",
588    eightA7: "",
589    eightB7: "",
590    eightV7: "",
591
592}; // База данных на вторник
593
594const sr = {
595    sixA: "",
596    sixB: "",
597    sixV: "",
598    sevenA: "",
599    sevenB: "",
600    sevenV: "",
601    eightA: "",
602    eightB: "",
603    eightV: "",
604
605    sixA1: "",
606    sixB1: "",
607    sixV1: "",
608    sevenA1: "",
609    sevenB1: "",
610    sevenV1: "",
611    eightA1: "",
612    eightB1: "",
613    eightV1: "",
614
615    sixA2: "",
616    sixB2: "",
617    sixV2: "",
618    sevenA2: "",
619    sevenB2: "",
620    sevenV2: "",
621    eightA2: "",
622    eightB2: "",
623    eightV2: "",
624
625    sixA3: "",
626    sixB3: "",
627    sixV3: "",
628    sevenA3: "",
629    sevenB3: "",
630    sevenV3: "",
631    eightA3: "",
632    eightB3: "",
633    eightV3: "",
634
635    sixA4: "",
636    sixB4: "",
637    sixV4: "",
638    sevenA4: "",
639    sevenB4: "",
640    sevenV4: "",
641    eightA4: "",
642    eightB4: "",
643    eightV4: "",
644
645    sixA5: "",
646    sixB5: "",
647    sixV5: "",
648    sevenA5: "",
649    sevenB5: "",
650    sevenV5: "",
651    eightA5: "",
652    eightB5: "",
653    eightV5: "",
654
655    sixA6: "",
656    sixB6: "",
657    sixV6: "",
658    sevenA6: "",
659    sevenB6: "",
660    sevenV6: "",
661    eightA6: "",
662    eightB6: "",
663    eightV6: "",
664
665    sixA7: "",
666    sixB7: "",
667    sixV7: "",
668    sevenA7: "",
669    sevenB7: "",
670    sevenV7: "",
671    eightA7: "",
672    eightB7: "",
673    eightV7: "",
674
675}; // База данных на среду
676
677const ch = {
678    sixA: "",
679    sixB: "",
680    sixV: "",
681    sevenA: "",
682    sevenB: "",
683    sevenV: "",
684    eightA: "",
685    eightB: "",
686    eightV: "",
687
688    sixA1: "",
689    sixB1: "",
690    sixV1: "",
691    sevenA1: "",
692    sevenB1: "",
693    sevenV1: "",
694    eightA1: "",
695    eightB1: "",
696    eightV1: "",
697
698    sixA2: "",
699    sixB2: "",
700    sixV2: "",
701    sevenA2: "",
702    sevenB2: "",
703    sevenV2: "",
704    eightA2: "",
705    eightB2: "",
706    eightV2: "",
707
708    sixA3: "",
709    sixB3: "",
710    sixV3: "",
711    sevenA3: "",
712    sevenB3: "",
713    sevenV3: "",
714    eightA3: "",
715    eightB3: "",
716    eightV3: "",
717
718    sixA4: "",
719    sixB4: "",
720    sixV4: "",
721    sevenA4: "",
722    sevenB4: "",
723    sevenV4: "",
724    eightA4: "",
725    eightB4: "",
726    eightV4: "",
727
728    sixA5: "",
729    sixB5: "",
730    sixV5: "",
731    sevenA5: "",
732    sevenB5: "",
733    sevenV5: "",
734    eightA5: "",
735    eightB5: "",
736    eightV5: "",
737
738    sixA6: "",
739    sixB6: "",
740    sixV6: "",
741    sevenA6: "",
742    sevenB6: "",
743    sevenV6: "",
744    eightA6: "",
745    eightB6: "",
746    eightV6: "",
747
748    sixA7: "",
749    sixB7: "",
750    sixV7: "",
751    sevenA7: "",
752    sevenB7: "",
753    sevenV7: "",
754    eightA7: "",
755    eightB7: "",
756    eightV7: "",
757
758}; // База данных на четверг
759
760const pt = {
761    sixA: "",
762    sixB: "",
763    sixV: "",
764    sevenA: "",
765    sevenB: "",
766    sevenV: "",
767    eightA: "",
768    eightB: "",
769    eightV: "",
770
771    sixA1: "",
772    sixB1: "",
773    sixV1: "",
774    sevenA1: "",
775    sevenB1: "",
776    sevenV1: "",
777    eightA1: "",
778    eightB1: "",
779    eightV1: "",
780
781    sixA2: "",
782    sixB2: "",
783    sixV2: "",
784    sevenA2: "",
785    sevenB2: "",
786    sevenV2: "",
787    eightA2: "",
788    eightB2: "",
789    eightV2: "",
790
791    sixA3: "",
792    sixB3: "",
793    sixV3: "",
794    sevenA3: "",
795    sevenB3: "",
796    sevenV3: "",
797    eightA3: "",
798    eightB3: "",
799    eightV3: "",
800
801    sixA4: "",
802    sixB4: "",
803    sixV4: "",
804    sevenA4: "",
805    sevenB4: "",
806    sevenV4: "",
807    eightA4: "",
808    eightB4: "",
809    eightV4: "",
810
811    sixA5: "",
812    sixB5: "",
813    sixV5: "",
814    sevenA5: "",
815    sevenB5: "",
816    sevenV5: "",
817    eightA5: "",
818    eightB5: "",
819    eightV5: "",
820
821    sixA6: "",
822    sixB6: "",
823    sixV6: "",
824    sevenA6: "",
825    sevenB6: "",
826    sevenV6: "",
827    eightA6: "",
828    eightB6: "",
829    eightV6: "",
830
831    sixA7: "",
832    sixB7: "",
833    sixV7: "",
834    sevenA7: "",
835    sevenB7: "",
836    sevenV7: "",
837    eightA7: "",
838    eightB7: "",
839    eightV7: "",
840
841}; // База данных на пятницу
842
843const su = {
844    sixA: "",
845    sixB: "",
846    sixV: "",
847    sevenA: "",
848    sevenB: "",
849    sevenV: "",
850    eightA: "",
851    eightB: "",
852    eightV: "",
853
854    sixA1: "",
855    sixB1: "",
856    sixV1: "",
857    sevenA1: "",
858    sevenB1: "",
859    sevenV1: "",
860    eightA1: "",
861    eightB1: "",
862    eightV1: "",
863
864    sixA2: "",
865    sixB2: "",
866    sixV2: "",
867    sevenA2: "",
868    sevenB2: "",
869    sevenV2: "",
870    eightA2: "",
871    eightB2: "",
872    eightV2: "",
873
874    sixA3: "",
875    sixB3: "",
876    sixV3: "",
877    sevenA3: "",
878    sevenB3: "",
879    sevenV3: "",
880    eightA3: "",
881    eightB3: "",
882    eightV3: "",
883
884    sixA4: "",
885    sixB4: "",
886    sixV4: "",
887    sevenA4: "",
888    sevenB4: "",
889    sevenV4: "",
890    eightA4: "",
891    eightB4: "",
892    eightV4: "",
893
894    sixA5: "",
895    sixB5: "",
896    sixV5: "",
897    sevenA5: "",
898    sevenB5: "",
899    sevenV5: "",
900    eightA5: "",
901    eightB5: "",
902    eightV5: "",
903
904    sixA6: "",
905    sixB6: "",
906    sixV6: "",
907    sevenA6: "",
908    sevenB6: "",
909    sevenV6: "",
910    eightA6: "",
911    eightB6: "",
912    eightV6: "",
913
914    sixA7: "",
915    sixB7: "",
916    sixV7: "",
917    sevenA7: "",
918    sevenB7: "",
919    sevenV7: "",
920    eightA7: "",
921    eightB7: "",
922    eightV7: "",
923
924}; // База данных на субботу
925
926
927
928
929// const vt = {
930//     sixA: "", // 6а
931//     sixB: "",    // 6б
932//     sixV: "ЖП"      // 6в
933// }; // База данных на вторник
934
935zagolovokDenNedely.textContent = `Понедельник`;
936
937sixA1.textContent = pn.sixA;
938sixB1.textContent = pn.sixB;
939sixV1.textContent = pn.sixV;
940sevenA1.textContent = pn.sevenA;
941sevenB1.textContent = pn.sevenB;
942sevenV1.textContent = pn.sevenV;
943eightA1.textContent = pn.eightA;
944eightB1.textContent = pn.eightB;
945eightV1.textContent = pn.eightV;
946
947sixA2.textContent = pn.sixA1;
948sixB2.textContent = pn.sixB1;
949sixV2.textContent = pn.sixV1;
950sevenA2.textContent = pn.sevenA1;
951sevenB2.textContent = pn.sevenB1;
952sevenV2.textContent = pn.sevenV1;
953eightA2.textContent = pn.eightA1;
954eightB2.textContent = pn.eightB1;
955eightV2.textContent = pn.eightV1;
956
957sixA3.textContent = pn.sixA2;
958sixB3.textContent = pn.sixB2;
959sixV3.textContent = pn.sixV2;
960sevenA3.textContent = pn.sevenA2;
961sevenB3.textContent = pn.sevenB2;
962sevenV3.textContent = pn.sevenV2;
963eightA3.textContent = pn.eightA2;
964eightB3.textContent = pn.eightB2;
965eightV3.textContent = pn.eightV2;
966
967sixA4.textContent = pn.sixA3;
968sixB4.textContent = pn.sixB3;
969sixV4.textContent = pn.sixV3;
970sevenA4.textContent = pn.sevenA3;
971sevenB4.textContent = pn.sevenB3;
972sevenV4.textContent = pn.sevenV3;
973eightA4.textContent = pn.eightA3;
974eightB4.textContent = pn.eightB3;
975eightV4.textContent = pn.eightV3;
976
977sixA5.textContent = pn.sixA4;
978sixB5.textContent = pn.sixB4;
979sixV5.textContent = pn.sixV4;
980sevenA5.textContent = pn.sevenA4;
981sevenB5.textContent = pn.sevenB4;
982sevenV5.textContent = pn.sevenV4;
983eightA5.textContent = pn.eightA4;
984eightB5.textContent = pn.eightB4;
985eightV5.textContent = pn.eightV4;
986
987sixA6.textContent = pn.sixA5;
988sixB6.textContent = pn.sixB5;
989sixV6.textContent = pn.sixV5;
990sevenA6.textContent = pn.sevenA5;
991sevenB6.textContent = pn.sevenB5;
992sevenV6.textContent = pn.sevenV5;
993eightA6.textContent = pn.eightA5;
994eightB6.textContent = pn.eightB5;
995eightV6.textContent = pn.eightV5;
996
997sixA7.textContent = pn.sixA6;
998sixB7.textContent = pn.sixB6;
999sixV7.textContent = pn.sixV6;
1000sevenA7.textContent = pn.sevenA6;
1001sevenB7.textContent = pn.sevenB6;
1002sevenV7.textContent = pn.sevenV6;
1003eightA7.textContent = pn.eightA6;
1004eightB7.textContent = pn.eightB6;
1005eightV7.textContent = pn.eightV6;
1006
1007ponedelnik.addEventListener('click', () => {
1008    zagolovokDenNedely.textContent = `Понедельник`;
1009
1010    sixA1.textContent = pn.sixA;
1011    sixB1.textContent = pn.sixB;
1012    sixV1.textContent = pn.sixV;
1013    sevenA1.textContent = pn.sevenA;
1014    sevenB1.textContent = pn.sevenB;
1015    sevenV1.textContent = pn.sevenV;
1016    eightA1.textContent = pn.eightA;
1017    eightB1.textContent = pn.eightB;
1018    eightV1.textContent = pn.eightV;
1019
1020    sixA2.textContent = pn.sixA1;
1021    sixB2.textContent = pn.sixB1;
1022    sixV2.textContent = pn.sixV1;
1023    sevenA2.textContent = pn.sevenA1;
1024    sevenB2.textContent = pn.sevenB1;
1025    sevenV2.textContent = pn.sevenV1;
1026    eightA2.textContent = pn.eightA1;
1027    eightB2.textContent = pn.eightB1;
1028    eightV2.textContent = pn.eightV1;
1029
1030    sixA3.textContent = pn.sixA2;
1031    sixB3.textContent = pn.sixB2;
1032    sixV3.textContent = pn.sixV2;
1033    sevenA3.textContent = pn.sevenA2;
1034    sevenB3.textContent = pn.sevenB2;
1035    sevenV3.textContent = pn.sevenV2;
1036    eightA3.textContent = pn.eightA2;
1037    eightB3.textContent = pn.eightB2;
1038    eightV3.textContent = pn.eightV2;
1039
1040    sixA4.textContent = pn.sixA3;
1041    sixB4.textContent = pn.sixB3;
1042    sixV4.textContent = pn.sixV3;
1043    sevenA4.textContent = pn.sevenA3;
1044    sevenB4.textContent = pn.sevenB3;
1045    sevenV4.textContent = pn.sevenV3;
1046    eightA4.textContent = pn.eightA3;
1047    eightB4.textContent = pn.eightB3;
1048    eightV4.textContent = pn.eightV3;
1049
1050    sixA5.textContent = pn.sixA4;
1051    sixB5.textContent = pn.sixB4;
1052    sixV5.textContent = pn.sixV4;
1053    sevenA5.textContent = pn.sevenA4;
1054    sevenB5.textContent = pn.sevenB4;
1055    sevenV5.textContent = pn.sevenV4;
1056    eightA5.textContent = pn.eightA4;
1057    eightB5.textContent = pn.eightB4;
1058    eightV5.textContent = pn.eightV4;
1059
1060    sixA6.textContent = pn.sixA5;
1061    sixB6.textContent = pn.sixB5;
1062    sixV6.textContent = pn.sixV5;
1063    sevenA6.textContent = pn.sevenA5;
1064    sevenB6.textContent = pn.sevenB5;
1065    sevenV6.textContent = pn.sevenV5;
1066    eightA6.textContent = pn.eightA5;
1067    eightB6.textContent = pn.eightB5;
1068    eightV6.textContent = pn.eightV5;
1069
1070    sixA7.textContent = pn.sixA6;
1071    sixB7.textContent = pn.sixB6;
1072    sixV7.textContent = pn.sixV6;
1073    sevenA7.textContent = pn.sevenA6;
1074    sevenB7.textContent = pn.sevenB6;
1075    sevenV7.textContent = pn.sevenV6;
1076    eightA7.textContent = pn.eightA6;
1077    eightB7.textContent = pn.eightB6;
1078    eightV7.textContent = pn.eightV6;
1079
1080
1081});
1082
1083vtornik.addEventListener('click', () => {
1084    zagolovokDenNedely.textContent = `Вторник`;
1085
1086    sixA1.textContent = vt.sixA;
1087    sixB1.textContent = vt.sixB;
1088    sixV1.textContent = vt.sixV;
1089    sevenA1.textContent = vt.sevenA;
1090    sevenB1.textContent = vt.sevenB;
1091    sevenV1.textContent = vt.sevenV;
1092    eightA1.textContent = vt.eightA;
1093    eightB1.textContent = vt.eightB;
1094    eightV1.textContent = vt.eightV;
1095
1096    sixA2.textContent = vt.sixA1;
1097    sixB2.textContent = vt.sixB1;
1098    sixV2.textContent = vt.sixV1;
1099    sevenA2.textContent = vt.sevenA1;
1100    sevenB2.textContent = vt.sevenB1;
1101    sevenV2.textContent = vt.sevenV1;
1102    eightA2.textContent = vt.eightA1;
1103    eightB2.textContent = vt.eightB1;
1104    eightV2.textContent = vt.eightV1;
1105
1106    sixA3.textContent = vt.sixA2;
1107    sixB3.textContent = vt.sixB2;
1108    sixV3.textContent = vt.sixV2;
1109    sevenA3.textContent = vt.sevenA2;
1110    sevenB3.textContent = vt.sevenB2;
1111    sevenV3.textContent = vt.sevenV2;
1112    eightA3.textContent = vt.eightA2;
1113    eightB3.textContent = vt.eightB2;
1114    eightV3.textContent = vt.eightV2;
1115
1116    sixA4.textContent = vt.sixA3;
1117    sixB4.textContent = vt.sixB3;
1118    sixV4.textContent = vt.sixV3;
1119    sevenA4.textContent = vt.sevenA3;
1120    sevenB4.textContent = vt.sevenB3;
1121    sevenV4.textContent = vt.sevenV3;
1122    eightA4.textContent = vt.eightA3;
1123    eightB4.textContent = vt.eightB3;
1124    eightV4.textContent = vt.eightV3;
1125
1126    sixA5.textContent = vt.sixA4;
1127    sixB5.textContent = vt.sixB4;
1128    sixV5.textContent = vt.sixV4;
1129    sevenA5.textContent = vt.sevenA4;
1130    sevenB5.textContent = vt.sevenB4;
1131    sevenV5.textContent = vt.sevenV4;
1132    eightA5.textContent = vt.eightA4;
1133    eightB5.textContent = vt.eightB4;
1134    eightV5.textContent = vt.eightV4;
1135
1136    sixA6.textContent = vt.sixA5;
1137    sixB6.textContent = vt.sixB5;
1138    sixV6.textContent = vt.sixV5;
1139    sevenA6.textContent = vt.sevenA5;
1140    sevenB6.textContent = vt.sevenB5;
1141    sevenV6.textContent = vt.sevenV5;
1142    eightA6.textContent = vt.eightA5;
1143    eightB6.textContent = vt.eightB5;
1144    eightV6.textContent = vt.eightV5;
1145
1146    sixA7.textContent = vt.sixA6;
1147    sixB7.textContent = vt.sixB6;
1148    sixV7.textContent = vt.sixV6;
1149    sevenA7.textContent = vt.sevenA6;
1150    sevenB7.textContent = vt.sevenB6;
1151    sevenV7.textContent = vt.sevenV6;
1152    eightA7.textContent = vt.eightA6;
1153    eightB7.textContent = vt.eightB6;
1154    eightV7.textContent = vt.eightV6;
1155});
1156
1157sreda.addEventListener('click', () => {
1158    zagolovokDenNedely.textContent = `Среда`;
1159
1160    sixA1.textContent = sr.sixA;
1161    sixB1.textContent = sr.sixB;
1162    sixV1.textContent = sr.sixV;
1163    sevenA1.textContent = sr.sevenA;
1164    sevenB1.textContent = sr.sevenB;
1165    sevenV1.textContent = sr.sevenV;
1166    eightA1.textContent = sr.eightA;
1167    eightB1.textContent = sr.eightB;
1168    eightV1.textContent = sr.eightV;
1169
1170    sixA2.textContent = sr.sixA1;
1171    sixB2.textContent = sr.sixB1;
1172    sixV2.textContent = sr.sixV1;
1173    sevenA2.textContent = sr.sevenA1;
1174    sevenB2.textContent = sr.sevenB1;
1175    sevenV2.textContent = sr.sevenV1;
1176    eightA2.textContent = sr.eightA1;
1177    eightB2.textContent = sr.eightB1;
1178    eightV2.textContent = sr.eightV1;
1179
1180    sixA3.textContent = sr.sixA2;
1181    sixB3.textContent = sr.sixB2;
1182    sixV3.textContent = sr.sixV2;
1183    sevenA3.textContent = sr.sevenA2;
1184    sevenB3.textContent = sr.sevenB2;
1185    sevenV3.textContent = sr.sevenV2;
1186    eightA3.textContent = sr.eightA2;
1187    eightB3.textContent = sr.eightB2;
1188    eightV3.textContent = sr.eightV2;
1189
1190    sixA4.textContent = sr.sixA3;
1191    sixB4.textContent = sr.sixB3;
1192    sixV4.textContent = sr.sixV3;
1193    sevenA4.textContent = sr.sevenA3;
1194    sevenB4.textContent = sr.sevenB3;
1195    sevenV4.textContent = sr.sevenV3;
1196    eightA4.textContent = sr.eightA3;
1197    eightB4.textContent = sr.eightB3;
1198    eightV4.textContent = sr.eightV3;
1199
1200    sixA5.textContent = sr.sixA4;
1201    sixB5.textContent = sr.sixB4;
1202    sixV5.textContent = sr.sixV4;
1203    sevenA5.textContent = sr.sevenA4;
1204    sevenB5.textContent = sr.sevenB4;
1205    sevenV5.textContent = sr.sevenV4;
1206    eightA5.textContent = sr.eightA4;
1207    eightB5.textContent = sr.eightB4;
1208    eightV5.textContent = sr.eightV4;
1209
1210    sixA6.textContent = sr.sixA5;
1211    sixB6.textContent = sr.sixB5;
1212    sixV6.textContent = sr.sixV5;
1213    sevenA6.textContent = sr.sevenA5;
1214    sevenB6.textContent = sr.sevenB5;
1215    sevenV6.textContent = sr.sevenV5;
1216    eightA6.textContent = sr.eightA5;
1217    eightB6.textContent = sr.eightB5;
1218    eightV6.textContent = sr.eightV5;
1219
1220    sixA7.textContent = sr.sixA6;
1221    sixB7.textContent = sr.sixB6;
1222    sixV7.textContent = sr.sixV6;
1223    sevenA7.textContent = sr.sevenA6;
1224    sevenB7.textContent = sr.sevenB6;
1225    sevenV7.textContent = sr.sevenV6;
1226    eightA7.textContent = sr.eightA6;
1227    eightB7.textContent = sr.eightB6;
1228    eightV7.textContent = sr.eightV6;
1229});
1230
1231chetverg.addEventListener('click', () => {
1232    zagolovokDenNedely.textContent = `Четверг`;
1233
1234    sixA1.textContent = ch.sixA;
1235    sixB1.textContent = ch.sixB;
1236    sixV1.textContent = ch.sixV;
1237    sevenA1.textContent = ch.sevenA;
1238    sevenB1.textContent = ch.sevenB;
1239    sevenV1.textContent = ch.sevenV;
1240    eightA1.textContent = ch.eightA;
1241    eightB1.textContent = ch.eightB;
1242    eightV1.textContent = ch.eightV;
1243
1244    sixA2.textContent = ch.sixA1;
1245    sixB2.textContent = ch.sixB1;
1246    sixV2.textContent = ch.sixV1;
1247    sevenA2.textContent = ch.sevenA1;
1248    sevenB2.textContent = ch.sevenB1;
1249    sevenV2.textContent = ch.sevenV1;
1250    eightA2.textContent = ch.eightA1;
1251    eightB2.textContent = ch.eightB1;
1252    eightV2.textContent = ch.eightV1;
1253
1254    sixA3.textContent = ch.sixA2;
1255    sixB3.textContent = ch.sixB2;
1256    sixV3.textContent = ch.sixV2;
1257    sevenA3.textContent = ch.sevenA2;
1258    sevenB3.textContent = ch.sevenB2;
1259    sevenV3.textContent = ch.sevenV2;
1260    eightA3.textContent = ch.eightA2;
1261    eightB3.textContent = ch.eightB2;
1262    eightV3.textContent = ch.eightV2;
1263
1264    sixA4.textContent = ch.sixA3;
1265    sixB4.textContent = ch.sixB3;
1266    sixV4.textContent = ch.sixV3;
1267    sevenA4.textContent = ch.sevenA3;
1268    sevenB4.textContent = ch.sevenB3;
1269    sevenV4.textContent = ch.sevenV3;
1270    eightA4.textContent = ch.eightA3;
1271    eightB4.textContent = ch.eightB3;
1272    eightV4.textContent = ch.eightV3;
1273
1274    sixA5.textContent = ch.sixA4;
1275    sixB5.textContent = ch.sixB4;
1276    sixV5.textContent = ch.sixV4;
1277    sevenA5.textContent = ch.sevenA4;
1278    sevenB5.textContent = ch.sevenB4;
1279    sevenV5.textContent = ch.sevenV4;
1280    eightA5.textContent = ch.eightA4;
1281    eightB5.textContent = ch.eightB4;
1282    eightV5.textContent = ch.eightV4;
1283
1284    sixA6.textContent = ch.sixA5;
1285    sixB6.textContent = ch.sixB5;
1286    sixV6.textContent = ch.sixV5;
1287    sevenA6.textContent = ch.sevenA5;
1288    sevenB6.textContent = ch.sevenB5;
1289    sevenV6.textContent = ch.sevenV5;
1290    eightA6.textContent = ch.eightA5;
1291    eightB6.textContent = ch.eightB5;
1292    eightV6.textContent = ch.eightV5;
1293
1294    sixA7.textContent = ch.sixA6;
1295    sixB7.textContent = ch.sixB6;
1296    sixV7.textContent = ch.sixV6;
1297    sevenA7.textContent = ch.sevenA6;
1298    sevenB7.textContent = ch.sevenB6;
1299    sevenV7.textContent = ch.sevenV6;
1300    eightA7.textContent = ch.eightA6;
1301    eightB7.textContent = ch.eightB6;
1302    eightV7.textContent = ch.eightV6;
1303});
1304
1305patnicha.addEventListener('click', () => {
1306    zagolovokDenNedely.textContent = `Пятница`;
1307
1308    sixA1.textContent = pt.sixA;
1309    sixB1.textContent = pt.sixB;
1310    sixV1.textContent = pt.sixV;
1311    sevenA1.textContent = pt.sevenA;
1312    sevenB1.textContent = pt.sevenB;
1313    sevenV1.textContent = pt.sevenV;
1314    eightA1.textContent = pt.eightA;
1315    eightB1.textContent = pt.eightB;
1316    eightV1.textContent = pt.eightV;
1317
1318    sixA2.textContent = pt.sixA1;
1319    sixB2.textContent = pt.sixB1;
1320    sixV2.textContent = pt.sixV1;
1321    sevenA2.textContent = pt.sevenA1;
1322    sevenB2.textContent = pt.sevenB1;
1323    sevenV2.textContent = pt.sevenV1;
1324    eightA2.textContent = pt.eightA1;
1325    eightB2.textContent = pt.eightB1;
1326    eightV2.textContent = pt.eightV1;
1327
1328    sixA3.textContent = pt.sixA2;
1329    sixB3.textContent = pt.sixB2;
1330    sixV3.textContent = pt.sixV2;
1331    sevenA3.textContent = pt.sevenA2;
1332    sevenB3.textContent = pt.sevenB2;
1333    sevenV3.textContent = pt.sevenV2;
1334    eightA3.textContent = pt.eightA2;
1335    eightB3.textContent = pt.eightB2;
1336    eightV3.textContent = pt.eightV2;
1337
1338    sixA4.textContent = pt.sixA3;
1339    sixB4.textContent = pt.sixB3;
1340    sixV4.textContent = pt.sixV3;
1341    sevenA4.textContent = pt.sevenA3;
1342    sevenB4.textContent = pt.sevenB3;
1343    sevenV4.textContent = pt.sevenV3;
1344    eightA4.textContent = pt.eightA3;
1345    eightB4.textContent = pt.eightB3;
1346    eightV4.textContent = pt.eightV3;
1347
1348    sixA5.textContent = pt.sixA4;
1349    sixB5.textContent = pt.sixB4;
1350    sixV5.textContent = pt.sixV4;
1351    sevenA5.textContent = pt.sevenA4;
1352    sevenB5.textContent = pt.sevenB4;
1353    sevenV5.textContent = pt.sevenV4;
1354    eightA5.textContent = pt.eightA4;
1355    eightB5.textContent = pt.eightB4;
1356    eightV5.textContent = pt.eightV4;
1357
1358    sixA6.textContent = pt.sixA5;
1359    sixB6.textContent = pt.sixB5;
1360    sixV6.textContent = pt.sixV5;
1361    sevenA6.textContent = pt.sevenA5;
1362    sevenB6.textContent = pt.sevenB5;
1363    sevenV6.textContent = pt.sevenV5;
1364    eightA6.textContent = pt.eightA5;
1365    eightB6.textContent = pt.eightB5;
1366    eightV6.textContent = pt.eightV5;
1367
1368    sixA7.textContent = pt.sixA6;
1369    sixB7.textContent = pt.sixB6;
1370    sixV7.textContent = pt.sixV6;
1371    sevenA7.textContent = pt.sevenA6;
1372    sevenB7.textContent = pt.sevenB6;
1373    sevenV7.textContent = pt.sevenV6;
1374    eightA7.textContent = pt.eightA6;
1375    eightB7.textContent = pt.eightB6;
1376    eightV7.textContent = pt.eightV6;
1377});
1378
1379
1380subbota.addEventListener('click', () => {
1381    zagolovokDenNedely.textContent = `Суббота`;
1382
1383    sixA1.textContent = su.sixA;
1384    sixB1.textContent = su.sixB;
1385    sixV1.textContent = su.sixV;
1386    sevenA1.textContent = su.sevenA;
1387    sevenB1.textContent = su.sevenB;
1388    sevenV1.textContent = su.sevenV;
1389    eightA1.textContent = su.eightA;
1390    eightB1.textContent = su.eightB;
1391    eightV1.textContent = su.eightV;
1392
1393    sixA2.textContent = su.sixA1;
1394    sixB2.textContent = su.sixB1;
1395    sixV2.textContent = su.sixV1;
1396    sevenA2.textContent = su.sevenA1;
1397    sevenB2.textContent = su.sevenB1;
1398    sevenV2.textContent = su.sevenV1;
1399    eightA2.textContent = su.eightA1;
1400    eightB2.textContent = su.eightB1;
1401    eightV2.textContent = su.eightV1;
1402
1403    sixA3.textContent = pt.sixA2;
1404    sixB3.textContent = su.sixB2;
1405    sixV3.textContent = su.sixV2;
1406    sevenA3.textContent = su.sevenA2;
1407    sevenB3.textContent = su.sevenB2;
1408    sevenV3.textContent = su.sevenV2;
1409    eightA3.textContent = su.eightA2;
1410    eightB3.textContent = su.eightB2;
1411    eightV3.textContent = su.eightV2;
1412
1413    sixA4.textContent = su.sixB3;
1414    sixV4.textContent = su.sixV3;
1415    sevenA4.textContent = su.sevenA3;
1416    sevenB4.textContent = su.sevenB3;
1417    sevenV4.textContent = su.sevenV3;
1418    eightA4.textContent = su.eightA3;
1419    eightB4.textContent = su.eightB3;
1420    eightV4.textContent = su.eightV3;
1421
1422    sixA5.textContent = su.sixA4;
1423    sixB5.textContent = su.sixB4;
1424    sixV5.textContent = su.sixV4;
1425    sevenA5.textContent = su.sevenA4;
1426    sevenB5.textContent = su.sevenB4;
1427    sevenV5.textContent = su.sevenV4;
1428    eightA5.textContent = su.eightA4;
1429    eightB5.textContent = su.eightB4;
1430    eightV5.textContent = su.eightV4;
1431
1432    sixA6.textContent = su.sixA5;
1433    sixB6.textContent = su.sixB5;
1434    sixV6.textContent = su.sixV5;
1435    sevenA6.textContent = su.sevenA5;
1436    sevenB6.textContent = su.sevenB5;
1437    sevenV6.textContent = su.sevenV5;
1438    eightA6.textContent = su.eightA5;
1439    eightB6.textContent = su.eightB5;
1440    eightV6.textContent = su.eightV5;
1441
1442    sixA7.textContent = su.sixA6;
1443    sixB7.textContent = su.sixB6;
1444    sixV7.textContent = su.sixV6;
1445    sevenA7.textContent = su.sevenA6;
1446    sevenB7.textContent = su.sevenB6;
1447    sevenV7.textContent = su.sevenV6;
1448    eightA7.textContent = su.eightA6;
1449    eightB7.textContent = su.eightB6;
1450    eightV7.textContent = su.eightV6;
1451});
1452
Full Screen

Accelerate Your Automation Test Cycles With LambdaTest

Leverage LambdaTest’s cloud-based platform to execute your automation tests in parallel and trim down your test execution time significantly. Your first 100 automation testing minutes are on us.

Try LambdaTest

Run JavaScript Tests on LambdaTest Cloud Grid

Execute automation tests with Playwright Internal on a cloud-based Grid of 3000+ real browsers and operating systems for both web and mobile applications.

Test now for Free
LambdaTestX

We use cookies to give you the best experience. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. Learn More in our Cookies policy, Privacy & Terms of service

Allow Cookie
Sarah

I hope you find the best code examples for your project.

If you want to accelerate automated browser testing, try LambdaTest. Your first 100 automation testing minutes are FREE.

Sarah Elson (Product & Growth Lead)