mirror of
https://github.com/TheGreyDiamond/Enlight.git
synced 2026-11-26 12:10:45 +01:00
Network and clock feature added
This commit is contained in:
1 parent
32c80d6dd0
commit
28c98856c0
7 files changed
+290
-43
No files matched your search
@@ -0,0 +1,23 @@
|
||||
function encode_html(rawStr) {
|
||||
var encodedStr = rawStr.replace(/[\u00A0-\u9999<>\&]/g, function (i) {
|
||||
return "&#" + i.charCodeAt(0) + ";";
|
||||
});
|
||||
|
||||
return encodedStr;
|
||||
}
|
||||
|
||||
function does_list_contain(list, needle) {
|
||||
if (list.indexOf(needle) >= 0) {
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
function updateTime(k) {
|
||||
if (k < 10) {
|
||||
return "0" + k;
|
||||
} else {
|
||||
return k;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user