* Added setCustomTopBodyElement allowing to define custom HTML to be added at the top of the "<body>" tag.
* Change custom top body element to 'header'
This will make more sense once a footer is added. No functional changes.
* Make custom header concat conditional
Matching the _bodyClass comparison above
* Create getHTTPEnd function
* Add custom body footer functionality
* Fix <small> close tag on update page
* Add missing HTTP ends to exit and close
* Remove 'immediately' from header/footer desc
It's not immediate, the 'wrap' div is added before/after.
---------
Co-authored-by: Andreas Breitschopp <a-breitschopp@ab-tools.com>
* Add body classes argument
Note that the additional function argument for getHTTPHead() includes a default argument for backwards compatibility with the API.
* Add page-specific classes
Allows easy styling of each page
* Change root CSS class to 'home'
Trying to avoid confusion between the class for the root level and the CSS ":root" pseudo-class
* Use conditional body class spacing
Avoids an extra space if a body class is set, but an empty string is passed to the function
* refactor strings, split out consts breaking!
* move consts out of strings file BREAKING
You will have to remove the constants from your strings files and add the new include instead, a simple diff should obviously show the changes
* adds WM_STRINGS_FILE for env overrides
* Revert "move consts out of strings file BREAKING"
This reverts commit bb9f092413153825d8e7acde1dcc1489e840df1e.
* Create wm_strings_en.h
* final clean up of strings_en.h, legacy
* comments
Turning on wifi scan preload and async scanning, with hardcoded cachetime of 30seconds. Should make wifi page load faster, and make interface seem smoother. Will have to test with various enviroments and on S2/x3 chips
* Change Stream to Print 1/2
Update WifiManager to use base class Print instead of Stream.
I debug into a custom buffer, and that buffer implements Print, but not Stream.
* Change Stream to Print 2/2
Update WifiManager to use base class Print instead of Stream.
I debug into a custom buffer, and that buffer implements Print, but not Stream.