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
else
last = ''
$little_tip.html "Click the #{last}\"#{word.substr(word.length - 1)}\" for #{score_for word} points"
+ $big_tip.html "<a href=\"http://en.wiktionary.org/wiki/#{word}\" target=\"_blank\" title=\"click for definition\">#{word}</a>"
$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"
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;