zenno: wrapper component for race length inputs
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
import * as accel from '$lib/racelib/accel';
|
||||
import type { Attachment } from 'svelte/attachments';
|
||||
import CalcInfo from '../CalcInfo.svelte';
|
||||
import RaceLenSlider from '$lib/RaceLenSlider.svelte';
|
||||
|
||||
let rawSpeed = $state(1200);
|
||||
let rawPower = $state(1200);
|
||||
@@ -231,16 +232,9 @@
|
||||
</div>
|
||||
|
||||
<div class="mb-auto grid max-w-4xl grid-cols-6 rounded-md text-center shadow-md ring md:col-span-6">
|
||||
<input
|
||||
class="col-span-4 m-4 w-full justify-self-center-safe"
|
||||
type="range"
|
||||
id="raceLen"
|
||||
min="1000"
|
||||
max="3600"
|
||||
step="100"
|
||||
bind:value={raceLen}
|
||||
/>
|
||||
<span class="col-span-2 my-auto mb-4 pl-2 text-sm">{raceLen}m</span>
|
||||
<div class="col-span-full m-4">
|
||||
<RaceLenSlider bind:value={raceLen} />
|
||||
</div>
|
||||
<select id="surface" bind:value={surface} class="col-span-2 mx-2 mb-4">
|
||||
<option value={race.Surface.Turf}>Turf</option>
|
||||
<option value={race.Surface.Dirt}>Dirt</option>
|
||||
|
||||
Reference in New Issue
Block a user