|
|
|
<!DOCTYPE html>
|
|
|
|
<!--
|
|
|
|
This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
-->
|
|
|
|
<title>Station</title>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<link rel="icon" href="assets/img/logo_64.png">
|
|
|
|
<link href="assets/css/bootstrap.min.css" rel="stylesheet" />
|
|
|
|
<link href="assets/css/other.css" rel="stylesheet" />
|
|
|
|
|
|
|
|
<div class="btn btn-outline-primary btn-sm" id="sign-out-btn" style="display: none; position: fixed; top: 10px; right: 10px; z-index: 9999999;" onclick="document.location.href = 'index.html'"><i class="fas fa-sign-out-alt"></i> Log out</div>
|
|
|
|
<div class="btn btn-outline-success btn-sm" id="refresh-btn" style="display: none; position: fixed; top: 10px; left: 10px; z-index: 9999999;" onclick="openScreen('home')"><i class="fas fa-sync"></i> Refresh</div>
|
|
|
|
|
|
|
|
<div id="alert-box">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="modal" tabindex="-1" role="dialog" id="creditsmodal">
|
|
|
|
<div class="modal-dialog modal-lg" role="document">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
|
|
|
<h5 class="modal-title"><i class="fas fa-gavel"></i> Credits</h5>
|
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body" id="creditsbody">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div id="content-frame" style="position: absolute; top: 0; left: 0; height: 100%; width: 100%; padding-top: 30px;">
|
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div style="position: fixed; bottom: 0; left: 0; width: 100%; height: 3px; z-index: 9999999;" id="timeout-bar-box">
|
|
|
|
<div id="timeout-bar" style="width: 0%; background-color: #2196F3; height: 100%;"></div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script src="assets/js/jquery-3.2.1.min.js"></script>
|
|
|
|
<script src="assets/js/popper.min.js"></script>
|
|
|
|
<script src="assets/js/bootstrap.min.js"></script>
|
|
|
|
<script src="assets/js/fontawesome-all.min.js"></script>
|
|
|
|
<script src="js/init.js"></script>
|
|
|
|
<script src="js/functions.js"></script>
|
|
|
|
<script src="js/settings.js"></script>
|
|
|
|
<script src="js/session.js"></script>
|
|
|
|
<script src="cordova.js"></script>
|
|
|
|
<script>
|
|
|
|
validateSettings(function (resp) {
|
|
|
|
if (resp === true) {
|
|
|
|
openScreen("login");
|
|
|
|
} else if (resp === false) {
|
|
|
|
openScreen("noconnection");
|
|
|
|
} else {
|
|
|
|
openScreen("setup");
|
|
|
|
}
|
|
|
|
});
|
|
|
|
|
|
|
|
if (kioskmode) {
|
|
|
|
if (typeof nw !== 'undefined') {
|
|
|
|
nw.Window.get().enterKioskMode();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
/* Cordova fullscreen */
|
|
|
|
document.addEventListener("deviceready", function () {
|
|
|
|
if (kioskmode && typeof AndroidFullScreen !== 'undefined') {
|
|
|
|
AndroidFullScreen.immersiveMode();
|
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|