This is the navigation that is always shown at the top of all Pages

Hierarchy (View Summary)

Constructors

Properties

activeLangFlag: HTMLElement
content: {}

string is an internal name for content displayed on this page, content is the associated content to the string

darkModeSwitch: HTMLElement
gameModeSwitch: HTMLElement
id: string

the id with wich the page div can be found in the dom

initializationStarted: boolean = false

if initialization method was called this value changes to true

isInitialized: boolean = false

when the page is ready to show this value changes to true, is set by Page.initialize

isSetUp: boolean = false

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

languageSelect: HTMLElement
pageDiv: HTMLElement

is a reference to the element where the page content is displayed

pyodideCallBackDone: boolean = false

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

setUpStarted: boolean = false

if the setup method was called this value changes to true

title: any

Accessors

  • get isEnabled(): boolean

    Returns boolean

Methods

  • call addEventListeners on each Content that is registered in Page.content

    Returns void

  • Execute after custom code in initialize method of derived class

    Returns void

  • execute code that depends on Pyodide instance fully loaded

    Returns void

  • Execute after custom code in setup method of derived class

    Returns void

  • Execute before custom code in initialize method of derived class

    Returns boolean

    returns true if the init can continue false otherwise

  • Execute before custom code in setup method of derived class

    Returns boolean

    returns true if the setup can continue false otherwise

  • Returns void

  • Returns void

  • Returns void

  • Returns void

  • Returns void

  • hides the page container by adding style=none

    Returns void

  • Page standard implementation of initialize, should be overwritten in child

    Returns void

  • If called forces the page manager to recall initialize on next page load, effects depend on implementation of Page.initialize

    Returns void

  • Returns void

  • change the opacity of this page

    Parameters

    • newOpacity: number = 1

      {number} float value between 0 and 1

    Returns void

  • Page standard implementation of setup, usually should be overwritten in child

    Returns void

  • 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

    Returns void

  • displays the page container by adding style=block

    Parameters

    • animate: boolean = false

      {boolean} slides in the page from the left (experimental)

    Returns Promise<boolean>

  • slide the page out of view to the left (experimental)

    Returns void

  • Calls MathJax.typesetPromise() on this page

    Returns Promise<void>

  • Parameters

    • className: string = "bg"

    Returns void

  • some containers need an update of the bs class that bootstrap displays them in the right color

    Parameters

    • bgClassName: string = "bg"

      {string} -dark standard value is bg, is passed to updateBsClass()

    Returns void

  • call updateLang on each Content that is registered in Page.content

    Returns void