diff --git a/app/views/games/_repository.html.erb b/app/views/games/_repository.html.erb index 566e46be9..0b393bb9c 100644 --- a/app/views/games/_repository.html.erb +++ b/app/views/games/_repository.html.erb @@ -2,7 +2,7 @@
  • 代码
  • -
  • +
  • <% if @myshixun.shixun.try(:webssh) %> 命令行 <% end %> @@ -81,7 +81,7 @@ g_l('codetab_con_'+n).className='dis -relative'; g_l('codetab_nav_'+n).className='blacktab_hover'; }; - + <% if @myshixun.shixun.try(:webssh) %> $('#codetab_nav_2').on("click", function(){ $.ajax({ url: "<%= open_webssh_myshixun_path(@myshixun) %>", @@ -94,15 +94,16 @@ // 本地版 var html_local ="
    "; $("#codetab_con_2").html(html); - var h = $("#games_repository_contents").height() - $("#top_repository").height() - 10; - $("#game_webssh").css("min-height", h); - HoverLi_new(2); - // console.log( $("#game_webssh").contentDocument.body.height()); + var h = $("#games_repository_contents").height() - $("#top_repository").height() - 10; + $("#game_webssh").css("min-height", h); + HoverLi_new(2); + // console.log( $("#game_webssh").contentDocument.body.height()); - } - } + } + } }) }); + <% end %> \ No newline at end of file diff --git a/app/views/shixuns/_form.html.erb b/app/views/shixuns/_form.html.erb index 2e8d32617..5ba904ebc 100644 --- a/app/views/shixuns/_form.html.erb +++ b/app/views/shixuns/_form.html.erb @@ -22,7 +22,7 @@
  • -
    +

    @@ -161,7 +161,7 @@ /* ------------------------------- 简介md ------------------------------*/ var shixun_editormd = editormd("shixun_introduction", { width : "89.7%", - height : 300, + height : 600, syncScrolling : "single", //你的lib目录的路径,我这边用JSP做测试的 path : "/editormd/lib/", @@ -190,7 +190,7 @@ /* --------------------------------- 背景知识 -------------------------------------- */ var shixun_propaedeutics = editormd("shixun_propaedeutics", { width : "89.7%", - height : 300, + height : 600, syncScrolling : "single", //你的lib目录的路径,我这边用JSP做测试的 path : "/editormd/lib/",