diff --git a/platforms/android/.gradle/2.2.1/taskArtifacts/cache.properties b/platforms/android/.gradle/2.2.1/taskArtifacts/cache.properties
index 391f23f..26f505d 100644
--- a/platforms/android/.gradle/2.2.1/taskArtifacts/cache.properties
+++ b/platforms/android/.gradle/2.2.1/taskArtifacts/cache.properties
@@ -1 +1 @@
-#Tue Apr 12 16:04:29 MDT 2016
+#Fri Aug 05 21:28:23 MDT 2016
diff --git a/platforms/android/.gradle/2.2.1/taskArtifacts/cache.properties.lock b/platforms/android/.gradle/2.2.1/taskArtifacts/cache.properties.lock
index ae1741f..454c813 100644
Binary files a/platforms/android/.gradle/2.2.1/taskArtifacts/cache.properties.lock and b/platforms/android/.gradle/2.2.1/taskArtifacts/cache.properties.lock differ
diff --git a/platforms/android/.gradle/2.2.1/taskArtifacts/fileHashes.bin b/platforms/android/.gradle/2.2.1/taskArtifacts/fileHashes.bin
index 23007e1..d20e58f 100644
Binary files a/platforms/android/.gradle/2.2.1/taskArtifacts/fileHashes.bin and b/platforms/android/.gradle/2.2.1/taskArtifacts/fileHashes.bin differ
diff --git a/platforms/android/.gradle/2.2.1/taskArtifacts/fileSnapshots.bin b/platforms/android/.gradle/2.2.1/taskArtifacts/fileSnapshots.bin
index fc184d8..2e19834 100644
Binary files a/platforms/android/.gradle/2.2.1/taskArtifacts/fileSnapshots.bin and b/platforms/android/.gradle/2.2.1/taskArtifacts/fileSnapshots.bin differ
diff --git a/platforms/android/.gradle/2.2.1/taskArtifacts/outputFileStates.bin b/platforms/android/.gradle/2.2.1/taskArtifacts/outputFileStates.bin
index b2704fe..133a8f3 100644
Binary files a/platforms/android/.gradle/2.2.1/taskArtifacts/outputFileStates.bin and b/platforms/android/.gradle/2.2.1/taskArtifacts/outputFileStates.bin differ
diff --git a/platforms/android/.gradle/2.2.1/taskArtifacts/taskArtifacts.bin b/platforms/android/.gradle/2.2.1/taskArtifacts/taskArtifacts.bin
index 0360b76..b4c2f31 100644
Binary files a/platforms/android/.gradle/2.2.1/taskArtifacts/taskArtifacts.bin and b/platforms/android/.gradle/2.2.1/taskArtifacts/taskArtifacts.bin differ
diff --git a/platforms/android/AndroidManifest.xml b/platforms/android/AndroidManifest.xml
index 5e5ad44..4a33799 100644
--- a/platforms/android/AndroidManifest.xml
+++ b/platforms/android/AndroidManifest.xml
@@ -30,13 +30,13 @@
-
+
+
-
-
+
diff --git a/platforms/android/CordovaLib/build/intermediates/bundles/debug/classes.jar b/platforms/android/CordovaLib/build/intermediates/bundles/debug/classes.jar
index d9fb0d1..9f717bd 100644
Binary files a/platforms/android/CordovaLib/build/intermediates/bundles/debug/classes.jar and b/platforms/android/CordovaLib/build/intermediates/bundles/debug/classes.jar differ
diff --git a/platforms/android/CordovaLib/build/intermediates/bundles/release/classes.jar b/platforms/android/CordovaLib/build/intermediates/bundles/release/classes.jar
index 681dc53..fd94b19 100644
Binary files a/platforms/android/CordovaLib/build/intermediates/bundles/release/classes.jar and b/platforms/android/CordovaLib/build/intermediates/bundles/release/classes.jar differ
diff --git a/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaBridge.class b/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaBridge.class
index 17f3eef..49890ee 100644
Binary files a/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaBridge.class and b/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaBridge.class differ
diff --git a/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaPlugin.class b/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaPlugin.class
index b8f64c6..d8906c9 100644
Binary files a/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaPlugin.class and b/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaPlugin.class differ
diff --git a/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaResourceApi.class b/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaResourceApi.class
index 6079ff4..f11f59a 100644
Binary files a/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaResourceApi.class and b/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/CordovaResourceApi.class differ
diff --git a/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/Whitelist$URLPattern.class b/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/Whitelist$URLPattern.class
index db85196..05973c3 100644
Binary files a/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/Whitelist$URLPattern.class and b/platforms/android/CordovaLib/build/intermediates/classes/debug/org/apache/cordova/Whitelist$URLPattern.class differ
diff --git a/platforms/android/CordovaLib/build/intermediates/classes/release/org/apache/cordova/CordovaBridge.class b/platforms/android/CordovaLib/build/intermediates/classes/release/org/apache/cordova/CordovaBridge.class
index 17f3eef..49890ee 100644
Binary files a/platforms/android/CordovaLib/build/intermediates/classes/release/org/apache/cordova/CordovaBridge.class and b/platforms/android/CordovaLib/build/intermediates/classes/release/org/apache/cordova/CordovaBridge.class differ
diff --git a/platforms/android/CordovaLib/build/intermediates/classes/release/org/apache/cordova/CordovaPlugin.class b/platforms/android/CordovaLib/build/intermediates/classes/release/org/apache/cordova/CordovaPlugin.class
index b8f64c6..d8906c9 100644
Binary files a/platforms/android/CordovaLib/build/intermediates/classes/release/org/apache/cordova/CordovaPlugin.class and b/platforms/android/CordovaLib/build/intermediates/classes/release/org/apache/cordova/CordovaPlugin.class differ
diff --git a/platforms/android/CordovaLib/build/intermediates/classes/release/org/apache/cordova/CordovaResourceApi.class b/platforms/android/CordovaLib/build/intermediates/classes/release/org/apache/cordova/CordovaResourceApi.class
index 6079ff4..f11f59a 100644
Binary files a/platforms/android/CordovaLib/build/intermediates/classes/release/org/apache/cordova/CordovaResourceApi.class and b/platforms/android/CordovaLib/build/intermediates/classes/release/org/apache/cordova/CordovaResourceApi.class differ
diff --git a/platforms/android/CordovaLib/build/intermediates/classes/release/org/apache/cordova/Whitelist$URLPattern.class b/platforms/android/CordovaLib/build/intermediates/classes/release/org/apache/cordova/Whitelist$URLPattern.class
index db85196..05973c3 100644
Binary files a/platforms/android/CordovaLib/build/intermediates/classes/release/org/apache/cordova/Whitelist$URLPattern.class and b/platforms/android/CordovaLib/build/intermediates/classes/release/org/apache/cordova/Whitelist$URLPattern.class differ
diff --git a/platforms/android/CordovaLib/build/outputs/aar/CordovaLib-debug.aar b/platforms/android/CordovaLib/build/outputs/aar/CordovaLib-debug.aar
index 02692ed..48f336c 100644
Binary files a/platforms/android/CordovaLib/build/outputs/aar/CordovaLib-debug.aar and b/platforms/android/CordovaLib/build/outputs/aar/CordovaLib-debug.aar differ
diff --git a/platforms/android/CordovaLib/build/outputs/aar/CordovaLib-release.aar b/platforms/android/CordovaLib/build/outputs/aar/CordovaLib-release.aar
index cc0bd2c..fc00c5d 100644
Binary files a/platforms/android/CordovaLib/build/outputs/aar/CordovaLib-release.aar and b/platforms/android/CordovaLib/build/outputs/aar/CordovaLib-release.aar differ
diff --git a/platforms/android/android.json b/platforms/android/android.json
index e2aeb20..b503f25 100644
--- a/platforms/android/android.json
+++ b/platforms/android/android.json
@@ -8,24 +8,12 @@
"res/xml/config.xml": {
"parents": {
"/*": [
- {
- "xml": "",
- "count": 1
- },
- {
- "xml": "",
- "count": 1
- },
{
"xml": "",
"count": 1
},
{
- "xml": "",
- "count": 1
- },
- {
- "xml": "",
+ "xml": "",
"count": 1
},
{
@@ -36,6 +24,10 @@
"xml": "",
"count": 1
},
+ {
+ "xml": "",
+ "count": 1
+ },
{
"xml": "",
"count": 1
@@ -45,7 +37,15 @@
"count": 1
},
{
- "xml": "",
+ "xml": "",
+ "count": 1
+ },
+ {
+ "xml": "",
+ "count": 1
+ },
+ {
+ "xml": "",
"count": 1
},
{
@@ -63,7 +63,11 @@
"count": 4
},
{
- "xml": "",
+ "xml": "",
+ "count": 1
+ },
+ {
+ "xml": "",
"count": 1
},
{
@@ -83,11 +87,7 @@
"count": 1
},
{
- "xml": "",
- "count": 1
- },
- {
- "xml": "",
+ "xml": "",
"count": 1
}
],
@@ -120,11 +120,6 @@
}
]
}
- },
- "res/values/strings.xml": {
- "parents": {
- "/resources": []
- }
}
}
},
@@ -132,7 +127,7 @@
"cordova-plugin-compat": {
"PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
},
- "cordova-plugin-whitelist": {
+ "cordova-plugin-camera": {
"PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
},
"cordova-plugin-console": {
@@ -141,28 +136,28 @@
"cordova-plugin-device": {
"PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
},
- "cordova-plugin-camera": {
- "PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
- },
- "cordova-plugin-splashscreen": {
- "PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
- },
- "cordova-plugin-network-information": {
- "PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
- },
"cordova-plugin-dialogs": {
"PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
},
"cordova-plugin-file": {
"PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
},
+ "cordova-plugin-geolocation": {
+ "PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
+ },
"cordova-plugin-media": {
"PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
},
"cordova-plugin-media-capture": {
"PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
},
- "cordova-plugin-geolocation": {
+ "cordova-plugin-network-information": {
+ "PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
+ },
+ "cordova-plugin-splashscreen": {
+ "PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
+ },
+ "cordova-plugin-whitelist": {
"PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
},
"phonegap-plugin-barcodescanner": {
@@ -171,18 +166,6 @@
},
"dependent_plugins": {},
"modules": [
- {
- "file": "plugins/cordova-plugin-whitelist/whitelist.js",
- "id": "cordova-plugin-whitelist.whitelist",
- "runs": true
- },
- {
- "file": "plugins/cordova-plugin-device/www/device.js",
- "id": "cordova-plugin-device.device",
- "clobbers": [
- "device"
- ]
- },
{
"file": "plugins/cordova-plugin-camera/www/CameraConstants.js",
"id": "cordova-plugin-camera.Camera",
@@ -212,25 +195,10 @@
]
},
{
- "file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js",
- "id": "cordova-plugin-splashscreen.SplashScreen",
+ "file": "plugins/cordova-plugin-device/www/device.js",
+ "id": "cordova-plugin-device.device",
"clobbers": [
- "navigator.splashscreen"
- ]
- },
- {
- "file": "plugins/cordova-plugin-network-information/www/network.js",
- "id": "cordova-plugin-network-information.network",
- "clobbers": [
- "navigator.connection",
- "navigator.network.connection"
- ]
- },
- {
- "file": "plugins/cordova-plugin-network-information/www/Connection.js",
- "id": "cordova-plugin-network-information.Connection",
- "clobbers": [
- "Connection"
+ "device"
]
},
{
@@ -398,6 +366,18 @@
],
"runs": true
},
+ {
+ "file": "plugins/cordova-plugin-geolocation/www/android/geolocation.js",
+ "id": "cordova-plugin-geolocation.geolocation",
+ "clobbers": [
+ "navigator.geolocation"
+ ]
+ },
+ {
+ "file": "plugins/cordova-plugin-geolocation/www/PositionError.js",
+ "id": "cordova-plugin-geolocation.PositionError",
+ "runs": true
+ },
{
"file": "plugins/cordova-plugin-media/www/MediaError.js",
"id": "cordova-plugin-media.MediaError",
@@ -462,15 +442,30 @@
]
},
{
- "file": "plugins/cordova-plugin-geolocation/www/android/geolocation.js",
- "id": "cordova-plugin-geolocation.geolocation",
+ "file": "plugins/cordova-plugin-network-information/www/network.js",
+ "id": "cordova-plugin-network-information.network",
"clobbers": [
- "navigator.geolocation"
+ "navigator.connection",
+ "navigator.network.connection"
]
},
{
- "file": "plugins/cordova-plugin-geolocation/www/PositionError.js",
- "id": "cordova-plugin-geolocation.PositionError",
+ "file": "plugins/cordova-plugin-network-information/www/Connection.js",
+ "id": "cordova-plugin-network-information.Connection",
+ "clobbers": [
+ "Connection"
+ ]
+ },
+ {
+ "file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js",
+ "id": "cordova-plugin-splashscreen.SplashScreen",
+ "clobbers": [
+ "navigator.splashscreen"
+ ]
+ },
+ {
+ "file": "plugins/cordova-plugin-whitelist/whitelist.js",
+ "id": "cordova-plugin-whitelist.whitelist",
"runs": true
},
{
@@ -483,17 +478,17 @@
],
"plugin_metadata": {
"cordova-plugin-compat": "1.0.0",
- "cordova-plugin-whitelist": "1.2.1",
+ "cordova-plugin-camera": "2.1.2-dev",
"cordova-plugin-console": "1.0.3-dev",
"cordova-plugin-device": "1.1.2-dev",
- "cordova-plugin-camera": "2.1.2-dev",
- "cordova-plugin-splashscreen": "3.2.2-dev",
- "cordova-plugin-network-information": "1.2.1-dev",
"cordova-plugin-dialogs": "1.2.1-dev",
"cordova-plugin-file": "4.1.1",
+ "cordova-plugin-geolocation": "2.1.1-dev",
"cordova-plugin-media": "2.2.1-dev",
"cordova-plugin-media-capture": "1.2.1-dev",
- "cordova-plugin-geolocation": "2.1.1-dev",
+ "cordova-plugin-network-information": "1.2.1-dev",
+ "cordova-plugin-splashscreen": "3.2.2-dev",
+ "cordova-plugin-whitelist": "1.2.1",
"phonegap-plugin-barcodescanner": "6.0.1"
}
}
\ No newline at end of file
diff --git a/platforms/android/assets/www/assets/logonobg.svg b/platforms/android/assets/www/assets/logonobg.svg
index 4a51efb..425f7e7 100644
--- a/platforms/android/assets/www/assets/logonobg.svg
+++ b/platforms/android/assets/www/assets/logonobg.svg
@@ -15,145 +15,13 @@
viewBox="0 0 1321.5612 429.71863"
id="svg2"
version="1.1"
- inkscape:version="0.91 r13725"
- sodipodi:docname="logonobg.svg">
+ inkscape:version="0.91 r"
+ sodipodi:docname="logonobg.svg"
+ inkscape:export-filename="/home/skylar/Documents/Projects/Assets/TerranQuest/logo-3.0/png/logonobg.png"
+ inkscape:export-xdpi="52.369881"
+ inkscape:export-ydpi="52.369881">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -247,7 +95,7 @@
image/svg+xml
-
+
@@ -261,194 +109,53 @@
transform="matrix(0.57053535,0,0,0.57053535,343.19761,121.49738)"
inkscape:export-xdpi="34.138618"
inkscape:export-ydpi="34.138618">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/platforms/android/assets/www/cordova_plugins.js b/platforms/android/assets/www/cordova_plugins.js
index af5f356..93dfdbf 100644
--- a/platforms/android/assets/www/cordova_plugins.js
+++ b/platforms/android/assets/www/cordova_plugins.js
@@ -1,17 +1,5 @@
cordova.define('cordova/plugin_list', function(require, exports, module) {
module.exports = [
- {
- "file": "plugins/cordova-plugin-whitelist/whitelist.js",
- "id": "cordova-plugin-whitelist.whitelist",
- "runs": true
- },
- {
- "file": "plugins/cordova-plugin-device/www/device.js",
- "id": "cordova-plugin-device.device",
- "clobbers": [
- "device"
- ]
- },
{
"file": "plugins/cordova-plugin-camera/www/CameraConstants.js",
"id": "cordova-plugin-camera.Camera",
@@ -41,25 +29,10 @@ module.exports = [
]
},
{
- "file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js",
- "id": "cordova-plugin-splashscreen.SplashScreen",
+ "file": "plugins/cordova-plugin-device/www/device.js",
+ "id": "cordova-plugin-device.device",
"clobbers": [
- "navigator.splashscreen"
- ]
- },
- {
- "file": "plugins/cordova-plugin-network-information/www/network.js",
- "id": "cordova-plugin-network-information.network",
- "clobbers": [
- "navigator.connection",
- "navigator.network.connection"
- ]
- },
- {
- "file": "plugins/cordova-plugin-network-information/www/Connection.js",
- "id": "cordova-plugin-network-information.Connection",
- "clobbers": [
- "Connection"
+ "device"
]
},
{
@@ -227,6 +200,18 @@ module.exports = [
],
"runs": true
},
+ {
+ "file": "plugins/cordova-plugin-geolocation/www/android/geolocation.js",
+ "id": "cordova-plugin-geolocation.geolocation",
+ "clobbers": [
+ "navigator.geolocation"
+ ]
+ },
+ {
+ "file": "plugins/cordova-plugin-geolocation/www/PositionError.js",
+ "id": "cordova-plugin-geolocation.PositionError",
+ "runs": true
+ },
{
"file": "plugins/cordova-plugin-media/www/MediaError.js",
"id": "cordova-plugin-media.MediaError",
@@ -291,15 +276,30 @@ module.exports = [
]
},
{
- "file": "plugins/cordova-plugin-geolocation/www/android/geolocation.js",
- "id": "cordova-plugin-geolocation.geolocation",
+ "file": "plugins/cordova-plugin-network-information/www/network.js",
+ "id": "cordova-plugin-network-information.network",
"clobbers": [
- "navigator.geolocation"
+ "navigator.connection",
+ "navigator.network.connection"
]
},
{
- "file": "plugins/cordova-plugin-geolocation/www/PositionError.js",
- "id": "cordova-plugin-geolocation.PositionError",
+ "file": "plugins/cordova-plugin-network-information/www/Connection.js",
+ "id": "cordova-plugin-network-information.Connection",
+ "clobbers": [
+ "Connection"
+ ]
+ },
+ {
+ "file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js",
+ "id": "cordova-plugin-splashscreen.SplashScreen",
+ "clobbers": [
+ "navigator.splashscreen"
+ ]
+ },
+ {
+ "file": "plugins/cordova-plugin-whitelist/whitelist.js",
+ "id": "cordova-plugin-whitelist.whitelist",
"runs": true
},
{
@@ -314,17 +314,17 @@ module.exports.metadata =
// TOP OF METADATA
{
"cordova-plugin-compat": "1.0.0",
- "cordova-plugin-whitelist": "1.2.1",
+ "cordova-plugin-camera": "2.1.2-dev",
"cordova-plugin-console": "1.0.3-dev",
"cordova-plugin-device": "1.1.2-dev",
- "cordova-plugin-camera": "2.1.2-dev",
- "cordova-plugin-splashscreen": "3.2.2-dev",
- "cordova-plugin-network-information": "1.2.1-dev",
"cordova-plugin-dialogs": "1.2.1-dev",
"cordova-plugin-file": "4.1.1",
+ "cordova-plugin-geolocation": "2.1.1-dev",
"cordova-plugin-media": "2.2.1-dev",
"cordova-plugin-media-capture": "1.2.1-dev",
- "cordova-plugin-geolocation": "2.1.1-dev",
+ "cordova-plugin-network-information": "1.2.1-dev",
+ "cordova-plugin-splashscreen": "3.2.2-dev",
+ "cordova-plugin-whitelist": "1.2.1",
"phonegap-plugin-barcodescanner": "6.0.1"
};
// BOTTOM OF METADATA
diff --git a/platforms/android/assets/www/css/main.css b/platforms/android/assets/www/css/main.css
index e32f3e4..12e496f 100644
--- a/platforms/android/assets/www/css/main.css
+++ b/platforms/android/assets/www/css/main.css
@@ -1,3 +1,7 @@
+body {
+ color: #eee;
+}
+
.brandlogo {
margin-top: 20px;
margin-left: auto;
@@ -270,4 +274,24 @@ body {
border-right: 1px solid white;
padding-top: 10px;
margin-top: -10px;
+}
+
+#place-name {
+ max-width: 90%;
+ border-bottom: 1px solid white;
+ border-left: 1px solid white;
+ padding-left: 5px;
+ padding-bottom: 2px;
+}
+
+#place-info-div {
+ font-size: 120%;
+ padding: 5px;
+ border-right: 1px solid white;
+ border-top: 1px solid white;
+}
+
+#team-choice-list {
+ color: #000;
+ font-size: 120%;
}
\ No newline at end of file
diff --git a/platforms/android/assets/www/js/auth.js b/platforms/android/assets/www/js/auth.js
index 344b93e..ef9ca18 100644
--- a/platforms/android/assets/www/js/auth.js
+++ b/platforms/android/assets/www/js/auth.js
@@ -25,6 +25,22 @@ function logout() {
$('#content-zone').load("screens/login.html");
}
+function checkUserHasTeamOpenChooserIfNot(username) {
+ $.getJSON(mkApiUrl('getstats', 'gs'), {
+ user: username
+ }, function (data) {
+ if (data.status === 'OK' && data.stats.teamid !== null && data.stats.teamid > 0) {
+ // We're all good.
+ openscreen("home");
+ } else {
+ // Open the team intro thingy
+ openscreen('chooseteam');
+ }
+ }).fail(function () {
+
+ });
+}
+
function dosignup() {
if (authOpInProgress) {
return;
@@ -60,7 +76,7 @@ function dosignup() {
password = $('#passwordBox').val();
localStorage.setItem("username", username);
localStorage.setItem("password", password);
- openscreen("home");
+ checkUserHasTeamOpenChooserIfNot(username);
} else {
$('#signupBtn').html(' Sign Up');
$('#signupBtn').attr('disabled', false);
@@ -104,7 +120,7 @@ function dologin() {
localStorage.setItem("username", username);
localStorage.setItem("password", password);
navigator.splashscreen.hide();
- openscreen("home");
+ checkUserHasTeamOpenChooserIfNot(username);
} else {
$('#loginBtn').html(' Login');
$('#loginBtn').attr('disabled', false);
diff --git a/platforms/android/assets/www/js/main.js b/platforms/android/assets/www/js/main.js
index 9d3857a..421b3e2 100644
--- a/platforms/android/assets/www/js/main.js
+++ b/platforms/android/assets/www/js/main.js
@@ -116,6 +116,7 @@ function closeMain() {
}
function getTeamInfoFromId(id) {
+ id = id + "";
var team_string = "None";
var team_color = "FFFFFF";
switch (id) {
diff --git a/platforms/android/assets/www/screens/chooseteam.html b/platforms/android/assets/www/screens/chooseteam.html
new file mode 100644
index 0000000..c00fccc
--- /dev/null
+++ b/platforms/android/assets/www/screens/chooseteam.html
@@ -0,0 +1,56 @@
+
Choose Your Magic
+Before you can harness the power of magic, you must make a difficult choice.
+
+ The key to unlocking your inner power is channeling it into one of the elements.
+ Once you have chosen, it is extremely difficult to change.
+
+ Choose wisely.
+
+
+
+
+Continue
+
diff --git a/platforms/android/assets/www/screens/home.html b/platforms/android/assets/www/screens/home.html
index d9f9502..2d127d6 100644
--- a/platforms/android/assets/www/screens/home.html
+++ b/platforms/android/assets/www/screens/home.html
@@ -28,7 +28,7 @@
- Energy
+ Life
diff --git a/platforms/android/assets/www/screens/place.html b/platforms/android/assets/www/screens/place.html
index 7853717..d9b5c44 100644
--- a/platforms/android/assets/www/screens/place.html
+++ b/platforms/android/assets/www/screens/place.html
@@ -1,13 +1,18 @@
\ No newline at end of file
diff --git a/platforms/android/platform_www/cordova_plugins.js b/platforms/android/platform_www/cordova_plugins.js
index af5f356..93dfdbf 100644
--- a/platforms/android/platform_www/cordova_plugins.js
+++ b/platforms/android/platform_www/cordova_plugins.js
@@ -1,17 +1,5 @@
cordova.define('cordova/plugin_list', function(require, exports, module) {
module.exports = [
- {
- "file": "plugins/cordova-plugin-whitelist/whitelist.js",
- "id": "cordova-plugin-whitelist.whitelist",
- "runs": true
- },
- {
- "file": "plugins/cordova-plugin-device/www/device.js",
- "id": "cordova-plugin-device.device",
- "clobbers": [
- "device"
- ]
- },
{
"file": "plugins/cordova-plugin-camera/www/CameraConstants.js",
"id": "cordova-plugin-camera.Camera",
@@ -41,25 +29,10 @@ module.exports = [
]
},
{
- "file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js",
- "id": "cordova-plugin-splashscreen.SplashScreen",
+ "file": "plugins/cordova-plugin-device/www/device.js",
+ "id": "cordova-plugin-device.device",
"clobbers": [
- "navigator.splashscreen"
- ]
- },
- {
- "file": "plugins/cordova-plugin-network-information/www/network.js",
- "id": "cordova-plugin-network-information.network",
- "clobbers": [
- "navigator.connection",
- "navigator.network.connection"
- ]
- },
- {
- "file": "plugins/cordova-plugin-network-information/www/Connection.js",
- "id": "cordova-plugin-network-information.Connection",
- "clobbers": [
- "Connection"
+ "device"
]
},
{
@@ -227,6 +200,18 @@ module.exports = [
],
"runs": true
},
+ {
+ "file": "plugins/cordova-plugin-geolocation/www/android/geolocation.js",
+ "id": "cordova-plugin-geolocation.geolocation",
+ "clobbers": [
+ "navigator.geolocation"
+ ]
+ },
+ {
+ "file": "plugins/cordova-plugin-geolocation/www/PositionError.js",
+ "id": "cordova-plugin-geolocation.PositionError",
+ "runs": true
+ },
{
"file": "plugins/cordova-plugin-media/www/MediaError.js",
"id": "cordova-plugin-media.MediaError",
@@ -291,15 +276,30 @@ module.exports = [
]
},
{
- "file": "plugins/cordova-plugin-geolocation/www/android/geolocation.js",
- "id": "cordova-plugin-geolocation.geolocation",
+ "file": "plugins/cordova-plugin-network-information/www/network.js",
+ "id": "cordova-plugin-network-information.network",
"clobbers": [
- "navigator.geolocation"
+ "navigator.connection",
+ "navigator.network.connection"
]
},
{
- "file": "plugins/cordova-plugin-geolocation/www/PositionError.js",
- "id": "cordova-plugin-geolocation.PositionError",
+ "file": "plugins/cordova-plugin-network-information/www/Connection.js",
+ "id": "cordova-plugin-network-information.Connection",
+ "clobbers": [
+ "Connection"
+ ]
+ },
+ {
+ "file": "plugins/cordova-plugin-splashscreen/www/splashscreen.js",
+ "id": "cordova-plugin-splashscreen.SplashScreen",
+ "clobbers": [
+ "navigator.splashscreen"
+ ]
+ },
+ {
+ "file": "plugins/cordova-plugin-whitelist/whitelist.js",
+ "id": "cordova-plugin-whitelist.whitelist",
"runs": true
},
{
@@ -314,17 +314,17 @@ module.exports.metadata =
// TOP OF METADATA
{
"cordova-plugin-compat": "1.0.0",
- "cordova-plugin-whitelist": "1.2.1",
+ "cordova-plugin-camera": "2.1.2-dev",
"cordova-plugin-console": "1.0.3-dev",
"cordova-plugin-device": "1.1.2-dev",
- "cordova-plugin-camera": "2.1.2-dev",
- "cordova-plugin-splashscreen": "3.2.2-dev",
- "cordova-plugin-network-information": "1.2.1-dev",
"cordova-plugin-dialogs": "1.2.1-dev",
"cordova-plugin-file": "4.1.1",
+ "cordova-plugin-geolocation": "2.1.1-dev",
"cordova-plugin-media": "2.2.1-dev",
"cordova-plugin-media-capture": "1.2.1-dev",
- "cordova-plugin-geolocation": "2.1.1-dev",
+ "cordova-plugin-network-information": "1.2.1-dev",
+ "cordova-plugin-splashscreen": "3.2.2-dev",
+ "cordova-plugin-whitelist": "1.2.1",
"phonegap-plugin-barcodescanner": "6.0.1"
};
// BOTTOM OF METADATA
diff --git a/platforms/android/res/xml/config.xml b/platforms/android/res/xml/config.xml
index e89921f..b5b43ba 100644
--- a/platforms/android/res/xml/config.xml
+++ b/platforms/android/res/xml/config.xml
@@ -1,22 +1,11 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
@@ -25,14 +14,25 @@
+
+
+
-
-
+
+
+
+
+
+
+
+
+
+
diff --git a/platforms/browser/www/assets/logonobg.svg b/platforms/browser/www/assets/logonobg.svg
index 4a51efb..425f7e7 100644
--- a/platforms/browser/www/assets/logonobg.svg
+++ b/platforms/browser/www/assets/logonobg.svg
@@ -15,145 +15,13 @@
viewBox="0 0 1321.5612 429.71863"
id="svg2"
version="1.1"
- inkscape:version="0.91 r13725"
- sodipodi:docname="logonobg.svg">
+ inkscape:version="0.91 r"
+ sodipodi:docname="logonobg.svg"
+ inkscape:export-filename="/home/skylar/Documents/Projects/Assets/TerranQuest/logo-3.0/png/logonobg.png"
+ inkscape:export-xdpi="52.369881"
+ inkscape:export-ydpi="52.369881">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -247,7 +95,7 @@
image/svg+xml
-
+
@@ -261,194 +109,53 @@
transform="matrix(0.57053535,0,0,0.57053535,343.19761,121.49738)"
inkscape:export-xdpi="34.138618"
inkscape:export-ydpi="34.138618">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/platforms/browser/www/css/main.css b/platforms/browser/www/css/main.css
index e32f3e4..12e496f 100644
--- a/platforms/browser/www/css/main.css
+++ b/platforms/browser/www/css/main.css
@@ -1,3 +1,7 @@
+body {
+ color: #eee;
+}
+
.brandlogo {
margin-top: 20px;
margin-left: auto;
@@ -270,4 +274,24 @@ body {
border-right: 1px solid white;
padding-top: 10px;
margin-top: -10px;
+}
+
+#place-name {
+ max-width: 90%;
+ border-bottom: 1px solid white;
+ border-left: 1px solid white;
+ padding-left: 5px;
+ padding-bottom: 2px;
+}
+
+#place-info-div {
+ font-size: 120%;
+ padding: 5px;
+ border-right: 1px solid white;
+ border-top: 1px solid white;
+}
+
+#team-choice-list {
+ color: #000;
+ font-size: 120%;
}
\ No newline at end of file
diff --git a/platforms/browser/www/js/auth.js b/platforms/browser/www/js/auth.js
index 344b93e..ef9ca18 100644
--- a/platforms/browser/www/js/auth.js
+++ b/platforms/browser/www/js/auth.js
@@ -25,6 +25,22 @@ function logout() {
$('#content-zone').load("screens/login.html");
}
+function checkUserHasTeamOpenChooserIfNot(username) {
+ $.getJSON(mkApiUrl('getstats', 'gs'), {
+ user: username
+ }, function (data) {
+ if (data.status === 'OK' && data.stats.teamid !== null && data.stats.teamid > 0) {
+ // We're all good.
+ openscreen("home");
+ } else {
+ // Open the team intro thingy
+ openscreen('chooseteam');
+ }
+ }).fail(function () {
+
+ });
+}
+
function dosignup() {
if (authOpInProgress) {
return;
@@ -60,7 +76,7 @@ function dosignup() {
password = $('#passwordBox').val();
localStorage.setItem("username", username);
localStorage.setItem("password", password);
- openscreen("home");
+ checkUserHasTeamOpenChooserIfNot(username);
} else {
$('#signupBtn').html(' Sign Up');
$('#signupBtn').attr('disabled', false);
@@ -104,7 +120,7 @@ function dologin() {
localStorage.setItem("username", username);
localStorage.setItem("password", password);
navigator.splashscreen.hide();
- openscreen("home");
+ checkUserHasTeamOpenChooserIfNot(username);
} else {
$('#loginBtn').html(' Login');
$('#loginBtn').attr('disabled', false);
diff --git a/platforms/browser/www/js/main.js b/platforms/browser/www/js/main.js
index 9d3857a..421b3e2 100644
--- a/platforms/browser/www/js/main.js
+++ b/platforms/browser/www/js/main.js
@@ -116,6 +116,7 @@ function closeMain() {
}
function getTeamInfoFromId(id) {
+ id = id + "";
var team_string = "None";
var team_color = "FFFFFF";
switch (id) {
diff --git a/platforms/browser/www/screens/chooseteam.html b/platforms/browser/www/screens/chooseteam.html
new file mode 100644
index 0000000..c00fccc
--- /dev/null
+++ b/platforms/browser/www/screens/chooseteam.html
@@ -0,0 +1,56 @@
+Choose Your Magic
+Before you can harness the power of magic, you must make a difficult choice.
+
+ The key to unlocking your inner power is channeling it into one of the elements.
+ Once you have chosen, it is extremely difficult to change.
+
+ Choose wisely.
+
+
+
+
+Continue
+
diff --git a/platforms/browser/www/screens/home.html b/platforms/browser/www/screens/home.html
index d9f9502..2d127d6 100644
--- a/platforms/browser/www/screens/home.html
+++ b/platforms/browser/www/screens/home.html
@@ -28,7 +28,7 @@
- Energy
+ Life
diff --git a/platforms/browser/www/screens/place.html b/platforms/browser/www/screens/place.html
index 7853717..d9b5c44 100644
--- a/platforms/browser/www/screens/place.html
+++ b/platforms/browser/www/screens/place.html
@@ -1,13 +1,18 @@
\ No newline at end of file
diff --git a/plugins/android.json b/plugins/android.json
index e425c3c..83cf89e 100644
--- a/plugins/android.json
+++ b/plugins/android.json
@@ -7,7 +7,7 @@
"files": {}
},
"installed_plugins": {
- "cordova-plugin-whitelist": {
+ "cordova-plugin-camera": {
"PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
},
"cordova-plugin-console": {
@@ -16,25 +16,25 @@
"cordova-plugin-device": {
"PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
},
- "cordova-plugin-camera": {
- "PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
- },
- "cordova-plugin-splashscreen": {
- "PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
- },
- "cordova-plugin-network-information": {
- "PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
- },
"cordova-plugin-dialogs": {
"PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
},
+ "cordova-plugin-geolocation": {
+ "PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
+ },
"cordova-plugin-media": {
"PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
},
"cordova-plugin-media-capture": {
"PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
},
- "cordova-plugin-geolocation": {
+ "cordova-plugin-network-information": {
+ "PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
+ },
+ "cordova-plugin-splashscreen": {
+ "PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
+ },
+ "cordova-plugin-whitelist": {
"PACKAGE_NAME": "com.netsyms.terranquest.TerranQuest"
},
"phonegap-plugin-barcodescanner": {
diff --git a/www/assets/logonobg.svg b/www/assets/logonobg.svg
index 4a51efb..425f7e7 100644
--- a/www/assets/logonobg.svg
+++ b/www/assets/logonobg.svg
@@ -15,145 +15,13 @@
viewBox="0 0 1321.5612 429.71863"
id="svg2"
version="1.1"
- inkscape:version="0.91 r13725"
- sodipodi:docname="logonobg.svg">
+ inkscape:version="0.91 r"
+ sodipodi:docname="logonobg.svg"
+ inkscape:export-filename="/home/skylar/Documents/Projects/Assets/TerranQuest/logo-3.0/png/logonobg.png"
+ inkscape:export-xdpi="52.369881"
+ inkscape:export-ydpi="52.369881">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
@@ -247,7 +95,7 @@
image/svg+xml
-
+
@@ -261,194 +109,53 @@
transform="matrix(0.57053535,0,0,0.57053535,343.19761,121.49738)"
inkscape:export-xdpi="34.138618"
inkscape:export-ydpi="34.138618">
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/www/css/main.css b/www/css/main.css
index e32f3e4..12e496f 100644
--- a/www/css/main.css
+++ b/www/css/main.css
@@ -1,3 +1,7 @@
+body {
+ color: #eee;
+}
+
.brandlogo {
margin-top: 20px;
margin-left: auto;
@@ -270,4 +274,24 @@ body {
border-right: 1px solid white;
padding-top: 10px;
margin-top: -10px;
+}
+
+#place-name {
+ max-width: 90%;
+ border-bottom: 1px solid white;
+ border-left: 1px solid white;
+ padding-left: 5px;
+ padding-bottom: 2px;
+}
+
+#place-info-div {
+ font-size: 120%;
+ padding: 5px;
+ border-right: 1px solid white;
+ border-top: 1px solid white;
+}
+
+#team-choice-list {
+ color: #000;
+ font-size: 120%;
}
\ No newline at end of file
diff --git a/www/js/auth.js b/www/js/auth.js
index 344b93e..ef9ca18 100644
--- a/www/js/auth.js
+++ b/www/js/auth.js
@@ -25,6 +25,22 @@ function logout() {
$('#content-zone').load("screens/login.html");
}
+function checkUserHasTeamOpenChooserIfNot(username) {
+ $.getJSON(mkApiUrl('getstats', 'gs'), {
+ user: username
+ }, function (data) {
+ if (data.status === 'OK' && data.stats.teamid !== null && data.stats.teamid > 0) {
+ // We're all good.
+ openscreen("home");
+ } else {
+ // Open the team intro thingy
+ openscreen('chooseteam');
+ }
+ }).fail(function () {
+
+ });
+}
+
function dosignup() {
if (authOpInProgress) {
return;
@@ -60,7 +76,7 @@ function dosignup() {
password = $('#passwordBox').val();
localStorage.setItem("username", username);
localStorage.setItem("password", password);
- openscreen("home");
+ checkUserHasTeamOpenChooserIfNot(username);
} else {
$('#signupBtn').html(' Sign Up');
$('#signupBtn').attr('disabled', false);
@@ -104,7 +120,7 @@ function dologin() {
localStorage.setItem("username", username);
localStorage.setItem("password", password);
navigator.splashscreen.hide();
- openscreen("home");
+ checkUserHasTeamOpenChooserIfNot(username);
} else {
$('#loginBtn').html(' Login');
$('#loginBtn').attr('disabled', false);
diff --git a/www/js/main.js b/www/js/main.js
index 9d3857a..421b3e2 100644
--- a/www/js/main.js
+++ b/www/js/main.js
@@ -116,6 +116,7 @@ function closeMain() {
}
function getTeamInfoFromId(id) {
+ id = id + "";
var team_string = "None";
var team_color = "FFFFFF";
switch (id) {
diff --git a/www/screens/chooseteam.html b/www/screens/chooseteam.html
new file mode 100644
index 0000000..de31813
--- /dev/null
+++ b/www/screens/chooseteam.html
@@ -0,0 +1,56 @@
+Choose Your Magic
+Before you can harness the power of magic, you must make a difficult choice.
+
+ The key to unlocking your inner power is channeling it into one of the elements.
+ Once you have chosen, you cannot change your mind.
+
+ Choose wisely.
+
+
+
+
+Continue
+
diff --git a/www/screens/home.html b/www/screens/home.html
index d9f9502..2d127d6 100644
--- a/www/screens/home.html
+++ b/www/screens/home.html
@@ -28,7 +28,7 @@
- Energy
+ Life
diff --git a/www/screens/place.html b/www/screens/place.html
index 7853717..d9b5c44 100644
--- a/www/screens/place.html
+++ b/www/screens/place.html
@@ -1,13 +1,18 @@
\ No newline at end of file