Abstractstring is an internal name for content displayed on this page, content is the associated content to the string
the id with wich the page div can be found in the dom
if initialization method was called this value changes to true
when the page is ready to show this value changes to true, is set by Page.initialize
when the page was added to the dom and all elements have their event listeners the page is set up and this value is true. Is set by Page.setup
is a reference to the element where the page content is displayed
is set to true if Page.afterPyodideLoaded was executed. Is used to determine if a page missed the first call by PageManager after pyodide was loaded
if the setup method was called this value changes to true
call addEventListeners on each Content that is registered in Page.content
Execute after custom code in initialize method of derived class
execute code that depends on Pyodide instance fully loaded
Execute after custom code in setup method of derived class
Execute before custom code in initialize method of derived class
returns true if the init can continue false otherwise
Execute before custom code in setup method of derived class
returns true if the setup can continue false otherwise
Checks the step0Data for the error property. If it is true, an error message is shown and the page is changed to the last page in the history.
1 if there was an error, otherwise 0
hides the page container by adding style=none
Page standard implementation of initialize, should be overwritten in child
If called forces the page manager to recall initialize on next page load, effects depend on implementation of Page.initialize
change the opacity of this page
{number} float value between 0 and 1
Page standard implementation of setup, usually should be overwritten in child
If a page has Easter-Eggs load and setup everything in this method. This method is called by the PageManager when the page finished loading to avoid loading "unnecessary" stuff before the page is functional
displays the page container by adding style=block
slide the page out of view to the left (experimental)
Calls MathJax.typesetPromise() on this page
some containers need an update of the bs class that bootstrap displays them in the right color
call updateLang on each Content that is registered in Page.content
StaticclearStaticcreateStaticinitStaticresetStaticshow{CircuitMap | WheatstoneCircuitMap}
Special case of a class. This manages the page layout when a circuit is selected and represents the different modes simpliPFy supports e.g. stepwise, kirchhoff, wheatstone ... Each mode has to be derived from this class. Each mode writes to the same div "content-col" that is accessible with this.contentDiv