Fix duration not being used for carousel

This commit is contained in:
Max L. 2023-11-24 13:07:14 +01:00
parent 876f2bb7ad
commit c274648f09
No known key found for this signature in database
GPG key ID: 2F963B95632B8467

View file

@ -180,10 +180,10 @@ const updateCarousel = function(slides, posts) {
/*console.log( post.content )*/
if ( i == 0 ) {
newHTML += `<div class="carousel-item active" data-mdb-interval="${duration}" data-mdb-pause="false">`;
newHTML += `<div class="carousel-item active" data-interval="${duration}" data-pause="false">`;
}
else {
newHTML += `<div class="carousel-item" data-mdb-interval="${duration}" data-mdb-pause="false">`;
newHTML += `<div class="carousel-item" data-interval="${duration}" data-pause="false">`;
}
const postContent = DOMPurify.sanitize(post.content);
newHTML += `