completed STATUS and SETTINGS pages with context sensitive HELP (without debug)

pull/67/head
bradanlane 2015-09-29 18:27:52 -04:00
rodzic 125c052385
commit 4274469f15
2 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -1,6 +1,8 @@
// application constants
var URL_SETTINGS_GET = "http://192.168.6.104/getSettings";
var URL_SETTINGS_SET = "http://192.168.6.104/setSettings";
var URL_HOST_BASE = window.location.hostname;
var URL_SETTINGS_GET = "http://" + URL_HOST_BASE + "/getSettings";
var URL_SETTINGS_SET = "http://" + URL_HOST_BASE + "/setSettings";
// define the module with dependency on mobile-angular-ui

Wyświetl plik

@ -12,7 +12,7 @@ function StatusCtrl($rootScope, $scope, $state, $http) {
if (($scope.socket === undefined) || ($scope.socket === null)) {
// socket = new WebSocket('ws://' + window.location.hostname + '/control');
socket = new WebSocket('ws://192.168.6.104/control');
socket = new WebSocket('ws://' + URL_HOST_BASE + '/control');
$scope.socket = socket; // store socket in scope for enter/exit usage
}