ChatCrawlersearch across public Telegram Open the app
W

Web Development Bootcamp

сообщение · 2023-02-18 15:47 UTC
W
Web Development Bootcamp
Replymessage unavailable
function showTime() { const time = new Date(); var hour = time.getHours(); var min = time.getMinutes(); var sec = time.getSeconds(); var am_pm = "AM"; if (hour > 12) { hour -= 12; am_pm = "PM"; } if (hour == 0) { hour = 12; am_pm = "AM"; } hour = hour > 10 ? hour : "0" + hour; min = min > 10 ? min : "0" + min; sec = sec > 10 ? sec : "0" + sec; var currentTime = hour + ":" + min + ":" + sec + am_pm; var red, green, blue, currentColor; //this function glitching. value back & forth ho rhi and not updating and vo red ki value to messed up hai hi. // setInterval(() => { blue = Math.floor(sec * 4.25); green = Math.floor(min * 4.25); red = am_pm == "am" ? Math.random(floor(hour *254)) :Math.floor( Math.random((+hour + 12) * 254)); currentColor = `rgb(${red},${green},${blue})`; document.getElementById("color").innerHTML = currentColor; document.body.style.backgroundColor = currentColor; // }, 1000); document.getElementById("time").innerHTML = currentTime; } showTime();

All messages on 18 February 2023 · Whole feed · оригинал в Telegram

Open in Telegram Каталог площадок Искать в ChatCrawler

A snapshot of an open public feed from the search index ChatCrawler — “Google for public Telegram”; refreshed as the venue is crawled. Times are UTC.

Public content only, official Telegram API. About · FAQ · What we do not do · Remove a page · Catalog