comparison mod_muc_log_http/muc_log_http/themes/prosody/doc.html @ 186:ba3837c565c9

mod_muc_log_http: prosody theme update
author Thilo Cestonaro <thilo@cestona.ro>
date Tue, 22 Jun 2010 11:29:48 +0200
parents af6143756a9e
children 03e1dc036a28
comparison
equal deleted inserted replaced
185:3bce55e453b1 186:ba3837c565c9
1 <html> 1 <html>
2 <head> 2 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" >
3 <meta content="text/html; charset=ISO-8859-1" http-equiv="content-type"> 3 <head>
4 <title>muc_log</title>
5 </head>
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 }
4 31
5 <title>###TITLE###</title> 32 function showHide(name) {
33 var eles = document.getElementsByName(name);
34 for (var i = 0; i < eles.length; i++) {
35 eles[i].style.display = eles[i].style.display != "none" ? "none" : "";
36 }
37 }
38 --></script>
39 <style type="text/css">
40 <!--
41 .title {
42 border-bottom: #f29b00 solid 3pt; padding-bottom: 3px; width: 100%;
43 color: #000000; font-size: 24px; font-weight: bold; font-family: sans-serif; letter-spacing: 3px; text-decoration: none; margin-bottom: 3pt;
44 }
45 .title .date {
46 float: right;
47 }
48 .title .links {
49 font-size: 9px; font-family: Verdana; letter-spacing: 1px;
50 }
51 .topic {
52 color: #000000; font-size: 18px; font-family: sans-serif;
53 }
54 .calendar {float: right; margin-left: 10pt;}
55 a {color: #6197df; text-decoration: none;}
6 56
7 <style type="text/css"> 57 a.nav {color: #6197df; font-family: monospace; letter-spacing: 7px; font-size: 24px; text-decoration: none;}
8 <!-- 58 a.log {color: #6197df; text-decoration: none;}
9 body, html {background-color: #FFFFFF;} 59 a.log_today {color: #f29b00; text-decoration: none;}
10 div.border {margin-left: 20pt; margin-right: 20pt;}
11 div.title {border-bottom: #f29b00 solid 3pt; padding-bottom: 3px; width: 100%;}
12 div.title {color: #000000; font-size: 24px; font-weight: bold; font-family: sans-serif; letter-spacing: 3px; text-decoration: none; margin-bottom: 3pt; }
13
14 div.title .date {float:right; }
15
16 div.footer {margin-top: 20pt; text-align: center;}
17
18 .clear {clear: both;}
19 60
20 span.room_topic {color: #000000; font-size: 18px; font-family: sans-serif;} 61 .day { font: 12px Verdana; height: 17px; }
21 span.room_jid {text-decoration: none;} 62 .weekday { font: 10px Verdana; height: 17px; color: #FFFFFF; background-color: #000000; }
22 span.calendar {float: right; margin-left: 10pt;} 63 .timestuff {color: #AAAAAA; text-decoration: none;}
23 span.join_links {font-size: 9px; font-family: Verdana; letter-spacing: 1px;} 64 .muc_join {color: #009900; font-style: italic;}
24 span.settings {} 65 .muc_leave {color: #009900; font-style: italic;}
66 .muc_statusChange {color: #009900; font-style: italic;}
67 .muc_title {color: #BBBBBB; font-size: 32px;}
68 .muc_titleChange {color: #009900; font-style: italic;}
69 .muc_kick {color: #009900; font-style: italic;}
70 .muc_bann {color: #009900; font-style: italic;}
71 .muc_msg_nick {color: #0000AA;}
72 .muc_msg_me {color: #0000AA;}
73 .join_link {font-height: 9px;}
74 .month_title {font: 10pt Verdana;}
75 .year_title {font: bold 16px Verdana;}
76 .footer {margin-top: 20pt; text-align: center;}
77 //-->
78 </style>
79 <body style="margin-left: 20pt; margin-right: 20pt;">
80 ###BODY_STUFF###
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>
82 </body>
83 <script><!--
84 window.captureEvents(Event.RESIZE | Event.LOAD);
85 window.onresize = resize;
86 window.onload = load;
87 function load(e) {
88 resize(e);
89 }
25 90
26 div.logs {} 91 function resize(e) {
27 div.muc_settings {} 92 var ele = document.getElementById("main");
93 ele.style.height = window.innerHeight - ele.offsetTop - 100;
94
95 var yearDivs = document.getElemetsByName("yearDiv");
96 if(yearDivs) {
97 for each (var year in yearDivs) {
98 year.style.width = window.innerWidth - year.style.padding;
99 }
100 }
101 }
28 102
29 a {color: #6197df; text-decoration: none;} 103 --></script>
30
31 a.nav {color: #6197df; font-family: monospace; letter-spacing: 7px; font-size: 24px; text-decoration: none;}
32 a.log {color: #6197df; text-decoration: none;}
33 a.log_today {color: #f29b00; text-decoration: none;}
34
35 .day {color: #DDDDDD; font: 12px Verdana; height: 17px; text-align: center; valign: middle;}
36 .weekday {font: 10px Verdana; height: 17px; color: #FFFFFF; background-color: #000000;}
37 //-->
38 </style>
39 </head>
40
41 <body>
42 <div class="border">
43 ###BODY_STUFF###
44 </div><!-- /border -->
45 </body>
46 </html> 104 </html>
47