问答社区

解决DevOps Log普通用户卡片按键跳转查询数据问题

笔者 徐哲钻石会员 2

将下列代码插入到 index.php 文件 </body> 前保存,刷新页面即可。

<script>
document.addEventListener(‘DOMContentLoaded’, function() {
const cards = document.querySelectorAll(‘.progress-card’);
if(!cards.length) return;
cards.forEach(function(card) {
card.onclick = function() {
const progress = this.dataset.progress || this.getAttribute(‘data-progress’);
if(!progress) return;
let url = ‘index.php?progress=’ + encodeURIComponent(progress);
window.location.href = url;
};
});
});
</script>

宝塔Linux面板高效运维的服务器管理软件 点击【 https://www.bt.cn/p/Nl7iR8 】立即购买

回复

我来回复
  • 暂无回复内容

宝塔服务器面板,一键全能部署及管理 https://www.bt.cn/u/0RjcEP

笔者期待与您共勉 · 互赢

有言必答、商务合作、有偿服务

QQ:点击这里给我发消息

邮件:it@xuxiaokun.com

线上沟通时间 ↓↓↓:

周一至周五 9:30 - 17:30

其余时间Mail或QQ我,有言必应。

244439232