mirror of
https://github.com/zhenxun-org/zhenxun_bot.git
synced 2025-12-15 06:12:53 +08:00
18 lines
395 B
JavaScript
18 lines
395 B
JavaScript
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"
|