</div>
<p class="loginbox">
<button type="button" id="loginbtn" class="hidden">Sign in</button>
+<span id="loginerror" class="hidden">!</span>
<span id="logindesc" class="hidden">to enable uploads</span>
<span id="username" class="hidden"></span>
<button type="button" id="logoutbtn" class="hidden">Log out</button>
var gTrackUpdateInterval;
var gAction, gActionLabel;
var authData = null, userData = null;
-var gBackendURL = "https://backend.lantea.kairo.at";
+var gBackendURL = "https://backend.lantea.kairo.at/";
var gAuthClientID = "lantea";
window.onload = function() {
}
function startLogin() {
+ var logerr = document.getElementById("loginerror");
+ logerr.classList.add("hidden");
+ logerr.title = "";
if (!authData || !authData["state"]) {
// We have no oAuth state, try to fetch it and call ourselves again if it worked.
prepareLoginButton(function() {
else if (!userData) {
// Only warn if we didn't actually end up being logged in.
console.log("No OAuth state and fetching fails, client or server may be offline.");
+ logerr.classList.remove("hidden");
+ logerr.title = "Client or server may be offline.";
}
});
return;
}
else {
console.log("Opening Sign In window failed.");
+ logerr.classList.remove("hidden");
+ logerr.title = "Opening Sign-In window failed.";
}
}