Last active
August 29, 2015 14:14
-
-
Save LukeXF/66275e441a72d256e7b1 to your computer and use it in GitHub Desktop.
Kyle I love you
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="//code.jquery.com/jquery-1.11.2.min.js"></script> | |
<script> | |
function loveFunction(serverip){ | |
$.getJSON('http://api.luke.sx/webping/' + serverip, function(json){ | |
if (json.status !== true) { | |
$('#love').html("0"); | |
} else { | |
$("#love").html(json['response-time']); | |
} | |
}); | |
} | |
loveFunction('192.99.20.79'); | |
</script> | |
<span id="love"></span> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
fghfh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment