mirror of
https://github.com/mawww/kakoune.git
synced 2024-11-26 08:29:21 +03:00
22 lines
542 B
JavaScript
22 lines
542 B
JavaScript
"use strict";
|
|
|
|
(function () {
|
|
var cs_demos = $("#carousel-demos");
|
|
|
|
if (cs_demos) {
|
|
cs_demos.on("slide.bs.carousel", function (e) {
|
|
var video = $(e.relatedTarget).find("video");
|
|
if (video) {
|
|
video[0].currentTime = 0;
|
|
video[0].pause();
|
|
}
|
|
});
|
|
cs_demos.on("slid.bs.carousel", function (e) {
|
|
var video = $(e.relatedTarget).find("video");
|
|
if (video) {
|
|
video[0].play();
|
|
}
|
|
});
|
|
}
|
|
})();
|