diff --git a/src/routes/options-calculator/+page.svelte b/src/routes/options-calculator/+page.svelte index 47fbcda3..d23b09d4 100644 --- a/src/routes/options-calculator/+page.svelte +++ b/src/routes/options-calculator/+page.svelte @@ -334,22 +334,22 @@ const profitLossPctChange = (profitLoss / premium) * 100; return ` -
-
- Underlying Price: - $${underlyingPrice} - (${underlyingPctChange.toFixed(2)}%) -
-
-
- Profit or Loss: - ${profitLoss < 0 ? "-$" : "$"}${Math.abs(profitLoss).toLocaleString("en-US")} - (${profitLossPctChange.toFixed(2)}%) -
-
- `; +
+
+ Underlying Price: + $${underlyingPrice} + (${underlyingPctChange.toFixed(2)}%) +
+
+ Profit or Loss: + ${profitLoss < 0 ? "-$" : "$"}${Math.abs(profitLoss).toLocaleString("en-US")} + (${profitLossPctChange.toFixed(2)}%) +
+
+ `; }, }, + plotOptions: { area: { fillOpacity: 0.2, @@ -621,257 +621,258 @@

- - - -
- +
- -
- - - - - - - - - - - - - - - - - + + - + + + + + + + - + + + + - + + + - - - + + + - + {#each dateList as item} + { + selectedDate = item; + loadData("default"); + }} + class="sm:hover:bg-gray-200 dark:sm:hover:bg-primary cursor-pointer " + > + {formatDate(item)} + + {/each} + + + + + + + + + - - + - - -
- Ticker - - Action - - Quantity - - Expiration Date - - Strike - - Type - - Price -
- +
-
- -
- {#if inputValue?.length !== 0 && inputValue !== selectedTicker} - - {#each searchBarData as item} - changeTicker(item)} - > -
- {item?.symbol} - {item?.name} -
-
- {:else} - - No results found - - {/each} -
- {/if} - - -
- + - - - - - - - - + Action + + + Quantity + + Expiration Date + + Strike + + Type + + Price +
+ - - {#each dateList as item} - { - selectedDate = item; - loadData("default"); - }} - class="sm:hover:bg-gray-200 dark:sm:hover:bg-primary cursor-pointer " - > - {formatDate(item)} - - {/each} - - - - - - - - - changeTicker(item)} + > +
+ {item?.symbol} + {item?.name} +
+ + {:else} + + No results found + + {/each} + + {/if} + +
+ - - - - {#each strikeList as item} - { - selectedStrike = item; - loadData("default"); - }} - class="sm:hover:bg-gray-200 dark:sm:hover:bg-primary cursor-pointer " + + + + + + - - - - - - - - + + + + + + + + + + {#each strikeList as item} + { + selectedStrike = item; + loadData("default"); + }} + class="sm:hover:bg-gray-200 dark:sm:hover:bg-primary cursor-pointer " + > + {item} + + {/each} + + + + + + + + + + + +
-
+ + + +
- {#if isLoaded} - {#if config} -
- {/if} +