X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=main.coffee;h=015ce7c2fa221d9b772d863a05d56b0d74aa01ed;hb=5f118636bd356acfabd1e6a3a9da0b6bc433c95b;hp=a03fa73e435a9c454c6b7ce7f522d06188ba247a;hpb=224a69161754c19b81d4b2ceae03bd8768af229c;p=hexbog.git diff --git a/main.coffee b/main.coffee index a03fa73..015ce7c 100644 --- a/main.coffee +++ b/main.coffee @@ -245,8 +245,8 @@ update_selection_display = -> word = selected_word() $big_tip.removeClass('good') if word.length > 0 - $big_tip.html word if word.length < 3 + $big_tip.html word $little_tip.html "Click more tiles (3 minimum)" else if is_word word @@ -255,8 +255,10 @@ update_selection_display = -> else last = '' $little_tip.html "Click the #{last}\"#{word.substr(word.length - 1)}\" for #{score_for word} points" + $big_tip.html "#{word}" $big_tip.addClass('good') else + $big_tip.html word $little_tip.html "\"#{word}\" is not in the word list." else $big_tip.html "← Click a word"