diff --git a/app/static/js/about.js b/app/static/js/about.js new file mode 100644 index 0000000..6adc59d --- /dev/null +++ b/app/static/js/about.js @@ -0,0 +1,11 @@ +document.querySelectorAll('.accordion-checkbox').forEach(cbox => { + cbox.addEventListener('change', function() { + const label = this.previousElementSibling + const caret = label.querySelector('.text') + if (cbox.checked) { + caret.innerHTML = '▼' + } else { + caret.innerHTML = '▶' + } + }) +}) \ No newline at end of file diff --git a/app/templates/about.html b/app/templates/about.html index 4f349b6..0e9681e 100755 --- a/app/templates/about.html +++ b/app/templates/about.html @@ -47,7 +47,7 @@
  • @@ -58,7 +58,7 @@
  • @@ -72,7 +72,7 @@
  • @@ -83,7 +83,7 @@
  • @@ -157,4 +157,9 @@

    本計畫由國立臺灣美術館策劃,文化部指導、財團法人文化臺灣基金會支持、SEA plateaus協力。

    -{% endblock %} \ No newline at end of file +{% endblock %} + +{% block end %} + + +{% endblock %}