Skip to content

Commit

Permalink
Update +page.svelte
Browse files Browse the repository at this point in the history
  • Loading branch information
m1nce committed Feb 21, 2024
1 parent d7b4189 commit 4c067f6
Showing 1 changed file with 26 additions and 25 deletions.
51 changes: 26 additions & 25 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -9,32 +9,33 @@
let svg;
let showPlayerInfo = true;
let selectedPlayer = "LeBron James";
{`${base}/nbacourt.jpg`}
let playerImages = {
"LeBron James": '/lebronjames23.jpeg',
"Kevin Durant": '/kevindurant35.jpeg',
"Giannis Antetokounmpo": '/giannis34.jpeg',
"Joel Embiid": '/joelembiid21.jpeg',
"Stephen Curry": '/stephencurry30.jpeg',
"Ja Morant": '/jamorant12.jpeg',
"DeMar DeRozan": '/demarderozan11.jpeg',
"Jayson Tatum": '/jaysontatum0.jpeg',
"Nikola Jokic": '/nikolajokic15.jpeg',
"Andrew Wiggins": '/andrewwiggins22.jpeg',
"Trae Young": '/traeyoung11.jpeg',
"Devin Booker": '/devinbooker1.jpeg',
"Luka Doncic": '/lukadoncic77.jpeg',
"Karl-Anthony Towns": '/kat32.jpeg',
"Darius Garland": '/dariusgarland10.jpeg',
"Zach LaVine": '/zachlavine8.jpeg',
"Chris Paul": '/chrispaul3.jpeg',
"Dejounte Murray": '/dejountemurray5.jpeg',
"Jimmy Butler": '/jimmybutler22.jpeg',
"Khris Middleton": '/khrismiddleton22.jpeg',
"Donovan Mitchell": '/donovanmitchell45.jpeg',
"LaMelo Ball": '/lameloball1.jpeg',
"Fred VanVleet": '/fredvanvleet5.jpeg',
"Rudy Gobert": '/rudygobert27.jpeg',
"James Harden": '/jamesharden1.jpeg'
"LeBron James": `${base}/lebronjames23.jpeg`,
"Kevin Durant": `${base}/kevindurant35.jpeg`,
"Giannis Antetokounmpo": `${base}/giannis34.jpeg`,
"Joel Embiid": `${base}/joelembiid21.jpeg`,
"Stephen Curry": `${base}/stephencurry30.jpeg`,
"Ja Morant": `${base}/jamorant12.jpeg`,
"DeMar DeRozan": `${base}/demarderozan11.jpeg`,
"Jayson Tatum": `${base}/jaysontatum0.jpeg`,
"Nikola Jokic": `${base}/nikolajokic15.jpeg`,
"Andrew Wiggins": `${base}/andrewwiggins22.jpeg`,
"Trae Young": `${base}/traeyoung11.jpeg`,
"Devin Booker": `${base}/devinbooker1.jpeg`,
"Luka Doncic": `${base}/lukadoncic77.jpeg`,
"Karl-Anthony Towns": `${base}/kat32.jpeg`,
"Darius Garland": `${base}/dariusgarland10.jpeg`,
"Zach LaVine": `${base}/zachlavine8.jpeg`,
"Chris Paul": `${base}/chrispaul3.jpeg`,
"Dejounte Murray": `${base}/dejountemurray5.jpeg`,
"Jimmy Butler": `${base}/jimmybutler22.jpeg`,
"Khris Middleton": `${base}/khrismiddleton22.jpeg`,
"Donovan Mitchell": `${base}/donovanmitchell45.jpeg`,
"LaMelo Ball": `${base}/lameloball1.jpeg`,
"Fred VanVleet":`${base}/fredvanvleet5.jpeg`,
"Rudy Gobert": `${base}/rudygobert27.jpeg`,
"James Harden": `${base}/jamesharden1.jpeg`
};
let playerImageSrc = playerImages[selectedPlayer];
let width = 0;
Expand Down

0 comments on commit 4c067f6

Please sign in to comment.