1 2jQuery(document).ready(function($) { 3 4 /* EVENTOS CLICK VIDEO */ 5 $('.sys_reproductor-nuevo .video-thumb').on('click', function(e) { 6 if( !VideoPlayerCargado ){ return } 7 var videoId = $(this).data('view-video'); 8 var boxId = $(this).data('box'); 9 $('#reproductor-nuevo .video-thumb').removeClass('active'); 10 $(this).addClass('active'); 11 for (var i=0;i<players.length;i++){ 12 if( players[i].id == 'player-'+boxId ){ 13 players[i].player.loadVideoById(videoId); 14 players[i].player.playVideo(); 15 }else{ 16 players[i].player.stopVideo(); 17 } 18 } 19 }); 20 21 /* EVENTOS CAMBIOS DE CANAL */ 22 $('.sys_reproductor-nuevo .navegacion-canales li').on('click', function(e) { 23 if( !VideoPlayerCargado ){ return } 24 console.log('Canal'); 25 Contenedor = $(this).attr('aria-controls'); 26 var id = jQuery('.frames-videos' , Contenedor ).attr('id'); 27 for (var i=0;i<players.length;i++){ 28 if( players[i].id == id ){ 29 players[i].player.loadVideoById( players[i].StartVideo ); 30 } 31 players[i].player.stopVideo(); 32 } 33 }); 34 35 36}); 37 38var VideoPlayerCargado = false; 39var players = []; 40function onYouTubePlayerAPIReady() { 41 /* ON READY YOUTUBE */ 42 43 jQuery('.frames-videos').each(function( index ) { 44 var StartVideo = jQuery(this).attr('first-video'); 45 var id = jQuery(this).attr('id'); 46 let temp = new YT.Player(id, { 47 host : 'https://www.youtube.com', 48 height : '360', 49 width : '640', 50 videoId : StartVideo, 51 playerVars: { 52 origin: window.location.origin, 53 } 54 }); 55 players.push({ 56 id : id, 57 StartVideo : StartVideo, 58 player: temp, 59 }); 60 }); 61 VideoPlayerCargado = true; 62 63 jQuery('#reproductor-nuevo .video-thumb').removeClass('active'); 64 jQuery('#reproductor-nuevo .tab-pane').each(function( index ) { 65 jQuery('.video-thumb:first', this ).addClass('active'); 66 }); 67 68}
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.