[{"command":"settings","settings":{"basePath":"\/","pathPrefix":"vi\/","setHasJsCookie":0,"ajaxPageState":{"theme":"versh","theme_token":"IWi9VhbY1jBRjogoBHBoRk2KBbINCC5axLm9jSAsDB4","jquery_version":"2.1"},"TRACK_COURSE_ACCESS":"\/track\/course_access","TRACK_ACTIVITY":"\/track\/activity","PATH_CHARTS":"\/charts.php","TRACK_AUDIO_RECORDER":"\/track\/audio_recorder","PAGE_PIZA_READER":"\/piza-reader","PAGE_PIZA_STORIES":"\/piza-stories","AUTHORIZE_RECORDING_STATE":"\/authorize\/recording\/state\/","PIZA_READER_QUIZCOMPLETION":"\/piza-reader\/QuizCompletion","ACTIVITY_STATUS":{"OPEN":-1,"DOING":0,"COMPLETED":1},"CHART_TYPE":{"overview":"overview","history":"history","column":"column"},"COURSE_PIZA_READER":1,"COURSE_PIZA_STORIES":15,"MESSAGE":{"SURE_TO_UPGRADE":"B\u1ea1n c\u00f3 ch\u1eafc ch\u1eafn n\u00e2ng c\u1ea5p kh\u00f4ng?","AUDIO_INACTIVITY_ERROR":"Kh\u00f4ng nh\u1eadn \u0111\u01b0\u1ee3c gi\u1ecdng \u0111\u1ecdc.\u003C\/br\u003ECh\u1ee9c n\u0103ng ghi \u00e2m \u0111\u00e3 b\u1ecb d\u1eebng.\u003C\/br\u003E\u003C\/br\u003EH\u00e3y ki\u1ec3m tra micro v\u00e0 \u0111\u1ecdc to ho\u1eb7c h\u1ecfi trang web \u0111\u1ec3 \u0111\u01b0\u1ee3c tr\u1ee3 gi\u00fap.","SERVER_CONNECTION_ERROR":"Ch\u1ee9c n\u0103ng ghi \u00e2m kh\u00f4ng ho\u1ea1t \u0111\u1ed9ng.\u003C\/br\u003E\u003C\/br\u003EH\u00e3y ki\u1ec3m tra l\u1ea1i ho\u1eb7c h\u1ecfi trang web \u0111\u1ec3 \u0111\u01b0\u1ee3c tr\u1ee3 gi\u00fap.","RECORDING_UNAVAILABLE_ERROR":"Kh\u00f4ng c\u00f3 b\u1ea3n ghi \u00e2m.\u003C\/br\u003E\u003C\/br\u003EH\u00e3y ki\u1ec3m tra l\u1ea1i ho\u1eb7c h\u1ecfi trang web \u0111\u1ec3 \u0111\u01b0\u1ee3c tr\u1ee3 gi\u00fap.","RECORDING_NONUSER_ERROR":"C\u1ea7n \u0111\u0103ng nh\u1eadp \u0111\u1ec3 ghi \u00e2m.\u003C\/br\u003EH\u00e3y ki\u1ec3m tra l\u1ea1i ho\u1eb7c li\u00ean h\u1ec7 trang web \u0111\u1ec3 \u0111\u01b0\u1ee3c tr\u1ee3 gi\u00fap.","RECORDING_FREEUSER_ERROR":"H\u00e3y n\u00e2ng c\u1ea5p t\u00e0i kho\u1ea3n c\u1ee7a b\u1ea1n l\u00ean g\u00f3i n\u00e2ng cao \u0111\u1ec3 ghi \u00e2m.\u003C\/br\u003EH\u00e3y li\u00ean h\u1ec7 trang web \u0111\u1ec3 \u0111\u01b0\u1ee3c tr\u1ee3 gi\u00fap.","MISSING_MICROPHONE_ERROR":"B\u1ea1n \u0111ang thi\u1ebfu micr\u00f4.\u003C\/br\u003E\u003C\/br\u003EH\u00e3y ki\u1ec3m tra l\u1ea1i ho\u1eb7c h\u1ecfi trang web \u0111\u1ec3 \u0111\u01b0\u1ee3c tr\u1ee3 gi\u00fap.","MICROPHONE_PERMISSION_ERROR":"Micr\u00f4 b\u1ecb ch\u1eb7n trong c\u00e0i \u0111\u1eb7t tr\u00ecnh duy\u1ec7t.\u003C\/br\u003E\u003C\/br\u003EH\u00e3y ki\u1ec3m tra l\u1ea1i ho\u1eb7c trang web tr\u1ee3 gi\u00fap.","UNSUPPORTED_BROWSER_ERROR":"Tr\u00ecnh duy\u1ec7t n\u00e0y kh\u00f4ng h\u1ed7 tr\u1ee3 m\u00e1y ghi \u00e2m.\u003C\/br\u003E\u003C\/br\u003EH\u00e3y ki\u1ec3m tra l\u1ea1i ho\u1eb7c h\u1ecfi trang web \u0111\u1ec3 \u0111\u01b0\u1ee3c tr\u1ee3 gi\u00fap.","MAX_AUDIO_LENGTH_ERROR":"B\u1ea1n \u0111\u00e3 \u0111\u1ea1t \u0111\u1ebfn th\u1eddi l\u01b0\u1ee3ng \u00e2m thanh t\u1ed1i \u0111a.\u003C\/br\u003E\u003C\/br\u003EH\u00e3y ki\u1ec3m tra l\u1ea1i ho\u1eb7c y\u00eau c\u1ea7u trang web tr\u1ee3 gi\u00fap.","RECORDING_DEFAULT_ERROR":"Ch\u1ee9c n\u0103ng ghi \u00e2m kh\u00f4ng ho\u1ea1t \u0111\u1ed9ng.\u003C\/br\u003E\u003C\/br\u003EH\u00e3y ki\u1ec3m tra l\u1ea1i ho\u1eb7c h\u1ecfi trang web \u0111\u1ec3 \u0111\u01b0\u1ee3c tr\u1ee3 gi\u00fap."},"USER_INFO":{"uid":0},"CToolsModal":{"loadingText":"Loading...","closeText":"Close Window","closeImage":"\u003Cimg src=\u0022https:\/\/englishpiza.com\/sites\/all\/modules\/ctools\/images\/icon-close-window.png\u0022 alt=\u0022Close window\u0022 title=\u0022Close window\u0022 \/\u003E","throbber":"\u003Cimg src=\u0022https:\/\/englishpiza.com\/sites\/all\/modules\/ctools\/images\/throbber.gif\u0022 alt=\u0022\u0110ang n\u1ea1p\u0022 title=\u0022Loading...\u0022 \/\u003E"},"login-popup-style":{"modalSize":{"type":"fixed","width":"auto","height":"auto","addHeight":650},"modalOptions":{"opacity":0.6,"background-color":"#191818"},"closeText":"","loadingText":"","animation":"fadeIn","modalTheme":"login_popup_theme","animationSpeed":"fast"}},"merge":true},{"command":"modal_display","title":"Bat and Friends 1","output":"\u003Cdiv class=\u0022modalWindow_body\u0022\u003E\n\u003Cinput type=\u0022hidden\u0022 name=\u0022BOOKID\u0022 value=\u002211119\u0022\u003E\n\u003Cinput type=\u0022hidden\u0022 name=\u0022COURSEID\u0022 value=\u002215\u0022\u003E\n\u003Cinput type=\u0022hidden\u0022 name=\u0022ACTIVITYID\u0022 value=\u002260319\u0022\u003E\n\u003Cinput type=\u0022hidden\u0022 name=\u0022ACTIVITYREADID\u0022 value=\u002260320\u0022\u003E\n\u003Cinput type=\u0022hidden\u0022 name=\u0022ACTIVITYQUIZID\u0022 value=\u002260321\u0022\u003E\n \u003Cdiv class=\u0022resourceModal_thumbnail\u0022\u003E\n \u003Cimg class=\u0022activityDetail_image\u0022 src=\u0022https:\/\/englishpiza.com\/sites\/default\/files\/styles\/large\/public\/notext_ipad_105.jpg?itok=S2b_9gNJ\u0022\u003E\n \u003Ca href=\u0022\/piza-stories\/1248cde40379aa7964fd83ff41a625e4\/activity\/60319\/listen\u0022 class=\u0022activity_link \u0022\u003E\u0026nbsp;\u003C\/a\u003E\n \u003C\/div\u003E\n \u003Cdiv class=\u0022resourceModal_activities\u0022\u003E\n \u003Cdiv class=\u0022activityDetail_row\u0022\u003E\n \t\t\t\u003Cdiv data-id=\u002260319\u0022 class=\u0022activityDetail\u0022\u003E\n \t\t\t\t\u003Ca class=\u0022activity_link \u0022\n \t\t\t\t\thref=\u0022\/piza-stories\/1248cde40379aa7964fd83ff41a625e4\/activity\/60319\/listen\u0022\u003E\n \t\t\t\t\t\u003Cspan data-id=\u002260319\u0022 class=\u0022icon activity_icon icon-listen\u0022\u003E\u003Ci class=\u0022glyphicon glyphicon-headphones\u0022\u003E\u003C\/i\u003E\u003C\/span\u003E\n \t\t\t\t\u003C\/a\u003E \u003Cspan class=\u0022activityDetail_label ng-binding\u0022\u003Elisten\u003C\/span\u003E\n \t\t\t\t\u003Cdiv class=\u0022activityDetail_stars\u0022 \u003E\n \u003Cspan class=\u0022num_coin\u0022\u003E5 \u003Ci class=\u0022coins glyphicon glyphicon-star\u0022\u003E\u003C\/i\u003E\u003C\/span\u003E\n \n \u003C\/div\u003E \n\n \t\t\t\u003C\/div\u003E\n \t\t\t\u003Chr class=\u0022hr-dark\u0022 tabindex=\u0022-1\u0022\u003E\n\t\t\t\u003C\/div\u003E \n\t\t\t\n\t\t \u003Cdiv class=\u0022activityDetail_row\u0022\u003E\n \t\t\t\u003Cdiv data-id=\u002260320\u0022 class=\u0022activityDetail\u0022\u003E\n \t\t\t\t\u003Ca class=\u0022activity_link \u0022\n \t\t\t\t\thref=\u0022\/piza-stories\/1248cde40379aa7964fd83ff41a625e4\/activity\/60320\/read\u0022\u003E\n \t\t\t\t \n \t\t\t\t\t\u003Cspan data-id=\u002260320\u0022 class=\u0022icon activity_icon icon-read\u0022\u003E\u003Ci class=\u0022glyphicon glyphicon-book\u0022\u003E\u003C\/i\u003E\u003C\/span\u003E\n \t\t\t\t\u003C\/a\u003E \u003Cspan class=\u0022activityDetail_label ng-binding\u0022\u003ERead\u003C\/span\u003E\n \t\t\t\t\n \t\t\t\t\u003Cdiv class=\u0022activityDetail_stars\u0022 \u003E\n \u003Cspan class=\u0022num_coin\u0022\u003E10 \u003Ci class=\u0022coins glyphicon glyphicon-star\u0022\u003E\u003C\/i\u003E\u003C\/span\u003E\n \n \u003C\/div\u003E\n \t\t\t\t\n \t\t\t\u003C\/div\u003E\n \t\t\t\n \t\t\t\u003Chr class=\u0022hr-dark\u0022 tabindex=\u0022-1\u0022\u003E\n\t\t\t\u003C\/div\u003E \n \t \n \u003Cdiv class=\u0022activityDetail_row\u0022\u003E\n \t\t\t\u003Cdiv data-id=\u002260321\u0022 class=\u0022activityDetail\u0022\u003E\n \t\t\t\t\u003Ca \t\t\t\t\n \t\t\t\t \t\t\t\t \t\t\t\thref=\u0022\/piza-stories\/1248cde40379aa7964fd83ff41a625e4\/activity\/60321\/quiz\u0022\n \t\t\t\t \t\t\t\t class=\u0022activity_link activity_quiz\u0022 \n \t\t\t\t\t\u003E \t\t\t\t\t \n \t\t\t\t\t\u003Cspan data-id=\u002260321\u0022 class=\u0022icon activity_icon icon-quiz\u0022\u003E\u003Ci class=\u0022glyphicon glyphicon-question-sign\u0022\u003E\u003C\/i\u003E\u003C\/span\u003E\n \t\t\t\t\t\n \t\t\t\t\u003C\/a\u003E \u003Cspan class=\u0022activityDetail_label ng-binding\u0022\u003EQuiz\u003C\/span\u003E\n \t\t\t\t\u003Cdiv class=\u0022activityDetail_stars\u0022 \u003E\n \u003Cspan class=\u0022num_coin\u0022\u003E10 \u003Ci class=\u0022coins glyphicon glyphicon-star\u0022\u003E\u003C\/i\u003E\u003C\/span\u003E\n \n \u003C\/div\u003E\n \t\t\t\u003C\/div\u003E\n \t\t\t\u003Chr class=\u0022hr-dark\u0022 tabindex=\u0022-1\u0022\u003E\n\t\t\t\u003C\/div\u003E \n \t \n \u003C\/div\u003E\n\t \n \u003C\/div\u003E\n \n\u003Cscript type=\u0022text\/javascript\u0022\u003E\n(function ($) {\n \n var user_activities = Drupal.settings.user_activities; \n if (typeof user_activities !== \u0027undefined\u0027 \u0026\u0026 user_activities !== null \u0026\u0026 Drupal.settings.USER_INFO !== \u0027undefined\u0027 ) { \n \t\t\n \t\tvar COURSEID = $(\u0027input[name=\u0022COURSEID\u0022]\u0027).val();\n \t\tvar courseid_user_activities = user_activities[COURSEID];\n \t\tif (typeof courseid_user_activities !== \u0027undefined\u0027 \u0026\u0026 courseid_user_activities.length \u003E 0){\n \t\t\tjQuery(\u0027.resourceModal_activities .activityDetail\u0027)\n \t\t\t.each(\n \t\t\t\t\tfunction(index, value) {\n \n \t\t\t\t\t\tvar activityid = parseInt(jQuery(this).data(\u0027id\u0027));\n\/\/ \t\t\t\t\t\tconsole.log(\u0027div\u0027 + index + \u0027:\u0027 + activityid);\n \t\t\t\t\t\tif (courseid_user_activities.indexOf(activityid) \u003E= 0) {\n \t\t\t\t\t\t\t\n \t\t\t\t\t\t\tjQuery(this).find(\u0027a\u0027).addClass(\u0027is-completed\u0027);\n \t\t\t\t\t\t\tjQuery(this).addClass(\u0027row-completed\u0027);\n \t\t\t\t\t\t}\n \n \t\t\t\t\t});\n \t\t}\n \t\n } \n \n \/\/console.log(Drupal.settings.TRACK_COURSE_ACCESS);\n var url = Drupal.settings.TRACK_COURSE_ACCESS;\n var parameters = {\n \n \u0022uid\u0022: (typeof Drupal.settings.USER_INFO != \u0027undefined\u0027)?Drupal.settings.USER_INFO.uid:null , \n \u0022courseid\u0022: $(\u0027input[name=\u0022COURSEID\u0022]\u0027).val(), \n \u0022bookid\u0022: $(\u0027input[name=\u0022BOOKID\u0022]\u0027).val(), \n \u0022type\u0022:\u0022view\u0022\n };\n \/\/console.log(parameters);\n \/\/ post to tracking system \u003E course access \n $.post(url, parameters, function( data ) {\n \t\/\/console.log( data ); \n\t});\n \n})(jQuery);\n\n \n\u003C\/script\u003E\n"}]