1
0
forked from bot/app

fix: 取消了本地引用js

This commit is contained in:
远野千束 2024-03-31 07:25:29 +08:00
parent d8efa08d2f
commit 76359ba83e
4 changed files with 1 additions and 85704 deletions

View File

@ -124,7 +124,6 @@ async def _(bot: T_Bot, event: T_MessageEvent):
image_bytes = await template_to_pic(
template_path=get_path("templates/stats.html", abs_path=True),
templates=templ,
wait=1,
device_scale_factor=4,
)
# await md.send_image(image_bytes, bot, event=event)

File diff suppressed because it is too large Load Diff

View File

@ -1,19 +0,0 @@
let server_addr = "mc.liteyuki.icu";
let api_url = "https://api.mcstatus.io/v2/status/java/" + server_addr;
let server_status = document.getElementById("now-online");
fetch(api_url)
.then(response => {
console.log(response);
return response.json();
})
.then(data => {
if (data.online){
server_status.textContent = "当前状态: 在线 " + data.players.online + " / " +data.players.max;
} else {
server_status.textContent = "当前状态: 服务器离线";
}
}
)

View File

@ -96,7 +96,7 @@
}
</style>
<script type="text/javascript" src="js/echarts.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/echarts@4.3.0/dist/echarts.min.js"></script>
</head>
<body>