Frerit / epiclock

Automatically exported from code.google.com/p/epiclock
0 stars 0 forks source link

mode.timer with retro renderer is not perfect. #21

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I am using mode.timer with retro renderer, when the time changes from morning 
to afternoon, AM did not properly switch to the PM.

Reasons:
In epiclock.retro.js line 102, when AM switch to the PM, "removeClass('d' + 
compare[index])" cannot be executed correctly.

Advice:
Insert the following code before line 102.
if((digit==="am"||digit==="pm")&&index==0)
{
    compare[index] = digit=="am"?"pm":"am";
}

Original issue reported on code.google.com by zcq4...@gmail.com on 15 May 2012 at 1:01