|
|
|
@ -35,7 +35,7 @@ $(document).ready(function () {
|
|
|
|
|
$("#RSide").css("min-height",$("#LSide").height()-30);
|
|
|
|
|
});
|
|
|
|
|
//课程作业结束时间倒计时
|
|
|
|
|
function ShowCountDown(year,month,day,divname)
|
|
|
|
|
function show_bid_dead_line(year,month,day,divname)
|
|
|
|
|
{
|
|
|
|
|
var now = new Date();
|
|
|
|
|
var endDate = new Date(year, month-1, day);
|
|
|
|
@ -45,11 +45,13 @@ function ShowCountDown(year,month,day,divname)
|
|
|
|
|
var hour=Math.floor((leftsecond-day1*24*60*60)/3600);
|
|
|
|
|
var minute=Math.floor((leftsecond-day1*24*60*60-hour*3600)/60);
|
|
|
|
|
var second=Math.floor(leftsecond-day1*24*60*60-hour*3600-minute*60);
|
|
|
|
|
$("#"+divname).html("<span style='color: #acaeb1;'>作业提交还剩 :</span> <span style='color: red;'>"
|
|
|
|
|
+day1+" </span><span style='color: #acaeb1;'>天</span><span style='color: red;'> "
|
|
|
|
|
+hour+" </span><span style='color: #acaeb1;'>时</span><span style='color: red;'> "
|
|
|
|
|
+minute+" </span><span style='color: #acaeb1;'>分</span><span style='color: red;'> "
|
|
|
|
|
+second+" </span><span style='color: #acaeb1;'>秒</span>");
|
|
|
|
|
$("#"+divname).html("<form name='formnow' class='fr'>"
|
|
|
|
|
+ "<input class='c_orange' type='text' style='border:0;' size='1' value='"+day1+"' > 天"
|
|
|
|
|
+ "<input class='c_orange' type='text' style='border:0;' size='1' value='"+hour+"' > 小时"
|
|
|
|
|
+ "<input class='c_orange' type='text' style='border:0;' size='1' value='"+minute+"' > 分"
|
|
|
|
|
+ "<input class='c_orange' type='text' style='border:0;' size='1' value='"+second+"' > 秒"
|
|
|
|
|
+ "</form>"
|
|
|
|
|
+ "<p class='fr'>作业提交还剩:</p>");
|
|
|
|
|
}
|
|
|
|
|
//验证新建作业的名字
|
|
|
|
|
function regex_bid_name()
|
|
|
|
|