|
- $(document).ready(function(){
- var time = formatDateTimes();
- setInterval(function(){
- time = formatDateTimes();
- $('.headerTime div').eq(0).html(time.h + ' : ' + time.min + ' : ' + time.s).end().eq(1).html(time.y + '-' + time.m + '-' + time.d);
- }, 1000)
-
-
-
-
- })
-
- // 计时器
- function formatDateTimes() {
- var date = new Date();
- var y = date.getFullYear();
- var m = '0' + (date.getMonth() + 1);
- var d = '0' + date.getDate();
- var h = '0' + date.getHours();
- var min = '0' + date.getMinutes();
- var s = '0' + date.getSeconds();
-
- return {
- y: y,
- m: m.substr(m.length - 2, 2),
- d: d.substr(d.length - 2, 2),
- h: h.substr(h.length - 2, 2),
- min: min.substr(min.length - 2, 2),
- s: s.substr(s.length - 2, 2)
- }
- };
- function openlearunframe(F_ModuleId)
- {
- var guide = top.learun.clientdata.get(['modulesMap', F_ModuleId]);
- if (guide) {
- top.learun.frameTab.open({ F_ModuleId: guide.F_ModuleId, F_Icon: guide.F_Icon, F_FullName: guide.F_FullName, F_UrlAddress: guide.F_UrlAddress }, false);
- }
- }
|