diff --git a/docker/schwarzesbrett/src/routes/index.svelte b/docker/schwarzesbrett/src/routes/index.svelte index df3a7a7..cb4b238 100644 --- a/docker/schwarzesbrett/src/routes/index.svelte +++ b/docker/schwarzesbrett/src/routes/index.svelte @@ -1,12 +1,17 @@ -{#await fetchData} -
Loading...
-{:then data} -Loading...
+ {:then data} + {#if data.listings[listingIndex].type == api.ListingType.IMAGE} + + handleTime( + data.listings[listingIndex].time || 10, + data.listings.length + )} + /> + {:else if data.listings[listingIndex].type == api.ListingType.VIDEO} +An error occured! {error}
+ {/await} -