Add examples for mongoose blog article

PUBLISHED_FROM=54f54211919bb2276e02b4d10306ffa5540a9313
This commit is contained in:
Sergey Lyubka authored and Sergey Lyubka committed 2015-10-02 13:10:47 +01:00
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);
});