[Bandmap] Added continent filter on chart tab
这个提交包含在:
父节点
6892ae7f12
当前提交
7514c88df3
共有 3 个文件被更改,包括 23 次插入 和 10 次删除
|
|
@ -19,7 +19,7 @@
|
|||
</ul>
|
||||
</div>
|
||||
<div class="tab-content" id="myTabContent">
|
||||
<div class="messages"></div>
|
||||
<div class="messages my-1 mr-2"></div>
|
||||
<div class="form-inline">
|
||||
<label class="my-1 mr-2" for="radio"><?php echo lang('gen_hamradio_radio'); ?></label>
|
||||
<select class="form-control-sm radios my-1 mr-sm-2" id="radio" name="radio">
|
||||
|
|
@ -29,6 +29,18 @@
|
|||
<?php } ?>
|
||||
</select>
|
||||
|
||||
<label class="my-1 mr-2" for="decontSelect">Spots de</label>
|
||||
<select class="form-control-sm my-1 mr-sm-2" id="decontSelect" name="dxcluster_decont" aria-describedby="dxcluster_decontHelp" required>
|
||||
<option value="Any">*</option>
|
||||
<option value="AF"<?php if ($this->optionslib->get_option('dxcluster_decont') == 'AF') { echo " selected"; } ?>>Africa</option>
|
||||
<option value="AN"<?php if ($this->optionslib->get_option('dxcluster_decont') == 'AN') { echo " selected"; } ?>>Antarctica</option>
|
||||
<option value="AS"<?php if ($this->optionslib->get_option('dxcluster_decont') == 'AS') { echo " selected"; } ?>>Asia</option>
|
||||
<option value="EU"<?php if ($this->optionslib->get_option('dxcluster_decont') == 'EU') { echo " selected"; } ?>>Europe</option>
|
||||
<option value="NA"<?php if ($this->optionslib->get_option('dxcluster_decont') == 'NA') { echo " selected"; } ?>>North America</option>
|
||||
<option value="OC"<?php if ($this->optionslib->get_option('dxcluster_decont') == 'OC') { echo " selected"; } ?>>Oceania</option>
|
||||
<option value="SA"<?php if ($this->optionslib->get_option('dxcluster_decont') == 'SA') { echo " selected"; } ?>>South America</option>
|
||||
</select>
|
||||
|
||||
<label class="my-1 mr-2" for="band"><?php echo lang('gen_hamradio_band'); ?></label>
|
||||
<select id="band" class="form-control-sm my-1 mr-sm-2" name="band">
|
||||
<?php foreach($bands as $key=>$bandgroup) {
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@
|
|||
</div>
|
||||
|
||||
<div class="tab-content" id="myTabContent">
|
||||
<div class="messages"></div>
|
||||
<div class="messages my-1 mr-2"></div>
|
||||
<div class="form-inline">
|
||||
<label class="my-1 mr-2" for="radio"><?php echo lang('gen_hamradio_radio'); ?></label>
|
||||
<select class="form-control-sm radios my-1 mr-sm-2" id="radio" name="radio">
|
||||
|
|
@ -68,8 +68,6 @@
|
|||
</select>
|
||||
</div>
|
||||
|
||||
<div class="card log">
|
||||
<div class="card-header"><h5 class="card-title">DXCluster</h5></div>
|
||||
<p>
|
||||
|
||||
<table style="width:100%" class="table-sm table spottable table-bordered table-hover table-striped table-condensed">
|
||||
|
|
@ -86,7 +84,6 @@
|
|||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -144,8 +144,8 @@ $(function() {
|
|||
}
|
||||
|
||||
|
||||
function set_chart(band,maxAgeMinutes) {
|
||||
let dxurl = dxcluster_provider + "/spots/" + band + "/" +maxAgeMinutes;
|
||||
function set_chart(band, de, maxAgeMinutes) {
|
||||
let dxurl = dxcluster_provider + "/spots/" + band + "/" +maxAgeMinutes + "/" + de;
|
||||
$.ajax({
|
||||
url: dxurl,
|
||||
cache: false,
|
||||
|
|
@ -178,11 +178,15 @@ $(function() {
|
|||
$('#menutoggle_i').addClass('fa-arrow-down');
|
||||
}
|
||||
});
|
||||
|
||||
set_chart($('#band option:selected').val(),30);
|
||||
|
||||
set_chart($('#band option:selected').val(), $('#decontSelect option:selected').val(), 30);
|
||||
setInterval(function () { update_chart($('#band option:selected').val(),30); },60000);
|
||||
$("#band").on("change",function() {
|
||||
set_chart($('#band option:selected').val(),30);
|
||||
set_chart($('#band option:selected').val(), $('#decontSelect option:selected').val(), 30);
|
||||
});
|
||||
|
||||
$("#decontSelect").on("change",function() {
|
||||
set_chart($('#band option:selected').val(), $('#decontSelect option:selected').val(), 30);
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
正在加载…
在新工单中引用