How to use isBoolean method in tracetest

Best JavaScript code snippet using tracetest

app.js

Source:app.js Github

copy

Full Screen

1const TABLE = document.getElementById("table");2const MINUS = document.getElementById("minus");3const MAXBALL = document.getElementById("maxball");4let isBoolean = true;5function all() {6 TABLE.classList.add("d-none");7 MAXBALL.classList.remove("d-none")8}9function more() {10 TABLE.classList.remove("d-none");11 MAXBALL.classList.add("d-none")12}13// Abduqodirova Dilshoda14// 1-masala15const AbduqodirovaDilshoda1masala = document.getElementById("Abduqodirova_Dilshoda_1");16// 2-masala17const AbduqodirovaDilshoda2masala = document.getElementById("Abduqodirova_Dilshoda_2");18// 3-masala19// 4-masala20const AbduqodirovaDilshoda4masala = document.getElementById("Abduqodirova_Dilshoda_4");21// 5-masala22// 6-masala23// 7-masala24// 8-masala25const AbduqodirovaDilshoda8masala = document.getElementById("Abduqodirova_Dilshoda_8");26// 9-masala27const AbduqodirovaDilshoda9masala = document.getElementById("Abduqodirova_Dilshoda_9");28// 10-masala29const AbduqodirovaDilshoda10masala = document.getElementById("Abduqodirova_Dilshoda_10");30// 11-masala31const AbduqodirovaDilshoda11masala = document.getElementById("Abduqodirova_Dilshoda_11");32// 12-masala33const AbduqodirovaDilshoda12masala = document.getElementById("Abduqodirova_Dilshoda_12");34// 15-masala35const AbduqodirovaDilshoda15masala = document.getElementById("Abduqodirova_Dilshoda_15");36// 16-masala37const AbduqodirovaDilshoda16masala = document.getElementById("Abduqodirova_Dilshoda_16");38// 29-masala39const AbduqodirovaDilshoda29masala = document.getElementById("Abduqodirova_Dilshoda_29");40// 30-masala41const AbduqodirovaDilshoda30masala = document.getElementById("Abduqodirova_Dilshoda_30");42// 31-masala43const AbduqodirovaDilshoda31masala = document.getElementById("Abduqodirova_Dilshoda_31");44// 32-masala45const AbduqodirovaDilshoda32masala = document.getElementById("Abduqodirova_Dilshoda_32");46// 33-masala47const AbduqodirovaDilshoda33masala = document.getElementById("Abduqodirova_Dilshoda_33");48// 34-masala49const AbduqodirovaDilshoda34masala = document.getElementById("Abduqodirova_Dilshoda_34");50// 35-masala51const AbduqodirovaDilshoda35masala = document.getElementById("Abduqodirova_Dilshoda_35");52// 64-masala53const AbduqodirovaDilshoda64masala = document.getElementById("Abduqodirova_Dilshoda_64");54// 65-masala55const AbduqodirovaDilshoda65masala = document.getElementById("Abduqodirova_Dilshoda_65");56// 66-masala57const AbduqodirovaDilshoda66masala = document.getElementById("Abduqodirova_Dilshoda_66");58// 67-masala59const AbduqodirovaDilshoda67masala = document.getElementById("Abduqodirova_Dilshoda_67");60// 68-masala61const AbduqodirovaDilshoda68masala = document.getElementById("Abduqodirova_Dilshoda_68");62// 69-masala63const AbduqodirovaDilshoda69masala = document.getElementById("Abduqodirova_Dilshoda_69");64// 70-masala65const AbduqodirovaDilshoda70masala = document.getElementById("Abduqodirova_Dilshoda_70");66// Ulashev Mashhura67// 1-masala68const UlashevaMashhura1masala = document.getElementById("Ulasheva_Mashhura_1");69// 3-masala70const UlashevaMashhura3masala = document.getElementById("Ulasheva_Mashhura_3");71// 4-masala72const UlashevaMashhura4masala = document.getElementById("Ulasheva_Mashhura_4");73// 5-masala74const UlashevaMashhura5masala = document.getElementById("Ulasheva_Mashhura_5");75// 6-masala76const UlashevaMashhura6masala = document.getElementById("Ulasheva_Mashhura_6");77// 7-masala78const UlashevaMashhura7masala = document.getElementById("Ulasheva_Mashhura_7");79// 8-masala80const UlashevaMashhura8masala = document.getElementById("Ulasheva_Mashhura_8");81// 9-masala82const UlashevaMashhura9masala = document.getElementById("Ulasheva_Mashhura_9");83// 10-masala84const UlashevaMashhura10masala = document.getElementById("Ulasheva_Mashhura_10");85// 11-masala86const UlashevaMashhura11masala = document.getElementById("Ulasheva_Mashhura_11");87// 12-masala88const UlashevaMashhura12masala = document.getElementById("Ulasheva_Mashhura_12");89// 13-masala90const UlashevaMashhura13masala = document.getElementById("Ulasheva_Mashhura_13");91// 14-masala92const UlashevaMashhura14masala = document.getElementById("Ulasheva_Mashhura_14");93// 15-masala94const UlashevaMashhura15masala = document.getElementById("Ulasheva_Mashhura_15");95// 16-masala96const UlashevaMashhura16masala = document.getElementById("Ulasheva_Mashhura_16");97// 17-masala98const UlashevaMashhura17masala = document.getElementById("Ulasheva_Mashhura_17");99// 18-masala100const UlashevaMashhura18masala = document.getElementById("Ulasheva_Mashhura_18");101// 19-masala102const UlashevaMashhura19masala = document.getElementById("Ulasheva_Mashhura_19");103// 20-masala104const UlashevaMashhura20masala = document.getElementById("Ulasheva_Mashhura_20");105// 21-masala106const UlashevaMashhura21masala = document.getElementById("Ulasheva_Mashhura_21");107// 22-masala108const UlashevaMashhura22masala = document.getElementById("Ulasheva_Mashhura_22");109// 23-masala110const UlashevaMashhura23masala = document.getElementById("Ulasheva_Mashhura_23");111// 24-masala112const UlashevaMashhura24masala = document.getElementById("Ulasheva_Mashhura_24");113// 25-masala114const UlashevaMashhura25masala = document.getElementById("Ulasheva_Mashhura_25");115// 26-masala116const UlashevaMashhura26masala = document.getElementById("Ulasheva_Mashhura_26");117// 27-masala118const UlashevaMashhura27masala = document.getElementById("Ulasheva_Mashhura_27");119// 28-masala120const UlashevaMashhura28masala = document.getElementById("Ulasheva_Mashhura_28");121// 29-masala122const UlashevaMashhura29masala = document.getElementById("Ulasheva_Mashhura_29");123// 30-masala124const UlashevaMashhura30masala = document.getElementById("Ulasheva_Mashhura_30");125// 31-masala126const UlashevaMashhura31masala = document.getElementById("Ulasheva_Mashhura_31");127// 32-masala128const UlashevaMashhura32masala = document.getElementById("Ulasheva_Mashhura_32");129// 33-masala130const UlashevaMashhura33masala = document.getElementById("Ulasheva_Mashhura_33");131// 34-masala132const UlashevaMashhura34masala = document.getElementById("Ulasheva_Mashhura_34");133// 35-masala134const UlashevaMashhura35masala = document.getElementById("Ulasheva_Mashhura_35");135// 50-masala136const UlashevaMashhura50masala = document.getElementById("Ulasheva_Mashhura_50");137// 51-masala138const UlashevaMashhura51masala = document.getElementById("Ulasheva_Mashhura_51");139// 52-masala140const UlashevaMashhura52masala = document.getElementById("Ulasheva_Mashhura_52");141// 53-masala142const UlashevaMashhura53masala = document.getElementById("Ulasheva_Mashhura_53");143// 54-masala144const UlashevaMashhura54masala = document.getElementById("Ulasheva_Mashhura_54");145// 55-masala146const UlashevaMashhura55masala = document.getElementById("Ulasheva_Mashhura_55");147// 56-masala148const UlashevaMashhura56masala = document.getElementById("Ulasheva_Mashhura_56");149// Usmonov Azimjon150// 1-masala151const UsmonovAzimjon1masala = document.getElementById("Usmonov_Azimjon_1");152// Yangiboyev Kamol153// 1-masala154const YangiboyevKamol1masala = document.getElementById("Yangiboyev_Kamol_1");155// 8-masala156const YangiboyevKamol8masala = document.getElementById("Yangiboyev_Kamol_8");157// 9-masala158const YangiboyevKamol9masala = document.getElementById("Yangiboyev_Kamol_9");159// 10-masala160const YangiboyevKamol10masala = document.getElementById("Yangiboyev_Kamol_10");161// 11-masala162const YangiboyevKamol11masala = document.getElementById("Yangiboyev_Kamol_11");163// 12-masala164const YangiboyevKamol12masala = document.getElementById("Yangiboyev_Kamol_12");165// 29-masala166const YangiboyevKamol29masala = document.getElementById("Yangiboyev_Kamol_29");167// 31-masala168const YangiboyevKamol31masala = document.getElementById("Yangiboyev_Kamol_31");169// 35-masala170const YangiboyevKamol35masala = document.getElementById("Yangiboyev_Kamol_35");171// Samatova Gulmira172// 1-masala173const SamatovaGulmira1masala = document.getElementById("Samatova_Gulmira_1");174// 39-masala175const SamatovaGulmira39masala = document.getElementById("Samatova_Gulmira_39");176// 40-masala177const SamatovaGulmira40masala = document.getElementById("Samatova_Gulmira_40");178// 41-masala179const SamatovaGulmira41masala = document.getElementById("Samatova_Gulmira_41");180// 43-masala181const SamatovaGulmira43masala = document.getElementById("Samatova_Gulmira_43");182// 44-masala183const SamatovaGulmira44masala = document.getElementById("Samatova_Gulmira_44");184// 47-masala185const SamatovaGulmira47masala = document.getElementById("Samatova_Gulmira_47");186// 48-masala187const SamatovaGulmira48masala = document.getElementById("Samatova_Gulmira_48");188// 49-masala189const SamatovaGulmira49masala = document.getElementById("Samatova_Gulmira_49");190// Mamatqulov Fathulla191// 1-masala192const MamatqulovFathulla1masala = document.getElementById("Mamatqulov_Fathulla_1");193// Baratov Abbos194// 8-masala195const BarotovAbbos8masala = document.getElementById("Barotov_Abbos_8");196// 9-masala197const BarotovAbbos9masala = document.getElementById("Barotov_Abbos_9");198// 10-masala199const BarotovAbbos10masala = document.getElementById("Barotov_Abbos_10");200// 11-masala201const BarotovAbbos11masala = document.getElementById("Barotov_Abbos_11");202// 12-masala203const BarotovAbbos12masala = document.getElementById("Barotov_Abbos_12");204// 13-masala205const BarotovAbbos13masala = document.getElementById("Barotov_Abbos_13");206// 14-masala207const BarotovAbbos14masala = document.getElementById("Barotov_Abbos_14");208// Qo'chqorov Abulqosim209// 8-masala210const QuchqorovAbulqosim8masala = document.getElementById("Quchqorov_Abulqosim_8");211// 9-masala212const QuchqorovAbulqosim9masala = document.getElementById("Quchqorov_Abulqosim_9");213// 10-masala214const QuchqorovAbulqosim10masala = document.getElementById("Quchqorov_Abulqosim_10");215// 11-masala216const QuchqorovAbulqosim11masala = document.getElementById("Quchqorov_Abulqosim_11");217// 12-masala218const QuchqorovAbulqosim12masala = document.getElementById("Quchqorov_Abulqosim_12");219// 14-masala220const QuchqorovAbulqosim14masala = document.getElementById("Quchqorov_Abulqosim_14");221// 29-masala222const QuchqorovAbulqosim29masala = document.getElementById("Quchqorov_Abulqosim_29");223// 30-masala224const QuchqorovAbulqosim30masala = document.getElementById("Quchqorov_Abulqosim_30");225// 31-masala226const QuchqorovAbulqosim31masala = document.getElementById("Quchqorov_Abulqosim_31");227// 32-masala228const QuchqorovAbulqosim32masala = document.getElementById("Quchqorov_Abulqosim_32");229// 33-masala230const QuchqorovAbulqosim33masala = document.getElementById("Quchqorov_Abulqosim_33");231// 34-masala232const QuchqorovAbulqosim34masala = document.getElementById("Quchqorov_Abulqosim_34");233// 44-masala234const QuchqorovAbulqosim44masala = document.getElementById("Quchqorov_Abulqosim_44");235// 45-masala236const QuchqorovAbulqosim45masala = document.getElementById("Quchqorov_Abulqosim_45");237// 46-masala238const QuchqorovAbulqosim46masala = document.getElementById("Quchqorov_Abulqosim_46");239// 47-masala240const QuchqorovAbulqosim47masala = document.getElementById("Quchqorov_Abulqosim_47");241// 48-masala242const QuchqorovAbulqosim48masala = document.getElementById("Quchqorov_Abulqosim_48");243// 49-masala244const QuchqorovAbulqosim49masala = document.getElementById("Quchqorov_Abulqosim_49");245// Ergashev Qayumjon246// 29-masala247const ErgashevQayumjon29masala = document.getElementById("Ergashev_Qayumjon_29");248// 36-masala249const ErgashevQayumjon36masala = document.getElementById("Ergashev_Qayumjon_36");250// 37-masala251const ErgashevQayumjon37masala = document.getElementById("Ergashev_Qayumjon_37");252// 38-masala253const ErgashevQayumjon38masala = document.getElementById("Ergashev_Qayumjon_38");254// 39-masala255const ErgashevQayumjon39masala = document.getElementById("Ergashev_Qayumjon_39");256// 40-masala257const ErgashevQayumjon40masala = document.getElementById("Ergashev_Qayumjon_40");258// Raxmatullayev Xurshid259// 29-masala260const RaxmatullayevXurshid29masala = document.getElementById("Raxmatullayev_Xurshid_29");261// Begbo'tayev Sunnatillo262// 29-masala263const BegbutayevSunnatillo35masala = document.getElementById("Begbutayev_Sunnatillo_35");264function minus() {265 if (isBoolean) {266 all();267 MINUS.classList.remove("d-none");268 isBoolean = false;269 } else {270 more();271 MINUS.classList.add("d-none");272 isBoolean = true;273 }274}275// Abduqodirova Dilshoda276// 1-masala277function AbduqodirovaDilshodamasala1() {278 if (isBoolean) {279 all();280 AbduqodirovaDilshoda1masala.classList.remove("d-none");281 isBoolean = false;282 } else {283 more();284 AbduqodirovaDilshoda1masala.classList.add("d-none");285 isBoolean = true;286 }287}288function AbduqodirovaDilshodamasala2() {289 if (isBoolean) {290 all();291 AbduqodirovaDilshoda2masala.classList.remove("d-none");292 isBoolean = false;293 } else {294 more();295 AbduqodirovaDilshoda2masala.classList.add("d-none");296 isBoolean = true;297 }298}299function AbduqodirovaDilshodamasala4() {300 if (isBoolean) {301 all();302 AbduqodirovaDilshoda4masala.classList.remove("d-none");303 isBoolean = false;304 } else {305 more();306 AbduqodirovaDilshoda4masala.classList.add("d-none");307 isBoolean = true;308 }309}310function AbduqodirovaDilshodamasala8() {311 if (isBoolean) {312 all();313 AbduqodirovaDilshoda8masala.classList.remove("d-none");314 isBoolean = false;315 } else {316 more();317 AbduqodirovaDilshoda8masala.classList.add("d-none");318 isBoolean = true;319 }320}321function AbduqodirovaDilshodamasala9() {322 if (isBoolean) {323 all();324 AbduqodirovaDilshoda9masala.classList.remove("d-none");325 isBoolean = false;326 } else {327 more();328 AbduqodirovaDilshoda9masala.classList.add("d-none");329 isBoolean = true;330 }331}332function AbduqodirovaDilshodamasala10() {333 if (isBoolean) {334 all();335 AbduqodirovaDilshoda10masala.classList.remove("d-none");336 isBoolean = false;337 } else {338 more();339 AbduqodirovaDilshoda10masala.classList.add("d-none");340 isBoolean = true;341 }342}343function AbduqodirovaDilshodamasala11() {344 if (isBoolean) {345 all();346 AbduqodirovaDilshoda11masala.classList.remove("d-none");347 isBoolean = false;348 } else {349 more();350 AbduqodirovaDilshoda11masala.classList.add("d-none");351 isBoolean = true;352 }353}354function AbduqodirovaDilshodamasala12() {355 if (isBoolean) {356 all();357 AbduqodirovaDilshoda12masala.classList.remove("d-none");358 isBoolean = false;359 } else {360 more();361 AbduqodirovaDilshoda12masala.classList.add("d-none");362 isBoolean = true;363 }364}365function AbduqodirovaDilshodamasala15() {366 if (isBoolean) {367 all();368 AbduqodirovaDilshoda15masala.classList.remove("d-none");369 isBoolean = false;370 } else {371 more();372 AbduqodirovaDilshoda15masala.classList.add("d-none");373 isBoolean = true;374 }375}376function AbduqodirovaDilshodamasala16() {377 if (isBoolean) {378 all();379 AbduqodirovaDilshoda16masala.classList.remove("d-none");380 isBoolean = false;381 } else {382 more();383 AbduqodirovaDilshoda16masala.classList.add("d-none");384 isBoolean = true;385 }386}387function AbduqodirovaDilshodamasala29() {388 if (isBoolean) {389 all();390 AbduqodirovaDilshoda29masala.classList.remove("d-none");391 isBoolean = false;392 } else {393 more();394 AbduqodirovaDilshoda29masala.classList.add("d-none");395 isBoolean = true;396 }397}398function AbduqodirovaDilshodamasala30() {399 if (isBoolean) {400 all();401 AbduqodirovaDilshoda30masala.classList.remove("d-none");402 isBoolean = false;403 } else {404 more();405 AbduqodirovaDilshoda30masala.classList.add("d-none");406 isBoolean = true;407 }408}409function AbduqodirovaDilshodamasala31() {410 if (isBoolean) {411 all();412 AbduqodirovaDilshoda31masala.classList.remove("d-none");413 isBoolean = false;414 } else {415 more();416 AbduqodirovaDilshoda31masala.classList.add("d-none");417 isBoolean = true;418 }419}420function AbduqodirovaDilshodamasala32() {421 if (isBoolean) {422 all();423 AbduqodirovaDilshoda32masala.classList.remove("d-none");424 isBoolean = false;425 } else {426 more();427 AbduqodirovaDilshoda32masala.classList.add("d-none");428 isBoolean = true;429 }430}431function AbduqodirovaDilshodamasala33() {432 if (isBoolean) {433 all();434 AbduqodirovaDilshoda33masala.classList.remove("d-none");435 isBoolean = false;436 } else {437 more();438 AbduqodirovaDilshoda33masala.classList.add("d-none");439 isBoolean = true;440 }441}442function AbduqodirovaDilshodamasala34() {443 if (isBoolean) {444 all();445 AbduqodirovaDilshoda34masala.classList.remove("d-none");446 isBoolean = false;447 } else {448 more();449 AbduqodirovaDilshoda34masala.classList.add("d-none");450 isBoolean = true;451 }452}453function AbduqodirovaDilshodamasala35() {454 if (isBoolean) {455 all();456 AbduqodirovaDilshoda35masala.classList.remove("d-none");457 isBoolean = false;458 } else {459 more();460 AbduqodirovaDilshoda35masala.classList.add("d-none");461 isBoolean = true;462 }463}464function AbduqodirovaDilshodamasala64() {465 if (isBoolean) {466 all();467 AbduqodirovaDilshoda64masala.classList.remove("d-none");468 isBoolean = false;469 } else {470 more();471 AbduqodirovaDilshoda64masala.classList.add("d-none");472 isBoolean = true;473 }474}475function AbduqodirovaDilshodamasala65() {476 if (isBoolean) {477 all();478 AbduqodirovaDilshoda65masala.classList.remove("d-none");479 isBoolean = false;480 } else {481 more();482 AbduqodirovaDilshoda65masala.classList.add("d-none");483 isBoolean = true;484 }485}486function AbduqodirovaDilshodamasala66() {487 if (isBoolean) {488 all();489 AbduqodirovaDilshoda66masala.classList.remove("d-none");490 isBoolean = false;491 } else {492 more();493 AbduqodirovaDilshoda66masala.classList.add("d-none");494 isBoolean = true;495 }496}497function AbduqodirovaDilshodamasala67() {498 if (isBoolean) {499 all();500 AbduqodirovaDilshoda67masala.classList.remove("d-none");501 isBoolean = false;502 } else {503 more();504 AbduqodirovaDilshoda67masala.classList.add("d-none");505 isBoolean = true;506 }507}508function AbduqodirovaDilshodamasala68() {509 if (isBoolean) {510 all();511 AbduqodirovaDilshoda68masala.classList.remove("d-none");512 isBoolean = false;513 } else {514 more();515 AbduqodirovaDilshoda68masala.classList.add("d-none");516 isBoolean = true;517 }518}519function AbduqodirovaDilshodamasala69() {520 if (isBoolean) {521 all();522 AbduqodirovaDilshoda69masala.classList.remove("d-none");523 isBoolean = false;524 } else {525 more();526 AbduqodirovaDilshoda69masala.classList.add("d-none");527 isBoolean = true;528 }529}530function AbduqodirovaDilshodamasala70() {531 if (isBoolean) {532 all();533 AbduqodirovaDilshoda70masala.classList.remove("d-none");534 isBoolean = false;535 } else {536 more();537 AbduqodirovaDilshoda70masala.classList.add("d-none");538 isBoolean = true;539 }540}541// Ulashev Mashhura542// 1-masala543function UlashevaMashhuramasala1() {544 if (isBoolean) {545 all();546 UlashevaMashhura1masala.classList.remove("d-none");547 isBoolean = false;548 } else {549 more();550 UlashevaMashhura1masala.classList.add("d-none");551 isBoolean = true;552 }553}554// 2-masala555// 3-masala556function UlashevaMashhuramasala3() {557 if (isBoolean) {558 all();559 UlashevaMashhura3masala.classList.remove("d-none");560 isBoolean = false;561 } else {562 more();563 UlashevaMashhura3masala.classList.add("d-none");564 isBoolean = true;565 }566}567// 4-masala568function UlashevaMashhuramasala4() {569 if (isBoolean) {570 all();571 UlashevaMashhura4masala.classList.remove("d-none");572 isBoolean = false;573 } else {574 more();575 UlashevaMashhura4masala.classList.add("d-none");576 isBoolean = true;577 }578}579// 5-masala580function UlashevaMashhuramasala5() {581 if (isBoolean) {582 all();583 UlashevaMashhura5masala.classList.remove("d-none");584 isBoolean = false;585 } else {586 more();587 UlashevaMashhura5masala.classList.add("d-none");588 isBoolean = true;589 }590}591// 6-masala592function UlashevaMashhuramasala6() {593 if (isBoolean) {594 all();595 UlashevaMashhura6masala.classList.remove("d-none");596 isBoolean = false;597 } else {598 more();599 UlashevaMashhura6masala.classList.add("d-none");600 isBoolean = true;601 }602}603// 7-masala604function UlashevaMashhuramasala7() {605 if (isBoolean) {606 all();607 UlashevaMashhura7masala.classList.remove("d-none");608 isBoolean = false;609 } else {610 more();611 UlashevaMashhura7masala.classList.add("d-none");612 isBoolean = true;613 }614}615// 8-masala616function UlashevaMashhuramasala8() {617 if (isBoolean) {618 all();619 UlashevaMashhura8masala.classList.remove("d-none");620 isBoolean = false;621 } else {622 more();623 UlashevaMashhura8masala.classList.add("d-none");624 isBoolean = true;625 }626}627// 9-masala628function UlashevaMashhuramasala9() {629 if (isBoolean) {630 all();631 UlashevaMashhura9masala.classList.remove("d-none");632 isBoolean = false;633 } else {634 more();635 UlashevaMashhura9masala.classList.add("d-none");636 isBoolean = true;637 }638}639// 10-masala640function UlashevaMashhuramasala10() {641 if (isBoolean) {642 all();643 UlashevaMashhura10masala.classList.remove("d-none");644 isBoolean = false;645 } else {646 more();647 UlashevaMashhura10masala.classList.add("d-none");648 isBoolean = true;649 }650}651// 11-masala652function UlashevaMashhuramasala11() {653 if (isBoolean) {654 all();655 UlashevaMashhura11masala.classList.remove("d-none");656 isBoolean = false;657 } else {658 more();659 UlashevaMashhura11masala.classList.add("d-none");660 isBoolean = true;661 }662}663// 12-masala664function UlashevaMashhuramasala12() {665 if (isBoolean) {666 all();667 UlashevaMashhura12masala.classList.remove("d-none");668 isBoolean = false;669 } else {670 more();671 UlashevaMashhura12masala.classList.add("d-none");672 isBoolean = true;673 }674}675// 13-masala676function UlashevaMashhuramasala13() {677 if (isBoolean) {678 all();679 UlashevaMashhura13masala.classList.remove("d-none");680 isBoolean = false;681 } else {682 more();683 UlashevaMashhura13masala.classList.add("d-none");684 isBoolean = true;685 }686}687// 14-masala688function UlashevaMashhuramasala14() {689 if (isBoolean) {690 all();691 UlashevaMashhura14masala.classList.remove("d-none");692 isBoolean = false;693 } else {694 more();695 UlashevaMashhura14masala.classList.add("d-none");696 isBoolean = true;697 }698}699// 15-masala700function UlashevaMashhuramasala15() {701 if (isBoolean) {702 all();703 UlashevaMashhura15masala.classList.remove("d-none");704 isBoolean = false;705 } else {706 more();707 UlashevaMashhura15masala.classList.add("d-none");708 isBoolean = true;709 }710}711// 16-masala712function UlashevaMashhuramasala16() {713 if (isBoolean) {714 all();715 UlashevaMashhura16masala.classList.remove("d-none");716 isBoolean = false;717 } else {718 more();719 UlashevaMashhura16masala.classList.add("d-none");720 isBoolean = true;721 }722}723// 17-masala724function UlashevaMashhuramasala17() {725 if (isBoolean) {726 all();727 UlashevaMashhura17masala.classList.remove("d-none");728 isBoolean = false;729 } else {730 more();731 UlashevaMashhura17masala.classList.add("d-none");732 isBoolean = true;733 }734}735// 18-masala736function UlashevaMashhuramasala18() {737 if (isBoolean) {738 all();739 UlashevaMashhura18masala.classList.remove("d-none");740 isBoolean = false;741 } else {742 more();743 UlashevaMashhura18masala.classList.add("d-none");744 isBoolean = true;745 }746}747// 19-masala748function UlashevaMashhuramasala19() {749 if (isBoolean) {750 all();751 UlashevaMashhura19masala.classList.remove("d-none");752 isBoolean = false;753 } else {754 more();755 UlashevaMashhura19masala.classList.add("d-none");756 isBoolean = true;757 }758}759// 20-masala760function UlashevaMashhuramasala20() {761 if (isBoolean) {762 all();763 UlashevaMashhura20masala.classList.remove("d-none");764 isBoolean = false;765 } else {766 more();767 UlashevaMashhura20masala.classList.add("d-none");768 isBoolean = true;769 }770}771// 21-masala772function UlashevaMashhuramasala21() {773 if (isBoolean) {774 all();775 UlashevaMashhura21masala.classList.remove("d-none");776 isBoolean = false;777 } else {778 more();779 UlashevaMashhura21masala.classList.add("d-none");780 isBoolean = true;781 }782}783// 22-masala784function UlashevaMashhuramasala22() {785 if (isBoolean) {786 all();787 UlashevaMashhura22masala.classList.remove("d-none");788 isBoolean = false;789 } else {790 more();791 UlashevaMashhura22masala.classList.add("d-none");792 isBoolean = true;793 }794}795// 23-masala796function UlashevaMashhuramasala23() {797 if (isBoolean) {798 all();799 UlashevaMashhura23masala.classList.remove("d-none");800 isBoolean = false;801 } else {802 more();803 UlashevaMashhura23masala.classList.add("d-none");804 isBoolean = true;805 }806}807// 24-masala808function UlashevaMashhuramasala24() {809 if (isBoolean) {810 all();811 UlashevaMashhura24masala.classList.remove("d-none");812 isBoolean = false;813 } else {814 more();815 UlashevaMashhura24masala.classList.add("d-none");816 isBoolean = true;817 }818}819// 25-masala820function UlashevaMashhuramasala25() {821 if (isBoolean) {822 all();823 UlashevaMashhura25masala.classList.remove("d-none");824 isBoolean = false;825 } else {826 more();827 UlashevaMashhura25masala.classList.add("d-none");828 isBoolean = true;829 }830}831// 26-masala832function UlashevaMashhuramasala26() {833 if (isBoolean) {834 all();835 UlashevaMashhura26masala.classList.remove("d-none");836 isBoolean = false;837 } else {838 more();839 UlashevaMashhura26masala.classList.add("d-none");840 isBoolean = true;841 }842}843// 27-masala844function UlashevaMashhuramasala27() {845 if (isBoolean) {846 all();847 UlashevaMashhura27masala.classList.remove("d-none");848 isBoolean = false;849 } else {850 more();851 UlashevaMashhura27masala.classList.add("d-none");852 isBoolean = true;853 }854}855// 28-masala856function UlashevaMashhuramasala28() {857 if (isBoolean) {858 all();859 UlashevaMashhura28masala.classList.remove("d-none");860 isBoolean = false;861 } else {862 more();863 UlashevaMashhura28masala.classList.add("d-none");864 isBoolean = true;865 }866}867// 29-masala868function UlashevaMashhuramasala29() {869 if (isBoolean) {870 all();871 UlashevaMashhura29masala.classList.remove("d-none");872 isBoolean = false;873 } else {874 more();875 UlashevaMashhura29masala.classList.add("d-none");876 isBoolean = true;877 }878}879// 30-masala880function UlashevaMashhuramasala30() {881 if (isBoolean) {882 all();883 UlashevaMashhura30masala.classList.remove("d-none");884 isBoolean = false;885 } else {886 more();887 UlashevaMashhura30masala.classList.add("d-none");888 isBoolean = true;889 }890}891// 31-masala892function UlashevaMashhuramasala31() {893 if (isBoolean) {894 all();895 UlashevaMashhura31masala.classList.remove("d-none");896 isBoolean = false;897 } else {898 more();899 UlashevaMashhura31masala.classList.add("d-none");900 isBoolean = true;901 }902}903// 32-masala904function UlashevaMashhuramasala32() {905 if (isBoolean) {906 all();907 UlashevaMashhura32masala.classList.remove("d-none");908 isBoolean = false;909 } else {910 more();911 UlashevaMashhura32masala.classList.add("d-none");912 isBoolean = true;913 }914}915// 33-masala916function UlashevaMashhuramasala33() {917 if (isBoolean) {918 all();919 UlashevaMashhura33masala.classList.remove("d-none");920 isBoolean = false;921 } else {922 more();923 UlashevaMashhura33masala.classList.add("d-none");924 isBoolean = true;925 }926}927// 34-masala928function UlashevaMashhuramasala34() {929 if (isBoolean) {930 all();931 UlashevaMashhura34masala.classList.remove("d-none");932 isBoolean = false;933 } else {934 more();935 UlashevaMashhura34masala.classList.add("d-none");936 isBoolean = true;937 }938}939// 35-masala940function UlashevaMashhuramasala35() {941 if (isBoolean) {942 all();943 UlashevaMashhura35masala.classList.remove("d-none");944 isBoolean = false;945 } else {946 more();947 UlashevaMashhura35masala.classList.add("d-none");948 isBoolean = true;949 }950}951// 50-masala952function UlashevaMashhuramasala50() {953 if (isBoolean) {954 all();955 UlashevaMashhura50masala.classList.remove("d-none");956 isBoolean = false;957 } else {958 more();959 UlashevaMashhura50masala.classList.add("d-none");960 isBoolean = true;961 }962}963// 51-masala964function UlashevaMashhuramasala51() {965 if (isBoolean) {966 all();967 UlashevaMashhura51masala.classList.remove("d-none");968 isBoolean = false;969 } else {970 more();971 UlashevaMashhura51masala.classList.add("d-none");972 isBoolean = true;973 }974}975// 52-masala976function UlashevaMashhuramasala52() {977 if (isBoolean) {978 all();979 UlashevaMashhura52masala.classList.remove("d-none");980 isBoolean = false;981 } else {982 more();983 UlashevaMashhura52masala.classList.add("d-none");984 isBoolean = true;985 }986}987// 53-masala988function UlashevaMashhuramasala53() {989 if (isBoolean) {990 all();991 UlashevaMashhura53masala.classList.remove("d-none");992 isBoolean = false;993 } else {994 more();995 UlashevaMashhura53masala.classList.add("d-none");996 isBoolean = true;997 }998}999// 54-masala1000function UlashevaMashhuramasala54() {1001 if (isBoolean) {1002 all();1003 UlashevaMashhura54masala.classList.remove("d-none");1004 isBoolean = false;1005 } else {1006 more();1007 UlashevaMashhura54masala.classList.add("d-none");1008 isBoolean = true;1009 }1010}1011// 55-masala1012function UlashevaMashhuramasala55() {1013 if (isBoolean) {1014 all();1015 UlashevaMashhura55masala.classList.remove("d-none");1016 isBoolean = false;1017 } else {1018 more();1019 UlashevaMashhura55masala.classList.add("d-none");1020 isBoolean = true;1021 }1022}1023// 56-masala1024function UlashevaMashhuramasala56() {1025 if (isBoolean) {1026 all();1027 UlashevaMashhura56masala.classList.remove("d-none");1028 isBoolean = false;1029 } else {1030 more();1031 UlashevaMashhura56masala.classList.add("d-none");1032 isBoolean = true;1033 }1034}1035// Usmono Azimjon1036// 1-masala1037function UsmonovAzimjonmasala1() {1038 if (isBoolean) {1039 all();1040 UsmonovAzimjon1masala.classList.remove("d-none");1041 isBoolean = false;1042 } else {1043 more();1044 UsmonovAzimjon1masala.classList.add("d-none");1045 isBoolean = true;1046 }1047}1048// Yangiboyev Kamol1049// 1-masala1050function YangiboyevKamolmasala1() {1051 if (isBoolean) {1052 all();1053 YangiboyevKamol1masala.classList.remove("d-none");1054 isBoolean = false;1055 } else {1056 more();1057 YangiboyevKamol1masala.classList.add("d-none");1058 isBoolean = true;1059 }1060}1061// 8-masala1062function YangiboyevKamolmasala8() {1063 if (isBoolean) {1064 all();1065 YangiboyevKamol8masala.classList.remove("d-none");1066 isBoolean = false;1067 } else {1068 more();1069 YangiboyevKamol8masala.classList.add("d-none");1070 isBoolean = true;1071 }1072}1073// 9-masala1074function YangiboyevKamolmasala9() {1075 if (isBoolean) {1076 all();1077 YangiboyevKamol9masala.classList.remove("d-none");1078 isBoolean = false;1079 } else {1080 more();1081 YangiboyevKamol9masala.classList.add("d-none");1082 isBoolean = true;1083 }1084}1085// 10-masala1086function YangiboyevKamolmasala10() {1087 if (isBoolean) {1088 all();1089 YangiboyevKamol10masala.classList.remove("d-none");1090 isBoolean = false;1091 } else {1092 more();1093 YangiboyevKamol10masala.classList.add("d-none");1094 isBoolean = true;1095 }1096}1097// 11-masala1098function YangiboyevKamolmasala11() {1099 if (isBoolean) {1100 all();1101 YangiboyevKamol11masala.classList.remove("d-none");1102 isBoolean = false;1103 } else {1104 more();1105 YangiboyevKamol11masala.classList.add("d-none");1106 isBoolean = true;1107 }1108}1109// 12-masala1110function YangiboyevKamolmasala12() {1111 if (isBoolean) {1112 all();1113 YangiboyevKamol12masala.classList.remove("d-none");1114 isBoolean = false;1115 } else {1116 more();1117 YangiboyevKamol12masala.classList.add("d-none");1118 isBoolean = true;1119 }1120}1121// 29-masala1122function YangiboyevKamolmasala29() {1123 if (isBoolean) {1124 all();1125 YangiboyevKamol29masala.classList.remove("d-none");1126 isBoolean = false;1127 } else {1128 more();1129 YangiboyevKamol29masala.classList.add("d-none");1130 isBoolean = true;1131 }1132}1133// 31-masala1134function YangiboyevKamolmasala31() {1135 if (isBoolean) {1136 all();1137 YangiboyevKamol31masala.classList.remove("d-none");1138 isBoolean = false;1139 } else {1140 more();1141 YangiboyevKamol31masala.classList.add("d-none");1142 isBoolean = true;1143 }1144}1145// 35-masala1146function YangiboyevKamolmasala35() {1147 if (isBoolean) {1148 all();1149 YangiboyevKamol35masala.classList.remove("d-none");1150 isBoolean = false;1151 } else {1152 more();1153 YangiboyevKamol35masala.classList.add("d-none");1154 isBoolean = true;1155 }1156}1157// Samatova Gulmira1158// 1-masala1159function SamatovaGulmiramasala1() {1160 if (isBoolean) {1161 all();1162 SamatovaGulmira1masala.classList.remove("d-none");1163 isBoolean = false;1164 } else {1165 more();1166 SamatovaGulmira1masala.classList.add("d-none");1167 isBoolean = true;1168 }1169}1170// 39-masala1171function SamatovaGulmiramasala39() {1172 if (isBoolean) {1173 all();1174 SamatovaGulmira39masala.classList.remove("d-none");1175 isBoolean = false;1176 } else {1177 more();1178 SamatovaGulmira39masala.classList.add("d-none");1179 isBoolean = true;1180 }1181}1182// 40-masala1183function SamatovaGulmiramasala40() {1184 if (isBoolean) {1185 all();1186 SamatovaGulmira40masala.classList.remove("d-none");1187 isBoolean = false;1188 } else {1189 more();1190 SamatovaGulmira40masala.classList.add("d-none");1191 isBoolean = true;1192 }1193}1194// 41-masala1195function SamatovaGulmiramasala41() {1196 if (isBoolean) {1197 all();1198 SamatovaGulmira41masala.classList.remove("d-none");1199 isBoolean = false;1200 } else {1201 more();1202 SamatovaGulmira41masala.classList.add("d-none");1203 isBoolean = true;1204 }1205}1206// 43-masala1207function SamatovaGulmiramasala43() {1208 if (isBoolean) {1209 all();1210 SamatovaGulmira43masala.classList.remove("d-none");1211 isBoolean = false;1212 } else {1213 more();1214 SamatovaGulmira43masala.classList.add("d-none");1215 isBoolean = true;1216 }1217}1218// 44-masala1219function SamatovaGulmiramasala44() {1220 if (isBoolean) {1221 all();1222 SamatovaGulmira44masala.classList.remove("d-none");1223 isBoolean = false;1224 } else {1225 more();1226 SamatovaGulmira44masala.classList.add("d-none");1227 isBoolean = true;1228 }1229}1230// 47-masala1231function SamatovaGulmiramasala47() {1232 if (isBoolean) {1233 all();1234 SamatovaGulmira47masala.classList.remove("d-none");1235 isBoolean = false;1236 } else {1237 more();1238 SamatovaGulmira47masala.classList.add("d-none");1239 isBoolean = true;1240 }1241}1242// 48-masala1243function SamatovaGulmiramasala48() {1244 if (isBoolean) {1245 all();1246 SamatovaGulmira48masala.classList.remove("d-none");1247 isBoolean = false;1248 } else {1249 more();1250 SamatovaGulmira48masala.classList.add("d-none");1251 isBoolean = true;1252 }1253}1254// 49-masala1255function SamatovaGulmiramasala49() {1256 if (isBoolean) {1257 all();1258 SamatovaGulmira49masala.classList.remove("d-none");1259 isBoolean = false;1260 } else {1261 more();1262 SamatovaGulmira49masala.classList.add("d-none");1263 isBoolean = true;1264 }1265}1266// Mamatqulov Fathulla1267function MamatqulovFathullamasala1() {1268 if (isBoolean) {1269 all();1270 MamatqulovFathulla1masala.classList.remove("d-none");1271 isBoolean = false;1272 } else {1273 more();1274 MamatqulovFathulla1masala.classList.add("d-none");1275 isBoolean = true;1276 }1277}1278// Baratov Abbos1279// 8-masala1280function BarotovAbbosmasala8() {1281 if (isBoolean) {1282 all();1283 BarotovAbbos8masala.classList.remove("d-none");1284 isBoolean = false;1285 } else {1286 more();1287 BarotovAbbos8masala.classList.add("d-none");1288 isBoolean = true;1289 }1290}1291// 9-masala1292function BarotovAbbosmasala9() {1293 if (isBoolean) {1294 all();1295 BarotovAbbos9masala.classList.remove("d-none");1296 isBoolean = false;1297 } else {1298 more();1299 BarotovAbbos9masala.classList.add("d-none");1300 isBoolean = true;1301 }1302}1303// 10-masala1304function BarotovAbbosmasala10() {1305 if (isBoolean) {1306 all();1307 BarotovAbbos10masala.classList.remove("d-none");1308 isBoolean = false;1309 } else {1310 more();1311 BarotovAbbos10masala.classList.add("d-none");1312 isBoolean = true;1313 }1314}1315// 11-masala1316function BarotovAbbosmasala11() {1317 if (isBoolean) {1318 all();1319 BarotovAbbos11masala.classList.remove("d-none");1320 isBoolean = false;1321 } else {1322 more();1323 BarotovAbbos11masala.classList.add("d-none");1324 isBoolean = true;1325 }1326}1327// 12-masala1328function BarotovAbbosmasala12() {1329 if (isBoolean) {1330 all();1331 BarotovAbbos12masala.classList.remove("d-none");1332 isBoolean = false;1333 } else {1334 more();1335 BarotovAbbos12masala.classList.add("d-none");1336 isBoolean = true;1337 }1338}1339// 13-masala1340function BarotovAbbosmasala13() {1341 if (isBoolean) {1342 all();1343 BarotovAbbos13masala.classList.remove("d-none");1344 isBoolean = false;1345 } else {1346 more();1347 BarotovAbbos13masala.classList.add("d-none");1348 isBoolean = true;1349 }1350}1351// 14-masala1352function BarotovAbbosmasala14() {1353 if (isBoolean) {1354 all();1355 BarotovAbbos14masala.classList.remove("d-none");1356 isBoolean = false;1357 } else {1358 more();1359 BarotovAbbos14masala.classList.add("d-none");1360 isBoolean = true;1361 }1362}1363// Qo'chqorov Abulqosim1364// 8-masala1365function QuchqorovAbulqosimmasala8() {1366 if (isBoolean) {1367 all();1368 QuchqorovAbulqosim8masala.classList.remove("d-none");1369 isBoolean = false;1370 } else {1371 more();1372 QuchqorovAbulqosim8masala.classList.add("d-none");1373 isBoolean = true;1374 }1375}1376// 9-masala1377function QuchqorovAbulqosimmasala9() {1378 if (isBoolean) {1379 all();1380 QuchqorovAbulqosim9masala.classList.remove("d-none");1381 isBoolean = false;1382 } else {1383 more();1384 QuchqorovAbulqosim9masala.classList.add("d-none");1385 isBoolean = true;1386 }1387}1388// 10-masala1389function QuchqorovAbulqosimmasala10() {1390 if (isBoolean) {1391 all();1392 QuchqorovAbulqosim10masala.classList.remove("d-none");1393 isBoolean = false;1394 } else {1395 more();1396 QuchqorovAbulqosim10masala.classList.add("d-none");1397 isBoolean = true;1398 }1399}1400// 11-masala1401function QuchqorovAbulqosimmasala11() {1402 if (isBoolean) {1403 all();1404 QuchqorovAbulqosim11masala.classList.remove("d-none");1405 isBoolean = false;1406 } else {1407 more();1408 QuchqorovAbulqosim11masala.classList.add("d-none");1409 isBoolean = true;1410 }1411}1412// 12-masala1413function QuchqorovAbulqosimmasala12() {1414 if (isBoolean) {1415 all();1416 QuchqorovAbulqosim12masala.classList.remove("d-none");1417 isBoolean = false;1418 } else {1419 more();1420 QuchqorovAbulqosim12masala.classList.add("d-none");1421 isBoolean = true;1422 }1423}1424// 14-masala1425function QuchqorovAbulqosimmasala14() {1426 if (isBoolean) {1427 all();1428 QuchqorovAbulqosim14masala.classList.remove("d-none");1429 isBoolean = false;1430 } else {1431 more();1432 QuchqorovAbulqosim14masala.classList.add("d-none");1433 isBoolean = true;1434 }1435}1436// 29-masala1437function QuchqorovAbulqosimmasala29() {1438 if (isBoolean) {1439 all();1440 QuchqorovAbulqosim29masala.classList.remove("d-none");1441 isBoolean = false;1442 } else {1443 more();1444 QuchqorovAbulqosim29masala.classList.add("d-none");1445 isBoolean = true;1446 }1447}1448// 30-masala1449function QuchqorovAbulqosimmasala30() {1450 if (isBoolean) {1451 all();1452 QuchqorovAbulqosim30masala.classList.remove("d-none");1453 isBoolean = false;1454 } else {1455 more();1456 QuchqorovAbulqosim30masala.classList.add("d-none");1457 isBoolean = true;1458 }1459}1460// 31-masala1461function QuchqorovAbulqosimmasala31() {1462 if (isBoolean) {1463 all();1464 QuchqorovAbulqosim31masala.classList.remove("d-none");1465 isBoolean = false;1466 } else {1467 more();1468 QuchqorovAbulqosim31masala.classList.add("d-none");1469 isBoolean = true;1470 }1471}1472// 32-masala1473function QuchqorovAbulqosimmasala32() {1474 if (isBoolean) {1475 all();1476 QuchqorovAbulqosim32masala.classList.remove("d-none");1477 isBoolean = false;1478 } else {1479 more();1480 QuchqorovAbulqosim32masala.classList.add("d-none");1481 isBoolean = true;1482 }1483}1484// 33-masala1485function QuchqorovAbulqosimmasala33() {1486 if (isBoolean) {1487 all();1488 QuchqorovAbulqosim33masala.classList.remove("d-none");1489 isBoolean = false;1490 } else {1491 more();1492 QuchqorovAbulqosim33masala.classList.add("d-none");1493 isBoolean = true;1494 }1495}1496// 34-masala1497function QuchqorovAbulqosimmasala34() {1498 if (isBoolean) {1499 all();1500 QuchqorovAbulqosim34masala.classList.remove("d-none");1501 isBoolean = false;1502 } else {1503 more();1504 QuchqorovAbulqosim34masala.classList.add("d-none");1505 isBoolean = true;1506 }1507}1508// 44-masala1509function QuchqorovAbulqosimmasala44() {1510 if (isBoolean) {1511 all();1512 QuchqorovAbulqosim44masala.classList.remove("d-none");1513 isBoolean = false;1514 } else {1515 more();1516 QuchqorovAbulqosim44masala.classList.add("d-none");1517 isBoolean = true;1518 }1519}1520// 45-masala1521function QuchqorovAbulqosimmasala45() {1522 if (isBoolean) {1523 all();1524 QuchqorovAbulqosim45masala.classList.remove("d-none");1525 isBoolean = false;1526 } else {1527 more();1528 QuchqorovAbulqosim45masala.classList.add("d-none");1529 isBoolean = true;1530 }1531}1532// 46-masala1533function QuchqorovAbulqosimmasala46() {1534 if (isBoolean) {1535 all();1536 QuchqorovAbulqosim46masala.classList.remove("d-none");1537 isBoolean = false;1538 } else {1539 more();1540 QuchqorovAbulqosim46masala.classList.add("d-none");1541 isBoolean = true;1542 }1543}1544// 47-masala1545function QuchqorovAbulqosimmasala47() {1546 if (isBoolean) {1547 all();1548 QuchqorovAbulqosim47masala.classList.remove("d-none");1549 isBoolean = false;1550 } else {1551 more();1552 QuchqorovAbulqosim47masala.classList.add("d-none");1553 isBoolean = true;1554 }1555}1556// 48-masala1557function QuchqorovAbulqosimmasala48() {1558 if (isBoolean) {1559 all();1560 QuchqorovAbulqosim48masala.classList.remove("d-none");1561 isBoolean = false;1562 } else {1563 more();1564 QuchqorovAbulqosim48masala.classList.add("d-none");1565 isBoolean = true;1566 }1567}1568// 49-masala1569function QuchqorovAbulqosimmasala49() {1570 if (isBoolean) {1571 all();1572 QuchqorovAbulqosim49masala.classList.remove("d-none");1573 isBoolean = false;1574 } else {1575 more();1576 QuchqorovAbulqosim49masala.classList.add("d-none");1577 isBoolean = true;1578 }1579}1580// Ergashev Qayumjon1581// 29-masala1582function ErgashevQayumjonmasala29() {1583 if (isBoolean) {1584 all();1585 ErgashevQayumjon29masala.classList.remove("d-none");1586 isBoolean = false;1587 } else {1588 more();1589 ErgashevQayumjon29masala.classList.add("d-none");1590 isBoolean = true;1591 }1592}1593// 36-masala1594function ErgashevQayumjonmasala36() {1595 if (isBoolean) {1596 all();1597 ErgashevQayumjon36masala.classList.remove("d-none");1598 isBoolean = false;1599 } else {1600 more();1601 ErgashevQayumjon36masala.classList.add("d-none");1602 isBoolean = true;1603 }1604}1605// 37-masala1606function ErgashevQayumjonmasala37() {1607 if (isBoolean) {1608 all();1609 ErgashevQayumjon37masala.classList.remove("d-none");1610 isBoolean = false;1611 } else {1612 more();1613 ErgashevQayumjon37masala.classList.add("d-none");1614 isBoolean = true;1615 }1616}1617// 38-masala1618function ErgashevQayumjonmasala38() {1619 if (isBoolean) {1620 all();1621 ErgashevQayumjon38masala.classList.remove("d-none");1622 isBoolean = false;1623 } else {1624 more();1625 ErgashevQayumjon38masala.classList.add("d-none");1626 isBoolean = true;1627 }1628}1629// 39-masala1630function ErgashevQayumjonmasala39() {1631 if (isBoolean) {1632 all();1633 ErgashevQayumjon39masala.classList.remove("d-none");1634 isBoolean = false;1635 } else {1636 more();1637 ErgashevQayumjon39masala.classList.add("d-none");1638 isBoolean = true;1639 }1640}1641// 40-masala1642function ErgashevQayumjonmasala40() {1643 if (isBoolean) {1644 all();1645 ErgashevQayumjon40masala.classList.remove("d-none");1646 isBoolean = false;1647 } else {1648 more();1649 ErgashevQayumjon40masala.classList.add("d-none");1650 isBoolean = true;1651 }1652}1653// Raxmatullayev Xurshid1654function RaxmatullayevXurshidmasala29() {1655 if (isBoolean) {1656 all();1657 RaxmatullayevXurshid29masala.classList.remove("d-none");1658 isBoolean = false;1659 } else {1660 more();1661 RaxmatullayevXurshid29masala.classList.add("d-none");1662 isBoolean = true;1663 }1664}1665// EBegbo'tayev Sunnatillo1666function BegbutayevSunnatillomasala35() {1667 if (isBoolean) {1668 all();1669 BegbutayevSunnatillo35masala.classList.remove("d-none");1670 isBoolean = false;1671 } else {1672 more();1673 BegbutayevSunnatillo35masala.classList.add("d-none");1674 isBoolean = true;1675 }1676}1677/*1678*/1679// USER1680// 1-masala1681const USER1masala = document.getElementById("USER_1");1682// 2-masala1683const USER2masala = document.getElementById("USER_2");1684// 3-masala1685const USER3masala = document.getElementById("USER_3");1686// 4-masala1687const USER4masala = document.getElementById("USER_4");1688// 5-masala1689const USER5masala = document.getElementById("USER_5");1690// 6-masala1691const USER6masala = document.getElementById("USER_6");1692// 7-masala1693const USER7masala = document.getElementById("USER_7");1694// 8-masala1695// 9-masala1696// 10-masala1697// 13-masala1698const USER13masala = document.getElementById("USER_13");1699// 14-masala1700const USER14masala = document.getElementById("USER_14");1701// 15-masala1702const USER15masala = document.getElementById("USER_15");1703// 16-masala1704const USER16masala = document.getElementById("USER_16");1705// 17-masala1706const USER17masala = document.getElementById("USER_17");1707// 18-masala1708const USER18masala = document.getElementById("USER_18");1709// 19-masala1710const USER19masala = document.getElementById("USER_19");1711// 20-masala1712const USER20masala = document.getElementById("USER_20");1713// 21-masala1714const USER21masala = document.getElementById("USER_21");1715// 22-masala1716const USER22masala = document.getElementById("USER_22");1717// 23-masala1718const USER23masala = document.getElementById("USER_23");1719// 24-masala1720const USER24masala = document.getElementById("USER_24");1721// 25-masala1722const USER25masala = document.getElementById("USER_25");1723// 26-masala1724const USER26masala = document.getElementById("USER_26");1725// 27-masala1726const USER27masala = document.getElementById("USER_27");1727// 28-masala1728const USER28masala = document.getElementById("USER_28");1729// 29-masala1730const USER29masala = document.getElementById("USER_29");1731// 30-masala1732const USER30masala = document.getElementById("USER_30");1733// 31-masala1734const USER31masala = document.getElementById("USER_31");1735// 32-masala1736const USER32masala = document.getElementById("USER_32");1737// 33-masala1738const USER33masala = document.getElementById("USER_33");1739// 34-masala1740const USER34masala = document.getElementById("USER_34");1741// 35-masala1742const USER35masala = document.getElementById("USER_35");1743// 36-masala1744const USER36masala = document.getElementById("USER_36");1745// 37-masala1746const USER37masala = document.getElementById("USER_37");1747// 38-masala1748const USER38masala = document.getElementById("USER_38");1749// 39-masala1750const USER39masala = document.getElementById("USER_39");1751// 40-masala1752const USER40masala = document.getElementById("USER_40");1753// 41-masala1754const USER41masala = document.getElementById("USER_41");1755// 42-masala1756const USER42masala = document.getElementById("USER_42");1757// 43-masala1758const USER43masala = document.getElementById("USER_43");1759// 44-masala1760const USER44masala = document.getElementById("USER_44");1761// 45-masala1762const USER45masala = document.getElementById("USER_45");1763// 46-masala1764const USER46masala = document.getElementById("USER_46");1765// 47-masala1766const USER47masala = document.getElementById("USER_47");1767// 48-masala1768const USER48masala = document.getElementById("USER_48");1769// 49-masala1770const USER49masala = document.getElementById("USER_49");1771// 50-masala1772const USER50masala = document.getElementById("USER_50");1773// 51-masala1774const USER51masala = document.getElementById("USER_51");1775// 52-masala1776const USER52masala = document.getElementById("USER_52");1777// 53-masala1778const USER53masala = document.getElementById("USER_53");1779// 54-masala1780const USER54masala = document.getElementById("USER_54");1781// 55-masala1782const USER55masala = document.getElementById("USER_55");1783// 56-masala1784const USER56masala = document.getElementById("USER_56");1785// 57-masala1786const USER57masala = document.getElementById("USER_57");1787// 58-masala1788const USER58masala = document.getElementById("USER_58");1789// 59-masala1790const USER59masala = document.getElementById("USER_59");1791// 60-masala1792const USER60masala = document.getElementById("USER_60");1793// 61-masala1794const USER61masala = document.getElementById("USER_61");1795// 62-masala1796const USER62masala = document.getElementById("USER_62");1797// 63-masala1798const USER63masala = document.getElementById("USER_63");1799// 64-masala1800const USER64masala = document.getElementById("USER_64");1801// 65-masala1802const USER65masala = document.getElementById("USER_65");1803// 66-masala1804const USER66masala = document.getElementById("USER_66");1805// 67-masala1806const USER67masala = document.getElementById("USER_67");1807// 68-masala1808const USER68masala = document.getElementById("USER_68");1809// 69-masala1810const USER69masala = document.getElementById("USER_69");1811// 70-masala1812const USER70masala = document.getElementById("USER_70");1813function USERmasala1() {1814 if (isBoolean) {1815 all();1816 USER1masala.classList.remove("d-none");1817 isBoolean = false;1818 } else {1819 more();1820 USER1masala.classList.add("d-none");1821 isBoolean = true;1822 }1823}1824function USERmasala2() {1825 if (isBoolean) {1826 all();1827 USER2masala.classList.remove("d-none");1828 isBoolean = false;1829 } else {1830 more();1831 USER2masala.classList.add("d-none");1832 isBoolean = true;1833 }1834}1835function USERmasala3() {1836 if (isBoolean) {1837 all();1838 USER3masala.classList.remove("d-none");1839 isBoolean = false;1840 } else {1841 more();1842 USER3masala.classList.add("d-none");1843 isBoolean = true;1844 }1845}1846function USERmasala4() {1847 if (isBoolean) {1848 all();1849 USER4masala.classList.remove("d-none");1850 isBoolean = false;1851 } else {1852 more();1853 USER4masala.classList.add("d-none");1854 isBoolean = true;1855 }1856}1857function USERmasala5() {1858 if (isBoolean) {1859 all();1860 USER5masala.classList.remove("d-none");1861 isBoolean = false;1862 } else {1863 more();1864 USER5masala.classList.add("d-none");1865 isBoolean = true;1866 }1867}1868function USERmasala6() {1869 if (isBoolean) {1870 all();1871 USER6masala.classList.remove("d-none");1872 isBoolean = false;1873 } else {1874 more();1875 USER6masala.classList.add("d-none");1876 isBoolean = true;1877 }1878}1879function USERmasala7() {1880 if (isBoolean) {1881 all();1882 USER7masala.classList.remove("d-none");1883 isBoolean = false;1884 } else {1885 more();1886 USER7masala.classList.add("d-none");1887 isBoolean = true;1888 }1889}1890function USERmasala13() {1891 if (isBoolean) {1892 all();1893 USER13masala.classList.remove("d-none");1894 isBoolean = false;1895 } else {1896 more();1897 USER13masala.classList.add("d-none");1898 isBoolean = true;1899 }1900}1901function USERmasala14() {1902 if (isBoolean) {1903 all();1904 USER14masala.classList.remove("d-none");1905 isBoolean = false;1906 } else {1907 more();1908 USER14masala.classList.add("d-none");1909 isBoolean = true;1910 }1911}1912function USERmasala15() {1913 if (isBoolean) {1914 all();1915 USER15masala.classList.remove("d-none");1916 isBoolean = false;1917 } else {1918 more();1919 USER15masala.classList.add("d-none");1920 isBoolean = true;1921 }1922}1923function USERmasala16() {1924 if (isBoolean) {1925 all();1926 USER16masala.classList.remove("d-none");1927 isBoolean = false;1928 } else {1929 more();1930 USER16masala.classList.add("d-none");1931 isBoolean = true;1932 }1933}1934function USERmasala17() {1935 if (isBoolean) {1936 all();1937 USER17masala.classList.remove("d-none");1938 isBoolean = false;1939 } else {1940 more();1941 USER17masala.classList.add("d-none");1942 isBoolean = true;1943 }1944}1945function USERmasala18() {1946 if (isBoolean) {1947 all();1948 USER18masala.classList.remove("d-none");1949 isBoolean = false;1950 } else {1951 more();1952 USER18masala.classList.add("d-none");1953 isBoolean = true;1954 }1955}1956function USERmasala19() {1957 if (isBoolean) {1958 all();1959 USER19masala.classList.remove("d-none");1960 isBoolean = false;1961 } else {1962 more();1963 USER19masala.classList.add("d-none");1964 isBoolean = true;1965 }1966}1967function USERmasala20() {1968 if (isBoolean) {1969 all();1970 USER20masala.classList.remove("d-none");1971 isBoolean = false;1972 } else {1973 more();1974 USER20masala.classList.add("d-none");1975 isBoolean = true;1976 }1977}1978function USERmasala21() {1979 if (isBoolean) {1980 all();1981 USER21masala.classList.remove("d-none");1982 isBoolean = false;1983 } else {1984 more();1985 USER21masala.classList.add("d-none");1986 isBoolean = true;1987 }1988}1989function USERmasala22() {1990 if (isBoolean) {1991 all();1992 USER22masala.classList.remove("d-none");1993 isBoolean = false;1994 } else {1995 more();1996 USER22masala.classList.add("d-none");1997 isBoolean = true;1998 }1999}2000function USERmasala23() {2001 if (isBoolean) {2002 all();2003 USER23masala.classList.remove("d-none");2004 isBoolean = false;2005 } else {2006 more();2007 USER23masala.classList.add("d-none");2008 isBoolean = true;2009 }2010}2011function USERmasala24() {2012 if (isBoolean) {2013 all();2014 USER24masala.classList.remove("d-none");2015 isBoolean = false;2016 } else {2017 more();2018 USER24masala.classList.add("d-none");2019 isBoolean = true;2020 }2021}2022function USERmasala25() {2023 if (isBoolean) {2024 all();2025 USER25masala.classList.remove("d-none");2026 isBoolean = false;2027 } else {2028 more();2029 USER25masala.classList.add("d-none");2030 isBoolean = true;2031 }2032}2033function USERmasala26() {2034 if (isBoolean) {2035 all();2036 USER26masala.classList.remove("d-none");2037 isBoolean = false;2038 } else {2039 more();2040 USER26masala.classList.add("d-none");2041 isBoolean = true;2042 }2043}2044function USERmasala27() {2045 if (isBoolean) {2046 all();2047 USER27masala.classList.remove("d-none");2048 isBoolean = false;2049 } else {2050 more();2051 USER27masala.classList.add("d-none");2052 isBoolean = true;2053 }2054}2055function USERmasala28() {2056 if (isBoolean) {2057 all();2058 USER28masala.classList.remove("d-none");2059 isBoolean = false;2060 } else {2061 more();2062 USER28masala.classList.add("d-none");2063 isBoolean = true;2064 }2065}2066function USERmasala29() {2067 if (isBoolean) {2068 all();2069 USER29masala.classList.remove("d-none");2070 isBoolean = false;2071 } else {2072 more();2073 USER29masala.classList.add("d-none");2074 isBoolean = true;2075 }2076}2077function USERmasala30() {2078 if (isBoolean) {2079 all();2080 USER30masala.classList.remove("d-none");2081 isBoolean = false;2082 } else {2083 more();2084 USER30masala.classList.add("d-none");2085 isBoolean = true;2086 }2087}2088function USERmasala31() {2089 if (isBoolean) {2090 all();2091 USER31masala.classList.remove("d-none");2092 isBoolean = false;2093 } else {2094 more();2095 USER31masala.classList.add("d-none");2096 isBoolean = true;2097 }2098}2099function USERmasala32() {2100 if (isBoolean) {2101 all();2102 USER32masala.classList.remove("d-none");2103 isBoolean = false;2104 } else {2105 more();2106 USER32masala.classList.add("d-none");2107 isBoolean = true;2108 }2109}2110function USERmasala33() {2111 if (isBoolean) {2112 all();2113 USER33masala.classList.remove("d-none");2114 isBoolean = false;2115 } else {2116 more();2117 USER33masala.classList.add("d-none");2118 isBoolean = true;2119 }2120}2121function USERmasala34() {2122 if (isBoolean) {2123 all();2124 USER34masala.classList.remove("d-none");2125 isBoolean = false;2126 } else {2127 more();2128 USER34masala.classList.add("d-none");2129 isBoolean = true;2130 }2131}2132function USERmasala35() {2133 if (isBoolean) {2134 all();2135 USER35masala.classList.remove("d-none");2136 isBoolean = false;2137 } else {2138 more();2139 USER35masala.classList.add("d-none");2140 isBoolean = true;2141 }2142}2143function USERmasala36() {2144 if (isBoolean) {2145 all();2146 USER36masala.classList.remove("d-none");2147 isBoolean = false;2148 } else {2149 more();2150 USER36masala.classList.add("d-none");2151 isBoolean = true;2152 }2153}2154function USERmasala37() {2155 if (isBoolean) {2156 all();2157 USER37masala.classList.remove("d-none");2158 isBoolean = false;2159 } else {2160 more();2161 USER37masala.classList.add("d-none");2162 isBoolean = true;2163 }2164}2165function USERmasala38() {2166 if (isBoolean) {2167 all();2168 USER38masala.classList.remove("d-none");2169 isBoolean = false;2170 } else {2171 more();2172 USER38masala.classList.add("d-none");2173 isBoolean = true;2174 }2175}2176function USERmasala39() {2177 if (isBoolean) {2178 all();2179 USER39masala.classList.remove("d-none");2180 isBoolean = false;2181 } else {2182 more();2183 USER39masala.classList.add("d-none");2184 isBoolean = true;2185 }2186}2187function USERmasala40() {2188 if (isBoolean) {2189 all();2190 USER40masala.classList.remove("d-none");2191 isBoolean = false;2192 } else {2193 more();2194 USER40masala.classList.add("d-none");2195 isBoolean = true;2196 }2197}2198function USERmasala41() {2199 if (isBoolean) {2200 all();2201 USER41masala.classList.remove("d-none");2202 isBoolean = false;2203 } else {2204 more();2205 USER41masala.classList.add("d-none");2206 isBoolean = true;2207 }2208}2209function USERmasala42() {2210 if (isBoolean) {2211 all();2212 USER42masala.classList.remove("d-none");2213 isBoolean = false;2214 } else {2215 more();2216 USER42masala.classList.add("d-none");2217 isBoolean = true;2218 }2219}2220function USERmasala43() {2221 if (isBoolean) {2222 all();2223 USER43masala.classList.remove("d-none");2224 isBoolean = false;2225 } else {2226 more();2227 USER43masala.classList.add("d-none");2228 isBoolean = true;2229 }2230}2231function USERmasala44() {2232 if (isBoolean) {2233 all();2234 USER44masala.classList.remove("d-none");2235 isBoolean = false;2236 } else {2237 more();2238 USER44masala.classList.add("d-none");2239 isBoolean = true;2240 }2241}2242function USERmasala45() {2243 if (isBoolean) {2244 all();2245 USER45masala.classList.remove("d-none");2246 isBoolean = false;2247 } else {2248 more();2249 USER45masala.classList.add("d-none");2250 isBoolean = true;2251 }2252}2253function USERmasala46() {2254 if (isBoolean) {2255 all();2256 USER46masala.classList.remove("d-none");2257 isBoolean = false;2258 } else {2259 more();2260 USER46masala.classList.add("d-none");2261 isBoolean = true;2262 }2263}2264function USERmasala47() {2265 if (isBoolean) {2266 all();2267 USER47masala.classList.remove("d-none");2268 isBoolean = false;2269 } else {2270 more();2271 USER47masala.classList.add("d-none");2272 isBoolean = true;2273 }2274}2275function USERmasala48() {2276 if (isBoolean) {2277 all();2278 USER48masala.classList.remove("d-none");2279 isBoolean = false;2280 } else {2281 more();2282 USER48masala.classList.add("d-none");2283 isBoolean = true;2284 }2285}2286function USERmasala49() {2287 if (isBoolean) {2288 all();2289 USER49masala.classList.remove("d-none");2290 isBoolean = false;2291 } else {2292 more();2293 USER49masala.classList.add("d-none");2294 isBoolean = true;2295 }2296}2297function USERmasala50() {2298 if (isBoolean) {2299 all();2300 USER50masala.classList.remove("d-none");2301 isBoolean = false;2302 } else {2303 more();2304 USER50masala.classList.add("d-none");2305 isBoolean = true;2306 }2307}2308function USERmasala51() {2309 if (isBoolean) {2310 all();2311 USER51masala.classList.remove("d-none");2312 isBoolean = false;2313 } else {2314 more();2315 USER51masala.classList.add("d-none");2316 isBoolean = true;2317 }2318}2319function USERmasala52() {2320 if (isBoolean) {2321 all();2322 USER52masala.classList.remove("d-none");2323 isBoolean = false;2324 } else {2325 more();2326 USER52masala.classList.add("d-none");2327 isBoolean = true;2328 }2329}2330function USERmasala53() {2331 if (isBoolean) {2332 all();2333 USER53masala.classList.remove("d-none");2334 isBoolean = false;2335 } else {2336 more();2337 USER53masala.classList.add("d-none");2338 isBoolean = true;2339 }2340}2341function USERmasala54() {2342 if (isBoolean) {2343 all();2344 USER54masala.classList.remove("d-none");2345 isBoolean = false;2346 } else {2347 more();2348 USER54masala.classList.add("d-none");2349 isBoolean = true;2350 }2351}2352function USERmasala55() {2353 if (isBoolean) {2354 all();2355 USER55masala.classList.remove("d-none");2356 isBoolean = false;2357 } else {2358 more();2359 USER55masala.classList.add("d-none");2360 isBoolean = true;2361 }2362}2363function USERmasala56() {2364 if (isBoolean) {2365 all();2366 USER56masala.classList.remove("d-none");2367 isBoolean = false;2368 } else {2369 more();2370 USER56masala.classList.add("d-none");2371 isBoolean = true;2372 }2373}2374function USERmasala57() {2375 if (isBoolean) {2376 all();2377 USER57masala.classList.remove("d-none");2378 isBoolean = false;2379 } else {2380 more();2381 USER57masala.classList.add("d-none");2382 isBoolean = true;2383 }2384}2385function USERmasala58() {2386 if (isBoolean) {2387 all();2388 USER58masala.classList.remove("d-none");2389 isBoolean = false;2390 } else {2391 more();2392 USER58masala.classList.add("d-none");2393 isBoolean = true;2394 }2395}2396function USERmasala59() {2397 if (isBoolean) {2398 all();2399 USER59masala.classList.remove("d-none");2400 isBoolean = false;2401 } else {2402 more();2403 USER59masala.classList.add("d-none");2404 isBoolean = true;2405 }2406}2407function USERmasala60() {2408 if (isBoolean) {2409 all();2410 USER60masala.classList.remove("d-none");2411 isBoolean = false;2412 } else {2413 more();2414 USER60masala.classList.add("d-none");2415 isBoolean = true;2416 }2417}2418function USERmasala61() {2419 if (isBoolean) {2420 all();2421 USER61masala.classList.remove("d-none");2422 isBoolean = false;2423 } else {2424 more();2425 USER61masala.classList.add("d-none");2426 isBoolean = true;2427 }2428}2429function USERmasala62() {2430 if (isBoolean) {2431 all();2432 USER62masala.classList.remove("d-none");2433 isBoolean = false;2434 } else {2435 more();2436 USER62masala.classList.add("d-none");2437 isBoolean = true;2438 }2439}2440function USERmasala63() {2441 if (isBoolean) {2442 all();2443 USER63masala.classList.remove("d-none");2444 isBoolean = false;2445 } else {2446 more();2447 USER63masala.classList.add("d-none");2448 isBoolean = true;2449 }2450}2451function USERmasala64() {2452 if (isBoolean) {2453 all();2454 USER64masala.classList.remove("d-none");2455 isBoolean = false;2456 } else {2457 more();2458 USER64masala.classList.add("d-none");2459 isBoolean = true;2460 }2461}2462function USERmasala65() {2463 if (isBoolean) {2464 all();2465 USER65masala.classList.remove("d-none");2466 isBoolean = false;2467 } else {2468 more();2469 USER65masala.classList.add("d-none");2470 isBoolean = true;2471 }2472}2473function USERmasala66() {2474 if (isBoolean) {2475 all();2476 USER66masala.classList.remove("d-none");2477 isBoolean = false;2478 } else {2479 more();2480 USER66masala.classList.add("d-none");2481 isBoolean = true;2482 }2483}2484function USERmasala67() {2485 if (isBoolean) {2486 all();2487 USER67masala.classList.remove("d-none");2488 isBoolean = false;2489 } else {2490 more();2491 USER67masala.classList.add("d-none");2492 isBoolean = true;2493 }2494}2495function USERmasala68() {2496 if (isBoolean) {2497 all();2498 USER68masala.classList.remove("d-none");2499 isBoolean = false;2500 } else {2501 more();2502 USER68masala.classList.add("d-none");2503 isBoolean = true;2504 }2505}2506function USERmasala69() {2507 if (isBoolean) {2508 all();2509 USER69masala.classList.remove("d-none");2510 isBoolean = false;2511 } else {2512 more();2513 USER69masala.classList.add("d-none");2514 isBoolean = true;2515 }2516}2517function USERmasala70() {2518 if (isBoolean) {2519 all();2520 USER70masala.classList.remove("d-none");2521 isBoolean = false;2522 } else {2523 more();2524 USER70masala.classList.add("d-none");2525 isBoolean = true;2526 }...

