Commit 9a8878142381294a23f9e7eb2b5c54808af8ebd8

Authored by ykxie
1 parent 14fdd18b

add title

Showing 1 changed file with 5 additions and 1 deletions
src/js/gbreplayer.js
@@ -24,8 +24,12 @@ $(function(){ @@ -24,8 +24,12 @@ $(function(){
24 } 24 }
25 25
26 if(document.URL.indexOf('player.htm')>=0){ 26 if(document.URL.indexOf('player.htm')>=0){
27 - var title = getQuery('chapterId'); 27 +
  28 + var title = getQuery('title');
28 $('.m-title').html(title); 29 $('.m-title').html(title);
  30 +
  31 + alert(title)
  32 +
29 if (_role == 0) { 33 if (_role == 0) {
30 var apiUrl = gxb_api + "/programming/codeReplay/" + _codeReplayId + "/api"; 34 var apiUrl = gxb_api + "/programming/codeReplay/" + _codeReplayId + "/api";
31 getLangid(apiUrl); 35 getLangid(apiUrl);