X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=main.coffee;h=ca34b4e14f8ab7cc78ae7d086091724ad030ccee;hb=1c59224d852c179a8ca23d4ad0333dc0ae3598b7;hp=a4bd4162079a66d0c706ab1cffebcc02e7b23586;hpb=5c9ec279c15c135b7e84501a5b2426e8f06fde60;p=hexbog.git diff --git a/main.coffee b/main.coffee index a4bd416..ca34b4e 100644 --- a/main.coffee +++ b/main.coffee @@ -344,11 +344,13 @@ activate_selection = -> unless is_word word log "Not on word list: \"#{word}\"" return - score += Math.round(Math.pow(1.7, word.length)) + word_score = Math.round(Math.pow(1.7, word.length)) + score += word_score $score_display.html score - log "blipped: #{word}" + log "blipped \"#{word}\" for #{word_score} points" blip_selection() look_up_definition word + $('#definition').click() show_definition = (word, type, definition, language) ->