diff --git a/app/static/js/films.js b/app/static/js/films.js index 3449f18..8eec4cd 100644 --- a/app/static/js/films.js +++ b/app/static/js/films.js @@ -7,9 +7,9 @@ function selectChanged() { const bVal = b.dataset[sortValue] return aVal < bVal ? -1 : 1 }) - document.getElementById('films').innerHTML = '' + document.getElementById('films-list').innerHTML = '' $films.forEach($film => { - document.getElementById('films').appendChild($film) + document.getElementById('films-list').appendChild($film) }) } diff --git a/app/templates/films.html b/app/templates/films.html index d3c2e01..c059a1c 100755 --- a/app/templates/films.html +++ b/app/templates/films.html @@ -2,7 +2,7 @@ {% block body_class%}animated animated-text{% endblock %} {% block main %} -
+
Sort:
-{% for film in films %} -
-

- {{ film.data.title | safe }} - {{ film.data.title_zh | safe }} -

-

- {% for director in film.data.director %} - {{ director|safe }} - {% endfor %} -

+
+ {% for film in films %} +
+

+ {{ film.data.title | safe }} + {{ film.data.title_zh | safe }} +

+

+ {% for director in film.data.director %} + {{ director|safe }} + {% endfor %} +

+
+ {% endfor %}
-{% endfor %}
{% endblock %}