From 5376ff3178c6e8133cb5d2f3c64c7b911a38ca37 Mon Sep 17 00:00:00 2001 From: peteruithoven Date: Thu, 3 Oct 2013 16:59:28 +0200 Subject: [PATCH] moved api pages to api folder --- connect.php => api/connect.php | 0 create_table.php => api/create_table.php | 0 list.php => api/list.php | 0 signin.php => api/signin.php | 1 - js/main.js | 6 +++--- 5 files changed, 3 insertions(+), 4 deletions(-) rename connect.php => api/connect.php (100%) rename create_table.php => api/create_table.php (100%) rename list.php => api/list.php (100%) rename signin.php => api/signin.php (99%) diff --git a/connect.php b/api/connect.php similarity index 100% rename from connect.php rename to api/connect.php diff --git a/create_table.php b/api/create_table.php similarity index 100% rename from create_table.php rename to api/create_table.php diff --git a/list.php b/api/list.php similarity index 100% rename from list.php rename to api/list.php diff --git a/signin.php b/api/signin.php similarity index 99% rename from signin.php rename to api/signin.php index 8304bde..3837f3a 100644 --- a/signin.php +++ b/api/signin.php @@ -58,7 +58,6 @@ exit(json_encode($response)."\r\n"); } - $responseData = array( "remoteip" => $remoteip, "localip" => $localip, "wifiboxid" => $wifiboxid, diff --git a/js/main.js b/js/main.js index fd2e07d..491c83f 100644 --- a/js/main.js +++ b/js/main.js @@ -1,5 +1,5 @@ -var retrieveListInterval = 2000; +var retrieveListInterval = 5000; var retrieveListDelay; // retry setTimout instance var boxTimeoutTime = 300; @@ -26,7 +26,7 @@ $(function() { corners: 1, // Corner roundness (0..1) rotate: 0, // The rotation offset direction: 1, // 1: clockwise, -1: counterclockwise - color: '#58C143', // #rgb or #rrggbb or array of colors + color: '#57BF42', // #rgb or #rrggbb or array of colors speed: 1, // Rounds per second trail: 60, // Afterglow percentage shadow: false, // Whether to render a shadow @@ -46,7 +46,7 @@ function retrieveList() { //spinner.spin($preloader[0]); $.ajax({ - url: "list.php", + url: "api/list.php", dataType: 'json', success: function(response){ //console.log("retrieveList response: ",response);