diff --git a/src/routes/racepicks/+page.svelte b/src/routes/racepicks/+page.svelte index 82e401b..5748506 100644 --- a/src/routes/racepicks/+page.svelte +++ b/src/routes/racepicks/+page.svelte @@ -11,8 +11,10 @@ Accordion, AccordionItem, getModalStore, + popup, type ModalSettings, type ModalStore, + type PopupSettings, } from "@skeletonlabs/skeleton"; import type { PageData } from "./$types"; import { @@ -90,6 +92,14 @@ const graphicfallback = (graphic: string | undefined, fallback: string): string => graphic ?? get_by_value(data.graphics, "name", fallback)?.file_url ?? "Invalid"; + const race_popupsettings = (target: string): PopupSettings => { + return { + event: "click", + target: target, + placement: "right", + }; + }; + // Define the background colors the picks will have depending on the raceresult const pxxcolors: string[] = []; pxxcolors[-1] = "auto"; @@ -143,7 +153,6 @@ Race: {formatdate(data.currentrace.racedate)} -