Timer 타이머
JS // timer function countdown( elementId, seconds ){ var element, endTime, hours, mins, msLeft, time; function updateTimer(){ msLeft = endTime - (+new Date); if ( msLeft < 0 ) { console.log('done'); } else { time = new Date( msLeft ); // hours = time.getUTCHours(); // mins = time.getUTCMinutes(); hours = String(time.getUTCHours()).padStart(2, "0"); mins = String(time.getUTCMinutes()).padStart(2..
2022.05.18