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.html "<a href=\"https://en.wiktionary.org/wiki/#{word}\" target=\"_blank\" title=\"click for definition\">#{word}</a>"
$big_tip.addClass('good')
else
$big_tip.html word
show_definition = (word, type, definition, language) ->
- html = "<a href=\"http://en.wiktionary.org/wiki/#{word}\" target=\"_blank\">"
+ html = "<a href=\"https://en.wiktionary.org/wiki/#{word}\" target=\"_blank\">"
html += "#{word.substr(0, 1).toUpperCase() + word.substr(1)}</a>, #{type}"
if language isnt 'English'
html += " (#{language})"
html += ': '
html += definition
- html += '<div id="definition_credit">Definition ©<a href="http://en.wiktionary.org/" target="_blank">wiktionary.org</a> CC-BY-SA</div>'
+ html += '<div id="definition_credit">Definition ©<a href="https://en.wiktionary.org/" target="_blank">wiktionary.org</a> CC-BY-SA</div>'
$definition_body.html html
connector_width = 11
look_up_definition = (word) ->
$definition_body.html "Looking up definition for \"#{word}\"..."
$.ajax({
- url: "http://en.wiktionary.org/w/api.php?action=parse&format=json&page=#{word}"
+ url: "https://en.wiktionary.org/w/api.php?action=parse&format=json&page=#{word}"
jsonpCallback: "lud_#{word}" # always use the same callback for the same word so it's cacheable
dataType: 'jsonp'
cache: true