dev-comp #72

Merged
Thibaut merged 60 commits from dev into master 2025-12-19 13:47:40 +00:00
2 changed files with 7 additions and 1 deletions
Showing only changes of commit a1b5ca2694 - Show all commits

View File

@ -21,11 +21,17 @@ export function ChronoPanel() {
return chrono.time + Date.now() - chrono.startTime
}
useEffect(() => {
publicAffDispatch({type: 'CALL_TIME', payload: {timeStr: state.current.lastTimeStr, timeColor: state.current.color}})
}, [])
useEffect(() => {
const blinkRfDuration = 20
const state_ = state.current
const text_ = chronoText.current
publicAffDispatch({type: 'CALL_TIME', payload: {timeStr: state.current.lastTimeStr, timeColor: state.current.color}})
const timer = setInterval(() => {
let currentDuration = config.time
let color = "black"

View File

@ -14,7 +14,7 @@ const text2Style = {fontSize: "min(1.7vw, 7vh)", fontWeight: "bold"};
export function PubAffWindow({document}) {
const chronoText = useRef(null)
const state2 = useRef({lastColor: "white", lastTimeStr: "01:30"})
const state2 = useRef({lastColor: "white", lastTimeStr: "--:--"})
const state = usePubAffState();
document.title = "A React portal window"