Files
2026-03-11 23:03:02 +01:00

9 lines
427 B
JavaScript

/*
** 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(); }