2022-07-20 08:43:57 -04:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1">
|
2023-09-13 12:05:40 -04:00
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
|
|
|
|
<script src="/static/js/upstream/jquery.toast.js"></script>
|
|
|
|
<!--<script src="/static/js/upstream/jquery.min.js"></script> -->
|
2023-08-22 12:44:06 -04:00
|
|
|
<!-- <link rel="stylesheet" href="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css"> -->
|
2023-09-13 12:05:40 -04:00
|
|
|
<!-- <link rel="stylesheet" href="/static/css/upstream/jquery-ui.css">
|
|
|
|
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.13.1/jquery-ui.min.js"></script> -->
|
|
|
|
<!-- <script src="/static/js/upstream/jquery-ui.min.js"></script> -->
|
2023-08-22 12:44:06 -04:00
|
|
|
<!-- <script src="https://cdn.socket.io/4.1.2/socket.io.min.js" integrity="sha384-toS6mmwu70G0fw54EGlWWeA4z3dyJ+dlXBtSURSKN4vyRFOcxd3Bzjj/AoOwY+Rg" crossorigin="anonymous"></script> -->
|
|
|
|
<script src="/static/js/upstream/socket.io.min.js"></script>
|
2022-07-20 08:43:57 -04:00
|
|
|
|
2023-09-08 11:19:24 -04:00
|
|
|
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-4bw+/aepP/YC94hEpVNVgiZdgIC5+VKNBQNGCHeKRQN+PtmoHDEXuppvnDJzQIu9" crossorigin="anonymous">
|
|
|
|
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-HwwvtgBNo3bZJJLYd8oVXjrBZt8cqVSpeBNS5n7C8IVInixGAoxmnlMuBnhbgrkm" crossorigin="anonymous"></script>
|
2022-07-20 08:43:57 -04:00
|
|
|
|
2023-09-06 11:20:59 -04:00
|
|
|
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Material+Symbols+Rounded:opsz,wght,FILL,GRAD@24,200,1,200">
|
2023-09-13 12:05:40 -04:00
|
|
|
<link rel="stylesheet" href="/static/css/upstream/jquery.toast.css">
|
2023-09-06 11:20:59 -04:00
|
|
|
|
2023-09-10 11:12:38 -04:00
|
|
|
<link rel="stylesheet" href="/static/css/chat.css">
|
2022-07-20 08:43:57 -04:00
|
|
|
<link rel="stylesheet" href="/static/css/index.css">
|
|
|
|
<link rel="stylesheet" href="/static/css/tabs.css">
|
|
|
|
<script src="/static/js/main.js"></script>
|
2022-11-30 15:17:28 -05:00
|
|
|
<script src="/static/js/gps.js"></script>
|
2022-07-20 08:43:57 -04:00
|
|
|
<script src="/static/js/send-message.js"></script>
|
|
|
|
|
|
|
|
<script type="text/javascript">
|
|
|
|
var initial_stats = {{ initial_stats|tojson|safe }};
|
2023-08-22 12:31:44 -04:00
|
|
|
var latitude = parseFloat('{{ latitude|safe }}');
|
|
|
|
var longitude = parseFloat('{{ longitude|safe }}');
|
2022-07-20 08:43:57 -04:00
|
|
|
|
|
|
|
var memory_chart = null
|
|
|
|
var message_chart = null
|
|
|
|
|
|
|
|
$(document).ready(function() {
|
|
|
|
console.log(initial_stats);
|
|
|
|
start_update();
|
|
|
|
init_chat();
|
2023-09-08 11:19:24 -04:00
|
|
|
//reset_Tabs();
|
2023-08-14 18:45:13 -04:00
|
|
|
|
2023-08-22 12:31:44 -04:00
|
|
|
console.log("latitude", latitude);
|
|
|
|
console.log("longitude", longitude);
|
|
|
|
|
|
|
|
if (isNaN(latitude) || isNaN(longitude) && location.protocol != 'https:') {
|
2023-08-14 18:45:13 -04:00
|
|
|
// Have to disable the beacon button.
|
|
|
|
$('#send_beacon').prop('disabled', true);
|
|
|
|
}
|
2023-09-05 14:14:52 -04:00
|
|
|
|
|
|
|
$("#wipe_local").click(function() {
|
|
|
|
console.log('Wipe local storage');
|
|
|
|
localStorage.clear();
|
|
|
|
});
|
2023-09-12 15:44:34 -04:00
|
|
|
|
2023-09-12 16:37:06 -04:00
|
|
|
// When a tab is clicked, populate the to_call form field.
|
|
|
|
$(document).on('shown.bs.tab', 'button[data-bs-toggle="tab"]', function (e) {
|
|
|
|
var tab = $(e.target);
|
|
|
|
var callsign = tab.attr("callsign");
|
|
|
|
var to_call = $('#to_call');
|
|
|
|
to_call.val(callsign);
|
|
|
|
});
|
2023-09-12 15:44:34 -04:00
|
|
|
});
|
2023-09-12 16:37:06 -04:00
|
|
|
|
2022-07-20 08:43:57 -04:00
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
2023-09-08 11:19:24 -04:00
|
|
|
<div class='container text-center'>
|
|
|
|
<div class="row">
|
|
|
|
<div class="column">
|
|
|
|
<h1>APRSD WebChat {{ version }}</h1>
|
|
|
|
</div>
|
2022-07-20 08:43:57 -04:00
|
|
|
</div>
|
2023-09-08 11:19:24 -04:00
|
|
|
<div class="row">
|
|
|
|
<div class="column">
|
|
|
|
<span style='color: green'>{{ callsign }}</span>
|
|
|
|
connected to
|
|
|
|
<span style='color: blue' id='aprs_connection'>{{ aprs_connection|safe }}</span>
|
|
|
|
<span id='uptime'>NONE</span>
|
|
|
|
</div>
|
2022-07-20 08:43:57 -04:00
|
|
|
</div>
|
2023-09-08 11:19:24 -04:00
|
|
|
<div class="row">
|
2023-09-10 12:13:05 -04:00
|
|
|
<form class="row gx-1 gy-1 justify-content-center align-items-center" id="sendform" name="sendmsg" action="">
|
2023-09-08 11:19:24 -04:00
|
|
|
<div class="col-sm-3">
|
|
|
|
<label for="to_call" class="visually-hidden">Callsign</label>
|
2023-09-10 12:13:05 -04:00
|
|
|
<input type="search" class="form-control mb-2 mr-sm-2" name="to_call" id="to_call" placeholder="To Callsign" size="11" maxlength="9">
|
2022-07-20 08:43:57 -04:00
|
|
|
</div>
|
2023-09-08 11:19:24 -04:00
|
|
|
<div class="col-sm-3">
|
|
|
|
<label for="message" class="visually-hidden">Message</label>
|
|
|
|
<input type="text" class="form-control mb-2 mr-sm-2" name="message" id="message" size="40" maxlength="40" placeholder="Message">
|
|
|
|
</div>
|
|
|
|
<div class="col-auto">
|
|
|
|
<input type="submit" name="submit" class="btn btn-primary mb-2" id="send_msg" value="Send" />
|
|
|
|
<button type="button" class="btn btn-primary mb-2" id="send_beacon" value="Send GPS Beacon">Send GPS Beacon</button>
|
2023-09-08 12:34:13 -04:00
|
|
|
<!-- <button type="button" class="btn btn-primary mb-2" id="wipe_local" value="wipe local storage">Wipe LocalStorage</button> -->
|
2022-07-20 08:43:57 -04:00
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
|
2023-09-08 11:19:24 -04:00
|
|
|
<div class="row">
|
|
|
|
<div class="container-sm" style="max-width: 800px;">
|
|
|
|
<ul class="nav nav-tabs" id="msgsTabList" role="tablist">
|
|
|
|
</ul>
|
|
|
|
<div class="tab-content" id="msgsTabContent">
|
|
|
|
</div>
|
|
|
|
</div>
|
2022-07-20 08:43:57 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="ui text container" style="padding-top: 40px">
|
|
|
|
<a href="https://badge.fury.io/py/aprsd"><img src="https://badge.fury.io/py/aprsd.svg" alt="PyPI version" height="18"></a>
|
|
|
|
<a href="https://github.com/craigerl/aprsd"><img src="https://img.shields.io/badge/Made%20with-Python-1f425f.svg" height="18"></a>
|
|
|
|
</div>
|
|
|
|
</body>
|
|
|
|
</html>
|