From: Chris Fulljames Date: Thu, 20 Feb 2025 01:13:37 +0000 (-0500) Subject: Fix song page colors X-Git-Url: https://littlesong.place/gitweb/?a=commitdiff_plain;h=e0c67f474153941d676f6aaf258dfcb9c12b9d04;p=littlesongplace.git Fix song page colors --- diff --git a/templates/song.html b/templates/song.html index 571a731..4407ace 100644 --- a/templates/song.html +++ b/templates/song.html @@ -7,9 +7,9 @@ // Apply user colors document.addEventListener("DOMContentLoaded", (event) => { var rootStyle = document.documentElement.style; - {% if user_bgcolor %} rootStyle.setProperty("--yellow", "{{ user_bgcolor }}"); {% endif %} - {% if user_fgcolor %} rootStyle.setProperty("--black", "{{ user_fgcolor }}"); {% endif %} - {% if user_accolor %} rootStyle.setProperty("--purple", "{{ user_accolor }}"); {% endif %} + rootStyle.setProperty("--yellow", "{{ bgcolor }}"); + rootStyle.setProperty("--black", "{{ fgcolor }}"); + rootStyle.setProperty("--purple", "{{ accolor }}"); }); {% endblock %}