You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
whooshy/views/bingo/bingo-game.pug

16 lines
646 B
Plaintext

include bingo-layout
block content
if username === 'anonymous'
div(class='greyover')
div(id='username-form')
input(type='text', id='username-input', placeholder=username)
button(onclick='submitUsername()') Set Username
div(id='words-container')
each val in grid
div(class='bingo-word-row')
each field in val
div(class='bingo-word-panel', onclick=`submitWord('${field.base64Word}')`, b-word=field.base64Word, b-sub='false')
span= field.word
button(id='bingo-button' onclick='submitBingo()', class='hidden') Bingo!