mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-24 06:52:24 +01:00
14 lines
415 B
JavaScript
14 lines
415 B
JavaScript
|
// @author recluse4615
|
||
|
// @license magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt GPL-v3-or-Later
|
||
|
|
||
|
"use strict";
|
||
|
|
||
|
const galleryCarousel = new bootstrap.Carousel(document.getElementById("galleryCarousel"));
|
||
|
document.querySelectorAll(".gallery-image").forEach(el => {
|
||
|
el.addEventListener("click", function(e) {
|
||
|
galleryCarousel.to(el.dataset.bsSlideTo);
|
||
|
e.preventDefault();
|
||
|
});
|
||
|
});
|
||
|
|