Comparison

mod_muc_log_http/muc_log_http/themes/default/doc.html @ 180:f29be6c49501

mod_muc_log_http: default theme changed to "prosody", removed old default theme
author Thilo Cestonaro <thilo@cestona.ro>
date Thu, 17 Jun 2010 11:22:08 +0200
parent 115:5e657a305c88
comparison
equal deleted inserted replaced
179:af6143756a9e 180:f29be6c49501
2 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" > 2 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
3 <head> 3 <head>
4 <title>muc_log</title> 4 <title>muc_log</title>
5 </head> 5 </head>
6 <script type="text/javascript"><!-- 6 <script type="text/javascript"><!--
7 var utc = true;
8 var timezoneOffset = (parseInt((new Date()).getTimezoneOffset()) * 60) * (-1);
9 function changeTimeDisplay() {
10 var eles = document.getElementsByName("time");
11 utc = !utc;
12 for (var i = 0; i < eles.length; i++) {
13 var tmp = eles[i].id.split(":");
14 var d;
15 if(tmp.length == 3) {
16 if(!utc)
17 tmp[2] = Number(tmp[2]) + timezoneOffset;
18 d = new Date(0, 0, 0, Number(tmp[0]), Number(tmp[1]), Number(tmp[2]));
19 }
20 else {
21 if(!utc)
22 tmp[0] = Number(tmp[0]) + timezoneOffset;
23 d = new Date(0, 0, 0, 0, 0, Number(tmp[0]));
24 }
25
26 eles[i].innerHTML = (d.getHours() <= 9 ? "0" + d.getHours() : d.getHours()) + ":";
27 eles[i].innerHTML += (d.getMinutes() <= 9 ? "0" + d.getMinutes() : d.getMinutes()) + ":";
28 eles[i].innerHTML += (d.getSeconds() <= 9 ? "0" + d.getSeconds() : d.getSeconds());
29 }
30 }
31
7 function showHide(name) { 32 function showHide(name) {
8 var eles = document.getElementsByName(name); 33 var eles = document.getElementsByName(name);
9 for (var i = 0; i < eles.length; i++) { 34 for (var i = 0; i < eles.length; i++) {
10 eles[i].style.display = eles[i].style.display != "none" ? "none" : ""; 35 eles[i].style.display = eles[i].style.display != "none" ? "none" : "";
11 } 36 }