]> littlesong.place Git - littlesongplace.git/commitdiff
Fix song page colors
authorChris Fulljames <christianfulljames@gmail.com>
Thu, 20 Feb 2025 01:13:37 +0000 (20:13 -0500)
committerChris Fulljames <christianfulljames@gmail.com>
Thu, 20 Feb 2025 01:13:37 +0000 (20:13 -0500)
templates/song.html

index 571a731f30d218438ea8f75e413ae569a5ece58e..4407acec147a9b7422da5f1fe07ed769b36f81db 100644 (file)
@@ -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 }}");
     });
 </script>
 {% endblock %}