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' %>