There is a script that shows two numbers, the number of days from a certain date, and the number of days until a certain future date.
Javascript:
d0 = new Date ('Nov 26, 2012'); d1 = new Date (); d2 = new Date ('Nov 26, 2016'); d3 = new Date (); dt = (d1.getTime () - d0.getTime ()) / (1000 * 60 * 60 * 24); ds = (d3.getTime () - d2.getTime ()) / (1000 * 60 * 60 * 24); document.write (Math.round (dt) + '/' + Math.round (ds));
It is necessary to prescribe the condition that the future number becomes cool and bold when it reaches a certain limit. For example, now in the output we have the number -71 (-70), but as soon as the number is less than 20, then the assignment condition will work and the number in the output will be cool and bold. The simpler the better.
Please tell me how to implement.