You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
MobileApp/www/views/setup/step1.html

24 lines
678 B
HTML

<p>
<b>Step One</b>
<br />
Enter the Portal API connection URL. If you don't know this, contact your
technical support for assistance.
</p>
<input type="url" class="form-control" id="portal_url" placeholder="https://portal-url.com" />
<script>
function processSetupFragment(callback) {
var url = $('#portal_api_url').val();
$.getJSON(url + "/mobile", {
action: "ping"
}, function (resp) {
if (resp.status === "OK") {
localStorage.setItem("portal_url", url + "/mobile");
callback(true);
} else {
callback(false);
}
});
}
</script>