From 0c41ec273926cef1d40b6e8bc4bc6f08fb46212f Mon Sep 17 00:00:00 2001 From: ARC Date: Sat, 2 May 2015 21:14:32 -0400 Subject: every app needs a help menu --- www/index.html | 7 ++++++ www/js/HelpCtrl.js | 7 ++++++ www/js/app.js | 12 ++++++++++ www/templates/help.html | 58 +++++++++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 84 insertions(+) create mode 100644 www/js/HelpCtrl.js create mode 100644 www/templates/help.html (limited to 'www') diff --git a/www/index.html b/www/index.html index 3b2e2e12..3831bed0 100644 --- a/www/index.html +++ b/www/index.html @@ -43,6 +43,7 @@ + @@ -98,6 +99,12 @@ Settings + + + + Help + + diff --git a/www/js/HelpCtrl.js b/www/js/HelpCtrl.js new file mode 100644 index 00000000..37c98d39 --- /dev/null +++ b/www/js/HelpCtrl.js @@ -0,0 +1,7 @@ +angular.module('zmApp.controllers').controller('zmApp.HelpCtrl', function ($scope, $rootScope, $ionicModal, ZMDataModel,$ionicSideMenuDelegate) { +$scope.openMenu = function () { + $ionicSideMenuDelegate.toggleLeft(); + } +console.log ("***** HELP ****"); + +}) diff --git a/www/js/app.js b/www/js/app.js index 93c1871b..494ebdb9 100644 --- a/www/js/app.js +++ b/www/js/app.js @@ -151,6 +151,18 @@ angular.module('zmApp', [ }) + $stateProvider + .state('help', { + data: { + requireLogin: false + }, + url: "/help", + templateUrl: "templates/help.html", + controller: 'zmApp.HelpCtrl', + + + }) + .state('monitors', { data: { requireLogin: true diff --git a/www/templates/help.html b/www/templates/help.html new file mode 100644 index 00000000..2661ea2c --- /dev/null +++ b/www/templates/help.html @@ -0,0 +1,58 @@ + + + + + + + + +
+ + +

What is the ZM Base login and the API login?

+ The latest versions of ZoneMinder have an API that is supposed to replace the XML skin. + It is ionly available in the latest and greatest ZoneMinder releases. If you don't have + the API installed the client WILL NOT WORK. + +
+ + +

What should I be entering in the Base URL and API URL?

+ The base url is typically of the format "http://yourserver:port/" (don't specify zm) + The API url is typically of the format "http://yourserver:port/zm/api" + But it depends on how you've installed ZoneMinder +
+ + + +

The data is not refreshing!

+ Most screens that show lists of data has a pull down action. Pull down to refresh and your data + should be reloaded. +
+ + +

What is this simulator mode?

+ It was really a way for me to test how the app behaves when there are 1000s of events and many monitors. + Practically, you won't have a need for it +
+ + +

When I switch between Simulator to Real mode, the data does not change

+ Pull to refresh. +
+ + +

I want to contribute!

+ Awesome. Grab the source code! +
+ + +

How do I contact the author?

+ Send me an email +
+ +
+ +
+ +
-- cgit v1.2.3