feat: background photo toggle available everywhere, not just dev

This commit is contained in:
juanatsap
2026-04-26 23:33:37 +01:00
parent f5c78e6845
commit 6cd949c5ea
@@ -9,8 +9,6 @@
document.body.style.setProperty('--bg-photo-url', 'url("' + url + '")');
document.body.classList.add('bg-photo');
{{if not .IsProduction}}
// Dev only: toggle support
window.toggleBgPhoto = function() {
var isOn = document.body.classList.contains('bg-photo');
if (isOn) {
@@ -24,13 +22,10 @@
if (icon) icon.setAttribute('icon', isOn ? 'mdi:image-outline' : 'mdi:image');
}
};
{{end}}
})();
</script>
{{end}}
{{if not .IsProduction}}
<!-- Background Photo Toggle (Dev Only) -->
<!-- Background Photo Toggle -->
<button
id="bg-photo-toggle"
class="fixed-btn bg-photo-btn no-print has-tooltip"