ZDDC/transmittal/js/dom.js
ZDDC ea385b5366 Initial commit
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.
2026-04-27 11:05:47 -05:00

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);