Update index.html

This commit is contained in:
Jan 2024-11-03 22:08:36 +01:00 committed by GitHub
parent f7f47f716d
commit 16739666dc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -14,16 +14,16 @@
<br> <br>
<button type="submit">Calculate</button> <button type="submit">Calculate</button>
</form> </form>
{{ if .AbsoluteHumidity }}
<h2>Calculated Absolute Humidity</h2>
<p>Absolute Humidity: {{ .AbsoluteHumidity }} g/m³</p>
{{ end }}
{{ if .WeatherData }} {{ if .WeatherData }}
<h2>Weather Data</h2> <h2>Weather Data</h2>
<p>Temperature: {{ .WeatherData.Temperature }}°C</p> <p>Temperature: {{ .WeatherData.Temperature }}°C</p>
<p>Relative Humidity: {{ .WeatherData.RelativeHumidity }}%</p> <p>Relative Humidity: {{ .WeatherData.RelativeHumidity }}%</p>
<p>Absolute Humidity: {{ .WeatherData.AbsoluteHumidity }} g/m³</p> <p>Absolute Humidity: {{ .WeatherData.AbsoluteHumidity }} g/m³</p>
{{ end }} {{ end }}
{{ if .AbsoluteHumidity }}
<h2>Calculated Absolute Humidity</h2>
<p>Absolute Humidity: {{ .AbsoluteHumidity }} g/m³</p>
{{ end }}
</body> </body>
</html> </html>