diff --git a/src/lib/CalendarMonth.svelte b/src/lib/CalendarMonth.svelte index d546ad6..bc2ad8e 100644 --- a/src/lib/CalendarMonth.svelte +++ b/src/lib/CalendarMonth.svelte @@ -1,16 +1,15 @@ -
In
- {getFlagEmoji(Object.keys(countriesList).find(code => countriesList[code] === selectedCountry))}
+ {getFlagEmoji(selectedCountryCode)}
{#if selectedState}
{selectedState},
{/if}
@@ -594,9 +586,13 @@
I live in
- {getFlagEmoji(Object.keys(countriesList).find(code => countriesList[code] === selectedCountry))}
+ {getFlagEmoji(selectedCountryCode)}
{#if Object.keys(statesList).length > 0}
- { handleStateChange(e); }} on:focus={() => { statesInput.value = ''; }} placeholder="State" aria-label="State" />
+ handleStateChange(e)}
+ on:focus={(e) => { (e.target as HTMLInputElement).value = ''; }}
+ placeholder="State"
+ aria-label="State" />
in
{/if}
- { handleCountryChange(e); }} on:focus={() => { countriesInput.value = ''; }} aria-label="Select country" />
+ handleCountryChange(e)}
+ on:focus={(e) => { (e.target as HTMLInputElement).value = ''; }}
+ placeholder="Country"
+ aria-label="Select country" />
and have
@@ -682,15 +682,15 @@
- This tool detects your country from your IP, uses a default number of government-mandated days off from Wikipedia, and a countriesList[code] === selectedCountry)}.yaml`} target="_blank" rel="noopener noreferrer">list of holidays for {selectedCountry}. + This tool detects your country from your IP, uses a default number of government-mandated days off from Wikipedia, and a list of holidays for {selectedCountry}.
The algorithm prioritizes filling the shortest gaps first. It optimizes for spreading your holidays throughout the year to create the most number of consecutive vacation periods.