mirror of
https://github.com/SupertigerDev/waybar-online.git
synced 2026-03-24 16:06:37 +00:00
deploy: 5f455921fd
This commit is contained in:
1
assets/temperature-BUXd2zjT.js
Normal file
1
assets/temperature-BUXd2zjT.js
Normal file
@@ -0,0 +1 @@
|
||||
import{c as o}from"./Label-C5RGArgp.js";const d=(e,r)=>{const a=o({interval:1e3,update:()=>s(),config:r,module:e});e.element.appendChild(a.element);const s=async()=>{const t=Math.round(Math.random()*90),n=Math.round(t*(9/5)+32),c=r["critical-threshold"];t>=c?e.element.classList.add("critical"):e.element.classList.remove("critical");const l=c!==void 0?c:0;a.set({temperatureC:t,temperatureF:n,icon:a.getIcon(t,"",l)})};s()};export{d as createTemperatureModule};
|
||||
Reference in New Issue
Block a user