Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 814 Bytes

app_structure.md

File metadata and controls

28 lines (17 loc) · 814 Bytes

Structure of the application

All assets are bundled into a JS files in the dist/ subdirectory:

  • anno-frontend.dev.js: Development build, optimized for debugging.
  • anno-frontend.prod.js: Production build, optimized for performance.

Both install the application factory function into the property displayAnnotations of the window global.

Choose either one and include it as a script tag into the website in which the annotations sidebar app shall run.

This factory function can then be used to initialize an instance of the annotations sidebar app into an existing DOM element.

Currently, only one instance of the app can run per browser frame.

Example

See source code of ../test/html/displayAnnotations.nm.html.