Example #1
0
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)
Example #2
0
def discloseSecretWord(word):
    _showSecretWordTextBox()
    _.dom().setContent(_I_SECRET_WORD, word)
Example #3
0
def _showSecretWordTextBox():
    _.dom().disableElement("HideSecretWord")
Example #4
0
def confirm(text):
    return _.dom().confirm(text)
Example #5
0
def alert(text):
    _.dom().alert(text)
Example #6
0
def display(text):
    _.dom().setLayout(_I_OUTPUT, _createOutput(text))
Example #7
0
def drawBodyPart(part):
    _.dom().removeClass(part, "hidden")
Example #8
0
def redraw():
    _.dom().setLayout("", _.readBody(_FOLDER, getI18n()))
Example #9
0
def preBaseReset():
    suggestion = _.dom().getContent(
        _I_SECRET_WORD).strip()[:15] if _DISCLOSE_SECRET_WORD else ""
    redraw()

    return suggestion