.. _javascript-library: Javascript Library ==================================================================================================== We provide a simple roadmap of what happens within `dqr.js` and how the html page is actually rendered. This can be thought of in 4 steps: 1) load in the JSON config file 2) build the HTML structure specified by the config file 3) fill in the HTML content based on the presence/absence of JSON reports. 4) dynamically render the HTML based on user interactions We present the basic components of this library below, roughly divided by the delegation scheme inherent in the workflow. This is not exact, though, and some functions are used in multiple places. Load the JSON config file ---------------------------------------------------------------------------------------------------- * `load_config`: loads in the JSON config file based on a hard-coded relative path (`dqr.json`) Build the HTML structure ---------------------------------------------------------------------------------------------------- * `build_html`: fill in the HTML document based on the schema specified in the JSON config. Creates new elements if needed and stores references for later lookup. * `init_lookup`: consturct the look-up structure, which is then filled out with references for later use. * `update_title`: update the page's