Add icon link to qrz.com page

This commit is contained in:
phl0 2021-12-19 14:22:49 +01:00 committed by Peter Goodhall
parent 1ba45fe622
commit 4b7ae76baf
3 changed files with 6 additions and 0 deletions

View File

@ -65,6 +65,10 @@
<small id="callsign_info" class="badge badge-secondary"></small> <small id="lotw_info" class="badge badge-light"></small>
</div>
<div class="form-group">
<small id="qrz_info" class="badge badge-secondary"></small>
</div>
<div class="form-row">
<div class="form-group col-md-6">
<label for="mode"><?php echo $this->lang->line('gen_hamradio_mode'); ?></label>

View File

@ -247,6 +247,7 @@ function reset_fields() {
$('#locator_info').text("");
$('#country').val("");
$('#lotw_info').text("");
$('#qrz_info').text("");
$('#dxcc_id').val("");
$('#cqz').val("");
$('#name').val("");
@ -352,6 +353,7 @@ $("#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="/images/icons/qrz.com.png"></a>');
$('#dxcc_id').val(result.dxcc.adif);
$('#cqz').val(result.dxcc.cqz);

BIN
images/icons/qrz.com.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB