Browse Source

Add netsyms.com account signup option, add nav controls to windows

tags/v1.1.0
Skylar Ittner 9 months ago
parent
commit
017a78f19c
2 changed files with 40 additions and 18 deletions
  1. 24
    2
      www/js/platform.js
  2. 16
    16
      www/pages/setup0.html

+ 24
- 2
www/js/platform.js View File

@@ -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;
});
}
}

+ 16
- 16
www/pages/setup0.html View File

@@ -41,7 +41,7 @@
Personal
</div>
<div class="item-text">
Your netsyms.com account
netsyms.com account
</div>
</div>
</div>
@@ -64,7 +64,7 @@
Business
</div>
<div class="item-text">
Your netsyms.biz account
netsyms.biz account
</div>
</div>
</div>
@@ -87,36 +87,36 @@
Other
</div>
<div class="item-text">
Your private or third-party server
Third-party or self-hosted
</div>
</div>
</div>
</a>
</li>
<!--<li>
<a href="#" class="item-link" onclick='router.navigate("/setup/1", {
context: {
personal: false,
business: false,
selfhosted: true,
nextcloud: true
}
});'>
</ul>
</div>
<div class="block-title">Need an account?</div>
<div class="list">
<ul>
<li>
<a href="#" class="item-link" onclick='openBrowser("https://apps.netsyms.com/account/signup/")'>
<div class="item-content">
<div class="item-media">
<img src="img/accounticons/nextcloud.svg" width="44"/>
<img src="img/accounticons/personal.svg" width="44"/>
</div>
<div class="item-inner">
<div class="item-title">
Nextcloud
Sign up
</div>
<div class="item-text">
A Nextcloud server with the Notes app installed
Free netsyms.com account
</div>
</div>
</div>
</a>
</li>-->
</li>
</ul>
</div>


Loading…
Cancel
Save