html实训,点击评测后,还是一片白

This commit is contained in:
daiao 2017-10-09 17:30:35 +08:00
parent 26de87d603
commit 6eeaf998f4
2 changed files with 5 additions and 1 deletions

View File

@ -39,6 +39,7 @@
<% end %>
// 渲染用户的HTML的CODE。
function tpi_html_show(){
$($(".blacktab_con")[0]).trigger("click");
var contents = editor_CodeMirror.getValue();
$("#data_param").val(contents);
$("#html_form").attr("action", "/iframes/html_content");
@ -194,8 +195,10 @@
data.language,
data.compile_success
);
$("#blacktab_nav_1").trigger("click");
if(data.status == 2){
if(data.language == "Html"){
tpi_html_show();
}
clearInterval(cm);
clearInterval(intId);
var icon = $("#game_status_<%= @game_challenge.id %>"); // 实训列表的icon

View File

@ -167,6 +167,7 @@ function choice_answer(st, nThis){
// 评测区域点击TAB切换样式
function check_tab(allClassName,addClassName,item){
console.log(editor_CodeMirror);
//点击tab添加样式
$("."+allClassName).removeClass(addClassName);
$(item).addClass(addClassName);