annotate 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
parents 5e657a305c88
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
105
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
1 <html>
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
2 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
3 <head>
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
4 <title>muc_log</title>
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
5 </head>
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
6 <script type="text/javascript"><!--
180
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
7 var utc = true;
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
8 var timezoneOffset = (parseInt((new Date()).getTimezoneOffset()) * 60) * (-1);
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
9 function changeTimeDisplay() {
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
10 var eles = document.getElementsByName("time");
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
11 utc = !utc;
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
12 for (var i = 0; i < eles.length; i++) {
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
13 var tmp = eles[i].id.split(":");
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
14 var d;
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
15 if(tmp.length == 3) {
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
16 if(!utc)
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
17 tmp[2] = Number(tmp[2]) + timezoneOffset;
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
18 d = new Date(0, 0, 0, Number(tmp[0]), Number(tmp[1]), Number(tmp[2]));
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
19 }
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
20 else {
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
21 if(!utc)
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
22 tmp[0] = Number(tmp[0]) + timezoneOffset;
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
23 d = new Date(0, 0, 0, 0, 0, Number(tmp[0]));
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
24 }
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
25
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
26 eles[i].innerHTML = (d.getHours() <= 9 ? "0" + d.getHours() : d.getHours()) + ":";
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
27 eles[i].innerHTML += (d.getMinutes() <= 9 ? "0" + d.getMinutes() : d.getMinutes()) + ":";
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
28 eles[i].innerHTML += (d.getSeconds() <= 9 ? "0" + d.getSeconds() : d.getSeconds());
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
29 }
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
30 }
f29be6c49501 mod_muc_log_http: default theme changed to "prosody", removed old default theme
Thilo Cestonaro <thilo@cestona.ro>
parents: 115
diff changeset
31
105
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
32 function showHide(name) {
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
33 var eles = document.getElementsByName(name);
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
34 for (var i = 0; i < eles.length; i++) {
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
35 eles[i].style.display = eles[i].style.display != "none" ? "none" : "";
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
36 }
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
37 }
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
38 --></script>
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
39 <style type="text/css">
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
40 <!--
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
41 .day { font: 12px Verdana; height: 17px; }
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
42 .weekday { font: 10px Verdana; height: 17px; color: #FFFFFF; background-color: #000000; }
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
43 .timestuff {color: #AAAAAA; text-decoration: none;}
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
44 .muc_join {color: #009900; font-style: italic;}
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
45 .muc_leave {color: #009900; font-style: italic;}
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
46 .muc_statusChange {color: #009900; font-style: italic;}
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
47 .muc_title {color: #BBBBBB; font-size: 32px;}
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
48 .muc_titleChange {color: #009900; font-style: italic;}
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
49 .muc_kick {color: #009900; font-style: italic;}
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
50 .muc_bann {color: #009900; font-style: italic;}
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
51 .muc_msg_nick {color: #0000AA;}
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
52 .muc_msg_me {color: #0000AA;}
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
53 .join_link {font-height: 9px;}
115
5e657a305c88 mod_muc_log_http: Replace remaining <font> tags with CSS equivalents
Matthew Wild <mwild1@gmail.com>
parents: 105
diff changeset
54 .month_title {font: 10pt Verdana;}
5e657a305c88 mod_muc_log_http: Replace remaining <font> tags with CSS equivalents
Matthew Wild <mwild1@gmail.com>
parents: 105
diff changeset
55 .year_title {font: bold 16px Verdana;}
105
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
56 //-->
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
57 </style>
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
58 <body>
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
59 ###BODY_STUFF###
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
60 </body>
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
61 <script><!--
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
62 window.captureEvents(Event.RESIZE | Event.LOAD);
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
63 window.onresize = resize;
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
64 window.onload = load;
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
65 function load(e) {
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
66 resize(e);
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
67 }
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
68
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
69 function resize(e) {
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
70 var ele = document.getElementById("main");
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
71 ele.style.height = window.innerHeight - ele.offsetTop - 25;
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
72
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
73 var yearDivs = document.getElemetsByName("yearDiv");
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
74 if(yearDivs) {
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
75 for each (var year in yearDivs) {
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
76 year.style.width = window.innerWidth - year.style.padding;
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
77 }
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
78 }
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
79 }
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
80
cef943f0a551 mod_muc_log_http: themified ...
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
81 --></script>
115
5e657a305c88 mod_muc_log_http: Replace remaining <font> tags with CSS equivalents
Matthew Wild <mwild1@gmail.com>
parents: 105
diff changeset
82 </html>