-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.js
976 lines (969 loc) · 54.9 KB
/
main.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
var raptors = {url:"photos/logo-raptors.jpg", players: "PG Kyle Lowry\
PG Delon Wright\
PG Fred Vanvleet\
PG Lorenzo Brown\
PG Kay Felder\
PG Jordan Loyd\
PG Kyle Collinsworth\
SG Danny Green\
SG Malachi Richardson\
SF Kawhi Leonard\
SF OG Anunoby\
SF Norman Powell\
SF C.J. Miles\
SF Malcolm Miller\
PF Serge Ibaka\
PF Eric Moreland\
PF Pascal Siakam\
PF Chris Boucher\
C Jonas Valanciunas\
C Lucas Nogueira\
C Greg Monroe\
C Tryggvi Hlinason",
description: "Toronto is a roster that continues to be at the top of the East, and it starts with their two all-star guards, DeMar DeRozan\
and Kyle Lowry. Both have strong regular seasons, but falter in the playoffs. We saw their minutes limited because of the strong play of the bench\
at times. Delon Wright and Fred VanVleet both played well of the bench and was one of the reasons why Toronto was so strong this year. The wing position\
has never been a strong point for the Raptors and that was the case again. They used Norman Powell, OG Anunoby, and C.J. Miles for the most part,\
neither of them provided a ton of production. Serge Ibaka is what he is at this stage of his career, but that is a solid veteran power forward.\
Jonas Valanciunas plays alongside him, but Toronto will give Pascal Siakam and Jakob Poeltl some run."};
var celtics = {url:"photos/logo-celtics.png", players: "PG Kyrie Irving\
PG Marcus Smart\
PG Terry Rozier\
PG Shane Larkin\
PG P.J. Dozier\
PG Brad Wanamaker\
PG Justin Bibbs\
PG Jonathan Gibson\
PG Pierria Henry\
PG Trey Davis\
PG Walter Lemon Jr.\
SG Jaylen Brown\
SG Jabari Bird\
SF Gordon Hayward\
SF Jayson Tatum\
PF Al Horford\
PF Marcus Morris\
PF Semi Ojeleye\
PF Daniel Theis\
PF Robert Williams\
PF Guerschon Yabusele\
PF Demitrius Conger\
C Aron Baynes",
description: "The Celtics have been loading up on draft picks for some time now, and it has shown over the prior few seasons. Jaylen Brown, \
Terry Rozier, Marcus Smart, and Jayson Tatum are three major pieces for this offense, and had the luxury of getting playoff experience with \
Kyrie Irving and Gordon Hayward being injured for the season. Both are expected back which adds a little bit of a logjam in Boston, but it is a\
good problem to have. Brad Stevens has made guys like Marcus Morris and Aron Baynes standout in their roles off the bench. Boston went out and signed\
Al Horford two years ago, and has been an underrated part of this team. In this prior draft, Boston signed Robert Williams, who is going to likely be \
a backup center off the bench. It is still unclear if Boston will make any more moves, but they are primed for the future."};
var seventysixers = {url:"photos/logo-76ers.png", players: "PG Ben Simmons\
PG T.J. McConnell\
PG Markelle Fultz\
PG Landry Shamet\
PG Jerryd Bayless\
PG Demetrius Jackson\
PG Tra Holder\
SG Zhaire Smith\
SG Furkan Korkmaz\
SG Shake Milton\
SF J.J. Redick\
SF Robert Covington\
SF Wilson Chandler\
SF Anthony Brown\
PF Dario Saric\
PF Mike Muscala\
PF Amir Johnson\
PF Jonah Bolden\
PF Isaiah Miles\
C Joel Embiid\
C Norvel Pelle",
description: "Trust the Process is what they said, and the Philadelphia 76ers are delivering on that. Joel Embiid has turned into an\
all-star player, and a face for the franchise. Ben Simmons was technically a rookie this year, but on his second year in Philly. Simmons showcased what\
the hype was all about when he entered the draft. Markelle Fultz did not make it back until the last few weeks of the season, and his season was an odd\
one with the shooting and injury. Fultz is in a tricky situation in Philly, and the team is not fully committed to him moving forward. J.J. Redick is on\
a one year deal in Philly, and the 76ers might have traded for his replacement mid-year, Marco Belinelli. Robert Covington and Dario Saric are proven\
role players, and Covington earned an extension mid-year. The 76ers have a roster to compete for a long time."};
var knicks = {url:"photos/logo-knicks.png", players: "PG Frank Ntilikina\
PG Trey Burke\
PG Emmanuel Mudiay\
PG Tyrius Walker\
PG Tony Taylor\
SG Courtney Lee\
SG Mario Hezonja\
SG Ron Baker\
SG Damyean Dotson\
SG Kadeem Allen\
SF Lance Thomas\
SF Tim Hardaway Jr.\
SF Kevin Knox\
PF Kristaps Porzingis\
PF Noah Vonleh\
PF Luke Kornet\
PF Isaiah Hicks\
C Enes Kanter\
C Joakim Noah\
C Mitchell Robinson",
description: "Where do we even begin with the Knicks? We can’t be sure the Knicks even know where to begin. Kristaps Porzingis is the big name\
in town, but his ACL injury leaves doubts for the future. When you have Jarrett Jack starting over younger point guards who need work in game. \
They drafted Frank Ntililkina and traded for Emmanuel Mudiay, but it didn’t stop there adding Trey Burke. Unfortunately none of these names are \
for sure things moving forward. The Knicks rounded out the backcourt with Courtney Lee and Tim Hardaway Jr. Lee played some quality ball this year,\
but is nothing more than a fringe bench player moving forward. THJ on the other hand was handed a big contract, and took a lot of the offensive role\
when Porzingis was out. At center they are filling in with Enes Kanter and Kyle O’Quinn. They are also still paying Joakim Noah."};
var nets = {url:"photos/logo-nets.png", players: "PG D'Angelo Russell\
PG Spencer Dinwiddie\
PG Shabazz Napier\
PG Theo Pinson\
PG Jordan McLaughlin\
SG Caris Levert\
SG Allen Crabbe\
SG Joe Harris\
SG Treveon Graham\
SG Dzanan Musa\
SG Milton Doyle\
SF Rondae Hollis-Jefferson\
SF DeMarre Carroll\
SF Jared Dudley\
SF Quincy Acy\
SF Rodions Kurucs\
SF James Webb\
PF Kenneth Faried\
PF Ed Davis\
C Jarrett Allen",
description: "Brooklyn is in one of the worst spots among teams trying to rebuild, mainly because they haven’t owned any draft picks\
over the last few seasons. They made a trade for D’Angelo Russell, and have plenty of guards of youth to take a chance on. Spencer Dinwiddie\
showed some promise, but is likely not an NBA starting point guard in the long run. Jeremy Lin continues to battle injuries, which is hard to\
trust moving forward. The shooting guards and small forwards run incredibly deep. Allen Crabbe was a contract move from Portland, but has Caris\
LeVert, Joe Harris, and DeMarre Carroll also in these positions creating a logjam for minutes. We often see them hovering around 25-28 minutes.\
With so many guards and wings, the front court is thin. Rondae Hollis-Jefferson is an undersized PF, and Quincy Acy backs him up. Jarrett Allen\
looks like the center moving forward as Jahlil Okafor remains a large bust from the recent draft."};
var cavilers = {url:"photos/logo-cavaliers.png", players: "PG George Hill\
PG Collin Sexton\
PG Jordan Clarkson\
PG Isaiah Taylor\
PG Scoochie Smith\
PG Dakota Mathias\
PG Renaldas Seibutis\
PG Jordan Stevens\
PG Kobi Simmons\
SG Rodney Hood\
SG J.R. Smith\
SG Kyle Korver\
SG David Nwaba\
SG Isaac Hamilton\
SG Levi Randolph\
SG John Holland\
SF Cedi Osman\
SF Sam Dekker\
PF Kevin Love\
PF Larry Nance Jr.\
PF Channing Frye\
PF Ante Zizic\
PF Vladimir Brodziansky\
PF Billy Preston\
PF Brayon Blake\
PF Bonzie Colson\
PF Jacorey Williams\
C Tristan Thompson",
description: "We all heard it, this was LeBron James worst starting cast of his career, although you can argue for those early\
Cavs years as well. This was a tale of two halves, trading for George Hill, Jordan Clarkson, Rodney Hood, and Larry Nance. When\
you already have J.R. Smith, Jeff Green, and Tristan Thompson, it wasn’t helping a whole lot. Kevin Love was the secondary start\
on this team, but injuries and inconsistent play made it tough on him. Looking back at this roster, it was truly an unbelievable job\
that James took this team to the finals. Moving forward there is a lot of uncertainty with James being a free agent. The Cavs own the\
Nets pick, and they will look to build around him or use him as a sidekick to James moving forward. The Kyrie Irving trade never quite\
worked, neither did trying to fill in with Derrick Rose and Isaiah Thomas."};
var pacers = {url:"photos/logo-pacers.png", players: "PG Darren Collison\
PG Cory Joseph\
PG Aaron Holiday\
PG Joseph Young\
PG Edmond Sumner\
SG Victor Oladipo\
SG Tyreke Evans\
SG C.J. Wilcox\
SF Bojan Bogdanovic\
SF Doug McDermott\
PF Thaddeus Young\
PF Trevor Booker\
PF TJ Leaf\
PF Alize Johnson\
PF Ben Moore\
C Myles Turner\
C Domantas Sabonis\
C Kyle O'Quinn\
C Ike Anigbogu",
description: "After Paul George departed Indiana for Oklahoma City, they have been relatively competitive and almost took down LeBron James\
in round one of the playoffs. It now starts with Victor Oladipo, who took a major step forward with Indy. Darren Collison played alongside \
him, and still is showcasing why he can be a steady point guard in this league. The Pacers feature a lot of veteran wings like Lance Stephenson,\
Thaddeus Young, Trevor Booker, and Bojan Bogdanovic. Domantas Sabonis also came over from Oklahoma City and is going to make it known to the Pacers\
and others he is a starting caliber player. For now, Myles Turner sucks up most of the minutes, but his second year wasn’t a step forward for the \
future. Indy should remain a competitive team, but in an east that is getting stronger, they need another superstar to play alongside Oladipo or \
else the back half of the East is where they will stay."};
var bucks = {url:"photos/logo-bucks.jpg", players: "PG Eric Bledsoe\
PG Malcolm Brogdon\
PG Matthew Dellavedova\
PG Xavier Munford\
PG Trevon Duval\
PG Robert Johnson\
PG Trae Bell-haynes\
PG Jae'sean Tate\
PG Jaylen Morris\
SG Tony Snell\
SG Jason Terry\
SG Pat Connaughton\
SG Donte Divincenzo\
SG Shabazz Muhammad\
SG Sterling Brown\
SG James Young\
SG Travis Trice\
SF Khris Middleton\
PF Giannis Antetokounmpo\
PF John Henson\
PF Ersan Ilyasova\
PF D.J. Wilson\
PF Christian Wood\
PF Jordan Barnett\
PF Tj Cline\
C Brook Lopez\
C Tyler Zeller\
C Thon Maker\
C Marshall Plumlee\
C Brandon McCoy",
description: "This roster went down as one of the longest rosters in the league, mainly because Giannis Antetokounmpo is on the roster.\
Greek Freak is one of the most talented players in the league, and is heading into superstardom if he isn’t already there. Milwaukee traded\
for Eric Bledsoe, but also have Malcolm Brogdon who is former Rookie of the Year. Khris Middleton and Jabari Parker are two more notable names\
for the Bucks, and this team has all the potential in the world, but they remain inconsistent. Bench depth is where they really lack, and it is\
partially the reason why they play their starters so many minutes. Center has been a committee approach. John Henson and Thon Maker are big lengthy\
shot blockers, but not much more. The moves made have been at the head coaching spot, which is may help the Bucks moving forward, but we shall see."};
var pistons = {url:"photos/logo-pistons.png", players: "PG Reggie Jackson\
PG Ish Smith\
PG Jose Calderon\
PG Jameer Nelson\
PG Zach Lofton\
PG Scottie Lindsey\
PG Jamel Morris\
PG Khadeen Carrington\
PG Larry Drew II\
PG Keenan Evans\
SG Luke Kennard\
SG Langston Galloway\
SG Khyri Thomas\
SG Bruce Brown Jr.\
SG Glenn Robinson III\
SG Reggie Hearn\
SF Reggie Bullock\
SF Stanley Johnson\
PF Blake Griffin\
PF Henry Ellenson\
PF Jon Leuer\
PF Kyle Washington\
PF Obi Enechioyia\
PF Max Hooper\
C Andre Drummond\
C Zaza Pachulia\
C Johnny Hamilton",
description: "Detroit made a big trade during the middle of the year, landing Blake Griffin from the Los Angeles Clippers. Griffin played\
alongside Andre Drummond, but you could say it wasn’t an optimal pairing. Griffin has a massive contract, and Drummond is also due to be paid.\
The Pistons drafted Stanley Johnson, but he is not a starting small forward in this league, and is best suited for a role player. Detroit does\
not have much talent at this position as guys like Reggie Bullock, Langston Galloway, and Luke Kennard are all battling for time. This was\
supposed to be Reggie Jackson’s team, but injuries have derailed him. We have seen Ish Smith get some minutes at point guard,\
and neither him or Jackson look like point guards for the future. With Griffin’s contract on the books for Detroit, they don’t\
have a ton of leeway moving forward."};
var bulls = {url:"photos/logo-bulls.png", players: "PG Zach LaVine\
PG Kris Dunn\
PG Ryan Arcidiacono\
PG Cameron Payne\
PG Donte Ingram\
PG Rawle Alkins\
PG Derrick Walton Jr.\
SG Justin Holiday\
SG Antonio Blakeney\
SG Antonius Cleveland\
SF Denzel Valentine\
SF Jakarr Sampson\
SF Chandler Hutchison\
PF Lauri Markkanen\
PF Wendell Carter Jr.\
PF Jabari Parker\
PF Bobby Portis\
PF Sasha Kobets\
PF Kaiser Gates\
C Robin Lopez\
C C. Da Silva Felicio\
C Omer Asik\
C Matt Willms",
description: "The Bulls have fallen a long way, but are in a rebuilding spot with some quality young talent. Kris Dunn is one of the older inexperienced\
point guards due to the injury and role in Minnesota. Zach LaVine bounced back from injury, but isn’t exactly a long term plan for the Bulls. They \
have Cameron Payne, Jerian grant, and Justin Holiday as backup guards, which are not the worst bunch. The forward spots lack a bit, especially at \
SF. Denzel Valentine and David Nwaba both have flashed some upside, but have also been relatively inconsistent. Lauri Markannen and Wendell Carter\
Jr both are the front court options for the future. Markannen was drafted last year, and Carter Jr was this season. They still have Bobby Portis who\
punched his way into the depth chart, while they traded for Noah Vonleh, who was in Portland. Chicago is a player or two away from being competitive\
in the back half of the East."};
var heat = {url:"photos/logo-heat.jpg", players: "PG Goran Dragic\
PG Briante Weber\
PG Malik Newman\
PG Matt Farrell\
PG Duncan Robinson\
PG Ike Nwamu\
SG Tyler Johnson\
SG Dwyane Wade\
SG Wayne Ellington\
SG Dion Waiters\
SG Rodney McGruder\
SF Josh Richardson\
SF Justise Winslow\
SF Derrick Jones\
SF Luke Babbitt\
PF James Johnson\
PF Udonis Haslem\
PF Dikembe Dixson\
PF Yante Maten\
PF Jarrod Jones\
PF Justin Tillman\
PF Jarnell Stokes\
C Hassan Whiteside\
C Kelly Olynyk\
C Bam Adebayo\
C Jordan Mickey\
C Marcus Lee",
description: "After the big three era, they have managed to stay competitive. Dwyane Wade made his way back to the Heat, but at this stage of his\
career is nothing more than a secondary player. The Heat have some hard-nosed guys like Goran Dragic and Josh Richardson. Both are average to\
above average at their positions, but neither present the star attributes you need to really contend deep into the playoffs. Miami brought in \
some front court depth this offseason, drafting Bam Adebayo and Kelly Olynyk. Both looked strong, and had roles when Hassan Whiteside was injured. \
Whiteside could be one of those wrong era guys, as he often doesn’t see the court in the fourth quarter and when teams go small. Because Erik Spolstra \
is one heck of a coach, Miami will stay competitive with this bunch, but moves will be made under Pat Riley as they always are."};
var wizards = {url:"photos/logo-wizards.png", players: "PG John Wall\
PG Austin Rivers\
PG Tomas Satoransky\
PG Tim Frazier\
PG Ty Lawson\
PG Ramon Sessions\
PG Philip Scrubb\
PG Jalen Ross\
PG Phil Goss\
PG Tiwian Kendley\
PG Chris Chiozza\
SG Bradley Beal\
SG Jodie Meeks\
SG Jordan McRae\
SG Issuf Sanon\
SF Otto Porter\
SF Jeff Green\
SF Kelly Oubre Jr.\
SF Troy Brown\
SF Devin Robinson\
PF Markieff Morris\
PF Jason Smith\
PF Chris McCullough\
PF Ajdin Penava\
PF Heng Yifeng\
C Dwight Howard\
C Ian Mahinmi\
C Thomas Bryant\
C Alan Herndon",
description: "Washington fell off this past season, and it had a lot to do with John Wall missing nearly half the season. The shine has worn\
off this group, as many in the East have surpassed them. Wall and Bradley Beal are up there in backcourts, but Wall was heavily criticized for\
his play this year. When Wall was out, Tomas Satoransky and Tim Frazier picked up most of the slack. Otto Porter and Kelly Oubre both put in time\
at small forward, although we would see them both play when Markieff Morris was struggling. Morris has had his ups and downs in Washington, but \
there isn’t much backing him up. Jason Smith and Mike Scott are the names getting run behind him. Marcin Gortat has had trouble staying on the \
court, mainly due to the pace of play against the Wizards and Gortat’s ability to move. Ian Mahinmi has picked up more minutes due to that."};
var hornets = {url:"photos/logo-hornets.png", players: "PG Kemba Walker\
PG Tony Parker\
PG J.P. Macura\
PG Devonte' Graham\
PG Joe Chealey\
PG Gabe Devoe\
PG Demetre Rivers\
PG Marcus Paige\
PG Alec Wintering\
SG Nicolas Batum\
SG Jeremy Lamb\
SG Malik Monk\
SF Michael Kidd-Gilchrist\
SF Miles Bridges\
SF Dwayne Bacon\
SF Arnoldas Kulboka\
PF Marvin Williams\
PF Frank Kaminsky\
PF Isaiah Wilkins\
PF Chris Cokley\
PF James Demery\
C Cody Zeller\
C Bismack Biyombo\
C Guillermo Hernangomez\
C Ben Lammers",
description: "Kemba Walker is the big name in Charlotte, but the Hornets are also not committed to him moving forward. \
There isn’t a lot behind him, although Devonte Graham was drafted in the point guard role. Malik Monk is also someone who could see some\
more playing time, but Nicolas Batum and Walker both logging heavier minutes in the back court. The Hornets are in sort of no man’s land with\
Michael Kidd-Gilchrist and Marvin Williams leading the front court. They also have Cody Zeller, Willy Hernangomez, and Frank Kaminsky. This is\
not an appealing squad, although Dwight Howard was a bright spot, but he is now off in Brooklyn. The Hornets could be movers to try and start\
rebuilding again, as they do not seem committed to many of the names on this roster. Look for this team to continue to run through Walker and\
Batum in the meantime."};
var magic = {url:"photos/logo-magic.png", players: "PG D.J. Augustin\
PG Jerian Grant\
PG Isaiah Briscoe\
PG Braian Angola\
PG Gabe York\
SG Terrence Ross\
SG Arron Afflalo\
SF Evan Fournier\
SF Jonathon Simmons\
SF Justin Jackson\
SF Melvin Frazier\
SF Wesley Iwundu\
PF Aaron Gordon\
PF Jonathan Isaac\
PF Marreese Speights\
PF Jarell Martin\
PF B.J. Johnson\
PF Amile Jefferson\
C Nikola Vucevic\
C Mohamed Bamba\
C Khem Birch\
C Timofey Mozgov",
description: "Orlando is part of the bad teams stay bad club. After whiffing on numerous big names in the draft over the last few seasons, \
Orlando is looking at more of the same. Mario Hezonja has yet to surpass Evan Fournier on the depth chart, but has started for any injured\
front court member. Elfrid Payton was shipped off to Phoenix, which was another failed draft pick. It is too early to tell on Aaron Gordon,\
but he is an athletic forward slowly progressing in his career. Gordon has had some injuries which is a concern. Nikola Vucevic is a productive\
offensive center, but lacks on the defensive side. It is surprising that he is still in Orlando, and will be on the block for the upcoming season\
Bismack Biyombo filled in nicely when Vucevic was injured, but his best abilities are rebounding and blocked shots. With no point guard in play\
for next year, it will be interesting to see what happens."};
var hawks = {url:"photos/logo-hawks.jpg", players: "PG Trae Young\
PG Jeremy Lin\
PG Malcolm Delaney\
PG Junior Robinson\
PG Brandon Sampson\
PG Jaylen Adams\
SG Kent Bazemore\
SG Justin Anderson\
SG Vince Carter\
SG Tyler Dorsey\
SG Kevin Huerter\
SG Daniel Hamilton\
SG R.J. Hunter\
SF Taurean Prince\
SF Deandre Bembry\
SF Alex Poythress\
SF Andrew White III\
PF John Collins\
PF Omari Spellman\
PF Zach Smith\
PF Thomas Robinson\
PF Zach Leday\
C Dewayne Dedmon\
C Miles Plumlee\
C Alex Len\
C Cole Aldrich",
description: "Atlanta is looking to rebuild, and it started in the draft adding Trae Young. This is in addition to John Collins, who they drafted last season. \
The Hawks have more role players than starting caliber players right now, and because they are not a popular free agent destination, they will have to \
develop their youth. Dennis Schroder is going to be an interesting name to see if they he gets moved. Young is going to be thrown into the fire, but the \
Hawks also do not have a lot of depth. Taurean Prince showed some promise, but it is hard to see if he is going to be a ceiling SF moving forward. \
Kent Bazemore and Dewayne Dedmon are more role players, but will continue to start on the Hawks. \
Atlanta will likely move some of their deadweight guards for front court talent, or at the last bulk up in free agency."};
var trailblazers = {url:"photos/logo-trailblazers.jpg", players: "PG Damian Lillard\
PG Wade Baldwin\
PG Gary Payton\
PG Langston Morris-walker\
SG C.J. McCollum\
SG Evan Turner\
SG Seth Curry\
SG Nik Stauskas\
SG Gary Trent Jr.\
SG Anfernee Simons\
SF Maurice Harkless\
SF Jake Layman\
PF Al-Farouq Aminu\
PF Caleb Swanigan\
PF Cameron Oliver\
PF Mikyle Mcintosh\
C Jusuf Nurkic\
C Zach Collins\
C Meyers Leonard\
C Chinanu Onuaku",
description: "Portland is a team that relies on that backcourt of Damian Lillard and C.J. McCollum. Both are tremendous athletes, but the problem is there\
isn’t much past them. Evan Turner and Al-Farouq Aminu do not add much on the offensive end, and Moe Harkless isn’t exactly that spark plug off the\
bench either. Portland has a loaded center position, but after Jusuf Nurkic came over, things went back down a peg. Ed Davis, Zach Collins, and \
Meyers Leonard all struggle to gain notable minutes. Nurkic is a very streaky player, and didn’t quite revert back to his play last season in\
Portland after the trade. The Blazers have not been able to build through the draft, adding later round bigs that just haven’t panned out. \
Their spending on Evan Turner and Allen Crabbe were egregious, but at least they were able to trade the Crabbe contract away to the Nets."};
var thunder = {url:"photos/logo-thunder.png", players: "PG Russell Westbrook\
PG Dennis Schroder\
PG Raymond Felton\
PG Deonte Burton\
PG Awudu Abass\
SG Andre Roberson\
SG Timothe Luwawu\
SG Alex Abrines\
SG Hamidou Diallo\
SG Terrance Ferguson\
SG Devon Hall\
SF Paul George\
SF Jerami Grant\
SF Corey Brewer\
SF Kyle Singler\
SF Abdel Nader\
PF Patrick Patterson\
PF Donte Grantham\
PF Kevin Hervey\
C Steven Adams\
C Nerlens Noel\
C Tyler Davis",
description: "This Oklahoma City team was quickly assembled with Paul George and Carmelo Anthony being added to Russell Westbrook. The Thunder\
are looking to add pieces since losing James Harden and Kevin Durant. Any team with Westbrook is going to be competitive, but having pieces with\
him has been tricky. George is a free agent next season, and Anthony has that massive player option which he will gladly take to play for 25+ million\
this upcoming season. Steven Adams is a quality center, and one who will do the dirty work. Payroll for Oklahoma City leaves little for a bench and \
it showed. Raymond Felton is backing up Westbrook, while Corey Brewer made his way over from the Lakers. Jerami Grant and Patrick Patterson are the \
backup big men, which is a little bit of a problem if anyone was to go down. Andre Roberson is a shutdown defender who had injury issues this season."};
var jazz = {url:"photos/logo-jazz.png", players: "PG Ricky Rubio\
PG Dante Exum\
PG Raul Neto\
PG Trey Lewis\
PG Thomas Wilder\
PG Jairus Lyles\
SG Donovan Mitchell\
SG Alec Burks\
SG Grayson Allen\
SG Nazareth Mitrou-Long\
SF Joe Ingles\
SF Royce O'Neale\
SF Thabo Sefolosha\
SF Georges Niang\
SF Erik McCree\
PF Derrick Favors\
PF Jae Crowder\
PF Tyler Cavanaugh\
PF Kelan Martin\
C Rudy Gobert\
C Ekpe Udoh\
C Tony Bradley\
C Isaac Haas",
description: "Utah was a very impressive team this season, and caught the West unexpected. It started with Donovan Mitchell,\
who is in the running for rookie of the year. Mitchell had one heck of a season, and is the guy moving forward. Ricky Rubio was \
in his first year with Utah, putting up a solid season. Rubio is a temporary guy for a few seasons, as Dante Exum has yet to be the guy \
they intended when drafted. Alec Burks ended up being a bench guy, as Rodney Hood battled illnesses but also was shipped to the Cavaliers. \
They received Jae Crowder in return, and this was something the Jazz needed. Crowder is a strong wing defender, and partnered very well with\
Joe Ingles who is a three point machine. Royce O’Neale was given minutes this year when guys were injured, he is an interesting name to keep an\
eye on moving forward."};
var timberwolves = {url:"photos/logo-timberwolves.png", players: "PG Jeff Teague\
PG Tyus Jones\
PG Derrick Rose\
PG Aaron Brooks\
PG Tyler Nelson\
PG Egor Koulechov\
PG Jared Terell\
PG Jaylen Barford\
SG Jimmy Butler\
SG Jamal Crawford\
SG Marcus Georges-Hunt\
SG Josh Okogie\
SG C.J. Williams\
SF Andrew Wiggins\
SF Keita Bates-Diop\
SF Luol Deng\
SF James Nunnally\
PF Taj Gibson\
PF Anthony Tolliver\
PF Deng Adel\
C Karl-Anthony Towns\
C Gorgui Dieng\
C Justin Patton",
description: "Over the offseason, Minnesota tried to create a super team of their own. Jeff Teague was signed as a free agent, then\
they went and traded for Jimmy Butler. Already having Andrew Wiggins and Karl-Anthony Towns, this was expected to be a quality squad.\
They limped into the playoffs on the final day of the season, and rumors have come out about Butler not wanting to play with Wiggins. \
Minnesota has some older role players here like Taj Gibson and Jamal Crawford. On paper this team looked like it was going to finish in\
the top half of the west, but on the court they under-performed. While the starters are always the big minute getters, Tyus Jones and Gorgui\
Dieng both saw more minutes down the stretch rather than earlier in the year. It will be interesting to see if Wiggins will move elsewhere,\
but the contract is the tough one to move."};
var nuggets = {url:"photos/logo-nuggets.png", players: "PG Jamal Murray\
PG Isaiah Thomas\
PG Monte Morris\
PG Devaughn Akoon-Purcell\
PG Andre Spight\
SG Gary Harris\
SG Will Barton\
SG Torrey Craig\
SG Malik Beasley\
SG Xavier Silas\
SF Richard Jefferson\
PF Paul Millsap\
PF Trey Lyles\
PF Michael Porter Jr.\
PF Juan Hernangomez\
PF Jarred Vanderbilt\
PF Tyler Lydon\
C Nikola Jokic\
C Mason Plumlee\
C Thomas Welsh",
description: "The Nuggets are a team loaded with talent, but are also a team that hasn’t made it all entirely click yet. Point guard is still\
up in the air for this team, but they drafted Jamal Murray to take a chance on him. Gary Harris has developed into a talented shooting guard,\
and Denver also has Will Barton coming off the bench as a strong sixth man. Small forward has been another question mark position for the Nuggets,\
as veteran Wilson Chandler draws the starts most nights but has also been linked to many trades. With little depth behind him that is worthy of \
starting, Barton is usually the one who slides in when Chandler is injured. Paul Millsap signed this past summer, giving the Nuggets a quality \
power forward to play next to Nikola Jokic. The Nuggets have Trey Lyles and Mason Plumlee backing them up. Kenneth Faried continues to be a name\
that sits on the bench despite the contract given."};
var warriors = {url:"photos/logo-warriors.png", players: "PG Stephen Curry\
PG Shaun Livingston\
PG Quinn Cook\
PG Rion Brown\
PG Jordan Howard\
PG Kendrick Nunn\
SG Klay Thompson\
SG Nick Young\
SG Patrick McCaw\
SG Jacob Evans\
SG Damion Lee\
SF Kevin Durant\
SF Andre Iguodala\
SF Kevon Looney\
SF Alfonzo McKinnie\
PF Draymond Green\
PF Jordan Bell\
PF Jonas Jerebko\
PF Danuel House\
PF Marcus Derrickson\
PF Jeff Roberson\
PF A. Abudurexiti\
C DeMarcus Cousins\
C Damian Jones",
description: "Golden State arguably has one of the best rosters of all time. Four all-stars on this team is already going to give them a huge edge,\
but the role players like Shaun Livingston, Andre Iguodala and even the centers are huge factors in their success. Kevin Durant joining this team,\
and now winning back to back titles made the rich richer. Stephen Curry and Klay Thompson go down as the best backcourt in the league, and then you\
have Draymond green who is the scrappy do it all power forward. The Warriors have also added young talent like Quinn Cook, who showed quality when\
Curry was out. Jordan Bell was traded to Golden State from Chicago during the draft, and has a promising future as an athletic forward. While this\
roster has some more stars to pay and Durant on a short term contract, they are expected to stay together."};
var clippers = {url:"photos/logo-clippers.jpg", players: "PG Patrick Beverley\
PG Milos Teodosic\
PG Shai Gilgeous-Alexander\
PG Jawun Evans\
SG Avery Bradley\
SG Lou Williams\
SG Tyrone Wallace\
SG Sindarius Thornwell\
SG Jerome Robinson\
SF Tobias Harris\
SF Danilo Gallinari\
SF Wesley Johnson\
PF Mike Scott\
PF Montrezl Harrell\
PF L. Richard Mbah a Moute\
PF Johnathan Motley\
PF Desi Rodriguez\
PF Thomas Wimbush\
PF Bogdan Bliznyuk\
PF Tyler Harris\
PF Reggie Upshaw\
C Marcin Gortat\
C Boban Marjanovic",
description: "The Clippers are headed back to the old days of being a bottom dwelling team. They shipped Blake Griffin off to Detroit, \
and got Tobias Harris, Avery Bradley, and Boban Marjanovic in return. Boban is a fan favorite for everyone in the league, but not a impactful\
player. Injuries caused the Clippers to go through guards like newborns go through diapers. Patrick Beverley and Milos Teodosic both struggled\
with injuries, which led to a lot of time for Austin Rivers and Lou Williams. Sweet Lou is a sixth man of the year candidate, and was the best\
part of the Clippers offense. Danilo Gallinari had an on and off year with injuries, and is a placement holder for L.A. until they start transitioning\
more towards the future. Harris performed very well down the stretch, and isn’t the worst player to keep into the future. It is only a matter of time\
before DeAndre Jordan finds himself out of LA, but in the meantime he is their go-to starting center."};
var lakers = {url:"photos/logo-lakers.png", players: "PG Rajon Rondo\
PG Lonzo Ball\
PG Andre Ingram\
PG Isaac Bonga\
PG Joel Berry\
SG K. Caldwell-Pope\
SG Lance Stephenson\
SG Josh Hart\
SG Alex Caruso\
SF LeBron James\
SF Brandon Ingram\
SF Michael Beasley\
SF Sviatoslav Mykhailiuk\
SF Travis Wear\
PF Kyle Kuzma\
PF Moritz Wagner\
PF Johnathan Williams\
PF Malik Pope\
PF Jeffrey Carroll\
C JaVale McGee\
C Ivica Zubac",
description: "The Lakers roster is likely one to change very soon and nobody is safe. With prominent free agents on the market, and the Lakers\
having the money and culture to draw them in, we should expect the Lakers to land someone within the next year or two. At the moment, the Lakers\
drafted Lonzo Ball and his entire family. Ball showed some flashes here and there, but his shot was the biggest issue for him. Isaiah Thomas came\
over mid-year, and showcased some promise, but he is what he is at this point. The Lakers have been on and off with Julius Randle and Brandon Ingram,\
but we do not know their commitment for the future. Kyle Kuzma has shown a lot of promise for the future, and could be the guy they decide to build \
around in the front court given the rest of the options are on the older side. Kentavius Caldwell-Pope and Brook Lopez are a few other veterans on the\
team, but don’t have long term futures with the club."};
var kings = {url:"photos/logo-kings.jpg", players: "PG De'Aaron Fox\
PG Frank Mason III\
PG Yogi Ferrell\
PG Allerik Freeman\
PG Marcus Foster\
PG Daxter Miles\
SG Bogdan Bogdanovic\
SG Buddy Hield\
SG Iman Shumpert\
SG Ben McLemore\
SG Jamel Artis\
SF Justin Jackson\
SF Nigel Hayes\
PF Marvin Bagley\
PF Zach Randolph\
PF Nemanja Bjelica\
PF Skal Labissiere\
PF Harry Giles\
PF Wenyen Gabriel\
PF Jack Cooley\
C Willie Cauley-Stein\
C Kosta Koufos\
C Deyonta Davis",
description: "The Sacramento Kings are one of those other teams in the bad teams stay bad club. Despite top ten picks over the last few drafts, they\
have failed to hit on any of them. Even De’Aaron Fox right now is someone we can’t see moving forward. Frank Mason and Bogdan Bodanovic are also \
two young guards trying to get a crack, while Buddy Hield is someone who went hot and cold this year. The small forward position is a wasteland in\
Sacramento, although Vince Carter balls out every now and then which should state the obvious. The bigs are led by Skal Labissiere, Zach Randolph,\
and Willie Cauley-Stein. WCS will get more run on the Randolph rest nights. Skal is someone to keep an eye on if the Kings will commit to giving him \
more minutes on a nightly basis, otherwise the Kings will waste away another young talent."};
var suns = {url:"photos/logo-suns.jpg", players: "PG Isaiah Canaan\
PG Shaquille Harrison\
PG Elie Okobo\
PG Emmett Naar\
PG De'Anthony Melton\
SG Devin Booker\
SG Troy Daniels\
SG Davon Reed\
SF Trevor Ariza\
SF T.J. Warren\
SF Josh Jackson\
SF Mikal Bridges\
SF George King\
PF Dragan Bender\
PF Ryan Anderson\
PF Richaun Holmes\
PF Darrell Arthur\
PF Alec Peters\
C Deandre Ayton\
C Tyson Chandler\
C Dusan Ristic",
description: "Phoenix is a young team, but only Devin Booker is a lock for the future. Josh Jackson is the rookie this season, playing well down the \
stretch when Booker and Warren dealt with their injuries. The Suns traded for Elfrid Payton mid-year, hoping to give Booker some help. With the injuries\
to all these names we didn’t get a lot of them together. Behind Payton and Booker sit Troy Daniels, Tyler Ulis, and Shaquille Harrison. Not a lot \
of production expected from this group. Despite throwing plenty of picks at bigs, the Suns have a logjam of guys with major flaws. Dragan Bender is\
inconsistent, while Marquese Chriss can’t stay out of foul trouble. Alan Williams missed the season with injury, but came back towards the last \
few weeks. Tyson Chandler and Alex Len both had their moments this season, but Chandler rested more than played this year, and will look to be\
bought out."};
var rockets = {url:"photos/logo-rockets.jpg", players: "PG James Harden\
PG Chris Paul\
PG Brandon Knight\
PG Michael Carter-Williams\
PG Rob Gray\
PG Alessandro Gentile\
SG Eric Gordon\
SG Gerald Green\
SG Joe Johnson\
SG Markel Brown\
SF P.J. Tucker\
SF James Ennis\
SF Vincent Edwards\
SF Bruno Caboclo\
PF Carmelo Anthony\
PF Marquese Chriss\
PF Tarik Black\
PF Aaron Jackson\
PF Gary Clark\
PF Maarty Leunen\
PF Isaiah Hartenstein\
PF Zhou Qi\
C Clint Capela\
C Nene Hilario",
description: "The Rockets made some clutch moves in the offseason to try and take down Golden State. Adding Chris Paul looked to have paid off, but \
his injury late in the playoffs has been the storyline each year with his history. The Rockets are lucky enough to have a top five player in the\
league, as James Harden is the guy in charge. They have Eric Gordon behind him which was been an important role. With Paul’s injury history, Harden\
and Gordon are a starting backcourt anyway. The Rockets loaded up on Trevor Ariza and P.J. Tucker to try and stop the wings they were going to play \
against. It didn’t quite work, but they will likely try and add LeBron through free agency. Clint Capela is the young center with a promising future.\
Houston is a team that can go small, which means Capela isn’t a lock for 30+ minutes a night."};
var pelicans = {url:"photos/logo-pelicans.jpg", players: "PG Jrue Holiday\
PG Elfrid Payton\
PG Jarrett Jack\
PG Frank Jackson\
PG Darius Morris\
PG Tony Carr\
SG E'Twaun Moore\
SG Jordan Crawford\
SG Ian Clark\
SG Charles Cooke\
SF Darius Miller\
SF Solomon Hill\
SF Troy Williams\
PF Anthony Davis\
PF Nikola Mirotic\
PF Julius Randle\
PF Cheick Diallo\
PF Garlon Green\
PF Dj Hogg\
PF Kenrich Williams\
PF Trevon Bluiett\
C Emeka Okafor\
C Alexis Ajinca\
C Jahlil Okafor",
description: "Anthony Davis leads the Pelicans, posting monster stats game in and game out. They added DeMarcus Cousins last year, but the fit with Davis\
has not exactly paid dividends. Cousins is a free agent coming up, and Davis played well with Nikola Mirotic when Cousins tore his achilles. Mirotic\
is a stretch four who struggled with his shot this season, but is a player that can be beneficial to the Pelicans moving forward. Jrue Holiday and\
Rajon Rondo round out the backcourt, and Holiday took a major step this past year, especially on the defensive side. Outside of these names, the \
Pelicans lack role players. E’Twaun Moore is a three point specialist, but not much more. Ian Clark, Darius Miller, and Emeka Okafor are not viable\
options in the long run. However, Cheick Diallo showed why he has a promising future if he can get more minutes on the court."};
var spurs = {url:"photos/logo-spurs.png", players: "PG Dejounte Murray\
PG Patty Mills\
PG Derrick White\
SG DeMar DeRozan\
SG Marco Belinelli\
SG Quincy Pondexter\
SG Lonnie Walker IV\
SG Bryn Forbes\
SG Darrun Hilliard\
SF Dante Cunningham\
SF Davis Bertans\
SF Josh Huestis\
SF Rudy Gay\
SF Matt Costello\
SF Omari Johnson\
PF LaMarcus Aldridge\
PF Raphiael Putney\
PF Chimezie Metu\
C Pau Gasol\
C Amida Brimah\
C Jakob Poeltl\
C Joffrey Lauvergne\
C Drew Eubanks",
description: "We saw a lot of drama in San Antonio this year, which is something we never say. Kawhi Leonard played a few games, but didn’t fully\
get back to playing each night. Now the rumor is Kawhi wants out of San Antonio, so this is going to be a story to monitor all season long. LaMarcus\
Aldridge was the guy this year, but his skillset can only take a team so far in today’s NBA. Pau Gasol and Rudy Gay are older starts continuing to hover\
around 20-25 minutes a night, but Pop was not looking to get them a ton of time. Tony Parker and Manu Ginobili both are still on the roster, but young\
guys like Dejounte Murray and Kyle Anderson are interested in making a run for some minutes. Danny Green was in the doghouse most of the year, taking\
a step backwards from prior seasons."};
var mavericks = {url:"photos/logo-mavericks.jpg", players: "PG Dennis Smith Jr.\
PG Luka Doncic\
PG J.J. Barea\
PG Devin Harris\
PG Jalen Brunson\
PG Ryan Broekhoff\
PG Phil Greene\
PG Codi Miller-McIntyre\
PG Daryl Macon\
SG Wesley Matthews\
SG Scotty Hopson\
SF Harrison Barnes\
SF Dorian Finney-Smith\
SF Jalen Jones\
PF Dirk Nowitzki\
PF Dwight Powell\
PF Maximilian Kleber\
PF Ding Yanyuhang\
PF Terry Larrier\
PF Kostas Antetokounmpo\
PF Ray Spalding\
C DeAndre Jordan\
C Salah Mejri",
description: "Dallas has been a team at the bottom of the best, and it is easy to see why. Dirk Nowitzki is pushing 40 years old,\
and carry a team full of secondary players. Wesley Matthews was a max deal player that set them back in the salary department. Harrison Barnes\
left for Dallas after playing with Golden State for a few seasons, but didn’t take a massive step forwards. Dallas drafted Dennis Smith Jr. out\
of the 2017 draft class, who was one of the guards that fell to them. At the moment he is expected to their starting point guard moving forward,\
but will need some time to grow. Guards like Seth Curry, Yogi Ferrell, and J.J. Barea also sit in this backcourt, and have had plenty of playing time\
due to various injuries. The front court is a bit of a mess, as Dallas took a shot on a few guys that haven’t panned out. Nerlens Noel hasn’t quite \
cracked a starting role as some expected."};
var grizzlies = {url:"photos/logo-grizzlies.png", players: "PG Mike Conley\
PG Shelvin Mack\
PG Mario Chalmers\
PG Jevon Carter\
PG Brandon Goodwin\
PG Markel Crawford\
PG Yuta Watanabe\
SG Andrew Harrison\
SG Garrett Temple\
SG Wayne Selden\
SG Tyler Harvey\
SF Kyle Anderson\
SF Omri Casspi\
SF Chandler Parsons\
SF MarShon Brooks\
SF Dillon Brooks\
PF Jaren Jackson Jr.\
PF JaMychal Green\
PF Ivan Rabb\
C Marc Gasol\
C Doral Moore",
description: "It has been a while since the grind house Grizzlies were a thing. Mike Conley has missed a majority of the last few seasons,\
and Marc Gasol has been the only living player on the court. Tyreke Evans did show his offensive ability off the bench this year. With Gasol\
and Conley on these long term contracts and them not agreeing to move, it is hard for Memphis to go anywhere from here. They have whiffed on draft\
picks of late, as guys like Andrew Harrison, Kobi Simmons, and MarShon Brooks have failed to develop. Throwing a ton of money at Chandler Parsons\
is one of the poorer contract moves in the NBA over the last five years, although Dillon Brooks has proven he could be a steady piece in this roster.\
Overall Memphis is going to struggle for a few years to come, especially if Conley can’t stay healthy."};
let alanticDivision = [raptors, celtics, seventysixers, knicks, nets];
let centralDivision = [cavilers, pacers, bucks, pistons, bulls];
let southeastDivision = [heat, wizards, hornets, magic, hawks];
let eastTeams = [alanticDivision, centralDivision, southeastDivision];
let northWest = [trailblazers, thunder, jazz, timberwolves, nuggets];
let pacific = [warriors, clippers, lakers, kings, suns];
let southWest = [rockets, pelicans, spurs, mavericks, grizzlies];
let westTeams = [northWest, pacific, southWest];
let currentCard;
let status;
const west = document.querySelector('#WesternConference'),
east = document.querySelector('#EasternConference'),
eastButton = document.querySelector('#eastbutton'),
westButton = document.querySelector('#westbutton');
function westListener() {
let num = east.childNodes.length;
if (num > 1) {
for (let i = num-1; i >= 0; i--) {
east.removeChild(east.childNodes[i]);
}
currentCard = '';
}
if (west.childElementCount === 0) {
for (let i = 0; i < westTeams.length; i++) {
for (let j = 0; j < westTeams[i].length; j++) {
let backgroundStyle = westTeams[i][j]["url"];
let teamPlayers = westTeams[i][j]["players"];
let teamDescription = westTeams[i][j]["description"];
west.innerHTML += `<div class="card"><div class="front" style="background-image: url(${backgroundStyle})"></div><div class="back"><div id="description">${teamDescription}</div><div id="players">Players:${teamPlayers}</div></div></div>`
}
}
}
for (let i = 0; i < west.childNodes.length; i++) {
west.childNodes[i].addEventListener('click', match);
}
}
function eastListener() {
let num = west.childNodes.length;
if (num > 1) {
for (let i = num-1; i >= 0; i--) {
west.removeChild(west.childNodes[i]);
}
currentCard = '';
}
if (east.childElementCount === 0) {
for (let i = 0; i < eastTeams.length; i++) {
for (let j = 0; j < eastTeams[i].length; j++) {
console.log("i:" + i);
console.log("J:" + j);
console.log(eastTeams[i][j]["url"]);
let backgroundStyle = eastTeams[i][j]["url"];
let teamPlayers = eastTeams[i][j]["players"];
let teamDescription = eastTeams[i][j]["description"];
east.innerHTML += `<div class="card"><div class="front" style="background-image: url(${backgroundStyle})"></div><div class="back"><div id="description">${teamDescription}</div><div id="players">Players:${teamPlayers}</div></div></div>`
}
}
}
for (let i = 0; i < east.childNodes.length; i++) {
east.childNodes[i].addEventListener('click', match);
}
}
function match(event) {
if (!currentCard) {
currentCard = event.target.parentNode;
currentCard.classList.toggle('flipped');
status = 'back';
}
else if (status === 'back' && event.target.parentNode === currentCard) {
currentCard.classList.toggle('flipped');
currentCard = '';
status = '';
}
else if (status === 'back' && event.target.parentNode !== currentCard) {
currentCard.classList.toggle('flipped');
currentCard = event.target.parentNode;
currentCard.classList.toggle('flipped');
}
}