From 3c094ec87d047751c5416e9c2208ccc9bfe38947 Mon Sep 17 00:00:00 2001 From: John Du Hart Date: Wed, 23 Mar 2011 16:06:37 -0400 Subject: [PATCH] Implemented protocol-relative URLs (this is tested) --- web/index.html | 2 +- web/js/chat.js | 2 +- web/js/minecraft.js | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/web/index.html b/web/index.html index c96378da..ad66252b 100644 --- a/web/index.html +++ b/web/index.html @@ -15,7 +15,7 @@ - + diff --git a/web/js/chat.js b/web/js/chat.js index 13ed1e00..60413673 100644 --- a/web/js/chat.js +++ b/web/js/chat.js @@ -1,7 +1,7 @@ var ip; $.ajax({ type: "GET", - url: "http://jsonip.appspot.com/?callback=?", + url: "//jsonip.appspot.com/?callback=?", dataType: "jsonp", success: function(getip) { ip = getip.ip; } }); diff --git a/web/js/minecraft.js b/web/js/minecraft.js index d7eb7cd4..b22da801 100644 --- a/web/js/minecraft.js +++ b/web/js/minecraft.js @@ -28,13 +28,13 @@ function createMinecraftHead(player,completed,failed) { completed(headCanvas); }; skinImage.onerror = function() { - if (skinImage.src == 'http://www.minecraft.net/img/char.png') { + if (skinImage.src == '//www.minecraft.net/img/char.png') { failed(); } else { - skinImage.src = 'http://www.minecraft.net/img/char.png'; + skinImage.src = '//www.minecraft.net/img/char.png'; } }; - skinImage.src = 'http://s3.amazonaws.com/MinecraftSkins/' + player + '.png'; + skinImage.src = '//s3.amazonaws.com/MinecraftSkins/' + player + '.png'; } function resizeImage(img,size) {