Implemented protocol-relative URLs (this is tested)

This commit is contained in:
John Du Hart 2011-03-23 16:06:37 -04:00 committed by FrozenCow
parent 2be0cd3671
commit 3c094ec87d
3 changed files with 5 additions and 5 deletions

View File

@ -15,7 +15,7 @@
<link rel="stylesheet" type="text/css" href="css/dynmap_style.css" media="screen" />
<!-- <link rel="stylesheet" type="text/css" href="css/override.css" media="screen" /> -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="js/jquery.json.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<script type="text/javascript" src="js/custommarker.js"></script>

View File

@ -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; }
});

View File

@ -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) {