Mercurial > prosody-modules
annotate mod_http_muc_log/static/timestamps.js @ 5511:0860497152af
mod_http_oauth2: Record hash of client_id to allow future verification
RFC 6819 section 5.2.2.2 states that refresh tokens MUST be bound to the
client. In order to do that, we must record something that can
definitely tie the client to the grant. Since the full client_id is so
large (why we have this client_subset function), a hash is stored
instead.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 02 Jun 2023 10:14:16 +0200 |
parents | 7bce75e74f86 |
children |
rev | line source |
---|---|
1582
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
1 /* |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
2 * Local timestamps |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
3 */ |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
4 (function () { |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
5 var timeTags = document.getElementsByTagName("time"); |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
6 var i = 0, tag, date; |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
7 while(timeTags[i]) { |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
8 tag = timeTags[i++]; |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
9 if(date = tag.getAttribute("datetime")) { |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
10 date = new Date(date); |
1915
5e65c91c07c4
mod_http_muc_log: Produce local timestamps in local format
Kim Alvefur <zash@zash.se>
parents:
1751
diff
changeset
|
11 tag.textContent = date.toLocaleTimeString(navigator.language); |
1582
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
12 tag.setAttribute("title", date.toString()); |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
13 } |
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
14 } |
5106
630887a50a7d
mod_http_muc_log: Fix error in js when displaying presence is disabled
Kim Alvefur <zash@zash.se>
parents:
5104
diff
changeset
|
15 if(document.forms.length>0){ |
3485
181561d0aae5
mod_http_muc_log: Add functionality for hiding joins and parts
Kim Alvefur <zash@zash.se>
parents:
2083
diff
changeset
|
16 document.forms[0].elements.p.addEventListener("change", function() { |
181561d0aae5
mod_http_muc_log: Add functionality for hiding joins and parts
Kim Alvefur <zash@zash.se>
parents:
2083
diff
changeset
|
17 document.forms[0].submit(); |
5109
650d04984e0b
mod_http_muc_log: Fix syntax error in timestamp adjusting script
Kim Alvefur <zash@zash.se>
parents:
5106
diff
changeset
|
18 }); |
5106
630887a50a7d
mod_http_muc_log: Fix error in js when displaying presence is disabled
Kim Alvefur <zash@zash.se>
parents:
5104
diff
changeset
|
19 } |
1582
8e282eb0c70c
mod_http_muc_log: Split out template into a configurable file.
Kim Alvefur <zash@zash.se>
parents:
diff
changeset
|
20 })(); |
5104
d4b0a995e5e3
mod_http_muc_log: Move CSS and JS out of template
Kim Alvefur <zash@zash.se>
parents:
4990
diff
changeset
|
21 |