注音符號學習樂園 - 1Know
文章推薦指數: 80 %
ㄅㄆㄇ注音符號拼音01 - ㄅ的四聲拼音與發音練習(Traditional Chinese Pinyin). ㄅㄆㄇ注音符號拼音02 - ㄆ的四聲拼音與發音練習(Traditional Chinese ... {{target.name}} {{chapter.name}} {{unit.name}} {{unit.name}} {{target.release|date:'yyyy/MM/dd'}} {{item.full_name}} ({{target.reader_size}}) {{previewTarget.name}} 0{{$index+1}}. () -->'+ ''+ '' }; }]) .controller('CourseController',['$scope','$http','$location','$timeout','$compile','$translate','$filter',function($scope,$http,$location,$timeout,$compile,$translate,$filter){ varself=this; $scope.service_url=[location.origin,'/private'].join(''); $scope.global={message:''}; $scope.openTab=function(url,target){ window.open(url,target); } $scope.changeLanguage=function(lang){ lang=lang.toLowerCase(); if(lang==='zh-tw') lang={title:'繁體中文',type:'zh-tw'}; elseif(lang==='zh-cn') lang={title:'简体中文',type:'zh-cn'}; elseif(lang==='es-ar') lang={title:'Español(Argentina)',type:'es-ar'}; elseif(lang==='es-pe') lang={title:'Español(Perú)',type:'es-pe'}; elseif(lang==='de-de') lang={title:'Deutsch',type:'de-de'}; else lang={title:'English',type:'en-us'}; $scope.language=lang; $translate.use(lang.type); if($scope.target.account){ ga('send','/personal/profile','service','put'); $http.put([$scope.service_url,'/personal/profile'].join(''),{language:JSON.stringify(lang)}) .success(function(response,status){ window.scrollTo(0,0); }); } window.document.title='注音符號學習樂園-'+$filter('translate')('N002'); } $scope.open1know=function(){ window.location.href=location.origin; } $scope.signinWithIschool=function(){ varwidth=800; varheight=700; vartop=(screen.height/2)-(height/2); varleft=(screen.width/2)-(width/2); varstate=encodeURIComponent(['subscribe_knowledge:',$scope.target.uqid].join('')); vartarget=['https://auth.ischool.com.tw/oauth/authorize.php?client_id=a266592ce660b43f980d49b4079d53ed&response_type=code&state=',state,'&redirect_uri=',window.location.origin,'/oauth/ischool&lang=',$scope.lang,'&scope=User.Mail,User.BasicInfo,User.Application'].join(''); window.open(target,'1409620722041',['width=',width,',height=',height,',menubar=0,titlebar=0,status=0,top=',top,',left=',left].join('')).focus(); } /*SignInwithQSchool*/ $scope.signinWithQschool=function(type){ varwidth=800; varheight=700; vartop=(screen.height/2)-(height/2); varleft=(screen.width/2)-(width/2); varstate=encodeURIComponent($location.url()); vartarget=['https://qschool.benq.com.cn/oauth/authorize.php?client_id=a266592ce660b43f980d49b4079d53ed&response_type=code&state=',state,'&redirect_uri=',$scope.BASE_URL,'/oauth/qschool&lang=',$scope.language.type,'&scope=User.Mail,User.BasicInfo,User.Application',type].join(''); window.open(target,'1409620722041',['width=',width,',height=',height,',menubar=0,titlebar=0,status=0,top=',top,',left=',left].join('')).focus(); } $scope.learn=function(){ window.open(["/#!/learn/course/",$scope.target.uqid].join(''),'myLearnWindow'); } $scope.subscribe=function(type){ ga('send','/course/:uqid/subscribe','service','post'); $http.post([$scope.service_url,'/course/',$scope.target.uqid,'/subscribe'].join('')) .success(function(response,status){ if(!response.error){ $scope.target.subscribed=true; if(type=='course')$('#subscribSuccessModal').modal('show'); } }); } $scope.toSubscribed=function(){ window.location.href=[location.origin,"/#!/course/subscribed/",$scope.target.uqid].join(''); } $scope.unsubscribe=function(){ ga('send','/course/:uqid/unsubscribe','service','delete'); $http.delete([$scope.service_url,'/course/',$scope.target.uqid,'/unsubscribe'].join('')) .success(function(response,status){ $('#unSubscribModal').modal('hide'); $('#subscribSuccessModal').modal('hide'); if(!response.error){ $scope.target.subscribed=false; } }); } $scope.message={ newMessage:{ post:function(){ vardata={ content:$scope.message.newMessage.content }; ga('send','/course/:uqid/message','service','post'); $http.post([$scope.service_url,'/course/',$scope.target.uqid,'/message'].join(''),data) .success(function(response,status){ if(!response.error){ $scope.message.load('recent',0); delete$scope.message.newMessage.content; } }); } }, load:function(type,startIndex,target){ varservice=''; if(type==='recent'){ ga('send','/course/:uqid/message','service','get'); service=[$scope.service_url,'/course/',$scope.target.uqid,'/message?start-index=',startIndex,($scope.message.queryText?['&keyword=',$scope.message.queryText].join(''):'')].join('') $scope.message.startIndex=startIndex; } elseif(type==='reply'){ ga('send','/course/message/:uqid/reply','service','get'); service=[$scope.service_url,'/course/message/',target.uqid,'/reply'].join(''); } $http.get(service) .success(function(response,status){ angular.forEach(response,function(item){ item.msgType=type; item.time_desc=$filter('date')(item.time,'yyyy-MM-dd@HH:mm:ss'); if(item.msgType==='reply') item.parent=target; if(item.content) item.content_desc=item.content.replace(/\r\n|\r|\n/g,'').replace(/