[][src]Module mem6::divgridcontainermod

renders the grid container with the images and most important the on click event

Constants

SRC_FOR_CARD_FACE_DOWN

fixed filename for card face down

Functions

div_grid_container

prepare the grid container

div_grid_item

on click is the most important part and here is more or less isolated

div_grid_items

prepare a vector for the Virtual Dom for 'css grid' item with the grid container needs only grid items. There is no need for rows and columns in 'css grid'.

grid_height

grid height in pixels

grid_width

grid width in pixels

max_grid_size

calculate max with and height for a grid in pixels

play_sound

play sound mp3

usize_window_inner_height

return window inner height the size of the visible part of the window

usize_window_inner_width

return window inner width the size of the visible part of the window

usize_window_inner_width_but_max_600

return window inner width, but maximum 600px the size of the visible part of the window