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

master
Skylar Ittner 5 years ago
parent 022ff4d113
commit 017a78f19c

@ -25,7 +25,7 @@ function initCordova() {
} }
}, false); }, false);
openBrowser = function(url) { openBrowser = function (url) {
cordova.InAppBrowser.open(url, '_blank', 'location=yes'); cordova.InAppBrowser.open(url, '_blank', 'location=yes');
} }
} }
@ -33,9 +33,31 @@ function initCordova() {
function initNW() { function initNW() {
platform_type = "nw"; platform_type = "nw";
openBrowser = function(url) { openBrowser = function (url) {
nw.Window.open(url, { nw.Window.open(url, {
id: 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;
}); });
} }
} }

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

Loading…
Cancel
Save