# Common pages Custom MIDAS webpages shared across multiple SuS experiments. This repository is meant to be included as a submodule in the instrument-specific pages repository such as . ## Using common.js in a custom MIDAS UI `pages/common.js` is an ES module that holds the shared front-end logic of the "Mudas" (MIDAS User interface) page. It contains no instrument specific information; that is supplied by the instrument repository. To reuse it in a custom MIDAS UI you need the following things: 1. an ES-module init file that imports `common.js`, supplies the instrument configuration and drives the page, and 2. (optionally) per-tab markup/JS files under a `tabs/` directory. After installing the files live in the MIDAS pages directory (the CMake install prefix), which MIDAS serves and advertises to the browser via the `/ODB/Custom/Path` ODB entry. ### Tabs `instrTabs` is an object keyed by an arbitrary tab name. Each value describes one tab; the full field reference is in the `fill_tabs()` docstring in `common.js`. In short: - `htmlFile` (required) — markup file under `tabs/`. It is pure HTML (no `