File tree Expand file tree Collapse file tree
src/routes/history/show/[...showDate]/merch-messages/components Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 const seconds = Math .floor (message .timestamp );
2121 const imageUrl = ` https://merch-message-images.whenplane.com/${message .show }/images/${seconds }.jpg ` ;
2222
23- const floatplaneSeconds = source .startsWith (' floatplane' )
24- ? source === ' floatplane-live'
25- ? seconds + 50
26- : seconds
27- : preShowLength !== null
28- ? seconds + Math .floor (preShowLength / 1e3 )
29- : null ;
30- const youtubeSeconds =
23+ const floatplaneSeconds = $derived (
24+ source .startsWith (' floatplane' )
25+ ? source === ' floatplane-live'
26+ ? seconds + 50
27+ : seconds
28+ : preShowLength !== null
29+ ? seconds + Math .floor (preShowLength / 1e3 )
30+ : null
31+ );
32+ const youtubeSeconds = $derived (
3133 source === ' youtube'
3234 ? seconds
3335 : preShowLength !== null
3436 ? (floatplaneSeconds ?? seconds ) - Math .floor (preShowLength / 1e3 )
35- : null ;
37+ : null
38+ );
3639 </script >
3740
3841<div
You can’t perform that action at this time.
0 commit comments