<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">define(['jquery', 'fitvids'], function($) {

	VideoPlayer = {

		embeds: {
			vimeo: '&lt;iframe src="https://player.vimeo.com/video/[videoID]?color=000000&amp;autoplay=1" width="100%" height="100%" frameborder="0" scrolling="no" webkitallowfullscreen mozallowfullscreen allowfullscreen&gt;&lt;/iframe&gt;',
			youtube: '&lt;iframe width="100%" height="100%" src="https://www.youtube.com/embed/[videoID]?rel=0&amp;amp;controls=1&amp;amp;showinfo=0&amp;amp;autoplay=1" frameborder="0" allowfullscreen&gt;&lt;/iframe&gt;'
		},

		initialize : function() {
			this.ratios();
			this.register();
		},

		ratios : function() {
			$("#main-content").fitVids();
		},

		register : function() {
			$(document).on('click', 'a.start-video', function(event) {
				event.preventDefault();

				/* Act on the event */
				var videoType 	= $(this).data('video-type'),
					videoID 	= $(this).data('video-id'),
					$container 	= $(this).parent();
				
				VideoPlayer.injectVideo(videoType, videoID, $container);
			});
		},

		injectVideo : function(videoType, videoID, $target) {

			var embed = VideoPlayer.embeds[videoType];
			if( !embed ) return false;

			var $video = $( embed.replace('[videoID]', videoID) );
				$video.appendTo($target);

			setTimeout(function() {
				$video.addClass('visible');
			}, 250);
		}

	}

	return VideoPlayer;

});</pre></body></html>