Implemented protocol-relative URLs (this is tested)
This commit is contained in:
parent
2be0cd3671
commit
3c094ec87d
3 changed files with 5 additions and 5 deletions
|
|
@ -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; }
|
||||
});
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue