This commit is contained in:
Joshua Hare 2025-04-19 07:36:51 +10:00
parent 833bc12d4d
commit 22892991f6
2 changed files with 5 additions and 1 deletions

View File

@ -37,7 +37,7 @@
{% if fsh_output %}
<div class="alert alert-success mt-4">Conversion successful!</div>
<h3 class="mt-4">FSH Output</h3>
<pre class="bg-light p-3">{{ fsh_output }}</pre>
<pre class="p-3">{{ fsh_output }}</pre>
<a href="{{ url_for('download_fsh') }}" class="btn btn-primary">Download FSH</a>
{% if comparison_report %}
<h3 class="mt-4">Fishing Trip Comparison Report</h3>

View File

@ -799,6 +799,10 @@ html[data-theme="dark"] .structure-tree-root .list-group-item-warning {
sunIcon.classList.remove('d-none');
moonIcon.classList.add('d-none');
}
if (typeof loadLottieAnimation === 'function') {
const newTheme = toggle.checked ? 'dark' : 'light';
loadLottieAnimation(newTheme);
}
// Set cookie to persist theme
document.cookie = `theme=${toggle.checked ? 'dark' : 'light'}; path=/; max-age=31536000`;
}