1// Youtube 2function playButtonEvent(){ 3 var getData; 4 $(document).on("click", '.modal-trigger', function(){ 5 getData = $(this).attr('data-video-url'); 6 if (getData){ 7 var player; 8 function onYouTubeIframeAPIReady() { 9 player = new YT.Player('player', { 10 videoId: getData, 11 playerVars: { 12 color: 'white', 13 controls: 1, 14 modestbranding: 1, 15 rel: 0, 16 showinfo: 0 17 }, 18 events: { 19 'onReady': onPlayerReady 20 } 21 }); 22 } 23 onYouTubeIframeAPIReady(); 24 function onPlayerReady(event) { 25 event.target.playVideo(); 26 } 27 return false; 28 } 29 }); 30} 31 32$(document).ready(function(){ 33 $(document).on("click", ".modal-trigger", function () { 34 var modal = $(this).attr('data-id'); 35 $(".modal[data-id='"+modal+"'], .modal-background").fadeIn(100); 36 $('.modal .iframeVideo ').append("<div id='player-'"+modal+"''></div>"); 37 $(".modal-response").hide(); 38 }); 39 40 $(document).on("click", ".modal-background, .close", function () { 41 $(".modal-background").fadeOut(100); 42 $(".modal").fadeOut(100); 43 $('.modal-background').removeClass().addClass('modal-background'); 44 //Para la reproducción de video 45 $('.modal iframe#player').remove(); 46 }); 47 playButtonEvent(); 48});
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.