second commit
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
/*
|
||||
** tools.js
|
||||
** GNU GENERAL PUBLIC LICENSE: (c) DD miraceti.net
|
||||
*/
|
||||
let s = function(sel) { return document.querySelector(sel); };
|
||||
let sId = function(sel) { return document.getElementById(sel); };
|
||||
let isJsonObject = function(value) { return value !== undefined && value !== null && typeof value === 'object'; }
|
||||
let to_date = function(unixtimestamp) { return new Date(parseInt(unixtimestamp)*1000).toLocaleString(); }
|
||||
Reference in New Issue
Block a user