| applyTo | wled00/data/** |
|---|
- Indent HTML and JavaScript with tabs
- Indent CSS with tabs
- camelCase for functions and variables:
gId(),selectedFx,currentPreset - Abbreviated helpers are common:
dfordocument,gId()forgetElementById()
index.htm— main interfaceindex.js— functions that manage / update the main interfacesettings*.htm— configuration pages*.css— stylesheets (inlined during build)common.js— helper functions
Reuse shared helpers from common.js whenever possible instead of duplicating utilities in page-local scripts.
The WLED web UI targets commonly used browser/platform combinations: desktop browsers on Mac and PC (primarily pointer-driven, touch rare), and touch-only devices (phones, tablets). If possible, keep the UI accessible to users with disabilities. Full keyboard operability is not a strict requirement - adding keyboard shortcuts should be a case-by-case decision.
Files in this directory are processed by tools/cdata.js into generated headers
(wled00/html_*.h, wled00/js_*.h).
Run npm run build after any change. Never edit generated headers directly.