Front 2.50

This commit is contained in:
pucherot
2021-01-05 12:20:13 +01:00
parent 27cddc00c7
commit c6f11a428c
19 changed files with 4048 additions and 0 deletions

View File

@@ -0,0 +1,39 @@
/* -----------------------------------------------------------------------------
Pi.Alert Common Javascript functions
----------------------------------------------------------------------------- */
// -----------------------------------------------------------------------------
var timerRefreshData = ''
// -----------------------------------------------------------------------------
function translateHTMLcodes (text) {
if (text == null) {
return null;
}
var text2 = text.replace(new RegExp(' ', 'g'), "&nbsp");
text2 = text2.replace(new RegExp('<', 'g'), "&lt");
return text2;
}
// -----------------------------------------------------------------------------
function stopTimerRefreshData () {
try {
clearTimeout (timerRefreshData);
} catch (e) {}
}
// -----------------------------------------------------------------------------
function newTimerRefreshData (refeshFunction) {
timerRefreshData = setTimeout (function() {
refeshFunction();
}, 5000);
}
// -----------------------------------------------------------------------------
function debugTimer () {
document.getElementById ('pageTitle').innerHTML = (new Date().getSeconds());
}