mirror of
https://github.com/wavelog/wavelog.git
synced 2026-03-22 10:24:14 +00:00
Added QSO-Count for SATs (JS-Part)
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user