Merge pull request #1328 from phl0/linkQRZ

Add links to qrz.com and hamqth.com
这个提交包含在:
Andreas Kristiansen 2021-12-31 15:38:00 +01:00 提交者 GitHub
当前提交 9af94b933d
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 4 个文件被更改,包括 16 次插入4 次删除

查看文件

@ -59,10 +59,16 @@
<!-- Callsign Input -->
<div class="form-group">
<label for="callsign"><?php echo $this->lang->line('gen_hamradio_callsign'); ?></label>
<input type="text" class="form-control" id="callsign" name="callsign" required>
<small id="callsign_info" class="badge badge-secondary"></small> <small id="lotw_info" class="badge badge-light"></small>
<div class="form-row">
<div class="form-group col-md-7">
<label for="callsign"><?php echo $this->lang->line('gen_hamradio_callsign'); ?></label>
<input type="text" class="form-control" id="callsign" name="callsign" required>
<small id="callsign_info" class="badge badge-secondary"></small> <small id="lotw_info" class="badge badge-light"></small>
</div>
<div class="form-group col-md-3 align-self-center">
<small id="qrz_info" class="badge badge-secondary"></small>
<small id="hamqth_info" class="badge badge-secondary"></small>
</div>
</div>
<div class="form-row">

查看文件

@ -240,6 +240,8 @@ function reset_fields() {
$('#locator_info').text("");
$('#country').val("");
$('#lotw_info').text("");
$('#qrz_info').text("");
$('#hamqth_info').text("");
$('#dxcc_id').val("");
$('#cqz').val("");
$('#name').val("");
@ -345,6 +347,10 @@ $("#callsign").focusout(function() {
if(result.lotw_member == "active") {
$('#lotw_info').text("LoTW");
}
$('#qrz_info').html('<a target="_blank" href="https://www.qrz.com/db/'+find_callsign+'"><img width="32" height="32" src="'+base_url+'images/icons/qrz.com.png"></a>');
$('#qrz_info').attr('title', 'Lookup '+find_callsign+' info on qrz.com');
$('#hamqth_info').html('<a target="_blank" href="https://www.hamqth.com/'+find_callsign+'"><img width="32" height="32" src="'+base_url+'images/icons/hamqth.com.png"></a>');
$('#hamqth_info').attr('title', 'Lookup '+find_callsign+' info on hamqth.com');
$('#dxcc_id').val(result.dxcc.adif);
$('#cqz').val(result.dxcc.cqz);

二进制
images/icons/hamqth.com.png 普通文件

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 36 KiB

二进制
images/icons/qrz.com.png 普通文件

二进制文件未显示。

之后

宽度:  |  高度:  |  大小: 36 KiB