{#if $screenWidth >= 640} {:else}

Price Alert

${displayPrice}
Current Price: ${currentPrice}
{#if ((displayPrice/currentPrice-1)*100) > 100} {((displayPrice/currentPrice-1)*100)?.toFixed(2)}% {:else if values?.at(0) > 0} {values?.at(0)?.toFixed(2)}% {:else if values?.at(0) < 0} {values?.at(0)?.toFixed(2)}% {:else} 0% {/if}
displayPrice = (currentPrice*(1+values?.at(0)/100))?.toFixed(2) } suffix="%" min={-100} max={100} all={false} first={false} last={false} rest={false} hoverable={false} bind:values />
Set a trigger by moving the slider.
{#each Array.from({ length: 9 }, (_, i) => i + 1) as number}
{/each}
{/if}