Fixed slidr error (cannot find element with id 'slidr-div')
This commit is contained in:
parent
81001825a3
commit
f0713e9945
@ -113,11 +113,13 @@
|
|||||||
</main>
|
</main>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
slidr.create('slidr-div', {
|
if (document.getElementById('slidr-div')) {
|
||||||
controls: false,
|
slidr.create('slidr-div', {
|
||||||
timing: {'linear': '0.5s ease-in'},
|
controls: false,
|
||||||
theme: '#666',
|
timing: {'linear': '0.5s ease-in'},
|
||||||
touch: true
|
theme: '#666',
|
||||||
}).add("h", [{% for post in posts %}"{{ post.id }}", {% endfor %} {% if posts|length > 1 %}"{{ posts.0.id }}"{% endif %}]).start().auto();
|
touch: true
|
||||||
|
}).add("h", [{% for post in posts %}"{{ post.id }}", {% endfor %} {% if posts|length > 1 %}"{{ posts.0.id }}"{% endif %}]).start().auto();
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user