diff --git a/www/css/main.css b/www/css/main.css
index a060ac8..5d6a66b 100644
--- a/www/css/main.css
+++ b/www/css/main.css
@@ -405,6 +405,14 @@ body {
color: black;
}
+#artifactbtn {
+ color: black;
+}
+
+#artifact-icon {
+ float: right;
+}
+
.found-box {
position: absolute;
z-index: 9001;
diff --git a/www/js/auth.js b/www/js/auth.js
index b15ded9..d6c99ca 100644
--- a/www/js/auth.js
+++ b/www/js/auth.js
@@ -66,6 +66,12 @@ function checkUserHasTeamOpenChooserIfNot(username) {
// Open the team intro thingy
openscreen('chooseteam');
}
+ } else if (data.status == "ERROR" && data.kick == 1) {
+ localStorage.setItem("no_autologin", "true");
+ username = null;
+ password = null;
+ document.location.href = "index.html";
+ navigator.notification.alert("Your session status has changed, and you have been logged out. \n\nReason: " + data.message, null, "Sign-in Status Changed", "OK");
} else {
// Might fix a strange bug that might not exist.
if (!teamchoosercheckretried) {
diff --git a/www/js/location.js b/www/js/location.js
index b2b180d..ead49bd 100644
--- a/www/js/location.js
+++ b/www/js/location.js
@@ -197,7 +197,7 @@ var updatePosition = function (position) {
function pingServer() {
if (lockGot && gpsaccuracy < requiredaccuracy) {
$.getJSON(mkApiUrl('ping') + "?user=" + username + "&lat=" + latitude + "&long=" + longitude + "&lang=" + USER_LANGUAGE, function (data) {
- if (data.status == "ERROR" && logoutInProgress != true) {
+ if (data.status == "ERROR") {
localStorage.setItem("no_autologin", "true");
username = null;
password = null;
diff --git a/www/js/user.js b/www/js/user.js
index ddb14db..bf3c58a 100644
--- a/www/js/user.js
+++ b/www/js/user.js
@@ -41,6 +41,12 @@ function syncStats() {
energy = data.stats.energy;
level = data.stats.level;
refreshStats();
+ } else if (data.status === "ERROR" && data.kick == 1) {
+ localStorage.setItem("no_autologin", "true");
+ username = null;
+ password = null;
+ document.location.href = "index.html";
+ navigator.notification.alert("Your session status has changed, and you have been logged out. \n\nReason: " + data.message, null, "Sign-in Status Changed", "OK");
}
});
}
diff --git a/www/screens/place.html b/www/screens/place.html
index 492080e..8e087a8 100644
--- a/www/screens/place.html
+++ b/www/screens/place.html
@@ -22,7 +22,8 @@
Type:
Owner:
- Place life: