新建实训时插入图片的弹框有问题了

This commit is contained in:
daiao 2017-08-21 15:41:03 +08:00
parent 32cc7edba6
commit 4cc2a7688e
3 changed files with 14 additions and 10 deletions

View File

@ -28,9 +28,9 @@
</div>
<div class="-flex -relative">
<div class="fit">
<!-- <div class="-layout-v -fit loading-center undis" id="coding_ajax_loading">
<embed src='/images/bigdata/loading2.svg' />
</div>-->
<!-- <div class="-layout-v -fit loading-center undis" id="coding_ajax_loading">
<embed src='/images/bigdata/loading2.svg' />
</div>-->
<div class="-layout-v -fit" id="coding_area">
<div class="-flex">
<div class="content-editor-inner">
@ -52,10 +52,12 @@
<div id="codetab_con_2" class="undis -relative"></div>
<div id="current_repository_path" class="undis"><%= file_update_myshixun_game_path(@game, :myshixun_id => @myshixun, :path => @path) %></div>
<script>
$(function(){
LoadingWebssh();
});
var H = 2;
$(function(){
<% if @myshixun.shixun.try(:webssh) %>
LoadingWebssh();
<% end %>
});
var H = 2;
function g_l(o){return document.getElementById(o);}
function HoverLi_new(n){
console.log("n:" + n);
@ -138,10 +140,11 @@
var html = "<iframe src='<%= Redmine::Configuration['webssh'] %>/?Host=" + data.host + "&Port=" + data.port + "&Username=" + data.username + "&Password=" + data.password + "&Gameid=" + data.game_id + "&rows=" + rows + "'" + " style='width:100%;border:0;' scrolling='no' class='game_webssh'></iframe><div class='-brother undis'></div>";
// 本地版
var html_local ="<iframe src='http://127.0.0.1:9527?Host=106.75.96.108&Port=40054&Username=root&Password=123123&Gameid=" +data.game_id + "&rows=" + rows + "'" + " style='width:100%;border:0;' scrolling='no' class='game_webssh'></iframe><div class='-brother undis'></div>";
// $("#LazyLoading").remove();
// $("#LazyLoading").remove();
console.log(html);
$("#codetab_con_"+H).html(html);
$(".game_webssh").css("min-height", h);
// HoverLi_new(2);
// HoverLi_new(2);
}
}

View File

@ -1,4 +1,4 @@
<%= stylesheet_link_tag '/editormd/css/editormd','/editormd/css/editormd.min.css' %>
<%= stylesheet_link_tag '/editormd/css/editormd' %>
<%= javascript_include_tag '/editormd/editormd.min.js' %>
<div class="edu-con-bg01 user_bg_shadow mb20" style="padding:30px 0;">
<div class="ml30 mr30">

View File

@ -55,6 +55,7 @@
-moz-appearance: none;
-ms-appearance: none;
appearance: none;
line-height: normal;
}
.editormd ::-webkit-scrollbar {
height: 10px;