From: Jason Woofenden Date: Tue, 29 Oct 2013 19:25:54 +0000 (-0400) Subject: make selection display clickable (when it's a word) X-Git-Url: https://jasonwoof.com/gitweb/?p=hexbog.git;a=commitdiff_plain;h=5f118636bd356acfabd1e6a3a9da0b6bc433c95b make selection display clickable (when it's a word) --- 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" diff --git a/style.less b/style.less index 80126ab..e975a82 100644 --- a/style.less +++ b/style.less @@ -76,8 +76,9 @@ body { color: darken(@selected-color, 66%); text-align: center; } - #big_tip.good { + #big_tip.good a { color: darken(@selected-good-color, 66%); + text-decoration: none; } #score_container { margin-top: 10px;