fdaa2274 by Jeff Balicki

video play

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 3ecf64f0
......@@ -25216,8 +25216,16 @@
};
});
$$1(document).ready(function ($) {
$('#Modal_Video').on('hidden.bs.modal', function () {
$('#home-video').get(0).pause();
$('#home-video').get(0).currentTime = 0;
});
$('#Modal_Video').on('show.bs.modal', function () {
$('#home-video').get(0).currentTime = 0;
$('#home-video').get(0).play();
});
$(document).mouseup(function (e) {
var container = $("#wrapper-navbar");
var container = $("#Modal_Video");
if (!container.is(e.target) && container.hasClass('show') && container.has(e.target).length === 0) {
container.removeClass('show');
}
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -64,7 +64,7 @@ if($video !=""){ ?>
<div class="modal-body">
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
<div class="body-content">
<video width="100%" controls>
<video id="home-video" width="100%" controls>
<source src="<?php echo $video;?>" type="video/mp4">
<track src="<?php echo $video_cc;?>" label="English" kind="captions" srclang="en-us" >
Your browser does not support the video tag.
......
......@@ -40,8 +40,16 @@ document.addEventListener("DOMContentLoaded", function() {
});
jQuery( document ).ready(function($) {
$('#Modal_Video').on('hidden.bs.modal', function () {
$('#home-video').get(0).pause();
$('#home-video').get(0).currentTime = 0;
});
$('#Modal_Video').on('show.bs.modal', function () {
$('#home-video').get(0).currentTime = 0;
$('#home-video').get(0).play();
});
$(document).mouseup(function(e){
var container = $("#wrapper-navbar");
var container = $("#Modal_Video");
if(!container.is(e.target) && container.hasClass('show') && container.has(e.target).length === 0){
container.removeClass('show');
}
......
......@@ -5,7 +5,7 @@
Author: the Understrap Contributors
Author URI: https://github.com/understrap/understrap-child/graphs/contributors
Template: understrap
Version: 1.2.0049
Version: 1.2.0050
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: understrap-child
......