mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-06 15:51:25 +00:00
Add examples for mongoose blog article
PUBLISHED_FROM=54f54211919bb2276e02b4d10306ffa5540a9313
This commit is contained in:
1 parent
93beff3b65
commit
776103068f
27 files changed
+1321
No files matched your search
@@ -0,0 +1,12 @@
|
||||
$(document).ready(function() {
|
||||
// Start 1-second timer to call RESTful endpoint
|
||||
setInterval(function() {
|
||||
$.ajax({
|
||||
url: '/get_cpu_usage',
|
||||
dataType: 'json',
|
||||
success: function(json) {
|
||||
$('#cpu_usage').text(json.result + '% ');
|
||||
}
|
||||
});
|
||||
}, 1000);
|
||||
});
|
||||
Reference in new issue
Block a user