From a737e0df6dcb2123857f2d54f6cec06dbb855dc5 Mon Sep 17 00:00:00 2001 From: Jason Woofenden Date: Mon, 7 Dec 2015 16:31:02 -0500 Subject: [PATCH] use https --- main.coffee | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/main.coffee b/main.coffee index d571e13..7daeab5 100644 --- a/main.coffee +++ b/main.coffee @@ -306,7 +306,7 @@ 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.html "#{word}" $big_tip.addClass('good') else $big_tip.html word @@ -626,13 +626,13 @@ activate_selection = -> show_definition = (word, type, definition, language) -> - html = "" + html = "" html += "#{word.substr(0, 1).toUpperCase() + word.substr(1)}, #{type}" if language isnt 'English' html += " (#{language})" html += ': ' html += definition - html += '
Definition ©wiktionary.org CC-BY-SA
' + html += '
Definition ©wiktionary.org CC-BY-SA
' $definition_body.html html connector_width = 11 @@ -828,7 +828,7 @@ extract_wiktionary_definiton = (html) -> 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 -- 1.7.10.4