From 6895585bf932d2a5448d61d5debdbbb1d971dae5 Mon Sep 17 00:00:00 2001 From: Marnanel Thurman Date: Tue, 30 Nov 2021 21:01:30 +0000 Subject: [PATCH] onclick code for the login page so logins work --- src/index.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index 39fdf1a..d69ebc1 100644 --- a/src/index.js +++ b/src/index.js @@ -7,12 +7,14 @@ document.addEventListener('deviceready', onDeviceReady, false); function onDeviceReady() { console.log('Running cordova-' + cordova.platformId + '@' + cordova.version); - - grok_login1(handle_login1); - + $("#submitlogin").click(function() { + console.log("login: part 1: here we go!"); + grok_login1(handle_login1); + }); } function handle_login1(login1) { + console.log("login: part 2"); grok_login2( handle_login2, login1['auth'], @@ -22,5 +24,6 @@ function handle_login1(login1) { } function handle_login2(login2) { + console.log("login: done"); console.log(login2); } -- 2.30.2