diff options
| author | 8cy <[email protected]> | 2020-04-23 01:42:13 -0700 |
|---|---|---|
| committer | 8cy <[email protected]> | 2020-04-23 01:42:13 -0700 |
| commit | 9edf1fa9431016cdd4e08c8afaff52cf0909f22b (patch) | |
| tree | 2d35a76b5103f43af419400b4c5492eae84b146b /ima.js | |
| parent | change verify upload button (diff) | |
| download | acantha.ga-admin-legacy-2.tar.xz acantha.ga-admin-legacy-2.zip | |
stage 2legacy-2
Diffstat (limited to 'ima.js')
| -rw-r--r-- | ima.js | 29 |
1 files changed, 29 insertions, 0 deletions
@@ -0,0 +1,29 @@ +function ima(id) +{ + date = new Date; + year = date.getFullYear(); + month = date.getMonth(); + months = new Array('1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'); + d = date.getDate(); + day = date.getDay(); + days = new Array('日', '月', '火', '水', '木', '金', '土'); + h = date.getHours(); + if(h<10) + { + h = "0"+h; + } + m = date.getMinutes(); + if(m<10) + { + m = "0"+m; + } + s = date.getSeconds(); + if(s<10) + { + s = "0"+s; + } + result = '('+days[day]+')・'+year+'年'+months[month]+'月'+d+'日'; + document.getElementById(id).innerHTML = result; + setTimeout('ima("'+id+'");','1000'); + return true; +}
\ No newline at end of file |