Implemented navigation
This commit is contained in:
parent
846ed78252
commit
b3e0757b29
11 changed files with 203 additions and 90 deletions
|
|
@ -47,7 +47,7 @@ var hdd_io_data = {
|
|||
};
|
||||
|
||||
function updateHdd(){
|
||||
$.getJSON("?i=0&json&hdd", function( data ) {
|
||||
$.getJSON("{{nav.url}}&json&hdd", function( data ) {
|
||||
$.each(data['hdd'], function( index, hdd ){
|
||||
var element = null;
|
||||
var html_id = "hdd-id-" + hdd.id;
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ var cpu_data = {
|
|||
};
|
||||
|
||||
function updateCpuChart(){
|
||||
$.getJSON("?i=0&json&cpu", function( data ) {
|
||||
$.getJSON("{{nav.url}}&json&cpu", function( data ) {
|
||||
// Setup graph
|
||||
if(cpu_chart == null){
|
||||
// Fill in cpus
|
||||
|
|
@ -102,7 +102,7 @@ var mem_data = [
|
|||
];
|
||||
|
||||
function updateMemChart(){
|
||||
$.getJSON("?i=0&json&memory", function( data ) {
|
||||
$.getJSON("{{nav.url}}&json&memory", function( data ) {
|
||||
if(mem_chart == null){
|
||||
var ctx = $("#mem-chart").get(0).getContext("2d");
|
||||
mem_chart = new Chart(ctx).Doughnut(mem_data, {
|
||||
|
|
@ -123,7 +123,7 @@ function updateMemChart(){
|
|||
|
||||
|
||||
function updateProcTable(){
|
||||
$.getJSON("?i=0&json&proc", function( data ) {
|
||||
$.getJSON("{{nav.url}}&json&proc", function( data ) {
|
||||
$('#proc-list').bootstrapTable({
|
||||
data: data['proc']
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue