Added QSO-Count for SATs (JS-Part)

This commit is contained in:
int2001
2024-01-23 08:02:12 +00:00
parent 79adf29166
commit 2d961d812e

View File

@@ -24,6 +24,12 @@ $("a[href='#qsotab']").on('shown.bs.tab', function(e) {
}
});
$("a[href='#satqsostab']").on('shown.bs.tab', function(e) {
if (!($('.satqsostab').length > 0)) {
totalSatQsosC();
}
});
$("a[href='#uniquetab']").on('shown.bs.tab', function(e) {
if (!($('.uniquetable').length > 0)) {
uniqueCallsigns();
@@ -72,6 +78,18 @@ function totalQsos() {
});
}
function totalSatQsosC() {
$.ajax({
url: base_url+'index.php/statistics/get_total_sat_qsos',
type: 'post',
success: function (data) {
if (data.length > 0) {
$(".satqsos").html(data);
}
}
});
}
function totalQsosPerYear() {
// using this to change color of legend and label according to background color
var color = ifDarkModeThemeReturn('white', 'grey');