Created
September 15, 2014 21:23
-
-
Save liamka/2f424bfd65dabbee8a61 to your computer and use it in GitHub Desktop.
Ping every milesecond
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="http://liamka.me/assets/js/jquery.min.js"></script> | |
<script type="text/javascript"> | |
setInterval(function () { | |
$.ajax({url:'http://signaldnb.com/', | |
success: function(data){ | |
$('#status').append("<div>Ok - " + new Date($.now()) + "</div>"); | |
}, | |
error: function(error){ | |
$('#status').append("<div style='color: red;'>none - " + new Date($.now()) + "</div>"); | |
} | |
}); | |
}, 1/100); | |
</script> | |
<div id="status"></div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment