1( function ( document, $ ) { 2 3$(document).ready(function(){ 4 5 6 // initial setup 7 // - video autoplay on/off 8 // - audio muted/unmuted 9 var isVideoAutoplay = true; 10 11 12 if ( isVideoAutoplay === true ){ 13 $('#vi-video-1-container').attr('data-video-is-playing', true); 14 $('#vi-banner-video').vimeo('play'); 15 $(".video-control.js-video-control").removeClass('paused').addClass('playing'); 16 } 17 18 else{ 19 $('#vi-video-1-container').attr('data-video-is-playing', false); 20 $('#vi-banner-video').vimeo('pause'); 21 $('.video-control.js-video-control.paused').addClass("video-control-show"); 22 } 23 24 }); 25 26 function playVideo() { 27 // var videoId = el.data('video'); 28 // var video = document.getElementById(videoId); 29 var videoStatus = $("#vi-video-1-container").attr('data-video-is-playing'); 30 31 if (videoStatus == 'true') { 32 // Pause the video 33 //console.log('trigger to false'); 34 $('#vi-banner-video').vimeo('pause'); 35 $(".video-control.js-video-control").removeClass('playing').addClass('paused'); 36 $('#vi-video-1-container').attr('data-video-is-playing', false); 37 $('.video-control.js-video-control.paused').addClass("video-control-show"); 38 } 39 else if (videoStatus == 'false'){ 40 // Play the video 41 //console.log('trigger to true'); 42 $('#vi-banner-video').vimeo('play'); 43 $(".video-control.js-video-control").removeClass('paused').addClass('playing'); 44 $('#vi-video-1-container').attr('data-video-is-playing', true); 45 $('.video-control.js-video-control').css('opacity', ''); 46 $('.video-control.js-video-control.playing').removeClass("video-control-show"); 47 } 48 } 49 50 $(document).on('click', '.js-video-control', function(e) { 51 playVideo($(this)); 52 e.preventDefault(); 53 }); 54 55})( document, jQuery );
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.