選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。
 
 
 
 
 
 

38 行
1.0 KiB

  1. $(document).ready(function(){
  2. var time = formatDateTimes();
  3. setInterval(function(){
  4. time = formatDateTimes();
  5. $('.headerTime div').eq(0).html(time.h + ' : ' + time.min + ' : ' + time.s).end().eq(1).html(time.y + '-' + time.m + '-' + time.d);
  6. }, 1000)
  7. })
  8. // 计时器
  9. function formatDateTimes() {
  10. var date = new Date();
  11. var y = date.getFullYear();
  12. var m = '0' + (date.getMonth() + 1);
  13. var d = '0' + date.getDate();
  14. var h = '0' + date.getHours();
  15. var min = '0' + date.getMinutes();
  16. var s = '0' + date.getSeconds();
  17. return {
  18. y: y,
  19. m: m.substr(m.length - 2, 2),
  20. d: d.substr(d.length - 2, 2),
  21. h: h.substr(h.length - 2, 2),
  22. min: min.substr(min.length - 2, 2),
  23. s: s.substr(s.length - 2, 2)
  24. }
  25. };
  26. function openlearunframe(F_ModuleId)
  27. {
  28. var guide = top.learun.clientdata.get(['modulesMap', F_ModuleId]);
  29. if (guide) {
  30. 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);
  31. }
  32. }