Add minimum client version check code, modify critical error handling,
bump version to 1.5.2master
parent
cb411cd5c6
commit
ee2b224b0e
@ -0,0 +1,99 @@
|
||||
<!--
|
||||
TerranQuest - Augmented Reality fantasy game
|
||||
|
||||
Copyright 2016 Netsyms Technologies
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<meta http-equiv="Content-Security-Policy"
|
||||
content="default-src *;
|
||||
style-src * 'self' 'unsafe-inline' 'unsafe-eval';
|
||||
script-src * 'self' 'unsafe-inline' 'unsafe-eval';">
|
||||
|
||||
<title>TerranQuest</title>
|
||||
|
||||
<!-- Bootstrap Core CSS -->
|
||||
<link href="css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<link href="css/main.css" rel="stylesheet">
|
||||
|
||||
<!-- FontAwesome -->
|
||||
<link href="css/font-awesome.css" rel="stylesheet">
|
||||
|
||||
<!-- jQuery Version 1.11.1 -->
|
||||
<script src="js/jquery.js"></script>
|
||||
<!-- i18n -->
|
||||
<script src="js/jquery.localize.js"></script>
|
||||
<script>
|
||||
var i18n_options = {pathPrefix: "lang", skipLanguage: "en-US"};
|
||||
</script>
|
||||
|
||||
<!-- Bootstrap Core JavaScript -->
|
||||
<script src="js/bootstrap.js"></script>
|
||||
|
||||
<script src="cordova.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="modal-load-box" class="container" style='z-index: 1000;'>
|
||||
|
||||
</div>
|
||||
<div class="container" id="content-zone" style='z-index: 1;'>
|
||||
<div style="position: absolute; width: 100%; height: 100%; top: 0; left: 0; background-color: #324150; z-index: 9999;">
|
||||
<img src="assets/logonobg.svg" alt="" style="display: block; position: absolute; max-width: 90%; top: 0; left: 0; right: 0; bottom: 25%; margin: auto; max-height: 20%;" />
|
||||
<p style="font-family: sans-serif; color: white; position: absolute; max-width: 90%; left: 0; right: 0; bottom: 30%; margin: auto; text-align: center;">
|
||||
<span id="clientproblemmsg">A game error occurred.</span>
|
||||
<br /><br />
|
||||
<button class="btn btn-primary" onclick="navigator.app.exitApp()">Quit game</button>
|
||||
<div style="background: url(assets/mountains-simple.svg) repeat-x; background-size: auto 100%; height: 20%; position: absolute; bottom: 0; width: 100%;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
/*
|
||||
* http://stackoverflow.com/a/21903119/2534036
|
||||
*/
|
||||
var getUrlParameter = function getUrlParameter(sParam) {
|
||||
var sPageURL = decodeURIComponent(window.location.search.substring(1)),
|
||||
sURLVariables = sPageURL.split('&'),
|
||||
sParameterName,
|
||||
i;
|
||||
|
||||
for (i = 0; i < sURLVariables.length; i++) {
|
||||
sParameterName = sURLVariables[i].split('=');
|
||||
|
||||
if (sParameterName[0] === sParam) {
|
||||
return sParameterName[1] === undefined ? true : sParameterName[1];
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
$('#clientproblemmsg').text(getUrlParameter('errmsg'));
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
@ -1,37 +0,0 @@
|
||||
<!--
|
||||
TerranQuest - Augmented Reality fantasy game
|
||||
|
||||
Copyright 2016 Netsyms Technologies
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<div style="position: absolute; width: 100%; height: 100%; top: 0; left: 0; background-color: #324150; z-index: 9999;">
|
||||
<img src="assets/logonobg.svg" alt="" style="display: block; position: absolute; max-width: 90%; top: 0; left: 0; right: 0; bottom: 25%; margin: auto; max-height: 20%;" />
|
||||
<p style="font-family: sans-serif; color: white; position: absolute; max-width: 90%; left: 0; right: 0; bottom: 30%; margin: auto; text-align: center;">
|
||||
We are experiencing server problems. Try again later.
|
||||
<br />
|
||||
<i class="fa fa-exclamation-triangle fa-3x"></i>
|
||||
<br />
|
||||
<span id="serverproblemmsg">(sorry)</span>
|
||||
<div style="background: url(assets/mountains-simple.svg) repeat-x; background-size: auto 100%; height: 20%; position: absolute; bottom: 0; width: 100%;"></div>
|
||||
</div>
|
||||
<script>
|
||||
/*
|
||||
* Stop all scheduled network activity
|
||||
*/
|
||||
var id = window.setTimeout(function () {}, 0);
|
||||
|
||||
while (id--) {
|
||||
window.clearTimeout(id);
|
||||
}
|
||||
</script>
|
@ -0,0 +1,101 @@
|
||||
<!--
|
||||
TerranQuest - Augmented Reality fantasy game
|
||||
|
||||
Copyright 2016 Netsyms Technologies
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
-->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="">
|
||||
|
||||
<meta http-equiv="Content-Security-Policy"
|
||||
content="default-src *;
|
||||
style-src * 'self' 'unsafe-inline' 'unsafe-eval';
|
||||
script-src * 'self' 'unsafe-inline' 'unsafe-eval';">
|
||||
|
||||
<title>TerranQuest</title>
|
||||
|
||||
<!-- Bootstrap Core CSS -->
|
||||
<link href="css/bootstrap.min.css" rel="stylesheet">
|
||||
|
||||
<link href="css/main.css" rel="stylesheet">
|
||||
|
||||
<!-- FontAwesome -->
|
||||
<link href="css/font-awesome.css" rel="stylesheet">
|
||||
|
||||
<!-- jQuery Version 1.11.1 -->
|
||||
<script src="js/jquery.js"></script>
|
||||
<!-- i18n -->
|
||||
<script src="js/jquery.localize.js"></script>
|
||||
<script>
|
||||
var i18n_options = {pathPrefix: "lang", skipLanguage: "en-US"};
|
||||
</script>
|
||||
|
||||
<!-- Bootstrap Core JavaScript -->
|
||||
<script src="js/bootstrap.js"></script>
|
||||
|
||||
<script src="cordova.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="modal-load-box" class="container" style='z-index: 1000;'>
|
||||
|
||||
</div>
|
||||
<div class="container" id="content-zone" style='z-index: 1;'>
|
||||
<div style="position: absolute; width: 100%; height: 100%; top: 0; left: 0; background-color: #324150; z-index: 9999;">
|
||||
<img src="assets/logonobg.svg" alt="" style="display: block; position: absolute; max-width: 90%; top: 0; left: 0; right: 0; bottom: 25%; margin: auto; max-height: 20%;" />
|
||||
<p id="servererrorp" style="font-family: sans-serif; color: white; position: absolute; max-width: 90%; left: 0; right: 0; bottom: 30%; margin: auto; text-align: center;">
|
||||
We are experiencing server problems. Try again later.
|
||||
<br />
|
||||
<i class="fa fa-exclamation-triangle fa-3x"></i>
|
||||
<br />
|
||||
<span id="serverproblemmsg">(sorry)</span>
|
||||
<div style="background: url(assets/mountains-simple.svg) repeat-x; background-size: auto 100%; height: 20%; position: absolute; bottom: 0; width: 100%;"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<script>
|
||||
/*
|
||||
* http://stackoverflow.com/a/21903119/2534036
|
||||
*/
|
||||
var getUrlParameter = function getUrlParameter(sParam) {
|
||||
var sPageURL = decodeURIComponent(window.location.search.substring(1)),
|
||||
sURLVariables = sPageURL.split('&'),
|
||||
sParameterName,
|
||||
i;
|
||||
|
||||
for (i = 0; i < sURLVariables.length; i++) {
|
||||
sParameterName = sURLVariables[i].split('=');
|
||||
|
||||
if (sParameterName[0] === sParam) {
|
||||
return sParameterName[1] === undefined ? true : sParameterName[1];
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
$(document).ready(function () {
|
||||
$('#serverproblemmsg').text(getUrlParameter('errmsg'));
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
Reference in New Issue