2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-07-07 06:10:52 +00:00
Files
.github
_includes
overrides
app_img.html
carousel.html
config.yaml
gunicorn.conf.py
img.html
reference.html
release_table.html
splide_image.html
ci
docs
.gitignore
LICENSE
README.md
main.py
mkdocs.yml
readthedocs.yml
requirements.txt
inventree-docs/_includes/carousel.html
2021-09-06 09:56:15 +10:00

32 lines
843 B
HTML

<div class='splide'>
<div class='splide__track'>
<ul class='splide__list'>
{% for img in listimages(directory) %}
{% with src=img %}
{% include "splide_image.html" %}
{% endwith %}
{% endfor %}
</ul>
</div>
</div>
<script>
document.addEventListener( 'DOMContentLoaded', function () {
new Splide(
'.splide', {
type: 'loop',
perPage: {{ per_page }},
autoplay: true,
pagination: false,
// cover: true,
// autoWidth: true,
height: '25rem',
focus: 'center',
padding: {
left: '5rem',
right: '5rem',
}
}
).mount();
} );
</script>