mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2026-10-21 12:10:13 +08:00
✨ 签到ui改版
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
let wdDom = document.querySelector(".wd")
|
||||
|
||||
let wd = Math.floor(Math.random() * 40) + 1
|
||||
|
||||
wdDom.innerHTML = wd + "℃"
|
||||
|
||||
let weatherDom = document.querySelector(".weather-img")
|
||||
|
||||
let r = Math.floor(Math.random() * 12)
|
||||
|
||||
weatherDom.src = "res/img/weather/" + r + ".png"
|
||||
|
||||
let qianDom = document.querySelector(".qian")
|
||||
|
||||
let r1 = Math.floor(Math.random() * 6)
|
||||
|
||||
qianDom.src = "res/img/tag/" + r1 + ".png"
|
||||
Reference in New Issue
Block a user