annotate mod_muc_log_http/muc_log_http/themes/prosody/doc.html @ 1981:1f815f57fa57

mod_storage_lmdb: Factor out a transaction wrapper
author Kim Alvefur <zash@zash.se>
date Fri, 18 Dec 2015 22:00:00 +0100
parents 7dbde05b48a9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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 }
1343
7dbde05b48a9 all the things: Remove trailing whitespace
Florian Zeitz <florob@babelmonkeys.de>
parents: 348
diff changeset
25
186
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) {
348
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
33 var eles = document.getElementsByClassName(name);
186
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 }
348
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
38
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
39 /* IE compat: */
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
40 onload=function(){
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
41 if (document.getElementsByClassName == undefined) {
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
42 document.getElementsByClassName = function(className)
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
43 {
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
44 var hasClassName = new RegExp("(?:^|\\s)" + className + "(?:$|\\s)");
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
45 var allElements = document.getElementsByTagName("*");
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
46 var results = [];
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
47
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
48 var element;
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
49 for (var i = 0; (element = allElements[i]) != null; i++) {
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
50 var elementClass = element.className;
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
51 if (elementClass && elementClass.indexOf(className) != -1 && hasClassName.test(elementClass))
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
52 results.push(element);
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
53 }
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
54
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
55 return results;
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
56 }
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
57 }
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
58 }
186
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
59 --></script>
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
60 <style type="text/css">
348
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
61 #title {
186
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
62 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
63 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
64 }
348
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
65 #date {
186
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
66 float: right;
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
67 }
348
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
68 #links {
186
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
69 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
70 }
348
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
71 #topic {
186
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
72 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
73 }
348
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
74 #calendar {float: right; margin-left: 10pt;}
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
75 #navigation {text-align: center}
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
76 #roomList {padding-left: 5px; padding-right: 5px; border: 1px solid black;}
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
77
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
78 #main {overflow: auto; border: 2px solid gray; padding: 3px; margin-top: 1em}
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
79
186
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
80 a {color: #6197df; text-decoration: none;}
179
af6143756a9e mod_muc_log_http: started new prosody theme
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
81
186
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
82 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
83 a.log {color: #6197df; text-decoration: none;}
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
84 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
85
348
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
86 .day { font: 12px Verdana; height: 17px; color: #BBBBBB}
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
87 .weekday { font: 10px Verdana; height: 17px; color: #FFFFFF; background-color: #000000; margin-top: 50px;
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
88 padding-left: 5px; padding-right: 5px; padding-top: 3px; text-align: center;}
186
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
89 .timestuff {color: #AAAAAA; text-decoration: none;}
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
90 .muc_join {color: #009900; font-style: italic;}
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
91 .muc_leave {color: #009900; font-style: italic;}
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
92 .muc_statusChange {color: #009900; font-style: italic;}
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
93 .muc_title {color: #BBBBBB; font-size: 32px;}
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
94 .muc_titleChange {color: #009900; font-style: italic;}
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
95 .muc_kick {color: #009900; font-style: italic;}
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
96 .muc_bann {color: #009900; font-style: italic;}
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
97 .muc_msg_nick {color: #0000AA;}
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
98 .muc_msg_me {color: #0000AA;}
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
99 .month_title {font: 10pt Verdana;}
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
100 .year_title {font: bold 16px Verdana;}
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
101 .footer {margin-top: 20pt; text-align: center;}
348
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
102
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
103 label {margin-right: 2em}
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
104 thead {font: 25pt bold; text-align: center}
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
105 tbody {border: solid black 1px;}
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
106 img {border: 0px}
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
107 body {margin-left: 20pt; margin-right: 20pt;}
186
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
108 </style>
348
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
109 <body>
186
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
110 ###BODY_STUFF###
348
03e1dc036a28 mod_muc_log_http: HTML overhaul. Replacing deprecated elements and style-attributes.
Florian Zeitz <florob@babelmonkeys.de>
parents: 186
diff changeset
111 <div class="footer"><a href="http://prosody.im"><img alt="Powered by Prosody" src="http://prosody.im/files/powered_by_prosody_80x30.png"/></a></div>
186
ba3837c565c9 mod_muc_log_http: prosody theme update
Thilo Cestonaro <thilo@cestona.ro>
parents: 179
diff changeset
112 </body>
179
af6143756a9e mod_muc_log_http: started new prosody theme
Thilo Cestonaro <thilo@cestona.ro>
parents:
diff changeset
113 </html>