1jQuery(document).ready(function($) { 2 3 $('#videos article .entry-content a.link-video').click(function() { 4 5 var id_video_youtube = $(this).attr('data-idvideo'); 6 7 $('#player-video-current').html('<iframe width="100%" height="400" src="https://www.youtube.com/embed/' + id_video_youtube + '?autoplay=1" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>'); 8 9 return false; 10 11 }); 12 13 // ajax para carregar mais vÃdeos do canal 14 $('#btn-next').live('click', function(e) { 15 16 e.preventDefault(); 17 18 var token_next = $('#next-page-token').attr('value'); 19 20 var num_videos = null; 21 22 if ( $("#num-videos-widget").length ) { 23 num_videos = $("#num-videos-widget").val(); 24 } 25 26 load_more_videos(token_next, num_videos); 27 28 return false; 29 30 }); 31 32 $('#btn-prev').live('click', function(e) { 33 34 e.preventDefault(); 35 36 var token_prev = $('#prev-page-token').attr('value'); 37 38 var num_videos = null; 39 40 if ( $("#num-videos-widget").length ) { 41 num_videos = $("#num-videos-widget").val(); 42 } 43 44 load_more_videos(token_prev, num_videos); 45 46 return false; 47 48 }); 49 50 function load_more_videos(token_page, num_videos) { 51 52 $.ajax({ 53 method: "POST", 54 url: pp_ajax_url.ajax_url, 55 data: { action: "load_more_videos", nextPageToken: token_page, numVideos: num_videos }, 56 beforeSend: function() { 57 $('#main-video').html("carregando mais vÃdeos..."); 58 } 59 }) 60 .done(function(retorno) { 61 $('#main-videos').html(retorno); 62 }); 63 64 } 65 66});
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.