var q = ""; if(sizes){ for(i=0;i < sizes.length;i++){ if(sizes[i] == player.getPlaybackQuality()){break;} q = q+''+QualitySizesLbls(sizes[i])+''; } $('#p-conf_box ul').html(q); } $('#p-conf_box div:last').html(QualitySizesLbls(player.getPlaybackQuality()));}function updateTimerDisplay(){ // Update current time text display. $('#current-time').text(formatTime( player.getCurrentTime() )); $('#duration').text(formatTime( player.getDuration() ));}function updatePlayerStatus(){ var ps = player.getPlayerState(); if(ps != 1){ player.playVideo(); } else{ if(ps == 1){ player.pauseVideo(); } }}function onPlayerStateChange(e){ var ps = player.getPlayerState(); if(ps != 1){$('#p-playpause').removeClass().addClass('play');} else{ if(ps == 1){$('#p-playpause').removeClass().addClass('pause');} } if(ps == 0){VPlaylist('p-next');} UpdateCover();}function UpdateCover(){ var nid = cur_video; if(nid < 10){nid = '0'+nid} nid = 'm'+nid; music($("#"+nid+"a").html(),$("#"+nid+"b").html(),$("#"+nid+"c").html(),nid); CheckItem(nid);}function formatTime(time){ time = Math.round(time); var minutes = Math.floor(time / 60), seconds = time - minutes * 60; seconds = seconds < 10 ? '0' + seconds : seconds; return minutes + ":" + seconds;}function initialize(){ updateProgressBar(); checkMoveButtons(); var vbar = $('#volume-bar'); var vval = player.getVolume(); var per = Math.ceil(((vval - vbar.attr('min')) / (vbar.attr('max') - vbar.attr('min'))) * 100); BarBgGradient(vbar,per); vbar.val(vval); player.setVolume(vval); clearInterval(time_update_interval); time_update_interval = setInterval(function(){ updateTimerDisplay(); updateProgressBar(); }, 1000);}function VolIcoChange(v){ if(v >= 50){$('#vol-ico_box').removeClass().addClass('vol_up');} else{ if(v == 0){$('#vol-ico_box').removeClass().addClass('vol_mute');} else{ if(v < 50){$('#vol-ico_box').removeClass().addClass('vol_down');} } }}$(function(){ $('input[type=range]').on('input',function() { var per = Math.ceil(((this.value - this.min) / (this.max - this.min)) * 100); BarBgGradient($(this),per); }); $('#musics .item').click(function(){ var id = $(this).attr('id'); id = parseInt($('#'+id+' .mnum').html())-1; var vid = videos_ids[id]; cur_video = id+1; PlayVideobyId(vid); checkMoveButtons(); }); //play-pause $('#p-playpause').on('click', function(){ updatePlayerStatus(); }); //progress bar $('#progress-bar').on('mouseup touchend', function (e) { player.playVideo(); var newTime = player.getDuration() * (e.target.value / 100); player.seekTo(newTime); }); //volume bar $('#volume-bar').on('input',function(){ var v = $(this); player.setVolume(v.val()); VolIcoChange(v.val()); }); //full size btn $('#p-full-btn').on('click', function(){ if(player.getPlayerState() != -1 && player.getPlayerState() != 5){ if($('#video-placeholder').hasClass('p-full_size')){ $('#menu-quadros').removeClass('full'); $('#bottomFullscreenShadow').fadeOut(150); $('#video-placeholder, #p-controls, #p-full-btn,#coverart,#minfo').removeClass(); $('#bars_line').removeClass('bars_over'); $('#v-timer').removeClass('clock_over'); $('#vol-ico_box i').removeClass('vol-ico_over'); $('#p-conf_td').hide(); $('#p-conf_box').fadeTo( "slow", 0 ); $('#p-conf').removeClass('ConfOpen'); if(ismob() == true){$('#cover_info').removeClass('MobFullScreen');} } else{ $('#menu-quadros').addClass('full'); $('#bottomFullscreenShadow').fadeIn(150) $('#video-placeholder').addClass('p-full_size'); $('#bars_line').addClass('bars_over'); $('#v-timer').addClass('clock_over'); $('#p-controls').addClass('buttons_over'); $('#p-full-btn').addClass('full_exit'); $('#vol-ico_box i').addClass('vol-ico_over'); $('#p-conf_td').show(); $('#coverart').addClass('mcover_over'); $('#minfo').addClass('minfo_over'); if(ismob() == true){$('#cover_info').addClass('MobFullScreen');} } } }); //playlist $('#p-back, #p-next').on('click', function(){ var id = $(this).attr('id'); VPlaylist(id); checkMoveButtons(); }); //Config Open $('#p-conf,#p-conf_box div').on('click', function(){ if($('#p-conf').hasClass('ConfOpen')){ $('#p-conf_box').removeClass('show'); $('#p-conf').removeClass('ConfOpen'); $('#p-conf_tiptip').removeAttr('style'); } else{ SetSizesAvailable(); $('#p-conf').addClass('ConfOpen'); $('#p-conf_box').addClass('show'); $('#p-conf_tiptip').fadeTo("fast",0); } }); //Conf Act. $('#p-conf_box').on('click','.VsizeOption',function(){ player.setPlaybackQuality($(this).attr('size')); $('#p-conf_box').fadeTo( "slow",0); $('#p-conf').removeClass('ConfOpen'); }); //mute$('#vol-ico_box').removeClass().addClass('vol_mute'); $('#vol-ico_box i').on('click',function(){ if($('#vol-ico_box i').hasClass('muted')){ $('#vol-ico_box i').removeClass('muted'); player.unMute(); VolIcoChange($('#volume-bar').val()); }else{ $('#vol-ico_box i').addClass('muted'); player.mute(); VolIcoChange(0); } }); $("#p-full-screen-btn").on('click', function(){ toggleFullScreen(document.getElementById('fifa17-main'),'fifa17-main'); }); });function PlayVideobyId(id){ player.loadVideoById(id); player.playVideo();}function VPlaylist(id){ if(id == 'p-next' && cur_video != videos_ids.length){ cur_video++; var vid = videos_ids[cur_video-1]; PlayVideobyId(vid); UpdateCover(); } else{ if(id == 'p-back' && cur_video != 1){ cur_video--; var vid = videos_ids[cur_video-1]; PlayVideobyId(vid); UpdateCover(); } }}function updateProgressBar(){ var p = $('#progress-bar'); if(player.getCurrentTime() == 0){ p.val(0); }else{ p.val((player.getCurrentTime() / player.getDuration()) * 100); } var per = Math.ceil(((p.val() - p.attr('min')) / (p.attr('max') - p.attr('min'))) * 100); BarBgGradient(p,per); if(player.getPlayerState() == -1 || player.getPlayerState() == 5){$('#p-full-btn').fadeTo('fast',0.5)}else{$('#p-full-btn').fadeTo('fast',1)}}function checkMoveButtons(){ if(cur_video == 1){$('#p-back').addClass('disable')} else{$('#p-back').removeClass('disable')} if(cur_video == videos_ids.length){$('#p-next').addClass('disable')} else{$('#p-next').removeClass('disable')}}//sai do full$(document).on('webkitfullscreenchange mozfullscreenchange fullscreenchange', exitHandler);function exitHandler(){ if(window.screenTop != null){ if (!window.screenTop && !window.screenY){ $("#fifa17-main").removeClass('isFull'); $(".nano").nanoScroller(); } }else{ if (!window.screen.top && window.screenY){ $("#fifa17-main").removeClass('isFull'); $(".nano").nanoScroller(); } } }function isFullScreen(){ return (document.fullScreenElement && document.fullScreenElement !== null) || document.mozFullScreen || document.webkitIsFullScreen;}function requestFullScreen(element,name){ $("#"+name).addClass('isFull'); if (element.requestFullscreen) element.requestFullscreen(); else if (element.msRequestFullscreen) element.msRequestFullscreen(); else if (element.mozRequestFullScreen) element.mozRequestFullScreen(); else if (element.webkitRequestFullscreen) element.webkitRequestFullscreen(); }function exitFullScreen(name){ $("#"+name).removeClass('isFull'); if (document.exitFullscreen) document.exitFullscreen(); else if (document.msExitFullscreen) document.msExitFullscreen(); else if (document.mozCancelFullScreen) document.mozCancelFullScreen(); else if (document.webkitExitFullscreen) document.webkitExitFullscreen();}function toggleFullScreen(element,name){ if(isFullScreen()){ exitFullScreen(name); }else{ requestFullScreen(element || document.documentElement,name); }}//# sourceMappingURL=jquery.nanoscroller.min.js.map$(function(){$(".nano").nanoScroller()}); Inicio Outras Soundtracks 01AppealsBayonne02Tearing Me Up (RAC Mix)Bob Moses03Shangri-LaDigitalism04Play