1$(document).ready(function() { 2 funcs(); 3 player(); 4}); 5 6function funcs() { 7 $(function() { 8 $(document).on({ 9 mouseenter: function() { 10 $('.player .actions .strPlay').css('opacity', 1); 11 }, 12 mouseleave: function() { 13 $('.player .actions .strPlay').css('opacity', 0); 14 } 15 }, ".player .actions .pause"); 16 17 $('.padidosBtn').click(function(e) { 18 e.preventDefault(); 19 $('.modalP').css('display', 'block'); 20 }); 21 22 $('.close').click(function(e) { 23 e.preventDefault(); 24 $('.modalP').css('display', 'none'); 25 }); 26 27 $(document).on('click', '.page .back', function(e) { 28 e.preventDefault(); 29 $('#pageN').remove(); 30 }); 31 32 $(document).on('click', '.page .top .like', function(e) { 33 e.preventDefault(); 34 var i = $(this).attr('data-id'); 35 $.ajax({ 36 url: 'like', 37 type: 'post', 38 dataType: 'json', 39 data: { id: i } 40 }).done(function(a) { 41 alert(a.text) 42 }); 43 }); 44 45 46 $(document).on('click', '[pagination]', function(e) { 47 event.preventDefault(); 48 let id = $(this).attr('data-id'); 49 news(id); 50 }); 51 52 }); 53} 54 55function player() { 56 $.ajax({ url: '../manutencao/player', type: 'GET', dataType: 'json', }).done(function(a) { 57 $('#radio #radio-detalhes #locutor').html(a.locutor); 58 $('#radio #radio-detalhes #programa').html(a.programa); 59 $('#radio #radio-detalhes #ouvintes').html(a.ouvintes); 60 $('#locLike').html(a.likes); 61 62 $('.box-radio-avatar').html(); 63 $("#radio .avatar img").attr("src", "./api/avatarimage?user=" + a.locutor + "&action=std&direction=3&head_direction=3&img_format=png&gesture=std&headonly=0&size=b&dance=0&frame_num=0&effect="); 64 }); 65} 66 67setInterval(function() { player(); }, 30000); 68 69function Play(v) { 70 if (v == 0) { 71 $('.player .actions .pause i').removeClass('fa-pause'); 72 $('.player .actions .pause i').addClass('fa-play'); 73 $('.player .actions .pause').attr("onclick", "Play(0.6)"); 74 $('.player .actions .strPlay').html('Iniciar rádio'); 75 Volume(0); 76 } else { 77 $('.player .pause i').removeClass('fa-play'); 78 $('.player .pause i').addClass('fa-pause'); 79 $('.player .pause').attr("onclick", "Play(0)"); 80 $('.player .actions .strPlay').html('Pausar rádio'); 81 Volume(v / 100); 82 } 83} 84 85function Volume(v) { document.getElementById("audio").volume = v; }
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.