Skip to main content

Popup System

This is the runtime path through hover previews, citation annotations, local-page embeds, and mobile popovers. Read Architecture at a Glance first if you want the build/runtime model, or Annotation and Metadata first if you want the data that powers citation previews.

Reading Path

StepPageWhy it matters
1initial.jsDefines the global event system and startup conventions
2extracts.jsCoordinates provider selection, content filling, titles, and type-specific handlers
3popups.jsDesktop hover popup provider
4popovers.jsMobile/click popover provider
5extracts-content.jsContent handlers for local pages, annotations, backlinks, and widgets
AreaStart here
Annotation dataannotations.js
Annotation-specific extractsextracts-annotations.js
Content transclusiontransclude.js
DOM rewritingrewrite.js
Options and user settingsextracts-options.js

Template and Backend Inputs