mirror of
https://github.com/LiteyukiStudio/LiteyukiBot.git
synced 2025-07-27 22:40:55 +00:00
feat: 新的背景图
fix: 命令冲突 docs: 添加了命令头和nickname冲突的解释
This commit is contained in:
14
liteyuki/resources/templates/js/bg.js
Normal file
14
liteyuki/resources/templates/js/bg.js
Normal file
@ -0,0 +1,14 @@
|
||||
const bgs = [
|
||||
"bg1.png",
|
||||
"bg2.png",
|
||||
"bg3.png",
|
||||
"bg4.png",
|
||||
"bg5.png",
|
||||
"bg6.png",
|
||||
"bg7.png",
|
||||
"bg8.png",
|
||||
"bg9.png",
|
||||
"bg10.png",
|
||||
]
|
||||
// 随机选择背景图片
|
||||
document.body.style.backgroundImage = `url(./img/${bgs[Math.floor(Math.random() * bgs.length)]})`;
|
@ -1,11 +1,6 @@
|
||||
{
|
||||
// 环形图
|
||||
|
||||
let bgs = ["bg1.jpg", "bg2.jpg", "bg3.jpg", "bg4.jpg"]
|
||||
// 随机选择背景图片
|
||||
document.body.style.backgroundImage = `url(./img/${bgs[Math.floor(Math.random() * bgs.length)]})`;
|
||||
|
||||
|
||||
let cpuInfo = echarts.init(document.getElementById('cpu-chart'));
|
||||
let memInfo = echarts.init(document.getElementById('mem-chart'));
|
||||
let swapInfo = echarts.init(document.getElementById('swap-chart'));
|
Reference in New Issue
Block a user