ZDDC — Zero Day Document Control. A file-naming convention plus five single-file HTML tools (archive, transmittal, classifier, mdedit, landing) and an optional Go HTTP server (zddc-server) with ACL and a virtual archive index. Self-contained, offline-capable, dependency-free. See README.md for an overview, AGENTS.md and ARCHITECTURE.md for the build/release/architecture detail, bootstrap/README.md for the two-level deployment install pattern, and zddc/README.md for the HTTP server.
20 lines
453 B
JavaScript
20 lines
453 B
JavaScript
(function (app) {
|
|
'use strict';
|
|
|
|
const dom = app.dom = app.dom || {};
|
|
|
|
dom.qs = function (selector) {
|
|
return document.querySelector(selector);
|
|
};
|
|
|
|
dom.qsa = function (selector) {
|
|
return Array.from(document.querySelectorAll(selector));
|
|
};
|
|
|
|
dom.show = function (element, shouldShow) {
|
|
if (!element) {
|
|
return;
|
|
}
|
|
element.hidden = !shouldShow;
|
|
};
|
|
})(window.transmittalApp);
|