var annualchartCover = 'https://images.sysapi.mtg.now.com/moov/images/profile/PP/0/02/PUAPL1000000002_tn_1_l.jpg?lmd=1516670901000'; function getPUAPL(userID){ pageType='profile'; if(userID == ''){ if(typeof userData != 'undefined' || userData != null){ ajaxCall(apiServer+'/moov/api/profile/getProfile?refType=PUAPL&profileId='+userID+'&deviceType=phones3', '',getPUAPLCallback); }else{ getPUAPLNoContent(); } }else{ ajaxCall(apiServer+'/moov/api/profile/getProfile?refType=PUAPL&profileId='+userID+'&deviceType=phones3', '',getPUAPLCallback); } } function getPUAPLCallback(data){ if( data.resultCode=='0' ){ obj = data.dataObject; var sharePUAPLUrl = obj.shareUrl; var profileId = hash.split('/')[2]; if($('#menu .button.selected').length>0){ pageCat=$('#menu .button.selected .text >div').html()+'|'; } currentProfileName=(typeof obj[lang+'Title'] != 'undefined')?obj[lang+'Title'][0]:langJSON.personalchart.title; currentRefType='PP'; ga('send', 'pageview', { 'page': hash, 'title': pageCat+currentProfileName+'(PUAPL)' }); // 2017 var artists=''; var artistImg = ''; var authorName = (obj.author.name=='')?langJSON.general.user_playlist:obj.author.name; var artistImg=''; if (typeof obj.author.img.path!='undefined' && obj.author.img.path!='' ) { artistImg=''; } artists+='