Merge pull request #1343 from phl0/addSOTAhint

Add SOTA icon/link
这个提交包含在:
Peter Goodhall 2022-01-03 15:10:27 +00:00 提交者 GitHub
当前提交 5098ea06a6
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 4 个文件被更改,包括 19 次插入6 次删除

查看文件

@ -372,10 +372,15 @@
</select>
</div>
<div class="form-group">
<label for="sota_ref"><?php echo $this->lang->line('gen_hamradio_sota_reference'); ?></label>
<input class="form-control" id="sota_ref" type="text" name="sota_ref" value="" />
<small id="sotaRefHelp" class="form-text text-muted"><?php echo $this->lang->line('qso_sota_ref_helptext'); ?></small>
<div class="form-row">
<div class="form-group col-md-9">
<label for="sota_ref"><?php echo $this->lang->line('gen_hamradio_sota_reference'); ?></label>
<input class="form-control" id="sota_ref" type="text" name="sota_ref" value="" />
<small id="sotaRefHelp" class="form-text text-muted"><?php echo $this->lang->line('qso_sota_ref_helptext'); ?></small>
</div>
<div class="form-group col-md-3 align-self-center">
<small id="sota_info" class="badge badge-secondary"></small>
</div>
</div>
<div class="form-group">

查看文件

@ -204,7 +204,7 @@
<?php if($row->COL_SOTA_REF != null) { ?>
<tr>
<td><?php echo $this->lang->line('gen_hamradio_sota_reference'); ?></td>
<td><?php echo $row->COL_SOTA_REF; ?></td>
<td><a href="https://summits.sota.org.uk/summit/<?php echo $row->COL_SOTA_REF; ?>" target="_blank"><?php echo $row->COL_SOTA_REF; ?></a></td>
</tr>
<?php } ?>
@ -225,7 +225,7 @@
<?php if($row->COL_DARC_DOK != null) { ?>
<tr>
<td><?php echo $this->lang->line('gen_hamradio_dok'); ?></td>
<td><a href="https://www.darc.de/<?php echo $row->COL_DARC_DOK; ?>" target="_new"><?php echo $row->COL_DARC_DOK; ?></a></td>
<td><a href="https://www.darc.de/<?php echo $row->COL_DARC_DOK; ?>" target="_blank"><?php echo $row->COL_DARC_DOK; ?></a></td>
</tr>
<?php } ?>

查看文件

@ -78,6 +78,11 @@ $( document ).ready(function() {
}
});
$('#sota_ref').change(function(){
$('#sota_info').html('<a target="_blank" href="https://summits.sota.org.uk/summit/'+$('#sota_ref').val()+'"><img width="32" height="32" src="'+base_url+'images/icons/sota.org.uk.png"></a>');
$('#sota_info').attr('title', 'Lookup '+$('#sota_ref').val()+' summit info on sota.org.uk');
});
$('#darc_dok').selectize({
maxItems: 1,
closeAfterSelect: true,
@ -249,12 +254,14 @@ function reset_fields() {
$('#lotw_info').text("");
$('#qrz_info').text("");
$('#hamqth_info').text("");
$('#sota_info').text("");
$('#dxcc_id').val("");
$('#cqz').val("");
$('#name').val("");
$('#qth').val("");
$('#locator').val("");
$('#iota_ref').val("");
$('#sota_ref').val("");
$("#locator").removeClass("workedGrid");
$("#locator").removeClass("newGrid");
$("#callsign").removeClass("workedGrid");
@ -452,6 +459,7 @@ $("#callsign").focusout(function() {
$('#qth').val("");
$('#locator').val("");
$('#iota_ref').val("");
$('#sota_ref').val("");
$("#locator").removeClass("workedGrid");
$("#locator").removeClass("newGrid");
$("#callsign").removeClass("workedGrid");

二进制
images/icons/sota.org.uk.png 普通文件

二进制文件未显示。

之后

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