Merge pull request #2865 from int2001/bandlistFix

Fix Highlighting of current QRG for Bootstrap5
这个提交包含在:
Andreas Kristiansen 2023-12-20 10:27:55 +01:00 提交者 GitHub
当前提交 9e356b8065
找不到此签名对应的密钥
GPG 密钥 ID: 4AEE18F83AFDEB23
共有 2 个文件被更改,包括 6 次插入4 次删除

查看文件

@ -89,7 +89,7 @@ class Dxcluster_model extends CI_Model {
// CURL Functions
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $dxcache_url);
curl_setopt($ch, CURLOPT_USERAGENT, 'Cloudlog '.$this->optionslib->get_option('version').'DXLookup by QRG');
curl_setopt($ch, CURLOPT_USERAGENT, 'Cloudlog '.$this->optionslib->get_option('version').' DXLookup by QRG');
curl_setopt($ch, CURLOPT_HEADER, false);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$jsonraw = curl_exec($ch);

查看文件

@ -66,7 +66,7 @@ $(function() {
}
});
if (!update) { // Sth. Fresh? So highlight
table.rows.add(data).draw().nodes().to$().addClass("fresh bg-info");
table.rows.add(data).draw().nodes().to$().addClass("fresh table-info");
} else {
table.rows.add(data).draw();
}
@ -94,9 +94,11 @@ $(function() {
if (distance<=20) {
distance++;
alpha=(.5/distance);
this.nodes().to$().css('background-color', 'rgba(0,0,255,' + alpha + ')');
this.nodes().to$().css('--bs-table-bg', 'rgba(0,0,255,' + alpha + ')');
this.nodes().to$().css('--bs-table-accent-bg', 'rgba(0,0,255,' + alpha + ')');
} else {
this.nodes().to$().css('background-color', '');
this.nodes().to$().css('--bs-table-bg', '');
this.nodes().to$().css('--bs-table-accent-bg', '');
}
});
}