html实训,点击评测后,还是一片白
This commit is contained in:
parent
26de87d603
commit
6eeaf998f4
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue