Skip to content

Commit

Permalink
Give a little space to the "switch" option
Browse files Browse the repository at this point in the history
  • Loading branch information
patudom committed Apr 4, 2024
1 parent bbe52a8 commit 4ab1114
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/OpenMeteoForecast.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,16 @@
</v-btn-toggle>
</div>
<div class="acknowledgement">
<span>
<p>
Forecast powered by <a href="https://open-meteo.com" target="_blank">Open-Meteo</a> using <span v-if="openMeteoApi==='gfs'">NOAA GFS
(<a href="https://www.ncei.noaa.gov/products/weather-climate-models/global-forecast" target="_blank">Global</a>
& <a href="https://rapidrefresh.noaa.gov/hrrr/" target="_blank">HRRR</a>) forecast models. </span>
<span v-else>the <a href="https://www.ecmwf.int/en/forecasts/datasets/open-data" target="_blank">ECMWF</a> forecast model. </span>
<!-- create <a> tag to switch between gfs and ecmwf -->
Use the <a href="" @click.prevent="openMeteoApi = openMeteoApi === 'gfs' ? 'ecmwf' : 'gfs'">{{ openMeteoApi === 'gfs' ? 'ECMWF' : 'NOAA GFS' }}</a> forecast model.
</span>
</p>
<p class="mt-2">
Use the <a href="" @click.prevent="openMeteoApi = openMeteoApi === 'gfs' ? 'ecmwf' : 'gfs'">{{ openMeteoApi === 'gfs' ? 'ECMWF' : 'NOAA GFS' }}</a> forecast model instead.
</p>
</div>

</div>
Expand Down

0 comments on commit 4ab1114

Please sign in to comment.