mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-11-30 22:24:06 +01:00
Implemented protocol-relative URLs (this is tested)
This commit is contained in:
parent
2be0cd3671
commit
3c094ec87d
@ -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/dynmap_style.css" media="screen" />
|
||||||
<!-- <link rel="stylesheet" type="text/css" href="css/override.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="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="http://maps.google.com/maps/api/js?sensor=false"></script>
|
||||||
<script type="text/javascript" src="js/custommarker.js"></script>
|
<script type="text/javascript" src="js/custommarker.js"></script>
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
var ip;
|
var ip;
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "GET",
|
type: "GET",
|
||||||
url: "http://jsonip.appspot.com/?callback=?",
|
url: "//jsonip.appspot.com/?callback=?",
|
||||||
dataType: "jsonp",
|
dataType: "jsonp",
|
||||||
success: function(getip) { ip = getip.ip; }
|
success: function(getip) { ip = getip.ip; }
|
||||||
});
|
});
|
||||||
|
@ -28,13 +28,13 @@ function createMinecraftHead(player,completed,failed) {
|
|||||||
completed(headCanvas);
|
completed(headCanvas);
|
||||||
};
|
};
|
||||||
skinImage.onerror = function() {
|
skinImage.onerror = function() {
|
||||||
if (skinImage.src == 'http://www.minecraft.net/img/char.png') {
|
if (skinImage.src == '//www.minecraft.net/img/char.png') {
|
||||||
failed();
|
failed();
|
||||||
} else {
|
} 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) {
|
function resizeImage(img,size) {
|
||||||
|
Loading…
Reference in New Issue
Block a user