Интеграция baguetteBox.js для просмотра изображений во вспывающем окне

This commit is contained in:
2025-04-05 14:47:40 +07:00
parent ac2bedac72
commit 512520dad4
4 changed files with 218 additions and 13 deletions

View File

@@ -41,6 +41,15 @@ This variable will hold all the text strings for the language #}
{% endblock main_content %}
</div>
{% include "partials/footer.html" %}
<!-- baguetteBox JS -->
<script defer src="{{ get_url(path='js/baguetteBox.min.js', trailing_slash=false) | safe }}"></script>
<script>
document.addEventListener("DOMContentLoaded", function() {
baguetteBox.run('.gallery');
});
</script>
</body>
</html>