PageSourceSearch

https://mcbgroup.com/ResourcePackages/MCB/assets/dist/js/modules/video-modal.js?package=MCB

js mcbgroup.com collected 2026-09-26 00:00:32 UTC 1,113 bytes, 22 lines download raw bytes

1var modalVideo = new bootstrap.Modal(document.getElementById('modal-video'));
2
3$('.video-modal').on('click', function () {
4	var $youtube = $(this).data('youtube');
5	var $video = $(this).data('video');
6	var $title = $(this).data('title');
7	var $size = $(this).data('size');
8	$('#modal-video .modal-title').text($title);
9	if ($size) { $('#modal-video .modal-dialog').addClass('modal-' + $size); }
10	if ($youtube) {
11		$('#modal-video .modal-body').html('<div class="ratio ratio-16x9"><iframe class="embed-responsive-item" src="https://www.youtube-nocookie.com/embed/' + $youtube + '?rel=0&amp;controls=1&amp;showinfo=0&amp;autoplay=1" allowfullscreen allow="autoplay"></iframe></div>');
12	}
13	else if ($video) {
14		$('#modal-video .modal-body').html('<video id="htmlVideo" autoplay width="100%" controls> <source src="' + $video + '" type="video/mp4"></video>');
15	}
16	
17	$('#modal-video').on('hidden.bs.modal', function () {
18		$('#modal-video .modal-title').text('');
19		$('#modal-video .modal-body').html('');
20		if ($size) { $('#modal-video .modal-dialog').removeClass('modal-' + $size); }
21	});
22});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.