实训任务
This commit is contained in:
parent
5629b26378
commit
966ec377a4
|
@ -10,7 +10,7 @@
|
||||||
<h3 class="fl">第<%= @game.stage %>关:<%= @game.subject %></h3>
|
<h3 class="fl">第<%= @game.stage %>关:<%= @game.subject %></h3>
|
||||||
<div class="fr mt5">
|
<div class="fr mt5">
|
||||||
<a href="#"><i class="fa fa-minus font-14 mr10 fl color-grey"></i></a>
|
<a href="#"><i class="fa fa-minus font-14 mr10 fl color-grey"></i></a>
|
||||||
<a href="javascript:void(0);" onclick="extend_game_description();"><i class="fa fa-expand font-14 fl color-grey"></i></a>
|
<a href="javascript:void(0);" onclick="extend_game_description();"><i class="fa fa-expand font-14 fl color-grey"></i></a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab_content clearfix">
|
<div class="tab_content clearfix">
|
||||||
|
@ -40,8 +40,8 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div id="code_content">
|
<div id="code_content">
|
||||||
<%= render :partial => 'repository' %>
|
<%= render :partial => 'repository' %>
|
||||||
</div>
|
</div>
|
||||||
<%= render :partial => 'exec_results' %>
|
<%= render :partial => 'exec_results' %>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
<div class="autoscroll">
|
<div class="autoscroll_new">
|
||||||
<table class="list entries mt5" id="browser" style="table-layout: fixed;">
|
<table class="list entries mt5" id="browser" style="table-layout: fixed;">
|
||||||
<tbody style="line-height: 1.9;">
|
<tbody style="line-height: 1.9;">
|
||||||
<% @entries.each do |entry| %>
|
<% @entries.each do |entry| %>
|
||||||
|
@ -20,10 +20,29 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
// Load last commit log for each file in tree
|
var web_h = window.innerHeight;
|
||||||
$('#tree-slider').waitForImages(function() {
|
$(document).ready(function(){
|
||||||
ajaxGet('#{@logs_path}');
|
if($.browser.msie) {
|
||||||
|
$(".autoscroll_new").css("height", web_h * 0.61 + "px");
|
||||||
|
}
|
||||||
|
else if($.browser.safari)
|
||||||
|
{
|
||||||
|
$(".autoscroll_new").css("height", web_h * 0.61 + "px");
|
||||||
|
}
|
||||||
|
else if($.browser.mozilla)
|
||||||
|
{
|
||||||
|
$(".autoscroll_new").css("height", web_h * 0.595 + "px");
|
||||||
|
}
|
||||||
|
else if($.browser.opera) {
|
||||||
|
$(".autoscroll_new").css("height", web_h * 0.61 + "px");
|
||||||
|
}else if($.browser.chrome){
|
||||||
|
if(window.navigator.userAgent.indexOf("MetaSr") == -1){
|
||||||
|
$(".autoscroll_new").css("height", web_h * 0.61 + "px");
|
||||||
|
}else{
|
||||||
|
$(".autoscroll_new").css("height", web_h * 0.58 + "px");
|
||||||
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
|
@ -164,3 +164,5 @@ input.knowledge_frame{height:30px;line-height:30px;border:none;background:#f3f5f
|
||||||
.content-all-fix .tab-info-inner{ overflow:auto; margin:15px 0 0px 15px; }
|
.content-all-fix .tab-info-inner{ overflow:auto; margin:15px 0 0px 15px; }
|
||||||
.content-half-fix{ min-width:450px; margin:0; position: absolute; top:15px; z-index:99;}
|
.content-half-fix{ min-width:450px; margin:0; position: absolute; top:15px; z-index:99;}
|
||||||
.content-half-fix02{margin:0; position: absolute; top:65px; z-index:99; right:45px;}
|
.content-half-fix02{margin:0; position: absolute; top:65px; z-index:99; right:45px;}
|
||||||
|
|
||||||
|
.autoscroll_new{ overflow:auto; }
|
Loading…
Reference in New Issue