- v0.8.5 - (c) 2015 James Florentino; Licensed MIT */!function(a){return"function"==typeof define&&define.amd?define(["jquery"],function(b){return a(b,window,document)}):a(jQuery,window,document)}(function(a,b,c){"use strict";var d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H;z={paneClass:"nano-pane",sliderClass:"nano-slider",contentClass:"nano-content",iOSNativeScrolling:!1,preventPageScrolling:!1,disableResize:!1,alwaysVisible:!1,flashDelay:1500,sliderMinHeight:20,sliderMaxHeight:null,documentContext:null,windowContext:null},u="scrollbar",t="scroll",l="mousedown",m="mouseenter",n="mousemove",p="mousewheel",o="mouseup",s="resize",h="drag",i="enter",w="up",r="panedown",f="DOMMouseScroll",g="down",x="wheel",j="keydown",k="keyup",v="touchmove",d="Microsoft Internet Explorer"===b.navigator.appName&&/msie 7./i.test(b.navigator.appVersion)&&b.ActiveXObject,e=null,D=b.requestAnimationFrame,y=b.cancelAnimationFrame,F=c.createElement("div").style,H=function(){var a,b,c,d,e,f;for(d=["t","webkitT","MozT","msT","OT"],a=e=0,f=d.length;f>e;a=++e)if(c=d[a],b=d[a]+"ransform",b in F)return d[a].substr(0,d[a].length-1);return!1}(),G=function(a){return H===!1?!1:""===H?a:H+a.charAt(0).toUpperCase()+a.substr(1)},E=G("transform"),B=E!==!1,A=function(){var a,b,d;return a=c.createElement("div"),b=a.style,b.position="absolute",b.width="100px",b.height="100px",b.overflow=t,b.top="-9999px",c.body.appendChild(a),d=a.offsetWidth-a.clientWidth,c.body.removeChild(a),d},C=function(){var a,c,d;return c=b.navigator.userAgent,(a=/(?=.+Mac OS X)(?=.+Firefox)/.test(c))?(d=/Firefox\/\d{2}\./.exec(c),d&&(d=d[0].replace(/\D+/g,"")),a&&+d>23):!1},q=function(){function j(d,f){this.el=d,this.options=f,e||(e=A()),this.$el=a(this.el),this.doc=a(this.options.documentContext||c),this.win=a(this.options.windowContext||b),this.body=this.doc.find("body"),this.$content=this.$el.children("."+this.options.contentClass),this.$content.attr("tabindex",this.options.tabIndex||0),this.content=this.$content[0],this.previousPosition=0,this.options.iOSNativeScrolling&&null!=this.el.style.WebkitOverflowScrolling?this.nativeScrolling():this.generate(),this.createEvents(),this.addEvents(),this.reset()}return j.prototype.preventScrolling=function(a,b){if(this.isActive)if(a.type===f)(b===g&&a.originalEvent.detail>0||b===w&&a.originalEvent.detail<0)&&a.preventDefault();else if(a.type===p){if(!a.originalEvent||!a.originalEvent.wheelDelta)return;(b===g&&a.originalEvent.wheelDelta<0||b===w&&a.originalEvent.wheelDelta>0)&&a.preventDefault()}},j.prototype.nativeScrolling=function(){this.$content.css({WebkitOverflowScrolling:"touch"}),this.iOSNativeScrolling=!0,this.isActive=!0},j.prototype.updateScrollValues=function(){var a,b;a=this.content,this.maxScrollTop=a.scrollHeight-a.clientHeight,this.prevScrollTop=this.contentScrollTop||0,this.contentScrollTop=a.scrollTop,b=this.contentScrollTop>this.previousPosition?"down":this.contentScrollTop=a.maxScrollTop&&a.prevScrollTop!==a.maxScrollTop?a.$el.trigger("scrollend"):0===a.contentScrollTop&&0!==a.prevScrollTop&&a.$el.trigger("scrolltop"),!1}}(this),up:function(a){return function(){return a.isBeingDragged=!1,a.pane.removeClass("active"),a.doc.unbind(n,a.events[h]).unbind(o,a.events[w]),a.body.unbind(m,a.events[i]),!1}}(this),resize:function(a){return function(){a.reset()}}(this),panedown:function(a){return function(b){return a.sliderY=(b.offsetY||b.originalEvent.layerY)-.5*a.sliderHeight,a.scroll(),a.events.down(b),!1}}(this),scroll:function(a){return function(b){a.updateScrollValues(),a.isBeingDragged||(a.iOSNativeScrolling||(a.sliderY=a.sliderTop,a.setOnScrollStyles()),null!=b&&(a.contentScrollTop>=a.maxScrollTop?(a.options.preventPageScrolling&&a.preventScrolling(b,g),a.prevScrollTop!==a.maxScrollTop&&a.$el.trigger("scrollend")):0===a.contentScrollTop&&(a.options.preventPageScrolling&&a.preventScrolling(b,w),0!==a.prevScrollTop&&a.$el.trigger("scrolltop"))))}}(this),wheel:function(a){return function(b){var c;if(null!=b)return c=b.delta||b.wheelDelta||b.originalEvent&&b.originalEvent.wheelDelta||-b.detail||b.originalEvent&&-b.originalEvent.detail,c&&(a.sliderY+=-c/3),a.scroll(),!1}}(this),enter:function(a){return function(b){var c;if(a.isBeingDragged)return 1!==(b.buttons||b.which)?(c=a.events)[w].apply(c,arguments):void 0}}(this)}},j.prototype.addEvents=function(){var a;this.removeEvents(),a=this.events,this.options.disableResize||this.win.bind(s,a[s]),this.iOSNativeScrolling||(this.slider.bind(l,a[g]),this.pane.bind(l,a[r]).bind(""+p+" "+f,a[x])),this.$content.bind(""+t+" "+p+" "+f+" "+v,a[t])},j.prototype.removeEvents=function(){var a;a=this.events,this.win.unbind(s,a[s]),this.iOSNativeScrolling||(this.slider.unbind(),this.pane.unbind()),this.$content.unbind(""+t+" "+p+" "+f+" "+v,a[t])},j.prototype.generate=function(){var a,c,d,f,g,h,i;return f=this.options,h=f.paneClass,i=f.sliderClass,a=f.contentClass,(g=this.$el.children("."+h)).length||g.children("."+i).length||this.$el.append(''),this.pane=this.$el.children("."+h),this.slider=this.pane.find("."+i),0===e&&C()?(d=b.getComputedStyle(this.content,null).getPropertyValue("padding-right").replace(/[^0-9.]+/g,""),c={right:-14,paddingRight:+d+14}):e&&(c={right:-e},this.$el.addClass("has-scrollbar")),null!=c&&this.$content.css(c),this},j.prototype.restore=function(){this.stopped=!1,this.iOSNativeScrolling||this.pane.show(),this.addEvents()},j.prototype.reset=function(){var a,b,c,f,g,h,i,j,k,l,m,n;return this.iOSNativeScrolling?void(this.contentHeight=this.content.scrollHeight):(this.$el.find("."+this.options.paneClass).length||this.generate().stop(),this.stopped&&this.restore(),a=this.content,f=a.style,g=f.overflowY,d&&this.$content.css({height:this.$content.height()}),b=a.scrollHeight+e,l=parseInt(this.$el.css("max-height"),10),l>0&&(this.$el.height(""),this.$el.height(a.scrollHeight>l?l:a.scrollHeight)),i=this.pane.outerHeight(!1),k=parseInt(this.pane.css("top"),10),h=parseInt(this.pane.css("bottom"),10),j=i+k+h,n=Math.round(j/b*j),nthis.options.sliderMaxHeight&&(n=this.options.sliderMaxHeight),g===t&&f.overflowX!==t&&(n+=e),this.maxSliderTop=j-n,this.contentHeight=b,this.paneHeight=i,this.paneOuterHeight=j,this.sliderHeight=n,this.paneTop=k,this.slider.height(n),this.events.scroll(),this.pane.show(),this.isActive=!0,a.scrollHeight===a.clientHeight||this.pane.outerHeight(!0)>=a.scrollHeight&&g!==t?(this.pane.hide(),this.isActive=!1):this.el.clientHeight===a.scrollHeight&&g===t?this.slider.hide():this.slider.show(),this.pane.css({opacity:this.options.alwaysVisible?1:"",visibility:this.options.alwaysVisible?"visible":""}),c=this.$content.css("position"),("static"===c||"relative"===c)&&(m=parseInt(this.$content.css("right"),10),m&&this.$content.css({right:"",marginRight:m})),this)},j.prototype.scroll=function(){return this.isActive?(this.sliderY=Math.max(0,this.sliderY),this.sliderY=Math.min(this.maxSliderTop,this.sliderY),this.$content.scrollTop(this.maxScrollTop*this.sliderY/this.maxSliderTop),this.iOSNativeScrolling||(this.updateScrollValues(),this.setOnScrollStyles()),this):void 0},j.prototype.scrollBottom=function(a){return this.isActive?(this.$content.scrollTop(this.contentHeight-this.$content.height()-a).trigger(p),this.stop().restore(),this):void 0},j.prototype.scrollTop=function(a){return this.isActive?(this.$content.scrollTop(+a).trigger(p),this.stop().restore(),this):void 0},j.prototype.scrollTo=function(a){return this.isActive?(this.scrollTop(this.$el.find(a).get(0).offsetTop),this):void 0},j.prototype.stop=function(){return y&&this.scrollRAF&&(y(this.scrollRAF),this.scrollRAF=null),this.stopped=!0,this.removeEvents(),this.iOSNativeScrolling||this.pane.hide(),this},j.prototype.destroy=function(){return this.stopped||this.stop(),!this.iOSNativeScrolling&&this.pane.length&&this.pane.remove(),d&&this.$content.height(""),this.$content.removeAttr("tabindex"),this.$el.hasClass("has-scrollbar")&&(this.$el.removeClass("has-scrollbar"),this.$content.css({right:""})),this},j.prototype.flash=function(){return!this.iOSNativeScrolling&&this.isActive?(this.reset(),this.pane.addClass("flashed"),setTimeout(function(a){return function(){a.pane.removeClass("flashed")}}(this),this.options.flashDelay),this):void 0},j}(),a.fn.nanoScroller=function(b){return this.each(function(){var c,d;if((d=this.nanoscroller)||(c=a.extend({},z,b),this.nanoscroller=d=new q(this,c)),b&&"object"==typeof b){if(a.extend(d.options,b),null!=b.scrollBottom)return d.scrollBottom(b.scrollBottom);if(null!=b.scrollTop)return d.scrollTop(b.scrollTop);if(b.scrollTo)return d.scrollTo(b.scrollTo);if("bottom"===b.scroll)return d.scrollBottom(0);if("top"===b.scroll)return d.scrollTop(0);if(b.scroll&&b.scroll instanceof a)return d.scrollTo(b.scroll);if(b.stop)return d.stop();if(b.destroy)return d.destroy();if(b.flash)return d.flash()}return d.reset()})},a.fn.nanoScroller.Constructor=q});function resizePlayer(){ if($(window).width() < 640){$('#fifa17-main').addClass('PostMobile');}else{$('#fifa17-main').removeClass('PostMobile')}}window.onresize = resizePlayer;function mostra_mais_games(){ $('#menu-quadros').css('margin-left','-2060px'); $('#another_games_screen').css('opacity','1.0'); $('#menu-quadros').css('opacity','0'); $('#another_games_screen').css('margin-left','0px'); }function mostra_soundtrack(){ $('#another_games_screen').css('opacity','0.0'); $('#menu-quadros').css('opacity','1.0'); $('#another_games_screen').css('margin-left','100%'); $('#menu-quadros').css('margin-left','0px');}$(function(){ if(ismob() == true && $(window).width() < 640){$('#fifa17-main').addClass('PostMobile');$('#video-placeholder').css({'height':'120px !important','width':'68px !important'})} $('#fifa17_menu li.active_tab').css('width',$('#fifa17_menu li:first').outerWidth()); $('#fifa17_menu li.menu_item').click(function(){ $('#fifa17_menu li.active_tab').css('width',$(this).outerWidth()); $('#fifa17_menu li.active_tab').css('left',$(this).position().left); $('#fifa17_menu li.menu_item').removeClass('sel'); $(this).addClass('sel'); });});//item over$(function(){ $('#musics .item').mouseover(function(){ $('#'+$(this).attr('id')).addClass("item_hover"); }).mouseout(function(){ $('#'+$(this).attr('id')).removeClass("item_hover"); });});//=================================================function CheckItem(id){ $('#musics .item').removeClass('sel_icon'); $("#"+id).addClass('sel_icon');}//atribui nomes a tabela e chama o trax$(function(){$('#musics .item').click(function(){ var id = $(this).attr('id'); var title = $("#"+id+"b").text(); var author = $("#"+id+"a").text(); var album = $("#"+id+"c").text(); music(author,title,album,id); CheckItem(id); });});//chama o traxfunction music(artist,music,detail,id){ var bgpos = artcover(id,62); $("#minfo_title").html(music); $("#minfo_artist").html(artist); $("#minfo_detail").html(detail); $("#coverart").attr('style','background-position: 0px -'+bgpos+'px !important; background-position-y:-'+bgpos+'px'); if((music.length+artist.length) > 100){ $("#b-title").html(""+id.split('m')[1]+" | "+music.replace(/(<([^>]+)>)/ig,"")+" - "+artist.replace(/(<([^>]+)>)/ig,"")+"").addClass('title_dot');; }else{ $("#b-title").html(""+id.split('m')[1]+" | "+music.replace(/(<([^>]+)>)/ig,"")+" - "+artist.replace(/(<([^>]+)>)/ig,"")).removeClass('title_dot');; }}function FullScreenAble(){ var width = $(document).width(), height = $(document).height(); var chrome = !!window.chrome && !!window.chrome.webstore; var fire = typeof InstallTrigger !== 'undefined'; if(((width >= 1023) && (height >= 768)) && (chrome == true || fire == true)){ return true }else{ return false }}//Artcover/TRAXfunction artcover(id,size){ id = parseInt(id.replace("m","")); return (size * id) - size;}$(document).ready(function(){ if(FullScreenAble() == true){ $("#p-full-screen-btn").show(); } $("#musics .item").each(function(i){ var id = $(this).attr('id'); $("#"+id+" .item_cover").css('background-position','0px -'+artcover(id,55)+'px'); var midA = $("#"+id+" #"+id+"a").text(); var midB = $("#"+id+" #"+id+"b").text(); if(midA.length > 23){ $("#"+id+" #"+id+"a").html(''+midA+'').addClass('title_dot'); } if(midB.length > 23){ $("#"+id+" #"+id+"b").html(''+midB+'').addClass('title_dot'); } });});// YOUTUBE PLAYER APIvar tag = document.createElement('script');tag.src = "https://www.youtube.com/iframe_api";var firstScriptTag = document.getElementsByTagName('script')[0];firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);//update bar gradient function BarBgGradient(obj,per){ obj.css('background', '-webkit-linear-gradient(left, rgba(48,91,101,0.9) 0%, rgba(86,118,144, 0.9) ' + per + '%, rgba(46,50,60,0.9) ' + per + '%)'); obj.css('background', '-moz-linear-gradient(left, rgba(48,91,101,0.9) 0%, rgba(86,118,144, 0.9) ' + per + '%, rgba(46,50,60,0.9) ' + per + '%)'); obj.css('background', '-o-linear-gradient(left, rgba(48,91,101,0.9) 0%, rgba(86,118,144, 0.9) ' + per + '%, rgba(46,50,60,0.9) ' + per + '%)'); obj.css('background', '-ms-linear-gradient(left, rgba(48,91,101,0.9) 0%, rgba(86,118,144, 0.9) ' + per + '%, rgba(46,50,60,0.9) ' + per + '%)'); obj.css('background', 'linear-gradient(left, rgba(48,91,101,0.9) 0%, rgba(86,118,144, 0.9) ' + per + '%, rgba(46,50,60,0.9) ' + per + '%)');} //movie as one - loyal sem videos ainda var videos_ids = ["WZ6xl6CKITE","haM6i3KIlB4","a-y0uLJjLxk","TWkSSk5uyqg","QqhvAM7vRlw","Mz5iPSi3-mo","42MKj_VHZic", "S5I74QeXnhQ","Sd4nkj8gKwg","ZdwFGmEijKQ","IUwM5d3qvUY","zXZ2QZFtS8c","sxj9f3d7_i8","BRxQWpvqp8g","_ZdsmLgCVdU", "ZhzN7-Q00KU","FS16b01M4Rw","lt1LE7DGAIo","4rH7deXjQVE","eASodbpQtPk","HE8y5V235ps","w9vYmLeTZ0U","4yhuSy7_frw", " ","RrJZJtY6u7o","oBoQ7TG5BMw","F7tz3sMUqLE","ylLae_4c8u8","WcS6MA9fu-I","lBwtKSrFyjI","rqG47mETbwM", "yLWitmmt0JA","ntlpTad3PLM","DfTUs-s_XkI","B2Dcgq9ri-c","5o1QrgjGMZQ","hbMk7_c6nAE","d3rBJw0HdEA","NNimUS6uYCM", "0XgA5yLalnM","QOhTNUBQ7xQ","UzCENuyKX4E","KJbs9kb7En4","9wzcBCPLGv0","lBEq0vF8njk","J6qSn-O8LCE","N1i06Aog2MQ", "XlgONmPh_zg","nAu38eOX5Ew","eCFh-jS40nY","qyFXI6jGc9g"];var player;var time_update_interval;var cur_video = 1;function onYouTubeIframeAPIReady(){ player = new YT.Player('video-placeholder',{ width: 120, height: 70, videoId: 'WZ6xl6CKITE', playerVars: { color: 'white', controls: '0', showinfo: '0', modestbranding: '1', rel: '0' }, events: { onReady: initialize, onStateChange: onPlayerStateChange, onPlaybackQualityChange: UpdateQualityLbl } });}function UpdateQualityLbl(){ $('#p-conf_box div:last').html(QualitySizesLbls(player.getPlaybackQuality()));}function QualitySizesLbls(n){ var lbl; switch(n){ case 'tiny': lbl = "144p";break; case 'small': lbl = "240p";break; case 'medium': lbl = "360p";break; case 'large': lbl = "480p";break; case 'hd720': lbl = "HD 720p";break; case 'hd1080': lbl = "HD 1080p";break; case 'hd1440': lbl = "2K 1440p";break; case 'hd2160': lbl = "4K 2160p";break; case 'highres': lbl = "HD > 1080p";break; case 'auto': lbl = "Automatico";break; } return lbl;}function SetSizesAvailable(){ var sizes = player.getAvailableQualityLevels();