/* ============================================================ carino-navbar.js — the shared Carino navbar, self-injecting. ------------------------------------------------------------ Drop this file into any Carino Systems project and include it: Attributes on the script tag: data-app the product's name, shown beside "Carino" (required) data-name a display name when it differs from data-app (optional) data-repo the GitHub repository (falls back to data-app) data-license the repo's licence as an SPDX id (AGPL-3.0, MIT, …) data-mark the page's mark, for a page WITHOUT carino-theme.js. With carino-theme.js the mark is its theme switch, which it inserts in the same place; this file then draws none. data-version the version shown at the foot of the About tab. A page may also set it at run time: CarinoNav.version('1.3.1'). Without one the version is 0.0.YYYYMMDD, the date the page was last modified (its Last-Modified header). data-changelog a link to the changelog, shown under the version data-immersive see "Immersive mode" below The bar, left to right: [mark] Carino Product 12:04 LOCAL [app controls] [status] [⋯] [About] "Carino" goes to the hub (carino.systems); the product name links to the app's own root, so clicking it reloads the site. Below 360px the word "Carino" is dropped: the mark is already the gold C. It injects its own (scoped) styles + the markup. The live CLOCK (Local/UTC/Epoch/TAI/.beats + click-to-cycle) lives in the companion file carino-clock.js, which this script loads from the SAME site, so there is no external/CDN dependency and each site works standalone/ offline. To change it, edit the canonical copy and run propagate.sh. All styles are scoped under #carinoNav so nothing leaks into the app. The bar stays on screen: it sticks to the top of the page at every width, so anything else a page makes sticky sits under it, at top: var(--nav-h) (carino-ui.css), never at top: 0. Right-cluster order is fixed by CSS `order`, not by DOM position, because several scripts insert into it: 1 the app's own controls (.cn-actions) 2 status (carino-diag.js, or an app's own toggle) 5 "⋯" (only while something is folded into it) 6 About (never folds) About. The one button on the right that every site has. It opens a window with tabs down its side (across the top on a phone): About the product's name, its one-line description (the baseline head's carino:line), the page's mark drawn large, then what the page must say: