From f0ba2272fc691c5263ec2c87f7036a467dc8cd8a Mon Sep 17 00:00:00 2001 From: daiao <358551898@qq.com> Date: Sat, 22 Jul 2017 10:59:42 +0800 Subject: [PATCH] =?UTF-8?q?webssh=E4=B8=8A=E7=BA=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/games/_repository.html.erb | 2 +- app/views/games/show.html.erb | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/app/views/games/_repository.html.erb b/app/views/games/_repository.html.erb index db45a4e4f..8e60e8224 100644 --- a/app/views/games/_repository.html.erb +++ b/app/views/games/_repository.html.erb @@ -84,7 +84,7 @@ // 本地版 var html_local =""; console.log(html); - $("#codotab_con_2").html(html_local); + $("#codotab_con_2").html(html); var h = $("#games_repository_contents").height() - $("#top_repository").height() - 10; $("#game_webssh").css("min-height", h); HoverLi_new(2); diff --git a/app/views/games/show.html.erb b/app/views/games/show.html.erb index 56f16029d..09770dceb 100644 --- a/app/views/games/show.html.erb +++ b/app/views/games/show.html.erb @@ -1,6 +1,3 @@ - - - <%= javascript_include_tag "/codemirror/lib/codemirror", "/codemirror/mode/javascript/javascript", "/codemirror/addon/hint/show-hint", "/codemirror/addon/hint/javascript-hint", "/codemirror/addon/selection/active-line", "/codemirror/addon/lint/javascript-lint", "/codemirror/addon/lint/css-lint", "/codemirror/addon/lint/lint", "/codemirror/addon/lint/json-lint", "/editormd/lib/codemirror/addon/lint/css-lint" %> <%= stylesheet_link_tag "/codemirror/lib/codemirror" %> <%= stylesheet_link_tag '/editormd/css/editormd','/editormd/css/editormd.min.css' %>