diff --git a/src/routes/game/[id].svelte b/src/routes/game/[id].svelte index 00b2e9d..4442bf8 100644 --- a/src/routes/game/[id].svelte +++ b/src/routes/game/[id].svelte @@ -8,6 +8,14 @@ export let game: GameType; let seeMore: boolean = false; + console.log(game?.description?.indexOf('
')); + let firstParagraphEnd = 0; + if (game?.description?.indexOf('') > 0) { + firstParagraphEnd = game?.description?.indexOf('') + 4; + } else if (game?.description?.indexOf(' p>') > 0) { + firstParagraphEnd = game?.description?.indexOf(' p>') + 5; + } + console.log('firstParagraphEnd', firstParagraphEnd);Price: {game?.price}
Year Published: {game?.year_published}
Players: {game.players} {game.max_players === 1 ? 'player' : 'players'}
Playtime: {game.playtime} minutes
Minimum Age: {game.min_age}
+Price: ${game?.price}
Board Game Atlas Link