def show(items="mgk"): ids = [] items = items.lower() _addItem("m", items, "Mask", ids) _addItem("g", items, "Gallow", ids) _addItem("r", items, "Report", ids) _addItem("k", items, "Keyboard", ids) redraw() _.dom().disableElements(ids)
def discloseSecretWord(word): _showSecretWordTextBox() _.dom().setContent(_I_SECRET_WORD, word)
def _showSecretWordTextBox(): _.dom().disableElement("HideSecretWord")
def confirm(text): return _.dom().confirm(text)
def alert(text): _.dom().alert(text)
def display(text): _.dom().setLayout(_I_OUTPUT, _createOutput(text))
def drawBodyPart(part): _.dom().removeClass(part, "hidden")
def redraw(): _.dom().setLayout("", _.readBody(_FOLDER, getI18n()))
def preBaseReset(): suggestion = _.dom().getContent( _I_SECRET_WORD).strip()[:15] if _DISCLOSE_SECRET_WORD else "" redraw() return suggestion