Mercurial > prosody-modules
annotate mod_muc_log_http/muc_log_http/themes/prosody/doc.html @ 338:6560fd0b77f5
mod_auth_dovecot: One mechanism per MECH command.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sun, 13 Feb 2011 23:29:05 +0100 |
parents | ba3837c565c9 |
children | 03e1dc036a28 |
rev | line source |
---|---|
179
af6143756a9e
mod_muc_log_http: started new prosody theme
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff
changeset
|
1 <html> |
186
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
2 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" > |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
3 <head> |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
4 <title>muc_log</title> |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
5 </head> |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
6 <script type="text/javascript"><!-- |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
7 var utc = true; |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
8 var timezoneOffset = (parseInt((new Date()).getTimezoneOffset()) * 60) * (-1); |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
9 function changeTimeDisplay() { |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
10 var eles = document.getElementsByName("time"); |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
11 utc = !utc; |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
12 for (var i = 0; i < eles.length; i++) { |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
13 var tmp = eles[i].id.split(":"); |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
14 var d; |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
15 if(tmp.length == 3) { |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
16 if(!utc) |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
17 tmp[2] = Number(tmp[2]) + timezoneOffset; |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
18 d = new Date(0, 0, 0, Number(tmp[0]), Number(tmp[1]), Number(tmp[2])); |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
19 } |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
20 else { |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
21 if(!utc) |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
22 tmp[0] = Number(tmp[0]) + timezoneOffset; |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
23 d = new Date(0, 0, 0, 0, 0, Number(tmp[0])); |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
24 } |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
25 |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
26 eles[i].innerHTML = (d.getHours() <= 9 ? "0" + d.getHours() : d.getHours()) + ":"; |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
27 eles[i].innerHTML += (d.getMinutes() <= 9 ? "0" + d.getMinutes() : d.getMinutes()) + ":"; |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
28 eles[i].innerHTML += (d.getSeconds() <= 9 ? "0" + d.getSeconds() : d.getSeconds()); |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
29 } |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
30 } |
179
af6143756a9e
mod_muc_log_http: started new prosody theme
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff
changeset
|
31 |
186
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
32 function showHide(name) { |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
33 var eles = document.getElementsByName(name); |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
34 for (var i = 0; i < eles.length; i++) { |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
35 eles[i].style.display = eles[i].style.display != "none" ? "none" : ""; |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
36 } |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
37 } |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
38 --></script> |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
39 <style type="text/css"> |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
40 <!-- |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
41 .title { |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
42 border-bottom: #f29b00 solid 3pt; padding-bottom: 3px; width: 100%; |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
43 color: #000000; font-size: 24px; font-weight: bold; font-family: sans-serif; letter-spacing: 3px; text-decoration: none; margin-bottom: 3pt; |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
44 } |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
45 .title .date { |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
46 float: right; |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
47 } |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
48 .title .links { |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
49 font-size: 9px; font-family: Verdana; letter-spacing: 1px; |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
50 } |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
51 .topic { |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
52 color: #000000; font-size: 18px; font-family: sans-serif; |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
53 } |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
54 .calendar {float: right; margin-left: 10pt;} |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
55 a {color: #6197df; text-decoration: none;} |
179
af6143756a9e
mod_muc_log_http: started new prosody theme
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff
changeset
|
56 |
186
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
57 a.nav {color: #6197df; font-family: monospace; letter-spacing: 7px; font-size: 24px; text-decoration: none;} |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
58 a.log {color: #6197df; text-decoration: none;} |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
59 a.log_today {color: #f29b00; text-decoration: none;} |
179
af6143756a9e
mod_muc_log_http: started new prosody theme
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff
changeset
|
60 |
186
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
61 .day { font: 12px Verdana; height: 17px; } |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
62 .weekday { font: 10px Verdana; height: 17px; color: #FFFFFF; background-color: #000000; } |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
63 .timestuff {color: #AAAAAA; text-decoration: none;} |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
64 .muc_join {color: #009900; font-style: italic;} |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
65 .muc_leave {color: #009900; font-style: italic;} |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
66 .muc_statusChange {color: #009900; font-style: italic;} |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
67 .muc_title {color: #BBBBBB; font-size: 32px;} |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
68 .muc_titleChange {color: #009900; font-style: italic;} |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
69 .muc_kick {color: #009900; font-style: italic;} |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
70 .muc_bann {color: #009900; font-style: italic;} |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
71 .muc_msg_nick {color: #0000AA;} |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
72 .muc_msg_me {color: #0000AA;} |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
73 .join_link {font-height: 9px;} |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
74 .month_title {font: 10pt Verdana;} |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
75 .year_title {font: bold 16px Verdana;} |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
76 .footer {margin-top: 20pt; text-align: center;} |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
77 //--> |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
78 </style> |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
79 <body style="margin-left: 20pt; margin-right: 20pt;"> |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
80 ###BODY_STUFF### |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
81 <div class="footer"><a href="http://prosody.im"><img alt="Powered by Prosody" src="http://prosody.im/files/powered_by_prosody_80x30.png" border="0"></a></div> |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
82 </body> |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
83 <script><!-- |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
84 window.captureEvents(Event.RESIZE | Event.LOAD); |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
85 window.onresize = resize; |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
86 window.onload = load; |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
87 function load(e) { |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
88 resize(e); |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
89 } |
179
af6143756a9e
mod_muc_log_http: started new prosody theme
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff
changeset
|
90 |
186
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
91 function resize(e) { |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
92 var ele = document.getElementById("main"); |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
93 ele.style.height = window.innerHeight - ele.offsetTop - 100; |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
94 |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
95 var yearDivs = document.getElemetsByName("yearDiv"); |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
96 if(yearDivs) { |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
97 for each (var year in yearDivs) { |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
98 year.style.width = window.innerWidth - year.style.padding; |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
99 } |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
100 } |
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
101 } |
179
af6143756a9e
mod_muc_log_http: started new prosody theme
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff
changeset
|
102 |
186
ba3837c565c9
mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents:
179
diff
changeset
|
103 --></script> |
179
af6143756a9e
mod_muc_log_http: started new prosody theme
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff
changeset
|
104 </html> |