Hi all,
I have this simple script:
var n = (get('MainScript').toFixed(3)*1000)
if (n !== 0) {
setInterval(function () {
n=n-100
var date = new Date(0)
date.setSeconds(((n/1000)).toFixed(0))
var timeString = date.toISOString().substring(11, 19);
set('timeDisplay', timeString);
set('messageArea', "");
// tempo 0 esce dal loop
if (n <= 0) {
clearInterval();
set('timeDisplay', "--:--:--");
set('messageArea', 'Completed!');
}
}, 100)
}
else {
clearInterval();
set('messageArea', 'Stopped by User or 0 time cue')
set('timeDisplay', "--:--:--");
set('currentCue', "None...");
}
How can I change text color of "timeDisplay" when "n"<somevalue?
Thankyou
Cristiano