47 lines
1.9 KiB
Plaintext
47 lines
1.9 KiB
Plaintext
<%= javascript_include_tag 'baiduTemplate', 'jquery.datetimepicker.js' %>
|
||
<%= javascript_include_tag "/assets/codemirror/codemirror_python_ruby_c" %>
|
||
<%= stylesheet_link_tag "/assets/codemirror/codemirror" %>
|
||
<div id="content_list" class="CELL _FLEX ROWS">
|
||
<%= render :partial => "game_show" %>
|
||
</div>
|
||
<%= render :partial => 'desc_full_show'%>
|
||
<div class="col-width content-all-fix undis" style="border: none" id="myshixun_extend_repository">
|
||
<%= render :partial => 'myshixun_extend_repository' %>
|
||
</div>
|
||
<%= render :partial => 'extend_test_output' %>
|
||
|
||
<script type="text/javascript" language="javascript">
|
||
// contents_h 是中间左侧内容页的高度,不同浏览器的得到高度不一致
|
||
// contents_top_h 是内容页头部的高度
|
||
// contents_tab_nav是三个tab的高度
|
||
// residue_h contents剩余展示内容的高度
|
||
// 左侧内容
|
||
var contents_h = $("#tpi_contents_info").height();
|
||
var contents_top_h = $("#contents_top").height() + 20;
|
||
var contents_tab_nav = $("#tab_nav").height();
|
||
var residue_h = contents_h - contents_top_h - contents_tab_nav-15;
|
||
$(document).ready(function(){
|
||
$(".tab-info-inner").css("height", residue_h+"px");
|
||
});
|
||
//课程大纲tab
|
||
function g(o){return document.getElementById(o);}
|
||
function HoverLi(n){
|
||
for(var i=1;i<=3;i++){
|
||
g('tab_nav_'+i).className='tab_nomal';
|
||
g('tab_con_'+i).className='undis';
|
||
}
|
||
g('tab_con_'+n).className='dis';
|
||
g('tab_nav_'+n).className='tab_hover';
|
||
if(n == 3){
|
||
// 点击参考答案时,让codemirror展示,如果不refresh的话,第一次展示会隐藏
|
||
myCodeMirror.refresh();
|
||
}
|
||
}
|
||
$("#close_myshixun_tip").click(function(){
|
||
$("#myshixun_tip").hide();
|
||
});
|
||
function close_big_repository(){
|
||
$("#myshixun_extend_repository").hide()
|
||
}
|
||
</script>
|