new container
This commit is contained in:
parent
220a34620f
commit
c91f8767da
2 changed files with 24 additions and 22 deletions
|
@ -7,9 +7,9 @@ function selectChanged() {
|
||||||
const bVal = b.dataset[sortValue]
|
const bVal = b.dataset[sortValue]
|
||||||
return aVal < bVal ? -1 : 1
|
return aVal < bVal ? -1 : 1
|
||||||
})
|
})
|
||||||
document.getElementById('films').innerHTML = ''
|
document.getElementById('films-list').innerHTML = ''
|
||||||
$films.forEach($film => {
|
$films.forEach($film => {
|
||||||
document.getElementById('films').appendChild($film)
|
document.getElementById('films-list').appendChild($film)
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
{% block body_class%}animated animated-text{% endblock %}
|
{% block body_class%}animated animated-text{% endblock %}
|
||||||
{% block main %}
|
{% block main %}
|
||||||
|
|
||||||
<div class="films" id="films">
|
<div class="films">
|
||||||
<div>
|
<div>
|
||||||
<strong>Sort:</strong>
|
<strong>Sort:</strong>
|
||||||
<select id="sort-select">
|
<select id="sort-select">
|
||||||
|
@ -14,26 +14,28 @@
|
||||||
<option value="lightness">Lightness</option>
|
<option value="lightness">Lightness</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
{% for film in films %}
|
<div id="films-list">
|
||||||
<div class="film"
|
{% for film in films %}
|
||||||
data-position="{{ film.position }}"
|
<div class="film"
|
||||||
data-title="{{ film.data.title }}"
|
data-position="{{ film.position }}"
|
||||||
data-duration="{{ film.data.duration }}"
|
data-title="{{ film.data.title }}"
|
||||||
data-hue="{{ film.data.hue }}"
|
data-duration="{{ film.data.duration }}"
|
||||||
data-saturation="{{ film.data.saturation }}"
|
data-hue="{{ film.data.hue }}"
|
||||||
data-lightness="{{ film.data.lightness }}"
|
data-saturation="{{ film.data.saturation }}"
|
||||||
>
|
data-lightness="{{ film.data.lightness }}"
|
||||||
<h1><a href="{{ film.get_absolute_url }}">
|
>
|
||||||
<span>{{ film.data.title | safe }}</span>
|
<h1><a href="{{ film.get_absolute_url }}">
|
||||||
<span>{{ film.data.title_zh | safe }}</span>
|
<span>{{ film.data.title | safe }}</span>
|
||||||
</a></h1>
|
<span>{{ film.data.title_zh | safe }}</span>
|
||||||
<h2>
|
</a></h1>
|
||||||
{% for director in film.data.director %}
|
<h2>
|
||||||
<span>{{ director|safe }}</span>
|
{% for director in film.data.director %}
|
||||||
{% endfor %}
|
<span>{{ director|safe }}</span>
|
||||||
</h2>
|
{% endfor %}
|
||||||
|
</h2>
|
||||||
|
</div>
|
||||||
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue