实训任务

This commit is contained in:
daiao 2017-03-21 12:35:55 +08:00
parent 5629b26378
commit 966ec377a4
3 changed files with 30 additions and 9 deletions

View File

@ -10,7 +10,7 @@
<h3 class="fl">第<%= @game.stage %>关:<%= @game.subject %></h3>
<div class="fr mt5">
<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 class="tab_content clearfix">
@ -40,8 +40,8 @@
</div>
</div>
<div id="code_content">
<%= render :partial => 'repository' %>
</div>
<%= render :partial => 'repository' %>
</div>
<%= render :partial => 'exec_results' %>
</div>
</div>

View File

@ -1,4 +1,4 @@
<div class="autoscroll">
<div class="autoscroll_new">
<table class="list entries mt5" id="browser" style="table-layout: fixed;">
<tbody style="line-height: 1.9;">
<% @entries.each do |entry| %>
@ -20,10 +20,29 @@
</tbody>
</table>
</div>
<script>
// Load last commit log for each file in tree
$('#tree-slider').waitForImages(function() {
ajaxGet('#{@logs_path}');
var web_h = window.innerHeight;
$(document).ready(function(){
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>

View File

@ -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-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;}
.autoscroll_new{ overflow:auto; }