How to use setScreen method in root

Best JavaScript code snippet using root

code.js

Source:code.js Github

copy

Full Screen

1var score = 0;2playSound("assets/category_background/eerie_beginnings.mp3",true);3onEvent("button10", "click", function( ) {4 setScreen("Alabama");5 playSound("assets/category_app/perfect_organic_button.mp3");6 7});8onEvent("button7", "click", function( ) {9 setScreen("correctalabama");10 playSound("assets/category_app/perfect_organic_button.mp3");11 score=score+1;12});13onEvent("button11", "click", function( ) {14 setScreen("wrongalabama");15 playSound("assets/category_app/perfect_organic_button.mp3");16});17onEvent("button12", "click", function( ) {18 setScreen("wrongalabama");19 playSound("assets/category_app/perfect_organic_button.mp3");20});21onEvent("button13", "click", function( ) {22 setScreen("wrongalabama");23 playSound("assets/category_app/perfect_organic_button.mp3");24});25onEvent("button16", "click", function( ) {26 setScreen("Alaska");27 playSound("assets/category_app/perfect_organic_button.mp3");28});29onEvent("button18", "click", function( ) {30 setScreen("Alaska");31 playSound("assets/category_app/perfect_organic_button.mp3");32});33onEvent("button21", "click", function( ) {34 setScreen("wrongalaska");35 playSound("assets/category_app/perfect_organic_button.mp3");36});37onEvent("button22", "click", function( ) {38 setScreen("wrongalaska");39 playSound("assets/category_app/perfect_organic_button.mp3");40});41onEvent("button23", "click", function( ) {42 setScreen("wrongalaska");43 playSound("assets/category_app/perfect_organic_button.mp3");44});45onEvent("button24", "click", function( ) {46 setScreen("correctalaska");47 playSound("assets/category_app/perfect_organic_button.mp3");48 score=score+1;49});50onEvent("button2", "click", function( ) {51 setScreen("Arizona");52 playSound("assets/category_app/perfect_organic_button.mp3");53});54onEvent("button4", "click", function( ) {55 setScreen("Arizona");56 playSound("assets/category_app/perfect_organic_button.mp3");57});58onEvent("button8", "click", function( ) {59 setScreen("wrongarizona");60 playSound("assets/category_app/perfect_organic_button.mp3");61});62onEvent("button14", "click", function( ) {63 setScreen("wrongarizona");64 playSound("assets/category_app/perfect_organic_button.mp3");65});66onEvent("button25", "click", function( ) {67 setScreen("wrongarizona");68 playSound("assets/category_app/perfect_organic_button.mp3");69});70onEvent("button19", "click", function( ) {71 setScreen("correctarizona");72 playSound("assets/category_app/perfect_organic_button.mp3");73 score=score+1;74});75onEvent("button29", "click", function( ) {76 setScreen("Arkansas");77 playSound("assets/category_app/perfect_organic_button.mp3");78});79onEvent("button27", "click", function( ) {80 setScreen("Arkansas");81 playSound("assets/category_app/perfect_organic_button.mp3");82});83onEvent("button31", "click", function( ) {84 setScreen("correctarkansas");85 playSound("assets/category_app/perfect_organic_button.mp3");86 score=score+1;87});88onEvent("button32", "click", function( ) {89 setScreen("wrongarkansas");90 playSound("assets/category_app/perfect_organic_button.mp3");91});92onEvent("button33", "click", function( ) {93 setScreen("wrongarkansas");94 playSound("assets/category_app/perfect_organic_button.mp3");95});96onEvent("button34", "click", function( ) {97 setScreen("wrongarkansas");98 playSound("assets/category_app/perfect_organic_button.mp3");99});100onEvent("button38", "click", function( ) {101 setScreen("California");102 playSound("assets/category_app/perfect_organic_button.mp3");103});104onEvent("button36", "click", function( ) {105 setScreen("California");106 playSound("assets/category_app/perfect_organic_button.mp3");107});108onEvent("button40", "click", function( ) {109 setScreen("correctcalifornia");110 playSound("assets/category_app/perfect_organic_button.mp3");111 score=score+1;112});113onEvent("button42", "click", function( ) {114 setScreen("wrongcalifornia");115 playSound("assets/category_app/perfect_organic_button.mp3");116});117onEvent("button41", "click", function( ) {118 setScreen("wrongcalifornia");119 playSound("assets/category_app/perfect_organic_button.mp3");120});121onEvent("button43", "click", function( ) {122 setScreen("wrongcalifornia");123 playSound("assets/category_app/perfect_organic_button.mp3");124});125onEvent("button61", "click", function( ) {126 setScreen("Colorado");127 playSound("assets/category_app/perfect_organic_button.mp3");128});129onEvent("button55", "click", function( ) {130 setScreen("Colorado");131 playSound("assets/category_app/perfect_organic_button.mp3");132});133onEvent("button45", "click", function( ) {134 setScreen("wrongcolorado");135 playSound("assets/category_app/perfect_organic_button.mp3");136});137onEvent("button46", "click", function( ) {138 setScreen("wrongcolorado");139 playSound("assets/category_app/perfect_organic_button.mp3");140});141onEvent("button47", "click", function( ) {142 setScreen("wrongcolorado");143 playSound("assets/category_app/perfect_organic_button.mp3");144});145onEvent("button48", "click", function( ) {146 setScreen("correctcolorado");147 playSound("assets/category_app/perfect_organic_button.mp3");148 score=score+1;149});150onEvent("button63", "click", function( ) {151 setScreen("Connecticut");152 playSound("assets/category_app/perfect_organic_button.mp3");153});154onEvent("button57", "click", function( ) {155 setScreen("Connecticut");156 playSound("assets/category_app/perfect_organic_button.mp3");157});158onEvent("button50", "click", function( ) {159 setScreen("correctconnecticut");160 playSound("assets/category_app/perfect_organic_button.mp3");161 score=score+1;162});163onEvent("button51", "click", function( ) {164 setScreen("wrongconnecticut");165 playSound("assets/category_app/perfect_organic_button.mp3");166});167onEvent("button52", "click", function( ) {168 setScreen("wrongconnecticut");169 playSound("assets/category_app/perfect_organic_button.mp3");170});171onEvent("button53", "click", function( ) {172 setScreen("wrongconnecticut");173 playSound("assets/category_app/perfect_organic_button.mp3");174});175onEvent("button59", "click", function( ) {176 setScreen("Delaware");177 playSound("assets/category_app/perfect_organic_button.mp3");178});179onEvent("button65", "click", function( ) {180 setScreen("Delaware");181 playSound("assets/category_app/perfect_organic_button.mp3");182});183onEvent("button67", "click", function( ) {184 setScreen("correctdelaware");185 playSound("assets/category_app/perfect_organic_button.mp3");186 score=score+1;187});188onEvent("button68", "click", function( ) {189 setScreen("wrongdelaware");190 playSound("assets/category_app/perfect_organic_button.mp3");191});192onEvent("button69", "click", function( ) {193 setScreen("wrongdelaware");194 playSound("assets/category_app/perfect_organic_button.mp3");195});196onEvent("button70", "click", function( ) {197 setScreen("wrongdelaware");198 playSound("assets/category_app/perfect_organic_button.mp3");199});200onEvent("button82", "click", function( ) {201 setScreen("Florida");202 playSound("assets/category_app/perfect_organic_button.mp3");203});204onEvent("button77", "click", function( ) {205 setScreen("Florida");206 playSound("assets/category_app/perfect_organic_button.mp3");207});208onEvent("button73", "click", function( ) {209 setScreen("correctflorida");210 playSound("assets/category_app/perfect_organic_button.mp3");211 score=score+1;212});213onEvent("button72", "click", function( ) {214 setScreen("wrongflorida");215 playSound("assets/category_app/perfect_organic_button.mp3");216});217onEvent("button74", "click", function( ) {218 setScreen("wrongflorida");219 playSound("assets/category_app/perfect_organic_button.mp3");220});221onEvent("button75", "click", function( ) {222 setScreen("wrongflorida");223 playSound("assets/category_app/perfect_organic_button.mp3");224});225onEvent("button80", "click", function( ) {226 setScreen("Georgia");227 playSound("assets/category_app/perfect_organic_button.mp3");228});229onEvent("button84", "click", function( ) {230 setScreen("Georgia");231 playSound("assets/category_app/perfect_organic_button.mp3");232});233onEvent("button78", "click", function( ) {234 setScreen("wronggeorgia");235 playSound("assets/category_app/perfect_organic_button.mp3");236});237onEvent("button86", "click", function( ) {238 setScreen("wronggeorgia");239 playSound("assets/category_app/perfect_organic_button.mp3");240});241onEvent("button87", "click", function( ) {242 setScreen("wronggeorgia");243 playSound("assets/category_app/perfect_organic_button.mp3");244});245onEvent("button85", "click", function( ) {246 setScreen("correctgeorgia");247 playSound("assets/category_app/perfect_organic_button.mp3");248 score=score+1;249});250onEvent("button98", "click", function( ) {251 setScreen("Hawaii");252 playSound("assets/category_app/perfect_organic_button.mp3");253});254onEvent("button96", "click", function( ) {255 setScreen("Hawaii");256 playSound("assets/category_app/perfect_organic_button.mp3");257});258onEvent("button89", "click", function( ) {259 setScreen("correcthawaii");260 playSound("assets/category_app/perfect_organic_button.mp3");261 score=score+1;262});263onEvent("button90", "click", function( ) {264 setScreen("wronghawaii");265 playSound("assets/category_app/perfect_organic_button.mp3");266});267onEvent("button91", "click", function( ) {268 setScreen("wronghawaii");269 playSound("assets/category_app/perfect_organic_button.mp3");270});271onEvent("button92", "click", function( ) {272 setScreen("wronghawaii");273 playSound("assets/category_app/perfect_organic_button.mp3");274});275onEvent("button93", "click", function( ) {276 setScreen("wronghawaii");277 playSound("assets/category_app/perfect_organic_button.mp3");278});279onEvent("button94", "click", function( ) {280 setScreen("wronghawaii");281 playSound("assets/category_app/perfect_organic_button.mp3");282});283onEvent("button102", "click", function( ) {284 setScreen("Idaho");285 playSound("assets/category_app/perfect_organic_button.mp3");286});287onEvent("button104", "click", function( ) {288 setScreen("Idaho");289 playSound("assets/category_app/perfect_organic_button.mp3");290});291onEvent("button109", "click", function( ) {292 setScreen("wrongidaho");293 playSound("assets/category_app/perfect_organic_button.mp3");294});295onEvent("button110", "click", function( ) {296 setScreen("wrongidaho");297 playSound("assets/category_app/perfect_organic_button.mp3");298});299onEvent("button112", "click", function( ) {300 setScreen("wrongidaho");301 playSound("assets/category_app/perfect_organic_button.mp3");302});303onEvent("button111", "click", function( ) {304 setScreen("correctidaho");305 playSound("assets/category_app/perfect_organic_button.mp3");306 score=score+1;307});308onEvent("button139", "click", function( ) {309 setScreen("Illinois");310 playSound("assets/category_app/perfect_organic_button.mp3");311});312onEvent("button129", "click", function( ) {313 setScreen("Illinois");314 playSound("assets/category_app/perfect_organic_button.mp3");315});316onEvent("button117", "click", function( ) {317 setScreen("correctillinois");318 playSound("assets/category_app/perfect_organic_button.mp3");319 score=score+1;320});321onEvent("button114", "click", function( ) {322 setScreen("wrongillinois");323 playSound("assets/category_app/perfect_organic_button.mp3");324});325onEvent("button115", "click", function( ) {326 setScreen("wrongillinois");327 playSound("assets/category_app/perfect_organic_button.mp3");328});329onEvent("button116", "click", function( ) {330 setScreen("wrongillinois");331 playSound("assets/category_app/perfect_organic_button.mp3");332});333onEvent("button131", "click", function( ) {334 setScreen("Indiana");335 playSound("assets/category_app/perfect_organic_button.mp3");336});337onEvent("button142", "click", function( ) {338 setScreen("Indiana");339 playSound("assets/category_app/perfect_organic_button.mp3");340});341onEvent("button121", "click", function( ) {342 setScreen("correctindiana");343 playSound("assets/category_app/perfect_organic_button.mp3");344 score=score+1;345});346onEvent("button119", "click", function( ) {347 setScreen("wrongindiana");348 playSound("assets/category_app/perfect_organic_button.mp3");349});350onEvent("button120", "click", function( ) {351 setScreen("wrongindiana");352 playSound("assets/category_app/perfect_organic_button.mp3");353});354onEvent("button122", "click", function( ) {355 setScreen("wrongindiana");356 playSound("assets/category_app/perfect_organic_button.mp3");357});358onEvent("button144", "click", function( ) {359 setScreen("Iowa");360 playSound("assets/category_app/perfect_organic_button.mp3");361});362onEvent("button133", "click", function( ) {363 setScreen("Iowa");364 playSound("assets/category_app/perfect_organic_button.mp3");365});366onEvent("button124", "click", function( ) {367 setScreen("wrongiowa");368 playSound("assets/category_app/perfect_organic_button.mp3");369});370onEvent("button125", "click", function( ) {371 setScreen("wrongiowa");372 playSound("assets/category_app/perfect_organic_button.mp3");373});374onEvent("button126", "click", function( ) {375 setScreen("wrongiowa");376 playSound("assets/category_app/perfect_organic_button.mp3");377});378onEvent("button127", "click", function( ) {379 setScreen("correctiowa");380 playSound("assets/category_app/perfect_organic_button.mp3");381 score=score+1;382});383onEvent("bu", "click", function( ) {384 setScreen("Kansas");385 playSound("assets/category_app/perfect_organic_button.mp3");386});387onEvent("button136", "click", function( ) {388 setScreen("Kansas");389 playSound("assets/category_app/perfect_organic_button.mp3");390});391onEvent("button107", "click", function( ) {392 setScreen("correctkansas");393 playSound("assets/category_app/perfect_organic_button.mp3");394 score=score+1;395});396onEvent("button108", "click", function( ) {397 setScreen("wrongkansas");398 playSound("assets/category_app/perfect_organic_button.mp3");399});400onEvent("button140", "click", function( ) {401 setScreen("wrongkansas");402 playSound("assets/category_app/perfect_organic_button.mp3");403});404onEvent("button146", "click", function( ) {405 setScreen("wrongkansas");406 playSound("assets/category_app/perfect_organic_button.mp3");407});408onEvent("button166", "click", function( ) {409 setScreen("Kentucky");410 playSound("assets/category_app/perfect_organic_button.mp3");411});412onEvent("button157", "click", function( ) {413 setScreen("Kentucky");414 playSound("assets/category_app/perfect_organic_button.mp3");415});416onEvent("button148", "click", function( ) {417 setScreen("wrongkentucky");418 playSound("assets/category_app/perfect_organic_button.mp3");419});420onEvent("button149", "click", function( ) {421 setScreen("wrongkentucky");422 playSound("assets/category_app/perfect_organic_button.mp3");423});424onEvent("button151", "click", function( ) {425 setScreen("wrongkentucky");426 playSound("assets/category_app/perfect_organic_button.mp3");427});428onEvent("button152", "click", function( ) {429 setScreen("wrongkentucky");430 playSound("assets/category_app/perfect_organic_button.mp3");431});432onEvent("button153", "click", function( ) {433 setScreen("wrongkentucky");434 playSound("assets/category_app/perfect_organic_button.mp3");435});436onEvent("button154", "click", function( ) {437 setScreen("wrongkentucky");438 playSound("assets/category_app/perfect_organic_button.mp3");439});440onEvent("button155", "click", function( ) {441 setScreen("wrongkentucky");442 playSound("assets/category_app/perfect_organic_button.mp3");443});444onEvent("button150", "click", function( ) {445 setScreen("correctkentucky");446 playSound("assets/category_app/perfect_organic_button.mp3");447 score=score+1;448});449onEvent("button160", "click", function( ) {450 setScreen("Louisiana");451 playSound("assets/category_app/perfect_organic_button.mp3");452});453onEvent("button163", "click", function( ) {454 setScreen("Louisiana");455 playSound("assets/category_app/perfect_organic_button.mp3");456});457onEvent("button169", "click", function( ) {458 setScreen("wronglouisiana");459 playSound("assets/category_app/perfect_organic_button.mp3");460});461onEvent("button171", "click", function( ) {462 setScreen("wronglouisiana");463 playSound("assets/category_app/perfect_organic_button.mp3");464});465onEvent("button172", "click", function( ) {466 setScreen("wronglouisiana");467 playSound("assets/category_app/perfect_organic_button.mp3");468});469onEvent("button170", "click", function( ) {470 setScreen("correctlouisiana");471 playSound("assets/category_app/perfect_organic_button.mp3");472 score=score+1;473});474onEvent("button201", "click", function( ) {475 setScreen("Maine");476 playSound("assets/category_app/perfect_organic_button.mp3");477 478});479onEvent("button189", "click", function( ) {480 setScreen("Maine");481 playSound("assets/category_app/perfect_organic_button.mp3");482 483});484onEvent("button174", "click", function( ) {485 setScreen("wrongmaine");486 playSound("assets/category_app/perfect_organic_button.mp3");487 488});489onEvent("button175", "click", function( ) {490 setScreen("wrongmaine");491 playSound("assets/category_app/perfect_organic_button.mp3");492 493});494onEvent("button177", "click", function( ) {495 setScreen("wrongmaine");496 playSound("assets/category_app/perfect_organic_button.mp3");497 498});499onEvent("button176", "click", function( ) {500 setScreen("correctmaine");501 playSound("assets/category_app/perfect_organic_button.mp3");502 score = score+1;503});504onEvent("button204", "click", function( ) {505 setScreen("Maryland");506 playSound("assets/category_app/perfect_organic_button.mp3");507 508});509onEvent("button192", "click", function( ) {510 setScreen("Maryland");511 playSound("assets/category_app/perfect_organic_button.mp3");512 513});514onEvent("button179", "click", function( ) {515 setScreen("wrongmaryland");516 playSound("assets/category_app/perfect_organic_button.mp3");517 518});519onEvent("button181", "click", function( ) {520 setScreen("wrongmaryland");521 playSound("assets/category_app/perfect_organic_button.mp3");522 523});524onEvent("button182", "click", function( ) {525 setScreen("wrongmaryland");526 playSound("assets/category_app/perfect_organic_button.mp3");527 528});529onEvent("button180", "click", function( ) {530 setScreen("correctmaryland");531 playSound("assets/category_app/perfect_organic_button.mp3");532 score=score+1;533});534onEvent("button207", "click", function( ) {535 setScreen("Massachusetts");536 playSound("assets/category_app/perfect_organic_button.mp3");537 538});539onEvent("button195", "click", function( ) {540 setScreen("Massachusetts");541 playSound("assets/category_app/perfect_organic_button.mp3");542 543});544onEvent("button184", "click", function( ) {545 setScreen("wrongmassachusetts");546 playSound("assets/category_app/perfect_organic_button.mp3");547 548});549onEvent("button186", "click", function( ) {550 setScreen("wrongmassachusetts");551 playSound("assets/category_app/perfect_organic_button.mp3");552 553});554onEvent("button187", "click", function( ) {555 setScreen("wrongmassachusetts");556 playSound("assets/category_app/perfect_organic_button.mp3");557 558});559onEvent("button185", "click", function( ) {560 setScreen("correctmassachusetts");561 playSound("assets/category_app/perfect_organic_button.mp3");562 score=score+1;563 564});565onEvent("button210", "click", function( ) {566 setScreen("Michigan");567 playSound("assets/category_app/perfect_organic_button.mp3");568 569});570onEvent("button198", "click", function( ) {571 setScreen("Michigan");572 playSound("assets/category_app/perfect_organic_button.mp3");573 574});575onEvent("button213", "click", function( ) {576 setScreen("wrongmichigan");577 playSound("assets/category_app/perfect_organic_button.mp3");578 579});580onEvent("button214", "click", function( ) {581 setScreen("wrongmichigan");582 playSound("assets/category_app/perfect_organic_button.mp3");583 584});585onEvent("button215", "click", function( ) {586 setScreen("wrongmichigan");587 playSound("assets/category_app/perfect_organic_button.mp3");588 589});590onEvent("button216", "click", function( ) {591 setScreen("correctmichigan");592 playSound("assets/category_app/perfect_organic_button.mp3");593 score=score+1;594});595onEvent("button221", "click", function( ) {596 setScreen("Minnesota");597 playSound("assets/category_app/perfect_organic_button.mp3");598 599});600onEvent("button218", "click", function( ) {601 setScreen("Minnesota");602 playSound("assets/category_app/perfect_organic_button.mp3");603 604});605onEvent("button224", "click", function( ) {606 setScreen("wrongminnesota");607 playSound("assets/category_app/perfect_organic_button.mp3");608 609});610onEvent("button225", "click", function( ) {611 setScreen("wrongminnesota");612 playSound("assets/category_app/perfect_organic_button.mp3");613 614});615onEvent("button226", "click", function( ) {616 setScreen("wrongminnesota");617 playSound("assets/category_app/perfect_organic_button.mp3");618 619});620onEvent("button227", "click", function( ) {621 setScreen("correctminnesota");622 playSound("assets/category_app/perfect_organic_button.mp3");623 score=score+1;624});625onEvent("button229", "click", function( ) {626 setScreen("Mississippi");627 playSound("assets/category_app/perfect_organic_button.mp3");628 629});630onEvent("button232", "click", function( ) {631 setScreen("Mississippi");632 playSound("assets/category_app/perfect_organic_button.mp3");633 634});635onEvent("button235", "click", function( ) {636 setScreen("wrongmississippi");637 playSound("assets/category_app/perfect_organic_button.mp3");638 639});640onEvent("button237", "click", function( ) {641 setScreen("wrongmississippi");642 playSound("assets/category_app/perfect_organic_button.mp3");643 644});645onEvent("button238", "click", function( ) {646 setScreen("wrongmississippi");647 playSound("assets/category_app/perfect_organic_button.mp3");648 649});650onEvent("button236", "click", function( ) {651 setScreen("correctmississippi");652 playSound("assets/category_app/perfect_organic_button.mp3");653 score=score+1;654});655onEvent("button250", "click", function( ) {656 setScreen("Missouri");657 playSound("assets/category_app/perfect_organic_button.mp3");658 659});660onEvent("button259", "click", function( ) {661 setScreen("Missouri");662 playSound("assets/category_app/perfect_organic_button.mp3");663 664});665onEvent("button240", "click", function( ) {666 setScreen("correctmissouri");667 playSound("assets/category_app/perfect_organic_button.mp3");668 score=score+1;669});670onEvent("button241", "click", function( ) {671 setScreen("wrongmissouri");672 playSound("assets/category_app/perfect_organic_button.mp3");673 674});675onEvent("button242", "click", function( ) {676 setScreen("wrongmissouri");677 playSound("assets/category_app/perfect_organic_button.mp3");678 679});680onEvent("button243", "click", function( ) {681 setScreen("wrongmissouri");682 playSound("assets/category_app/perfect_organic_button.mp3");683 684});685onEvent("button263", "click", function( ) {686 setScreen("Montana");687 playSound("assets/category_app/perfect_organic_button.mp3");688 689});690onEvent("button253", "click", function( ) {691 setScreen("Montana");692 playSound("assets/category_app/perfect_organic_button.mp3");693 694});695onEvent("button245", "click", function( ) {696 setScreen("wrongmontana");697 playSound("assets/category_app/perfect_organic_button.mp3");698 699});700onEvent("button246", "click", function( ) {701 setScreen("wrongmontana");702 playSound("assets/category_app/perfect_organic_button.mp3");703 704});705onEvent("button248", "click", function( ) {706 setScreen("wrongmontana");707 playSound("assets/category_app/perfect_organic_button.mp3");708 709});710onEvent("button247", "click", function( ) {711 setScreen("correctmontana");712 playSound("assets/category_app/perfect_organic_button.mp3");713 score=score+1;714});715onEvent("button256", "click", function( ) {716 setScreen("Nebraska");717 playSound("assets/category_app/perfect_organic_button.mp3");718 719});720onEvent("button266", "click", function( ) {721 setScreen("Nebraska");722 playSound("assets/category_app/perfect_organic_button.mp3");723 724});725onEvent("button270", "click", function( ) {726 setScreen("wrongnebraska");727 playSound("assets/category_app/perfect_organic_button.mp3");728 729});730onEvent("button271", "click", function( ) {731 setScreen("wrongnebraska");732 playSound("assets/category_app/perfect_organic_button.mp3");733 734});735onEvent("button273", "click", function( ) {736 setScreen("wrongnebraska");737 playSound("assets/category_app/perfect_organic_button.mp3");738 739});740onEvent("button272", "click", function( ) {741 setScreen("correctnebraska");742 playSound("assets/category_app/perfect_organic_button.mp3");743 score=score+1;744});745onEvent("button280", "click", function( ) {746 setScreen("Nevada");747 playSound("assets/category_app/perfect_organic_button.mp3");748 749});750onEvent("button283", "click", function( ) {751 setScreen("Nevada");752 playSound("assets/category_app/perfect_organic_button.mp3");753 754 755});756onEvent("button275", "click", function( ) {757 setScreen("wrongnevada");758 playSound("assets/category_app/perfect_organic_button.mp3");759 760});761onEvent("button276", "click", function( ) {762 setScreen("wrongnevada");763 playSound("assets/category_app/perfect_organic_button.mp3");764 765});766onEvent("button278", "click", function( ) {767 setScreen("wrongnevada");768 playSound("assets/category_app/perfect_organic_button.mp3");769 770});771onEvent("button277", "click", function( ) {772 setScreen("correctnevada");773 playSound("assets/category_app/perfect_organic_button.mp3");774 score=score+1;775});776onEvent("button316", "click", function( ) {777 setScreen("NewHampshire");778 playSound("assets/category_app/perfect_organic_button.mp3");779 780});781onEvent("button331", "click", function( ) {782 setScreen("NewHampshire");783 playSound("assets/category_app/perfect_organic_button.mp3");784 785});786onEvent("button286", "click", function( ) {787 setScreen("wrongnewhampshire");788 playSound("assets/category_app/perfect_organic_button.mp3");789 790});791onEvent("button288", "click", function( ) {792 setScreen("wrongnewhampshire");793 playSound("assets/category_app/perfect_organic_button.mp3");794 795});796onEvent("button289", "click", function( ) {797 setScreen("wrongnewhampshire");798 playSound("assets/category_app/perfect_organic_button.mp3");799 800});801onEvent("button287", "click", function( ) {802 setScreen("correctnewhampshire");803 playSound("assets/category_app/perfect_organic_button.mp3");804 score=score+1;805});806onEvent("button319", "click", function( ) {807 setScreen("NewJersey");808 playSound("assets/category_app/perfect_organic_button.mp3");809 810});811onEvent("button334", "click", function( ) {812 setScreen("NewJersey");813 playSound("assets/category_app/perfect_organic_button.mp3");814 815});816onEvent("button292", "click", function( ) {817 setScreen("wrongnewjersey");818 playSound("assets/category_app/perfect_organic_button.mp3");819 820});821onEvent("button293", "click", function( ) {822 setScreen("wrongnewjersey");823 playSound("assets/category_app/perfect_organic_button.mp3");824 825});826onEvent("button294", "click", function( ) {827 setScreen("wrongnewjersey");828 playSound("assets/category_app/perfect_organic_button.mp3");829 830});831onEvent("button291", "click", function( ) {832 setScreen("correctnewjersey");833 playSound("assets/category_app/perfect_organic_button.mp3");834 score=score+1;835});836onEvent("button321", "click", function( ) {837 setScreen("NewMexico");838 playSound("assets/category_app/perfect_organic_button.mp3");839 840});841onEvent("button336", "click", function( ) {842 setScreen("NewMexico");843 playSound("assets/category_app/perfect_organic_button.mp3");844 845});846onEvent("button296", "click", function( ) {847 setScreen("wrongnewmexico");848 playSound("assets/category_app/perfect_organic_button.mp3");849 850});851onEvent("button297", "click", function( ) {852 setScreen("wrongnewmexico");853 playSound("assets/category_app/perfect_organic_button.mp3");854 855});856onEvent("button299", "click", function( ) {857 setScreen("wrongnewmexico");858 playSound("assets/category_app/perfect_organic_button.mp3");859 860});861onEvent("button298", "click", function( ) {862 setScreen("correctnewmexico");863 playSound("assets/category_app/perfect_organic_button.mp3");864 score=score+1;865});866onEvent("button323", "click", function( ) {867 setScreen("NewYork");868 playSound("assets/category_app/perfect_organic_button.mp3");869 870});871onEvent("button338", "click", function( ) {872 setScreen("NewYork");873 playSound("assets/category_app/perfect_organic_button.mp3");874 875});876onEvent("button301", "click", function( ) {877 setScreen("wrongnewyork");878 playSound("assets/category_app/perfect_organic_button.mp3");879 880});881onEvent("button303", "click", function( ) {882 setScreen("wrongnewyork");883 playSound("assets/category_app/perfect_organic_button.mp3");884 885});886onEvent("button302", "click", function( ) {887 setScreen("wrongnewyork");888 playSound("assets/category_app/perfect_organic_button.mp3");889 890});891onEvent("button304", "click", function( ) {892 setScreen("correctnewyork");893 playSound("assets/category_app/perfect_organic_button.mp3");894 score=score+1;895});896onEvent("button340", "click", function( ) {897 setScreen("NorthCarolina");898 playSound("assets/category_app/perfect_organic_button.mp3");899 900});901onEvent("button325", "click", function( ) {902 setScreen("NorthCarolina");903 playSound("assets/category_app/perfect_organic_button.mp3");904 905});906onEvent("button306", "click", function( ) {907 setScreen("wrongnorthcarolina");908 playSound("assets/category_app/perfect_organic_button.mp3");909 910});911onEvent("button308", "click", function( ) {912 setScreen("wrongnorthcarolina");913 playSound("assets/category_app/perfect_organic_button.mp3");914 915});916onEvent("button309", "click", function( ) {917 setScreen("wrongnorthcarolina");918 playSound("assets/category_app/perfect_organic_button.mp3");919 920});921onEvent("button307", "click", function( ) {922 setScreen("correctnorthcarolina");923 playSound("assets/category_app/perfect_organic_button.mp3");924 score=score+1;925});926onEvent("button327", "click", function( ) {927 setScreen("NorthDakota");928 playSound("assets/category_app/perfect_organic_button.mp3");929 930});931onEvent("button342", "click", function( ) {932 setScreen("NorthDakota");933 playSound("assets/category_app/perfect_organic_button.mp3");934 935});936onEvent("button311", "click", function( ) {937 setScreen("wrongnorthdakota");938 playSound("assets/category_app/perfect_organic_button.mp3");939 940});941onEvent("button312", "click", function( ) {942 setScreen("wrongnorthdakota");943 playSound("assets/category_app/perfect_organic_button.mp3");944 945});946onEvent("button313", "click", function( ) {947 setScreen("wrongnorthdakota");948 playSound("assets/category_app/perfect_organic_button.mp3");949 950});951onEvent("button314", "click", function( ) {952 setScreen("correctnorthdakota");953 playSound("assets/category_app/perfect_organic_button.mp3");954 score=score+1;955 956});957onEvent("button344", "click", function( ) {958 setScreen("Ohio");959 playSound("assets/category_app/perfect_organic_button.mp3");960 961});962onEvent("button329", "click", function( ) {963 setScreen("Ohio");964 playSound("assets/category_app/perfect_organic_button.mp3");965 966});967onEvent("button348", "click", function( ) {968 setScreen("wrongohio");969 playSound("assets/category_app/perfect_organic_button.mp3");970 971});972onEvent("button349", "click", function( ) {973 setScreen("wrongohio");974 playSound("assets/category_app/perfect_organic_button.mp3");975 976});977onEvent("button351", "click", function( ) {978 setScreen("wrongohio");979 playSound("assets/category_app/perfect_organic_button.mp3");980 981});982onEvent("button350", "click", function( ) {983 setScreen("correctohio");984 playSound("assets/category_app/perfect_organic_button.mp3");985 score=score+1;986});987onEvent("button365", "click", function( ) {988 setScreen("Oklahoma");989 playSound("assets/category_app/perfect_organic_button.mp3");990 991});992onEvent("button359", "click", function( ) {993 setScreen("Oklahoma");994 playSound("assets/category_app/perfect_organic_button.mp3");995 996});997onEvent("button268", "click", function( ) {998 setScreen("correctoklahoma");999 playSound("assets/category_app/perfect_organic_button.mp3");1000 score=score+1;1001});1002onEvent("button317", "click", function( ) {1003 setScreen("wrongoklahoma");1004 playSound("assets/category_app/perfect_organic_button.mp3");1005 1006});1007onEvent("button332", "click", function( ) {1008 setScreen("wrongoklahoma");1009 playSound("assets/category_app/perfect_organic_button.mp3");1010 1011});1012onEvent("button352", "click", function( ) {1013 setScreen("wrongoklahoma");1014 playSound("assets/category_app/perfect_organic_button.mp3");1015 1016});1017onEvent("button361", "click", function( ) {1018 setScreen("Oregon");1019 playSound("assets/category_app/perfect_organic_button.mp3");1020 1021});1022onEvent("button367", "click", function( ) {1023 setScreen("Oregon");1024 playSound("assets/category_app/perfect_organic_button.mp3");1025 1026});1027onEvent("button354", "click", function( ) {1028 setScreen("wrongoregon");1029 playSound("assets/category_app/perfect_organic_button.mp3");1030 1031});1032onEvent("button355", "click", function( ) {1033 setScreen("wrongoregon");1034 playSound("assets/category_app/perfect_organic_button.mp3");1035 1036});1037onEvent("button357", "click", function( ) {1038 setScreen("wrongoregon");1039 playSound("assets/category_app/perfect_organic_button.mp3");1040 1041});1042onEvent("button356", "click", function( ) {1043 setScreen("correctoregon");1044 playSound("assets/category_app/perfect_organic_button.mp3");1045 score=score+1;1046 1047});1048onEvent("button363", "click", function( ) {1049 setScreen("Pennsylvania");1050 playSound("assets/category_app/perfect_organic_button.mp3");1051 1052});1053onEvent("button369", "click", function( ) {1054 setScreen("Pennsylvania");1055 playSound("assets/category_app/perfect_organic_button.mp3");1056 1057});1058onEvent("button371", "click", function( ) {1059 setScreen("correctpennsylvania");1060 playSound("assets/category_app/perfect_organic_button.mp3");1061 score=score+1;1062});1063onEvent("button372", "click", function( ) {1064 setScreen("wrongpennsylvania");1065 playSound("assets/category_app/perfect_organic_button.mp3");1066 1067});1068onEvent("button373", "click", function( ) {1069 setScreen("wrongpennsylvania");1070 playSound("assets/category_app/perfect_organic_button.mp3");1071 1072});1073onEvent("button374", "click", function( ) {1074 setScreen("wrongpennsylvania");1075 playSound("assets/category_app/perfect_organic_button.mp3");1076 1077});1078onEvent("button398", "click", function( ) {1079 setScreen("RhodeIsland");1080 playSound("assets/category_app/perfect_organic_button.mp3");1081 1082});1083onEvent("button390", "click", function( ) {1084 setScreen("RhodeIsland");1085 playSound("assets/category_app/perfect_organic_button.mp3");1086 1087});1088onEvent("button376", "click", function( ) {1089 setScreen("wrongrhodeisland");1090 playSound("assets/category_app/perfect_organic_button.mp3");1091 1092});1093onEvent("button378", "click", function( ) {1094 setScreen("wrongrhodeisland");1095 playSound("assets/category_app/perfect_organic_button.mp3");1096 1097});1098onEvent("button379", "click", function( ) {1099 setScreen("wrongrhodeisland");1100 playSound("assets/category_app/perfect_organic_button.mp3");1101 1102});1103onEvent("button377", "click", function( ) {1104 setScreen("correctrhodeisland");1105 playSound("assets/category_app/perfect_organic_button.mp3");1106 score=score+1;1107});1108onEvent("button392", "click", function( ) {1109 setScreen("SouthCarolina");1110 playSound("assets/category_app/perfect_organic_button.mp3");1111 1112});1113onEvent("button400", "click", function( ) {1114 setScreen("SouthCarolina");1115 playSound("assets/category_app/perfect_organic_button.mp3");1116 1117});1118onEvent("button381", "click", function( ) {1119 setScreen("wrongsouthcarolina");1120 playSound("assets/category_app/perfect_organic_button.mp3");1121 1122});1123onEvent("button383", "click", function( ) {1124 setScreen("wrongsouthcarolina");1125 playSound("assets/category_app/perfect_organic_button.mp3");1126 1127});1128onEvent("button384", "click", function( ) {1129 setScreen("wrongsouthcarolina");1130 playSound("assets/category_app/perfect_organic_button.mp3");1131 1132});1133onEvent("button382", "click", function( ) {1134 setScreen("correctsouthcarolina");1135 playSound("assets/category_app/perfect_organic_button.mp3");1136 score=score+1;1137});1138onEvent("button402", "click", function( ) {1139 setScreen("SouthDakota");1140 playSound("assets/category_app/perfect_organic_button.mp3");1141 1142});1143onEvent("button394", "click", function( ) {1144 setScreen("SouthDakota");1145 playSound("assets/category_app/perfect_organic_button.mp3");1146 1147});1148onEvent("button386", "click", function( ) {1149 setScreen("wrongsouthdakota");1150 playSound("assets/category_app/perfect_organic_button.mp3");1151 1152});1153onEvent("button388", "click", function( ) {1154 setScreen("wrongsouthdakota");1155 playSound("assets/category_app/perfect_organic_button.mp3");1156 1157});1158onEvent("button387", "click", function( ) {1159 setScreen("correctsouthdakota");1160 playSound("assets/category_app/perfect_organic_button.mp3");1161 score=score+1;1162 1163});1164onEvent("button396", "click", function( ) {1165 setScreen("Tennessee");1166 playSound("assets/category_app/perfect_organic_button.mp3");1167 1168});1169onEvent("button404", "click", function( ) {1170 setScreen("Tennessee");1171 playSound("assets/category_app/perfect_organic_button.mp3");1172 1173});1174onEvent("button413", "click", function( ) {1175 setScreen("wrongtennessee");1176 playSound("assets/category_app/perfect_organic_button.mp3");1177 1178});1179onEvent("button415", "click", function( ) {1180 setScreen("wrongtennessee");1181 playSound("assets/category_app/perfect_organic_button.mp3");1182 1183});1184onEvent("button416", "click", function( ) {1185 setScreen("wrongtennessee");1186 playSound("assets/category_app/perfect_organic_button.mp3");1187 1188});1189onEvent("button414", "click", function( ) {1190 setScreen("correcttennessee");1191 playSound("assets/category_app/perfect_organic_button.mp3");1192 score=score+1;1193});1194onEvent("button438", "click", function( ) {1195 setScreen("Texas");1196 playSound("assets/category_app/perfect_organic_button.mp3");1197 1198});1199onEvent("button448", "click", function( ) {1200 setScreen("Texas");1201 playSound("assets/category_app/perfect_organic_button.mp3");1202 1203});1204onEvent("button418", "click", function( ) {1205 setScreen("wrongtexas");1206 playSound("assets/category_app/perfect_organic_button.mp3");1207 1208});1209onEvent("button419", "click", function( ) {1210 setScreen("wrongtexas");1211 playSound("assets/category_app/perfect_organic_button.mp3");1212 1213});1214onEvent("button420", "click", function( ) {1215 setScreen("wrongtexas");1216 playSound("assets/category_app/perfect_organic_button.mp3");1217 1218});1219onEvent("button421", "click", function( ) {1220 setScreen("correcttexas");1221 playSound("assets/category_app/perfect_organic_button.mp3");1222 score=score+1;1223});1224onEvent("button450", "click", function( ) {1225 setScreen("Utah");1226 playSound("assets/category_app/perfect_organic_button.mp3");1227 1228});1229onEvent("button440", "click", function( ) {1230 setScreen("Utah");1231 playSound("assets/category_app/perfect_organic_button.mp3");1232 1233});1234onEvent("button423", "click", function( ) {1235 setScreen("wrongutah");1236 playSound("assets/category_app/perfect_organic_button.mp3");1237 1238});1239onEvent("button424", "click", function( ) {1240 setScreen("wrongutah");1241 playSound("assets/category_app/perfect_organic_button.mp3");1242 1243});1244onEvent("button425", "click", function( ) {1245 setScreen("correctutah");1246 playSound("assets/category_app/perfect_organic_button.mp3");1247 score=score+1;1248});1249onEvent("button426", "click", function( ) {1250 setScreen("wrongutah");1251 playSound("assets/category_app/perfect_organic_button.mp3");1252 1253});1254onEvent("button442", "click", function( ) {1255 setScreen("Vermont");1256 playSound("assets/category_app/perfect_organic_button.mp3");1257 1258});1259onEvent("button453", "click", function( ) {1260 setScreen("Vermont");1261 playSound("assets/category_app/perfect_organic_button.mp3");1262 1263});1264onEvent("button428", "click", function( ) {1265 setScreen("wrongvermont");1266 playSound("assets/category_app/perfect_organic_button.mp3");1267 1268});1269onEvent("button429", "click", function( ) {1270 setScreen("wrongvermont");1271 playSound("assets/category_app/perfect_organic_button.mp3");1272 1273});1274onEvent("button430", "click", function( ) {1275 setScreen("wrongvermont");1276 playSound("assets/category_app/perfect_organic_button.mp3");1277 1278});1279onEvent("button431", "click", function( ) {1280 setScreen("correctvermont");1281 playSound("assets/category_app/perfect_organic_button.mp3");1282 score=score+1;1283});1284onEvent("button444", "click", function( ) {1285 setScreen("Virginia");1286 playSound("assets/category_app/perfect_organic_button.mp3");1287 1288});1289onEvent("button456", "click", function( ) {1290 setScreen("Virginia");1291 playSound("assets/category_app/perfect_organic_button.mp3");1292 1293});1294onEvent("button433", "click", function( ) {1295 setScreen("wrongvirginia");1296 playSound("assets/category_app/perfect_organic_button.mp3");1297 1298});1299onEvent("button434", "click", function( ) {1300 setScreen("wrongvirginia");1301 playSound("assets/category_app/perfect_organic_button.mp3");1302 1303});1304onEvent("button435", "click", function( ) {1305 setScreen("correctvirginia");1306 playSound("assets/category_app/perfect_organic_button.mp3");1307 score=score+1;1308});1309onEvent("button436", "click", function( ) {1310 setScreen("wrongvirginia");1311 playSound("assets/category_app/perfect_organic_button.mp3");1312 1313});1314onEvent("button446", "click", function( ) {1315 setScreen("Washington");1316 playSound("assets/category_app/perfect_organic_button.mp3");1317 1318});1319onEvent("button458", "click", function( ) {1320 setScreen("Washington");1321 playSound("assets/category_app/perfect_organic_button.mp3");1322 1323});1324onEvent("button460", "click", function( ) {1325 setScreen("wrongwashington");1326 playSound("assets/category_app/perfect_organic_button.mp3");1327 1328});1329onEvent("button462", "click", function( ) {1330 setScreen("wrongwashington");1331 playSound("assets/category_app/perfect_organic_button.mp3");1332 1333});1334onEvent("button463", "click", function( ) {1335 setScreen("wrongwashington");1336 playSound("assets/category_app/perfect_organic_button.mp3");1337 1338});1339onEvent("button461", "click", function( ) {1340 setScreen("correctwashington");1341 playSound("assets/category_app/perfect_organic_button.mp3");1342 score=score+1;1343});1344onEvent("button478", "click", function( ) {1345 setScreen("WestVirginia");1346 playSound("assets/category_app/perfect_organic_button.mp3");1347 1348});1349onEvent("button485", "click", function( ) {1350 setScreen("WestVirginia");1351 playSound("assets/category_app/perfect_organic_button.mp3");1352 1353});1354onEvent("button466", "click", function( ) {1355 setScreen("wrongwestvirginia");1356 playSound("assets/category_app/perfect_organic_button.mp3");1357 1358});1359onEvent("button467", "click", function( ) {1360 setScreen("wrongwestvirginia");1361 playSound("assets/category_app/perfect_organic_button.mp3");1362 1363});1364onEvent("button465", "click", function( ) {1365 setScreen("correctwestvirginia");1366 playSound("assets/category_app/perfect_organic_button.mp3");1367 score=score+1;1368});1369onEvent("button487", "click", function( ) {1370 setScreen("Wisconsin");1371 playSound("assets/category_app/perfect_organic_button.mp3");1372 1373});1374onEvent("button409", "click", function( ) {1375 setScreen("Wisconsin");1376 playSound("assets/category_app/perfect_organic_button.mp3");1377 1378});1379onEvent("button469", "click", function( ) {1380 setScreen("wrongwisconsin");1381 playSound("assets/category_app/perfect_organic_button.mp3");1382 1383});1384onEvent("button471", "click", function( ) {1385 setScreen("wrongwisconsin");1386 playSound("assets/category_app/perfect_organic_button.mp3");1387 1388});1389onEvent("button470", "click", function( ) {1390 setScreen("correctwisconsin");1391 playSound("assets/category_app/perfect_organic_button.mp3");1392 score=score+1;1393});1394onEvent("button480", "click", function( ) {1395 setScreen("Wyoming");1396 playSound("assets/category_app/perfect_organic_button.mp3");1397 1398});1399onEvent("button489", "click", function( ) {1400 setScreen("Wyoming");1401 playSound("assets/category_app/perfect_organic_button.mp3");1402 1403});1404onEvent("button473", "click", function( ) {1405 setScreen("wrongwyoming");1406 playSound("assets/category_app/perfect_organic_button.mp3");1407 1408});1409onEvent("button474", "click", function( ) {1410 setScreen("wrongwyoming");1411 playSound("assets/category_app/perfect_organic_button.mp3");1412 1413});1414onEvent("button476", "click", function( ) {1415 setScreen("wrongwyoming");1416 playSound("assets/category_app/perfect_organic_button.mp3");1417 1418});1419onEvent("button475", "click", function( ) {1420 setScreen("correctwyoming");1421 playSound("assets/category_app/perfect_organic_button.mp3");1422 score=score+1;1423});1424onEvent("button491", "click", function( ) {1425 setScreen("AmericanSamoa");1426 playSound("assets/category_app/perfect_organic_button.mp3");1427 1428});1429onEvent("button482", "click", function( ) {1430 setScreen("AmericanSamoa");1431 playSound("assets/category_app/perfect_organic_button.mp3");1432 1433});1434onEvent("button494", "click", function( ) {1435 setScreen("wrongamericansamoa");1436 playSound("assets/category_app/perfect_organic_button.mp3");1437 1438});1439onEvent("button495", "click", function( ) {1440 setScreen("wrongamericansamoa");1441 playSound("assets/category_app/perfect_organic_button.mp3");1442 1443});1444onEvent("button497", "click", function( ) {1445 setScreen("wrongamericansamoa");1446 playSound("assets/category_app/perfect_organic_button.mp3");1447 1448});1449onEvent("button498", "click", function( ) {1450 setScreen("wrongamericansamoa");1451 playSound("assets/category_app/perfect_organic_button.mp3");1452 1453});1454onEvent("button499", "click", function( ) {1455 setScreen("wrongamericansamoa");1456 playSound("assets/category_app/perfect_organic_button.mp3");1457 1458});1459onEvent("button496", "click", function( ) {1460 setScreen("correctamericansamoa");1461 playSound("assets/category_app/perfect_organic_button.mp3");1462 score=score+1;1463 1464});1465onEvent("button544", "click", function( ) {1466 setScreen("Guam");1467 playSound("assets/category_app/perfect_organic_button.mp3");1468 1469});1470onEvent("button532", "click", function( ) {1471 setScreen("Guam");1472 playSound("assets/category_app/perfect_organic_button.mp3");1473 1474});1475onEvent("button544", "click", function( ) {1476 setScreen("Guam");1477 playSound("assets/category_app/perfect_organic_button.mp3");1478 1479});1480onEvent("button502", "click", function( ) {1481 setScreen("wrongguam");1482 playSound("assets/category_app/perfect_organic_button.mp3");1483 1484});1485onEvent("button503", "click", function( ) {1486 setScreen("wrongguam");1487 playSound("assets/category_app/perfect_organic_button.mp3");1488 1489});1490onEvent("button504", "click", function( ) {1491 setScreen("wrongguam");1492 playSound("assets/category_app/perfect_organic_button.mp3");1493 1494});1495onEvent("button505", "click", function( ) {1496 setScreen("wrongguam");1497 playSound("assets/category_app/perfect_organic_button.mp3");1498 1499});1500onEvent("button506", "click", function( ) {1501 setScreen("wrongguam");1502 playSound("assets/category_app/perfect_organic_button.mp3");1503 1504});1505onEvent("button501", "click", function( ) {1506 setScreen("correctguam");1507 playSound("assets/category_app/perfect_organic_button.mp3");1508 score=score+1;1509 1510});1511onEvent("button534", "click", function( ) {1512 setScreen("NorthernMarianaIslands");1513 playSound("assets/category_app/perfect_organic_button.mp3");1514 1515});1516onEvent("button546", "click", function( ) {1517 setScreen("NorthernMarianaIslands");1518 playSound("assets/category_app/perfect_organic_button.mp3");1519 1520});1521onEvent("button508", "click", function( ) {1522 setScreen("wrongnorthernmarianaislands");1523 playSound("assets/category_app/perfect_organic_button.mp3");1524 1525});1526onEvent("button509", "click", function( ) {1527 setScreen("wrongnorthernmarianaislands");1528 playSound("assets/category_app/perfect_organic_button.mp3");1529 1530});1531onEvent("button510", "click", function( ) {1532 setScreen("wrongnorthernmarianaislands");1533 playSound("assets/category_app/perfect_organic_button.mp3");1534 1535});1536onEvent("button512", "click", function( ) {1537 setScreen("wrongnorthernmarianaislands");1538 playSound("assets/category_app/perfect_organic_button.mp3");1539 1540});1541onEvent("button513", "click", function( ) {1542 setScreen("wrongnorthernmarianaislands");1543 playSound("assets/category_app/perfect_organic_button.mp3");1544 1545});1546onEvent("button511", "click", function( ) {1547 setScreen("correctnorthernmarianaislands");1548 playSound("assets/category_app/perfect_organic_button.mp3");1549 score=score+1;1550});1551onEvent("button536", "click", function( ) {1552 setScreen("PuertoRico");1553 playSound("assets/category_app/perfect_organic_button.mp3");1554 1555});1556onEvent("button548", "click", function( ) {1557 setScreen("PuertoRico");1558 playSound("assets/category_app/perfect_organic_button.mp3");1559 1560});1561onEvent("button515", "click", function( ) {1562 setScreen("wrongpuertorico");1563 playSound("assets/category_app/perfect_organic_button.mp3");1564 1565});1566onEvent("button516", "click", function( ) {1567 setScreen("wrongpuertorico");1568 playSound("assets/category_app/perfect_organic_button.mp3");1569 1570});1571onEvent("button517", "click", function( ) {1572 setScreen("wrongpuertorico");1573 playSound("assets/category_app/perfect_organic_button.mp3");1574 1575});1576onEvent("button518", "click", function( ) {1577 setScreen("correctpuertorico");1578 playSound("assets/category_app/perfect_organic_button.mp3");1579 score=score+1;1580});1581onEvent("button538", "click", function( ) {1582 setScreen("VirginIslands");1583 playSound("assets/category_app/perfect_organic_button.mp3");1584 1585});1586onEvent("button550", "click", function( ) {1587 setScreen("VirginIslands");1588 playSound("assets/category_app/perfect_organic_button.mp3");1589 1590});1591onEvent("button520", "click", function( ) {1592 setScreen("wrongvirginislands");1593 playSound("assets/category_app/perfect_organic_button.mp3");1594 1595});1596onEvent("button522", "click", function( ) {1597 setScreen("wrongvirginislands");1598 playSound("assets/category_app/perfect_organic_button.mp3");1599 1600});1601onEvent("button523", "click", function( ) {1602 setScreen("wrongvirginislands");1603 playSound("assets/category_app/perfect_organic_button.mp3");1604 1605});1606onEvent("button524", "click", function( ) {1607 setScreen("wrongvirginislands");1608 playSound("assets/category_app/perfect_organic_button.mp3");1609 1610});1611onEvent("button525", "click", function( ) {1612 setScreen("wrongvirginislands");1613 playSound("assets/category_app/perfect_organic_button.mp3");1614 1615});1616onEvent("button521", "click", function( ) {1617 setScreen("correctvirginislands");1618 playSound("assets/category_app/perfect_organic_button.mp3");1619 score=score+1;1620});1621onEvent("button540", "click", function( ) {1622 setScreen("USA");1623 playSound("assets/category_app/perfect_organic_button.mp3");1624 1625});1626onEvent("button552", "click", function( ) {1627 setScreen("USA");1628 playSound("assets/category_app/perfect_organic_button.mp3");1629 1630});1631onEvent("button527", "click", function( ) {1632 setScreen("correctusa");1633 playSound("assets/category_app/perfect_organic_button.mp3");1634 score=score+1;1635});1636onEvent("button528", "click", function( ) {1637 setScreen("wrongusa");1638 playSound("assets/category_app/perfect_organic_button.mp3");1639 1640});1641onEvent("button529", "click", function( ) {1642 setScreen("wrongusa");1643 playSound("assets/category_app/perfect_organic_button.mp3");1644 1645});1646onEvent("button530", "click", function( ) {1647 setScreen("wrongusa");1648 playSound("assets/category_app/perfect_organic_button.mp3");1649 1650});1651onEvent("button542", "click", function( ) {1652 setScreen("score");1653 playSound("assets/category_app/perfect_organic_button.mp3");1654 setProperty("scores", "text", score);1655});1656onEvent("button554", "click", function( ) {1657 setScreen("score");1658 playSound("assets/category_app/perfect_organic_button.mp3");1659 setProperty("scores", "text", score);1660 1661});1662onEvent("button347", "click", function( ) {1663 setScreen("HappyAniversary");1664 playSound("assets/category_app/perfect_organic_button.mp3");1665 1666});1667onEvent("button405", "click", function( ) {1668 setScreen("HappyAniversary2");1669 playSound("assets/category_app/perfect_organic_button.mp3");1670 1671});1672onEvent("button406", "click", function( ) {1673 setScreen("HappyAniversary3");1674 playSound("assets/category_app/perfect_organic_button.mp3");1675 1676});1677onEvent("button408", "click", function( ) {1678 setScreen("HappyAniversary4");1679 playSound("assets/category_app/perfect_organic_button.mp3");1680 1681});1682onEvent("button483", "click", function( ) {1683 setScreen("HappyAniversary5");1684 playSound("assets/category_app/perfect_organic_button.mp3");1685 1686});1687onEvent("button492", "click", function( ) {1688 setScreen("HappyAniversary6");1689 playSound("assets/category_app/perfect_organic_button.mp3");1690 1691});1692onEvent("button559", "click", function( ) {1693 setScreen("HappyAniversary7");1694 playSound("assets/category_app/perfect_organic_button.mp3");1695 1696});1697onEvent("button560", "click", function( ) {1698 setScreen("HappyAniversary8");1699 playSound("assets/category_app/perfect_organic_button.mp3");1700 1701});1702onEvent("button562", "click", function( ) {1703 setScreen("HappyAniversary9");1704 playSound("assets/category_app/perfect_organic_button.mp3");1705 1706});1707onEvent("button561", "click", function( ) {1708 setScreen("HappyAniversary10");1709 playSound("assets/category_app/perfect_organic_button.mp3");1710 ...

Full Screen

Full Screen

RequestConsole.js

Source:RequestConsole.js Github

copy

Full Screen

1import { useBackend } from '../backend';2import { Button, LabeledList, Box, Section } from '../components';3import { Window } from '../layouts';4export const RequestConsole = (props, context) => {5 const { act, data } = useBackend(context);6 const { screen } = data;7 const pickPage = (index) => {8 switch (index) {9 case 0:10 return <MainMenu />;11 case 1:12 return <DepartmentList purpose="ASSISTANCE" />;13 case 2:14 return <DepartmentList purpose="SUPPLIES" />;15 case 3:16 return <DepartmentList purpose="INFO" />;17 case 4:18 return <MessageResponse type="SUCCESS" />;19 case 5:20 return <MessageResponse type="FAIL" />;21 case 6:22 return <MessageLog type="MESSAGES" />;23 case 7:24 return <MessageAuth />;25 case 8:26 return <StationAnnouncement />;27 case 9:28 return <PrintShippingLabel />;29 case 10:30 return <MessageLog type="SHIPPING" />;31 default:32 return "WE SHOULDN'T BE HERE!";33 }34 };35 return (36 <Window>37 <Window.Content scrollable>{pickPage(screen)}</Window.Content>38 </Window>39 );40};41const MainMenu = (props, context) => {42 const { act, data } = useBackend(context);43 const { newmessagepriority, announcementConsole, silent } = data;44 let messageInfo;45 if (newmessagepriority === 1) {46 messageInfo = <Box color="red">There are new messages</Box>;47 } else if (newmessagepriority === 2) {48 messageInfo = (49 <Box color="red" bold>50 NEW PRIORITY MESSAGES51 </Box>52 );53 }54 return (55 <Section title="Main Menu">56 {messageInfo}57 <Box mt={2}>58 <Button59 content="View Messages"60 icon={newmessagepriority > 0 ? 'envelope-open-text' : 'envelope'}61 onClick={() => act('setScreen', { setScreen: 6 })}62 />63 </Box>64 <Box mt={2}>65 <Box>66 <Button67 content="Request Assistance"68 icon="hand-paper"69 onClick={() => act('setScreen', { setScreen: 1 })}70 />71 </Box>72 <Box>73 <Button74 content="Request Supplies"75 icon="box"76 onClick={() => act('setScreen', { setScreen: 2 })}77 />78 </Box>79 <Box>80 <Button81 content="Relay Anonymous Information"82 icon="comment"83 onClick={() => act('setScreen', { setScreen: 3 })}84 />85 </Box>86 </Box>87 <Box mt={2}>88 <Box>89 <Button90 content="Print Shipping Label"91 icon="tag"92 onClick={() => act('setScreen', { setScreen: 9 })}93 />94 </Box>95 <Box>96 <Button97 content="View Shipping Logs"98 icon="clipboard-list"99 onClick={() => act('setScreen', { setScreen: 10 })}100 />101 </Box>102 </Box>103 {!!announcementConsole && (104 <Box mt={2}>105 <Button106 content="Send Station-Wide Announcement"107 icon="bullhorn"108 onClick={() => act('setScreen', { setScreen: 8 })}109 />110 </Box>111 )}112 <Box mt={2}>113 <Button114 content={silent ? 'Speaker Off' : 'Speaker On'}115 selected={!silent}116 icon={silent ? 'volume-mute' : 'volume-up'}117 onClick={() => act('toggleSilent')}118 />119 </Box>120 </Section>121 );122};123const DepartmentList = (props, context) => {124 const { act, data } = useBackend(context);125 const { department } = data;126 let list2iterate;127 let sectionTitle;128 switch (props.purpose) {129 case 'ASSISTANCE':130 list2iterate = data.assist_dept;131 sectionTitle = 'Request assistance from another department';132 break;133 case 'SUPPLIES':134 list2iterate = data.supply_dept;135 sectionTitle = 'Request supplies from another department';136 break;137 case 'INFO':138 list2iterate = data.info_dept;139 sectionTitle = 'Relay information to another department';140 break;141 }142 return (143 <Section144 title={sectionTitle}145 buttons={146 <Button147 content="Back"148 icon="arrow-left"149 onClick={() => act('setScreen', { setScreen: 0 })}150 />151 }152 >153 <LabeledList>154 {list2iterate155 .filter((d) => d !== department)156 .map((d) => (157 <LabeledList.Item key={d} label={d}>158 <Button159 content="Message"160 icon="envelope"161 onClick={() => act('writeInput', { write: d, priority: 1 })}162 />163 <Button164 content="High Priority"165 icon="exclamation-circle"166 onClick={() => act('writeInput', { write: d, priority: 2 })}167 />168 </LabeledList.Item>169 ))}170 </LabeledList>171 </Section>172 );173};174const MessageResponse = (props, context) => {175 const { act, data } = useBackend(context);176 let sectionTitle;177 switch (props.type) {178 case 'SUCCESS':179 sectionTitle = 'Message sent successfully';180 break;181 case 'FAIL':182 sectionTitle = 'Request supplies from another department';183 break;184 }185 return (186 <Section187 title={sectionTitle}188 buttons={189 <Button190 content="Back"191 icon="arrow-left"192 onClick={() => act('setScreen', { setScreen: 0 })}193 />194 }195 />196 );197};198const MessageLog = (props, context) => {199 const { act, data } = useBackend(context);200 let list2iterate;201 let sectionTitle;202 switch (props.type) {203 case 'MESSAGES':204 list2iterate = data.message_log;205 sectionTitle = 'Message Log';206 break;207 case 'SHIPPING':208 list2iterate = data.shipping_log;209 sectionTitle = 'Shipping label print log';210 break;211 }212 return (213 <Section214 title={sectionTitle}215 buttons={216 <Button217 content="Back"218 icon="arrow-left"219 onClick={() => act('setScreen', { setScreen: 0 })}220 />221 }222 >223 {list2iterate.map((m) => (224 <Box key={m}>225 {m.map((i, key) => {226 return <div key={key}>{i}</div>;227 })}228 <hr />229 </Box>230 ))}231 </Section>232 );233};234const MessageAuth = (props, context) => {235 const { act, data } = useBackend(context);236 const { recipient, message, msgVerified, msgStamped } = data;237 return (238 <Section239 title="Message Authentication"240 buttons={241 <Button242 content="Back"243 icon="arrow-left"244 onClick={() => act('setScreen', { setScreen: 0 })}245 />246 }247 >248 <LabeledList>249 <LabeledList.Item label="Recipient">{recipient}</LabeledList.Item>250 <LabeledList.Item label="Message">{message}</LabeledList.Item>251 <LabeledList.Item label="Validated by" color="green">252 {msgVerified}253 </LabeledList.Item>254 <LabeledList.Item label="Stamped by" color="blue">255 {msgStamped}256 </LabeledList.Item>257 </LabeledList>258 <Button259 fluid260 mt={1}261 textAlign="center"262 content="Send Message"263 icon="envelope"264 onClick={() => act('department', { department: recipient })}265 />266 </Section>267 );268};269const StationAnnouncement = (props, context) => {270 const { act, data } = useBackend(context);271 const { message, announceAuth } = data;272 return (273 <Section274 title="Station-Wide Announcement"275 buttons={276 <Button277 content="Back"278 icon="arrow-left"279 onClick={() => act('setScreen', { setScreen: 0 })}280 />281 }282 >283 <Button284 content={message ? message : 'Edit Message'}285 icon="edit"286 onClick={() => act('writeAnnouncement')}287 />288 {announceAuth ? (289 <Box mt={1} color="green">290 ID verified. Authentication accepted.291 </Box>292 ) : (293 <Box mt={1}>Swipe your ID card to authenticate yourself.</Box>294 )}295 <Button296 fluid297 mt={1}298 textAlign="center"299 content="Send Announcement"300 icon="bullhorn"301 disabled={!(announceAuth && message)}302 onClick={() => act('sendAnnouncement')}303 />304 </Section>305 );306};307const PrintShippingLabel = (props, context) => {308 const { act, data } = useBackend(context);309 const { shipDest, msgVerified, ship_dept } = data;310 return (311 <Section312 title="Print Shipping Label"313 buttons={314 <Button315 content="Back"316 icon="arrow-left"317 onClick={() => act('setScreen', { setScreen: 0 })}318 />319 }320 >321 <LabeledList>322 <LabeledList.Item label="Destination">{shipDest}</LabeledList.Item>323 <LabeledList.Item label="Validated by">{msgVerified}</LabeledList.Item>324 </LabeledList>325 <Button326 fluid327 mt={1}328 textAlign="center"329 content="Print Label"330 icon="print"331 disabled={!(shipDest && msgVerified)}332 onClick={() => act('printLabel')}333 />334 <Section title="Destinations" mt={1}>335 <LabeledList>336 {ship_dept.map((d) => (337 <LabeledList.Item label={d} key={d}>338 <Button339 content={shipDest === d ? 'Selected' : 'Select'}340 selected={shipDest === d}341 onClick={() => act('shipSelect', { shipSelect: d })}342 />343 </LabeledList.Item>344 ))}345 </LabeledList>346 </Section>347 </Section>348 );...

Full Screen

Full Screen

Using AI Code Generation

copy

Full Screen

1root.setScreen("screen1");2root.setScreen("screen2");3root.setScreen("screen3");4root.setScreen("screen4");5root.setScreen("screen5");6root.setScreen("screen6");7root.setScreen("screen7");8root.setScreen("screen8");9root.setScreen("screen9");10root.setScreen("screen10");11root.setScreen("screen11");12root.setScreen("screen12");13root.setScreen("screen13");14root.setScreen("screen14");15root.setScreen("screen15");16root.setScreen("screen16");17root.setScreen("screen17");18root.setScreen("screen18");19root.setScreen("screen19");20root.setScreen("screen20");21root.setScreen("screen21");

Full Screen

Using AI Code Generation

copy

Full Screen

1root.setScreen("screen1");2root.setScreen("screen2");3root.setScreen("screen3");4root.setScreen("screen4");5root.setScreen("screen5");6root.setScreen("screen1");

Full Screen

Using AI Code Generation

copy

Full Screen

1root.setScreen("mainScreen");2root.setScreen("mainScreen");3root.setScreen("mainScreen");4root.setScreen("mainScreen");5root.setScreen("mainScreen");6root.setScreen("mainScreen");7root.setScreen("mainScreen");8root.setScreen("mainScreen");9root.setScreen("mainScreen");10root.setScreen("mainScreen");11root.setScreen("mainScreen");12root.setScreen("mainScreen");13root.setScreen("mainScreen");14root.setScreen("mainScreen");15root.setScreen("mainScreen");16root.setScreen("mainScreen");17root.setScreen("mainScreen");18root.setScreen("mainScreen");19root.setScreen("mainScreen");20root.setScreen("mainScreen");21root.setScreen("mainScreen");22root.setScreen("mainScreen");23root.setScreen("mainScreen");24root.setScreen("mainScreen");25root.setScreen("mainScreen");

Full Screen

Using AI Code Generation

copy

Full Screen

1var rootView = application.android.rootView;2rootView.setScreen("screen1");3android {4 defaultConfig {5 }6 aaptOptions {7 }8 dexOptions {9 }10 defaultConfig {11 }12 productFlavors {13 }14 sourceSets {15 main {16 }17 debug {18 }19 release {20 }21 }22}23dependencies {24}25@font-face {26 font-family: 'FontAwesome';27 src: url('~/fonts/fontawesome-webfont.ttf') format('truetype');28}29.fa {30 font-family: FontAwesome;31}

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 root 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