2017-03-24 22:26:26 +08:00
|
|
|
<%= javascript_include_tag 'baiduTemplate', 'jquery.datetimepicker.js' %>
|
|
|
|
<%= javascript_include_tag "/assets/codemirror/codemirror_python_ruby_c" %>
|
|
|
|
<%= stylesheet_link_tag "/assets/codemirror/codemirror" %>
|
2017-03-17 12:42:58 +08:00
|
|
|
<div id="content_list">
|
|
|
|
<%= render :partial => "game_show" %>
|
2017-03-14 11:25:01 +08:00
|
|
|
</div>
|
2017-03-21 10:28:56 +08:00
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript" language="javascript">
|
|
|
|
var web_h = window.innerHeight;
|
|
|
|
$(document).ready(function(){
|
|
|
|
if($.browser.msie) {
|
|
|
|
$(".content").css("height", web_h - 75 + "px");
|
|
|
|
$(".tab-info-inner").css("height", web_h * 0.55 + "px"); //IE
|
|
|
|
$(".content-editor").css("height", web_h * 0.55 + 100 + "px");
|
|
|
|
}
|
|
|
|
else if($.browser.safari)
|
|
|
|
{
|
|
|
|
$(".content").css("height", web_h - 75 + "px");
|
|
|
|
$(".tab-info-inner").css("height", web_h * 0.55 + "px"); //Safari
|
|
|
|
$(".content-editor").css("height", web_h * 0.55 + 105 + "px");
|
|
|
|
}
|
|
|
|
else if($.browser.mozilla)
|
|
|
|
{
|
|
|
|
$(".content").css("height", web_h - 75 + "px");
|
|
|
|
$(".tab-info-inner").css("height", web_h * 0.48 + 50 + "px"); //Firefox
|
|
|
|
$(".content-editor").css("height", web_h * 0.48 + 155 + "px");
|
|
|
|
}
|
|
|
|
else if($.browser.opera) {
|
|
|
|
$(".content").css("height", web_h - 75 + "px");
|
|
|
|
$(".tab-info-inner").css("height", web_h * 0.55 + "px"); //Opera
|
|
|
|
$(".content-editor").css("height", web_h * 0.55 + 105 + "px");
|
|
|
|
}else if($.browser.chrome){
|
|
|
|
if(window.navigator.userAgent.indexOf("MetaSr") == -1){
|
|
|
|
$(".content").css("height", web_h - 75 + "px");
|
|
|
|
$(".tab-info-inner").css("height", web_h * 0.55 + "px");
|
|
|
|
$(".content-editor").css("height", web_h * 0.55 + 105 + "px");
|
|
|
|
}else{
|
|
|
|
$(".content").css("height", web_h - 75 + "px");
|
|
|
|
$(".tab-info-inner").css("height", web_h * 0.52 + "px");
|
|
|
|
$(".content-editor").css("height", web_h * 0.52 + 105 + "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';
|
|
|
|
}
|
|
|
|
$("#close_myshixun_tip").click(function(){
|
|
|
|
$("#myshixun_tip").hide();
|
|
|
|
});
|
|
|
|
function extend_game_description(){
|
|
|
|
$(".content-all-fix").show();
|
|
|
|
}
|
|
|
|
</script>
|