mod_http_muc_log/static/timestamps.js
author Guus der Kinderen <guus.der.kinderen@gmail.com>
Mon, 03 Jun 2024 12:52:26 +0200
changeset 5921 5c4e102e2563
parent 5122 7bce75e74f86
permissions -rw-r--r--
mod_pubsub_serverinfo: fix bool logic when reading config

/*
* Local timestamps
*/
(function () {
var timeTags = document.getElementsByTagName("time");
var i = 0, tag, date;
while(timeTags[i]) {
tag = timeTags[i++];
if(date = tag.getAttribute("datetime")) {
date = new Date(date);
tag.textContent = date.toLocaleTimeString(navigator.language);
tag.setAttribute("title", date.toString());
}
}
if(document.forms.length>0){
document.forms[0].elements.p.addEventListener("change", function() {
document.forms[0].submit();
});
}
})();