diff --git a/resources/templates/launcher.html b/resources/templates/launcher.html index 7a21ff4..d6689e3 100644 --- a/resources/templates/launcher.html +++ b/resources/templates/launcher.html @@ -1,146 +1,190 @@ - - -
- - -Welcome to Kawari!
+{% block title %}Kawari Launcher{% endblock %} - - - - - - - - - - - - - - - +{% block body %} +Welcome to Kawari!
-meh
+ - - - + // it requests the config again? + window.external.user('requestConfig'); + } + window.fromAppWaitPlay = this.checkHandlerType(fromAppWaitPlay); + + function fromAppStartFileCheck(thing) { + document.getElementById('replace-me').innerText += "file check: " + JSON.stringify(thing); + } + window.fromAppStartFileCheck = this.checkHandlerType(fromAppStartFileCheck); + + function fromAppFileCheckProgress(thing) { + document.getElementById('replace-me').innerText += "file check prog: " + JSON.stringify(thing); + } + window.fromAppFileCheckProgress = this.checkHandlerType(fromAppFileCheckProgress); + + function fromAppFinishedFileCheck(thing) { + document.getElementById('replace-me').innerText += "file check finished: " + JSON.stringify(thing); + } + window.fromAppFinishedFileCheck = this.checkHandlerType(fromAppFinishedFileCheck); + + function fromAppServiceAgreement(thing) { + document.getElementById('replace-me').innerText += "agreement: " + JSON.stringify(thing); + } + window.fromAppServiceAgreement = this.checkHandlerType(fromAppServiceAgreement); + + function fromAppDialog(thing) { + document.getElementById('replace-me').innerText += "dialog: " + JSON.stringify(thing); + } + window.fromAppDialog = this.checkHandlerType(fromAppDialog); + + // this is what the retail launcher does + window.external.user('permissionFromApp=1'); + window.external.user('requestDP'); + window.external.user('requestConfig'); + window.external.user('requestDisplaySettings'); + window.external.user('requestResumeInfo'); + + // setup form submission + const form = document.getElementById("login"); + form.addEventListener("submit", function (event) { + // ie11 is amazing + if (event.preventDefault) { + event.preventDefault(); + } else { + event.returnValue = false; + } + login(); + }); + +{% endblock %} diff --git a/resources/templates/layout.html b/resources/templates/layout.html index 27a6758..94ba857 100644 --- a/resources/templates/layout.html +++ b/resources/templates/layout.html @@ -3,6 +3,7 @@ +