Last active
September 30, 2024 02:46
-
-
Save kadsyy/640d7b64e1c57d4411cb5981da391500 to your computer and use it in GitHub Desktop.
java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(".modal-dialog").parent().on("show.bs.modal", function (e) { | |
$(e.relatedTarget.attributes["data-target"].value).appendTo("body"); | |
}); | |
//init if class exist | |
if (document.getElementsByClassName("slider-carousel").length) { | |
var splide = new Splide('.slider-carousel', { | |
perPage: 4, | |
focus: 0, | |
pagination: false, | |
gap: '1rem', | |
omitEnd: true, | |
breakpoints: { | |
640: { | |
perPage: 2, | |
}, | |
} | |
}); | |
splide.mount(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment