From 017a78f19cc549c6be591da95994a5a86831d440 Mon Sep 17 00:00:00 2001 From: Skylar Ittner Date: Sat, 12 Jan 2019 19:03:22 -0700 Subject: [PATCH] Add netsyms.com account signup option, add nav controls to windows --- www/js/platform.js | 26 ++++++++++++++++++++++++-- www/pages/setup0.html | 32 ++++++++++++++++---------------- 2 files changed, 40 insertions(+), 18 deletions(-) diff --git a/www/js/platform.js b/www/js/platform.js index 7b0eeff..99b2bd1 100644 --- a/www/js/platform.js +++ b/www/js/platform.js @@ -25,7 +25,7 @@ function initCordova() { } }, false); - openBrowser = function(url) { + openBrowser = function (url) { cordova.InAppBrowser.open(url, '_blank', 'location=yes'); } } @@ -33,9 +33,31 @@ function initCordova() { function initNW() { platform_type = "nw"; - openBrowser = function(url) { + openBrowser = function (url) { nw.Window.open(url, { id: url + }, function (browserwin) { + // Add menubar so the user can navigate around if they click a link + var browsermenu = new nw.Menu({type: 'menubar'}); + browsermenu.append(new nw.MenuItem({ + label: "Back", + click: function () { + browserwin.window.history.back(); + } + })); + browsermenu.append(new nw.MenuItem({ + label: "Forward", + click: function () { + browserwin.window.history.forward(); + } + })); + browsermenu.append(new nw.MenuItem({ + label: "Home", + click: function () { + browserwin.window.location.href = url; + } + })); + browserwin.menu = browsermenu; }); } } diff --git a/www/pages/setup0.html b/www/pages/setup0.html index 65306e8..625b552 100644 --- a/www/pages/setup0.html +++ b/www/pages/setup0.html @@ -41,7 +41,7 @@ Personal
- Your netsyms.com account + netsyms.com account
@@ -64,7 +64,7 @@ Business
- Your netsyms.biz account + netsyms.biz account
@@ -87,36 +87,36 @@ Other
- Your private or third-party server + Third-party or self-hosted
- +