Full Screen

Full Screen

validate.js

Source:validate.js Github

copy

Full Screen

1const validator = require("validator");2const validateConfiguration = (configInput, userType, isAdmin) => {3 const errors = [];4 if (userType === "student") {5 if (!validator.isBoolean(configInput.isTestNotifications + "")) {6 errors.push({ message: "isTestNotifications must be true or false" });7 }8 if (!validator.isBoolean(configInput.isTestEmails + "")) {9 errors.push({ message: "isTestEmails must be true or false" });10 }11 if (!validator.isBoolean(configInput.isTestPushNotifications + "")) {12 errors.push({ message: "isTestPushNotifications must be true or false" });13 }14 if (!validator.isBoolean(configInput.isLessonNotifications + "")) {15 errors.push({ message: "isLessonNotifications must be true or false" });16 }17 if (!validator.isBoolean(configInput.isLessonEmails + "")) {18 errors.push({ message: "isLessonEmails must be true or false" });19 }20 if (!validator.isBoolean(configInput.isLessonPushNotifications + "")) {21 errors.push({ message: "isLessonPushNotifications must be true or false" });22 }23 if (!validator.isBoolean(configInput.isAssignmentNotifications + "")) {24 errors.push({ message: "isAssignmentNotifications must be true or false" });25 }26 if (!validator.isBoolean(configInput.isAssignmentEmails + "")) {27 errors.push({ message: "isAssignmentEmails must be true or false" });28 }29 if (!validator.isBoolean(configInput.isAssignmentPushNotifications + "")) {30 errors.push({ message: "isAssignmentPushNotifications must be true or false" });31 }32 if (!validator.isBoolean(configInput.isCourseNotifications + "")) {33 errors.push({ message: "isCourseNotifications must be true or false" });34 }35 if (!validator.isBoolean(configInput.isCourseEmails + "")) {36 errors.push({ message: "isCourseEmails must be true or false" });37 }38 if (!validator.isBoolean(configInput.isCoursePushNotifications + "")) {39 errors.push({ message: "isCoursePushNotifications must be true or false" });40 }41 if (!validator.isBoolean(configInput.isChatNotifications + "")) {42 errors.push({ message: "isChatNotifications must be true or false" });43 }44 if (!validator.isBoolean(configInput.isChatPushNotifications + "")) {45 errors.push({ message: "isChatPushNotifications must be true or false" });46 }47 if (!validator.isBoolean(configInput.isHideActiveStatus + "")) {48 errors.push({ message: "isHideActiveStatus must be true or false" });49 }50 if (!validator.isBoolean(configInput.isStayLoggedIn + "")) {51 errors.push({ message: "isStayLoggedIn must be true or false" });52 }53 }54 if (userType === "instructor" && !isAdmin) {55 if (!validator.isBoolean(configInput.isTestNotifications + "")) {56 errors.push({ message: "isTestNotifications must be true or false" });57 }58 if (!validator.isBoolean(configInput.isTestEmails + "")) {59 errors.push({ message: "isTestEmails must be true or false" });60 }61 if (!validator.isBoolean(configInput.isTestPushNotifications + "")) {62 errors.push({ message: "isTestPushNotifications must be true or false" });63 }64 if (!validator.isBoolean(configInput.isAssignmentNotifications + "")) {65 errors.push({ message: "isAssignmentNotifications must be true or false" });66 }67 if (!validator.isBoolean(configInput.isAssignmentEmails + "")) {68 errors.push({ message: "isAssignmentEmails must be true or false" });69 }70 if (!validator.isBoolean(configInput.isAssignmentPushNotifications + "")) {71 errors.push({ message: "isAssignmentPushNotifications must be true or false" });72 }73 if (!validator.isBoolean(configInput.isSendTestNotifications + "")) {74 errors.push({ message: "isSendTestNotifications must be true or false" });75 }76 if (!validator.isBoolean(configInput.isSendTestEmails + "")) {77 errors.push({ message: "isSendTestEmails must be true or false" });78 }79 if (!validator.isBoolean(configInput.isSendTestPushNotifications + "")) {80 errors.push({ message: "isSendTestPushNotifications must be true or false" });81 }82 if (!validator.isBoolean(configInput.isSendLessonNotifications + "")) {83 errors.push({ message: "isSendLessonNotifications must be true or false" });84 }85 if (!validator.isBoolean(configInput.isSendLessonEmails + "")) {86 errors.push({ message: "isSendLessonEmails must be true or false" });87 }88 if (!validator.isBoolean(configInput.isSendLessonPushNotifications + "")) {89 errors.push({ message: "isSendLessonPushNotifications must be true or false" });90 }91 if (!validator.isBoolean(configInput.isSendAssignmentNotifications + "")) {92 errors.push({ message: "isSendAssignmentNotifications must be true or false" });93 }94 if (!validator.isBoolean(configInput.isSendAssignmentEmails + "")) {95 errors.push({ message: "isSendAssignmentEmails must be true or false" });96 }97 if (!validator.isBoolean(configInput.isSendAssignmentPushNotifications + "")) {98 errors.push({ message: "isSendAssignmentPushNotifications must be true or false" });99 }100 if (!validator.isBoolean(configInput.isSendCourseNotifications + "")) {101 errors.push({ message: "isSendCourseNotifications must be true or false" });102 }103 if (!validator.isBoolean(configInput.isSendCourseEmails + "")) {104 errors.push({ message: "isSendCourseEmails must be true or false" });105 }106 if (!validator.isBoolean(configInput.isSendCoursePushNotifications + "")) {107 errors.push({ message: "isSendCoursePushNotifications must be true or false" });108 }109 if (!validator.isBoolean(configInput.isChatAllowedOutsideOfficehours + "")) {110 errors.push({ message: "isChatAllowedOutsideOfficehours must be true or false" });111 }112 if (!validator.isBoolean(configInput.isChatNotifications + "")) {113 errors.push({ message: "isChatNotifications must be true or false" });114 }115 if (!validator.isBoolean(configInput.isChatPushNotifications + "")) {116 errors.push({ message: "isChatPushNotifications must be true or false" });117 }118 if (!validator.isBoolean(configInput.isEnrollNotifications + "")) {119 errors.push({ message: "isEnrollNotifications must be true or false" });120 }121 if (!validator.isBoolean(configInput.isEnrollEmails + "")) {122 errors.push({ message: "isEnrollEmails must be true or false" });123 }124 if (!validator.isBoolean(configInput.isEnrollPushNotifications + "")) {125 errors.push({ message: "isEnrollPushNotifications must be true or false" });126 }127 if (!validator.isBoolean(configInput.isDropCourseNotifications + "")) {128 errors.push({ message: "isDropCourseNotifications must be true or false" });129 }130 if (!validator.isBoolean(configInput.isDropCourseEmails + "")) {131 errors.push({ message: "isDropCourseEmails must be true or false" });132 }133 if (!validator.isBoolean(configInput.isDropCoursePushNotifications + "")) {134 errors.push({ message: "isDropCoursePushNotifications must be true or false" });135 }136 if (!validator.isBoolean(configInput.isHideActiveStatus + "")) {137 errors.push({ message: "isHideActiveStatus must be true or false" });138 }139 if (!validator.isBoolean(configInput.isStayLoggedIn + "")) {140 errors.push({ message: "isStayLoggedIn must be true or false" });141 }142 }143 if (userType === "instructor" && isAdmin) {144 if (!validator.isBoolean(configInput.isTestNotifications + "")) {145 errors.push({ message: "isTestNotifications must be true or false" });146 }147 if (!validator.isBoolean(configInput.isTestEmails + "")) {148 errors.push({ message: "isTestEmails must be true or false" });149 }150 if (!validator.isBoolean(configInput.isTestPushNotifications + "")) {151 errors.push({ message: "isTestPushNotifications must be true or false" });152 }153 if (!validator.isBoolean(configInput.isAssignmentNotifications + "")) {154 errors.push({ message: "isAssignmentNotifications must be true or false" });155 }156 if (!validator.isBoolean(configInput.isAssignmentEmails + "")) {157 errors.push({ message: "isAssignmentEmails must be true or false" });158 }159 if (!validator.isBoolean(configInput.isAssignmentPushNotifications + "")) {160 errors.push({ message: "isAssignmentPushNotifications must be true or false" });161 }162 if (163 (!validator.isFloat(configInput.dropCourseGrade + "") || !(configInput.dropCourseGrade >= 0) || !(configInput.dropCourseGrade < 100))164 ) {165 errors.push({ message: "Minimum course grade must be greater or equal to 0 and less than 100" });166 }167 if(!(configInput.coursePassGrade > configInput.dropCourseGrade) && configInput.isDropCoursePenalty) {168 errors.push({ message: "The course pass grade must be greater than the course minimum grade" });169 }170 if (!validator.isBoolean(configInput.isDropCoursePenalty + "")) {171 errors.push({ message: "isDropCoursePenalty must be true or false" });172 }173 if (174 (!validator.isFloat(configInput.coursePassGrade + "") || !(configInput.coursePassGrade > 0) || !(configInput.coursePassGrade <= 100))175 ) {176 errors.push({ message: "Course pass grade must be greater than 0 and less than or equal to 100" });177 }178 if (!validator.isBoolean(configInput.isEnrollAllowedAfterDropCourse + "")) {179 errors.push({ message: "isEnrollAllowedAfterDropCourse must be true or false" });180 }181 if (!validator.isBoolean(configInput.isInstructorCoursesLimit + "")) {182 errors.push({ message: "isInstructorCoursesLimit must be true or false" });183 }184 if (185 (!validator.isInt(configInput.instructorCoursesLimit + "") || !(configInput.instructorCoursesLimit >= 1) || !(configInput.instructorCoursesLimit <= 100))186 ) {187 errors.push({ message: "Instructor courses limit must be an integer greater than or equal to 1 and less than or equal to 100" });188 }189 if (!validator.isBoolean(configInput.isApproveInstructorAccounts + "")) {190 errors.push({ message: "isApproveInstructorAccounts must be true or false" });191 }192 if (!validator.isBoolean(configInput.isApproveStudentAccounts + "")) {193 errors.push({ message: "isApproveStudentAccounts must be true or false" });194 }195 if (!validator.isBoolean(configInput.isApproveEnrollments + "")) {196 errors.push({ message: "isApproveEnrollments must be true or false" });197 }198 if (!validator.isBoolean(configInput.isContentBlockedCourseEnd + "")) {199 errors.push({ message: "isContentBlockedCourseEnd must be true or false" });200 }201 if (202 (!validator.isFloat(configInput.studentFileSizeLimit + "") || !(configInput.studentFileSizeLimit >= 0.1) || !(configInput.studentFileSizeLimit <= 1000))203 ) {204 errors.push({ message: "Student file size limit must be greater than or equal to 0.1 and less than or equal to 1000" });205 }206 if (207 (!validator.isFloat(configInput.instructorFileSizeLimit + "") || !(configInput.instructorFileSizeLimit >= 0.1) || !(configInput.instructorFileSizeLimit <= 1000))208 ) {209 errors.push({ message: "Instructor file size limit must be greater than or equal to 0.1 and less than or equal to 1000" });210 }211 if (!validator.isBoolean(configInput.isPasswordRequiredStartTest + "")) {212 errors.push({ message: "isPasswordRequiredStartTest must be true or false" });213 }214 if (215 (!validator.isFloat(configInput.voiceRecordTimeLimit + "") || !(configInput.voiceRecordTimeLimit >= 1) || !(configInput.voiceRecordTimeLimit <= 1000))216 ) {217 errors.push({ message: "Voice record time limit must be greater than or equal to 1 and less than or equal to 1000" });218 }219 if (!validator.isBoolean(configInput.isChatAllowedOutsideOfficehours + "")) {220 errors.push({ message: "isChatAllowedOutsideOfficehours must be true or false" });221 }222 // if (!validator.isBoolean(configInput.blockedStudents + "")) {223 // errors.push({ message: "blockedStudents must be true or false" });224 // }225 // if (!validator.isBoolean(configInput.blockedInstructors + "")) {226 // errors.push({ message: "blockedInstructors must be true or false" });227 // }228 if (!validator.isBoolean(configInput.isChatNotifications + "")) {229 errors.push({ message: "isChatNotifications must be true or false" });230 }231 if (!validator.isBoolean(configInput.isChatPushNotifications + "")) {232 errors.push({ message: "isChatPushNotifications must be true or false" });233 }234 if (!validator.isBoolean(configInput.isEnrollNotifications + "")) {235 errors.push({ message: "isEnrollNotifications must be true or false" });236 }237 if (!validator.isBoolean(configInput.isEnrollEmails + "")) {238 errors.push({ message: "isEnrollEmails must be true or false" });239 }240 if (!validator.isBoolean(configInput.isEnrollPushNotifications + "")) {241 errors.push({ message: "isEnrollPushNotifications must be true or false" });242 }243 if (!validator.isBoolean(configInput.isDropCourseNotifications + "")) {244 errors.push({ message: "isDropCourseNotifications must be true or false" });245 }246 if (!validator.isBoolean(configInput.isDropCourseEmails + "")) {247 errors.push({ message: "isDropCourseEmails must be true or false" });248 }249 if (!validator.isBoolean(configInput.isDropCoursePushNotifications + "")) {250 errors.push({ message: "isDropCoursePushNotifications must be true or false" });251 }252 if (!validator.isBoolean(configInput.isNewInstructorAccountPushNotifications + "")) {253 errors.push({ message: "isNewInstructorAccountPushNotifications must be true or false" });254 }255 if (!validator.isBoolean(configInput.isNewInstructorAccountEmails + "")) {256 errors.push({ message: "isNewInstructorAccountEmails must be true or false" });257 }258 if (!validator.isBoolean(configInput.isNewInstructorAccountNotifications + "")) {259 errors.push({ message: "isNewInstructorAccountNotifications must be true or false" });260 }261 if (!validator.isBoolean(configInput.isNewStudentAccountPushNotifications + "")) {262 errors.push({ message: "isNewStudentAccountPushNotifications must be true or false" });263 }264 if (!validator.isBoolean(configInput.isNewStudentAccountEmails + "")) {265 errors.push({ message: "isNewStudentAccountEmails must be true or false" });266 }267 if (!validator.isBoolean(configInput.isNewStudentAccountNotifications + "")) {268 errors.push({ message: "isNewStudentAccountNotifications must be true or false" });269 }270 // if (!validator.isBoolean(configInput.isAllowDeleteStudentAccount + "")) {271 // errors.push({ message: "isAllowDeleteStudentAccount must be true or false" });272 // }273 // if (!validator.isBoolean(configInput.isAllowDeleteInstructorAccount + "")) {274 // errors.push({ message: "isAllowDeleteInstructorAccount must be true or false" });275 // }276 if (!validator.isBoolean(configInput.isHideActiveStatus + "")) {277 errors.push({ message: "isHideActiveStatus must be true or false" });278 }279 if (!validator.isBoolean(configInput.isStayLoggedIn + "")) {280 errors.push({ message: "isStayLoggedIn must be true or false" });281 }282 if (!validator.isBoolean(configInput.isSendTestNotifications + "")) {283 errors.push({ message: "isSendTestNotifications must be true or false" });284 }285 if (!validator.isBoolean(configInput.isSendTestEmails + "")) {286 errors.push({ message: "isSendTestEmails must be true or false" });287 }288 if (!validator.isBoolean(configInput.isSendTestPushNotifications + "")) {289 errors.push({ message: "isSendPushTestNotifications must be true or false" });290 }291 if (!validator.isBoolean(configInput.isSendLessonNotifications + "")) {292 errors.push({ message: "isSendLessonNotifications must be true or false" });293 }294 if (!validator.isBoolean(configInput.isSendLessonEmails + "")) {295 errors.push({ message: "isSendLessonEmails must be true or false" });296 }297 if (!validator.isBoolean(configInput.isSendLessonPushNotifications + "")) {298 errors.push({ message: "isSendLessonPushNotifications must be true or false" });299 }300 if (!validator.isBoolean(configInput.isSendAssignmentNotifications + "")) {301 errors.push({ message: "isSendAssignmentNotifications must be true or false" });302 }303 if (!validator.isBoolean(configInput.isSendAssignmentEmails + "")) {304 errors.push({ message: "isSendAssignmentEmails must be true or false" });305 }306 if (!validator.isBoolean(configInput.isSendAssignmentPushNotifications + "")) {307 errors.push({ message: "isSendAssignmentPushNotifications must be true or false" });308 }309 if (!validator.isBoolean(configInput.isSendCoursePushNotifications + "")) {310 errors.push({ message: "isSendCoursePushNotifications must be true or false" });311 }312 if (!validator.isBoolean(configInput.isSendCourseEmails + "")) {313 errors.push({ message: "isSendCourseEmails must be true or false" });314 }315 if (!validator.isBoolean(configInput.isSendCourseNotifications + "")) {316 errors.push({ message: "isSendCourseNotifications must be true or false" });317 }318 319 }320 return errors;321};322// maxDate={new Date(Date.now() - 31449600000 * 3)}...

Full Screen

Full Screen

desired-caps.js

Source:desired-caps.js Github

copy

Full Screen

1import _ from 'lodash';2import { desiredCapConstraints as iosDesiredCapConstraints } from 'appium-ios-driver';3let desiredCapConstraints = _.defaults({4 showXcodeLog: {5 isBoolean: true6 },7 wdaLocalPort: {8 isNumber: true9 },10 iosInstallPause: {11 isNumber: true12 },13 xcodeConfigFile: {14 isString: true15 },16 xcodeOrgId: {17 isString: true18 },19 xcodeSigningId: {20 isString: true21 },22 keychainPath: {23 isString: true24 },25 keychainPassword: {26 isString: true27 },28 bootstrapPath: {29 isString: true30 },31 agentPath: {32 isString: true33 },34 tapWithShortPressDuration: {35 isNumber: true36 },37 scaleFactor: {38 isString: true39 },40 usePrebuiltWDA: {41 isBoolean: true42 },43 customSSLCert: {44 isString: true45 },46 preventWDAAttachments: {47 isBoolean: true48 },49 webDriverAgentUrl: {50 isString: true51 },52 derivedDataPath: {53 isString: true54 },55 useNewWDA: {56 isBoolean: true57 },58 wdaLaunchTimeout: {59 isNumber: true60 },61 wdaConnectionTimeout: {62 isNumber: true63 },64 updatedWDABundleId: {65 isString: true66 },67 resetOnSessionStartOnly: {68 isBoolean: true69 },70 commandTimeouts: {71 // recognize the cap,72 // but validate in the driver#validateDesiredCaps method73 },74 wdaStartupRetries: {75 isNumber: true76 },77 wdaStartupRetryInterval: {78 isNumber: true79 },80 prebuildWDA: {81 isBoolean: true82 },83 connectHardwareKeyboard: {84 isBoolean: true85 },86 calendarAccessAuthorized: {87 isBoolean: true88 },89 startIWDP: {90 isBoolean: true,91 },92 useSimpleBuildTest: {93 isBoolean: true94 },95 waitForQuiescence: {96 isBoolean: true97 },98 maxTypingFrequency: {99 isNumber: true100 },101 nativeTyping: {102 isBoolean: true103 },104 simpleIsVisibleCheck: {105 isBoolean: true106 },107 useCarthageSsl: {108 isBoolean: true109 },110 shouldUseSingletonTestManager: {111 isBoolean: true112 },113 isHeadless: {114 isBoolean: true115 },116 webkitDebugProxyPort: {117 isNumber: true118 },119 useXctestrunFile: {120 isBoolean: true121 },122 absoluteWebLocations: {123 isBoolean: true124 },125 simulatorWindowCenter: {126 isString: true127 },128 useJSONSource: {129 isBoolean: true130 },131 enforceFreshSimulatorCreation: {132 isBoolean: true133 },134 shutdownOtherSimulators: {135 isBoolean: true136 },137 keychainsExcludePatterns: {138 isString: true139 },140 realDeviceScreenshotter: {141 isString: true,142 presence: false,143 inclusionCaseInsensitive: ['idevicescreenshot']144 },145 showSafariConsoleLog: {146 isBoolean: true147 },148 showSafariNetworkLog: {149 isBoolean: true150 },151 mjpegServerPort: {152 isNumber: true153 },154 reduceMotion: {155 isBoolean: true156 },157 mjpegScreenshotUrl: {158 isString: true159 },160 permissions: {161 isString: true162 },163 screenshotQuality: {164 isNumber: true165 },166 skipLogCapture: {167 isBoolean: true168 },169}, iosDesiredCapConstraints);170export { desiredCapConstraints };...

Full Screen

Full Screen

index.js

Source:index.js Github

copy

Full Screen

...3var isBoolean = require('../');4var hasSymbols = typeof Symbol === 'function' && typeof Symbol('') === 'symbol';5test('not Booleans', function (t) {6 t.test('primitives', function (st) {7 st.notOk(isBoolean(), 'undefined is not Boolean');8 st.notOk(isBoolean(null), 'null is not Boolean');9 st.notOk(isBoolean(0), '0 is not Boolean');10 st.notOk(isBoolean(NaN), 'NaN is not Boolean');11 st.notOk(isBoolean(Infinity), 'Infinity is not Boolean');12 st.notOk(isBoolean('foo'), 'string is not Boolean');13 st.end();14 });15 t.test('objects', function (st) {16 st.notOk(isBoolean(Object(42)), 'number object is not Boolean');17 st.notOk(isBoolean([]), 'array is not Boolean');18 st.notOk(isBoolean({}), 'object is not Boolean');19 st.notOk(isBoolean(function () {}), 'function is not Boolean');20 st.notOk(isBoolean(/a/g), 'regex literal is not Boolean');21 st.notOk(isBoolean(new RegExp('a', 'g')), 'regex object is not Boolean');22 st.notOk(isBoolean(new Date()), 'new Date() is not Boolean');23 st.end();24 });25 t.end();26});27test('@@toStringTag', { skip: !hasSymbols || !Symbol.toStringTag }, function (t) {28 var fakeBoolean = {29 toString: function () { return 'true'; },30 valueOf: function () { return true; }31 };32 fakeBoolean[Symbol.toStringTag] = 'Boolean';33 t.notOk(isBoolean(fakeBoolean), 'fake Boolean with @@toStringTag "Boolean" is not Boolean');34 t.end();35});36test('Booleans', function (t) {37 t.ok(isBoolean(true), 'true is Boolean');38 t.ok(isBoolean(false), 'false is Boolean');39 t.ok(isBoolean(Object(true)), 'Object(true) is Boolean');40 t.ok(isBoolean(Object(false)), 'Object(false) is Boolean');41 t.end();...

Full Screen

Full Screen

test.js

Source:test.js Github

copy

Full Screen

2var test = require('tape');3var isBoolean = require('./');4var hasSymbols = typeof Symbol === 'function' && typeof Symbol() === 'symbol';5test('not Booleans', function (t) {6 t.notOk(isBoolean(), 'undefined is not Boolean');7 t.notOk(isBoolean(null), 'null is not Boolean');8 t.notOk(isBoolean(0), '0 is not Boolean');9 t.notOk(isBoolean(Object(42)), 'number object is not Boolean');10 t.notOk(isBoolean(NaN), 'NaN is not Boolean');11 t.notOk(isBoolean(Infinity), 'Infinity is not Boolean');12 t.notOk(isBoolean('foo'), 'string is not Boolean');13 t.notOk(isBoolean([]), 'array is not Boolean');14 t.notOk(isBoolean({}), 'object is not Boolean');15 t.notOk(isBoolean(function () {}), 'function is not Boolean');16 t.notOk(isBoolean(/a/g), 'regex literal is not Boolean');17 t.notOk(isBoolean(new RegExp('a', 'g')), 'regex object is not Boolean');18 t.notOk(isBoolean(new Date()), 'new Date() is not Boolean');19 t.end();20});21test('@@toStringTag', { skip: !hasSymbols || !Symbol.toStringTag }, function (t) {22 var fakeBoolean = { valueOf: function () { return true; }, toString: function () { return 'true'; } };23 fakeBoolean[Symbol.toStringTag] = 'Boolean';24 t.notOk(isBoolean(fakeBoolean), 'fake Boolean with @@toStringTag "Boolean" is not Boolean');25 t.end();26});27test('Booleans', function (t) {28 t.ok(isBoolean(true), 'true is Boolean');29 t.ok(isBoolean(false), 'false is Boolean');30 t.ok(isBoolean(Object(true)), 'Object(true) is Boolean');31 t.ok(isBoolean(Object(false)), 'Object(false) is Boolean');32 t.end();...

Full Screen

Full Screen

boolean.js

Source:boolean.js Github

copy

Full Screen

2import { isBoolean } from '../../src/contracts/boolean';3import { ValidationError } from '../../src/ValidationError';4describe('isBoolean contract', () => {5 it('Returns value if value is boolean', () => {6 expect(isBoolean('true bool', true)).toBe(true);7 expect(isBoolean('false bool', false)).toBe(false);8 });9 it('Returns ValidationError instance in other cases', () => {10 expect(isBoolean('valueName', undefined)).toBeInstanceOf(ValidationError);11 expect(isBoolean('valueName', null)).toBeInstanceOf(ValidationError);12 expect(isBoolean('valueName', 'value')).toBeInstanceOf(ValidationError);13 expect(isBoolean('valueName', () => {})).toBeInstanceOf(ValidationError);14 expect(isBoolean('valueName', [])).toBeInstanceOf(ValidationError);15 expect(isBoolean('valueName', {})).toBeInstanceOf(ValidationError);16 expect(isBoolean('valueName', Symbol('symbol'))).toBeInstanceOf(17 ValidationError,18 );19 expect(isBoolean('valueName', 1)).toBeInstanceOf(ValidationError);20 expect(isBoolean('valueName', new Map())).toBeInstanceOf(ValidationError);21 expect(isBoolean('valueName', new Set())).toBeInstanceOf(ValidationError);22 });23 it('expectedTypes property of ValidationError equals ["boolean"]', () => {24 expect((isBoolean('valueName', null): any).expectedTypes).toEqual([25 'boolean',26 ]);27 });...

Full Screen

Full Screen

isBoolean.test.js

Source:isBoolean.test.js Github

copy

Full Screen

1import isBoolean from '../../src/lang/isBoolean';2test('should return `true` for booleans', () => {3 expect(isBoolean(true)).toBe(true);4 expect(isBoolean(false)).toBe(true);5 expect(isBoolean(Object(true))).toBe(true);6 expect(isBoolean(Object(false))).toBe(true);7});8test('should return `false` for non-booleans', function() {9 expect(isBoolean(null)).toBe(false);10 expect(isBoolean(NaN)).toBe(false);11 expect(isBoolean(arguments)).toBe(false);12 expect(isBoolean(undefined)).toBe(false);13 expect(isBoolean(new Date)).toBe(false);14 expect(isBoolean(new Error)).toBe(false);15 expect(isBoolean([1, 2, 3])).toBe(false);16 expect(isBoolean([])).toBe(false);17 expect(isBoolean({ '0': 1, 'length': 1 })).toBe(false);18 expect(isBoolean({})).toBe(false);19 expect(isBoolean('a')).toBe(false);20 expect(isBoolean('')).toBe(false);21 expect(isBoolean(1)).toBe(false);22 expect(isBoolean(0)).toBe(false);23 expect(isBoolean(/x/)).toBe(false);24 expect(isBoolean()).toBe(false);...

Full Screen

Full Screen

isBoolean.js

Source:isBoolean.js Github

copy

Full Screen

1import { isBoolean } from '../src/index.js';2import * as test from '../test-utils.js';3test._nan(isBoolean, false);4test._plusInfinity(isBoolean, false);5test._minusInfinity(isBoolean, false);6test._undefined(isBoolean, false);7test._null(isBoolean, false);8test._true(isBoolean, true);9test._false(isBoolean, true);10test._function(isBoolean, false);11test._number(isBoolean, false);12test._object(isBoolean, false);13test._string(isBoolean, false);14test._symbol(isBoolean, false);15test._integer(isBoolean, false);16test._array(isBoolean, false);17test._typedArray(isBoolean, false);18test._map(isBoolean, false);19test._set(isBoolean, false);...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1var tracetest = require('./tracetest');2console.log(tracetest.isBoolean(true));3module.exports = {4 isBoolean: function(value) {5 return typeof value === 'boolean';6 }7};

Full Screen

Using AI Code Generation

copy

Full Screen

1var tracetest = require('tracetest');2var result = tracetest.isBoolean(1);3console.log(result);4exports.isBoolean = function (value) {5 return typeof value === 'boolean';6};

Full Screen

Using AI Code Generation

copy

Full Screen

1var tracetest = require('tracetest');2var result = tracetest.isBoolean(true);3console.log(result);4var isBoolean = function (value) {5 return typeof value === 'boolean';6};7module.exports = {8};

Full Screen

Using AI Code Generation

copy

Full Screen

1var tracetest = require('tracetest');2console.log(tracetest.isBoolean(true));3module.exports.isBoolean = function(value){4 return typeof value === 'boolean';5}6Module Description assert Provides functions to test invariants assert.deepEqual() The equal comparison with deep equivalence assert.equal() The equal comparison assert.notDeepEqual() The not equal comparison with deep equivalence assert.notEqual() The not equal comparison assert.notStrictEqual() The strict not equal comparison assert.ok() Tests if value is a true value assert.strictEqual() The strict equal comparison assert.throws() Tests if function throws an error assert.doesNotThrow() Tests if function does not throw an error buffer Buffer class for dealing with binary data child_process ChildProcess class for creating child processes cluster Cluster class for creating child processes console Provides console.log() and other functions crypto Provides cryptographic functionality dgram Provides UDP datagram sockets dns Provides asynchronous DNS resolution and name services fs Provides file system related functionality http Provides HTTP server and client functionality https Provides HTTPS server and client functionality net Provides TCP and IPC networking functionality os Provides operating system related functionality path Provides file system path related functionality process Provides information about the current process querystring Provides functions for parsing and formatting URL query strings readline Provides an interface for reading data from a Readable stream repl Provides a Readable and a Writable stream that can be used to write code to be executed in a Node.js instance stream Provides a base API for implementing stream interfaces string_decoder Provides an API for decoding Buffer objects into strings timers Provides functions for scheduling callbacks at some future period tls Provides classes for implementing TLS servers and clients tty Provides functions for interacting with TTYs (text terminals) url Provides utilities for URL resolution and parsing util Provides utility functions for working with objects vm Provides APIs for compiling and running code in V8 virtual machines zlib Provides bindings for the zlib compression library7var http = require('http');

Full Screen

Using AI Code Generation

copy

Full Screen

1var tracetest = require('tracetest');2var value = tracetest.isBoolean('test');3console.log(value);4var tracetest = require('tracetest');5var value = tracetest.isBoolean(true);6console.log(value);

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run tracetest automation tests on LambdaTest cloud grid

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

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful