diff --git a/web/templates/settings/home.html b/web/templates/settings/home.html
index 8af1ad1..219ca1d 100644
--- a/web/templates/settings/home.html
+++ b/web/templates/settings/home.html
@@ -57,6 +57,15 @@
+
+
+
+
+
+
@@ -159,7 +168,7 @@
-
+
(function(){
- // Helpers
+ // Helpers already present in your file (unchanged)
function getCookie(name){ const m=document.cookie.match("(^|;)\\s*"+name+"\\s*=\\s*([^;]+)"); return m?m.pop():""; }
function setTheme(name){
- var v='{{ APP_VERSION }}';
var link=document.getElementById('theme-css');
- if(link) link.href='{% static "themes/" %}'+name+'.css?v='+v; // << cache-busted preview
+ if(link) link.href='{% static "themes/" %}'+name+'.css';
document.documentElement.setAttribute('data-theme',name);
try{ localStorage.setItem('theme',name); }catch(e){}
if(name==='classic'){ document.body.classList.add('themed-bg'); } else { document.body.classList.remove('themed-bg'); }
var hidden=document.getElementById('theme-hidden'); if(hidden) hidden.value=name;
}
- // Clear history
+ // Clear history (unchanged)
(function(){
var btn=document.getElementById("clear-history-btn");
var toast=document.getElementById("toast-clear-history");
@@ -263,13 +256,10 @@
});
})();
- // Save from tiles
- window.saveTheme = function(){
- // Hidden input already holds current pick; just submit
- return true;
- };
+ // Save from tiles (unchanged)
+ window.saveTheme = function(){ return true; };
- // Swatch instant preview + set hidden value
+ // Swatch instant preview (unchanged)
document.querySelectorAll('.swatch').forEach(btn=>{
btn.addEventListener('click',()=>{
const name=btn.getAttribute('data-theme');
@@ -277,7 +267,7 @@
});
});
- // Highlight toggle
+ // Highlight toggle (server-backed, unchanged)
(async function(){
const toggle=document.getElementById("highlightHitsToggle");
if(!toggle) return;
@@ -295,4 +285,7 @@
})();
})();
+
+
+
{% endblock %}
\ No newline at end of file