Skip to content

Commit

Permalink
the api now delivers an https url, so altering it is no longer necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce Larson committed Feb 19, 2017
1 parent 339bb7c commit 39bee85
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@

// buttons could be improved
$("#theTitle").html("<a href=\"https://xkcd.com/" + rand + "/\"><h1>" + rand + ": " + json.title + "</h1></a>");
$("#xkcd").html("<img src = '" + json.img.slice(0, 4) + "s" + json.img.slice(4) + "' title=\"" + json.alt.replace(/\"/g, "&quot;") + "\">");
$("#xkcd").html("<img src = '" + json.img + "' title=\"" + json.alt.replace(/\"/g, "&quot;") + "\">");
if (rand == 1) {
$("#first").attr('disabled', 'disabled');
$("#previous").attr('disabled', 'disabled');
Expand Down

0 comments on commit 39bee85

Please sign in to comment.