1$(document).ready(function(){ 2 console.log('loaded') 3 var video_arr = document.querySelectorAll('#full-motion-videos video'); 4 var video_playing_arr = [false, false,false,false]; 5 for (var video = 0; video < video_arr.length;video++) { 6 video_arr[video].addEventListener('click', 7 function(event){ 8 if ( !video_playing_arr[event.target.id] ) { 9 event.target.play(); 10 video_playing_arr[event.target.id]= true; 11 event.target.previousSibling.previousSibling.style.visibility = "hidden" 12 } 13 else{ 14 console.log('pause') 15 event.target.pause(); 16 video_playing_arr[event.target.id]= false; 17 event.target.previousSibling.previousSibling.style.visibility = "visible" 18 } 19 }) 20 } 21 22 var play_button_arr = document.querySelectorAll('#full-motion-videos span.play-button'); 23 for (var play_button = 0; play_button < play_button_arr.length; play_button++) { 24 play_button_arr[play_button].addEventListener('click', 25 function(event){ 26 if ( !video_playing_arr[event.target.nextSibling.nextSibling.id] ) { 27 console.log('play') 28 console.log(play_button) 29 event.target.nextSibling.nextSibling.play(); 30 video_playing_arr[event.target.nextSibling.nextSibling.id]= true; 31 event.target.style.visibility = "hidden" 32 } 33 else{ 34 console.log('pause') 35 console.log(play_button) 36 event.target.nextSibling.nextSibling.pause(); 37 video_playing_arr[event.target.nextSibling.nextSibling.id]= false; 38 event.target.style.visibility = "visible" 39 } 40 }) 41 } 42})
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.