Skip to content
gigafiga21 edited this page Feb 23, 2020 · 1 revision

Class, manages menu.

DOM tree of the class

Here in gray written CSS selectors, in black - links to elements in the class instances.

  • DOM.container contains all menu elements
  • DOM.fan contains desk containers, for keeping Desk class instances
  • DOM.deskContainer contains Desk class instance opened into the fan
  • Game::DOM.deskContainer with opacity: 0 lays under DOM.deskContainer and is a part of Game class,
    keeps cards laying on the game field - keeps here for animation of passing and taking cards while menu and game screens changing
  • DOM.headline keeps string MEMORY GAME or current score when game is end
  • DOM.optionsContainer keeps the menu buttons

Clone this wiki locally