Created
September 14, 2016 21:37
-
-
Save davidsword/5569a16fcedb04ea9de93342e6fe221b to your computer and use it in GitHub Desktop.
This file contains 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://code.jquery.com/jquery-latest.js"></script> | |
<script> | |
// reload #dynamic_stats of this page every 30 seconds | |
// this will hold and change the results of top | |
// stored in spans: #source_* | |
// which is read by the gauges outside of #dynamic_stats | |
$(document).ready(function() { | |
setInterval(function() { | |
var url = 'http://.../this_file.php'; | |
$('#dynamic_stats-wrapper').load(url + ' #dynamic_stats'); | |
}, 60000); | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment