How do i convert the clock to 12 hours?
In LockBackground.html, change the code under the function updateClock:
It looks like this:
Code:
// Convert the hours component to 12-hour format if needed
// currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
// Convert an hours component of "0" to "12"
// currentHours = ( currentHours == 0 ) ? 12 : currentHours;
Change it to this:
Code:
// Convert the hours component to 12-hour format if needed
currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
// Convert an hours component of "0" to "12"
currentHours = ( currentHours == 0 ) ? 12 : currentHours;
In other words, before the two lines that begin with "currentHours", delete the two forward slashes // -- those marks are commenting out those lines.
Respring and you should be showing a 12 hour clock.
Note also that they've got the weather function in there twice, you'll need to change it in both places to get it to work for your location. Search on "FRXX4590" to find them both. You'll need to change
Code:
var isCelsius = true
...from true to false both places as well if you want Fahrenheit, it's just below the location code. This is probably just a bug in the code, I doubt it's meant to be in there twice. But if you make your changes in both, it will show correctly.
The bummer on this one is that the wallpaper has the section for the widget built in. It's gorgeous with that wall, but use it with another wall and you lose the "box" effect. I'm working on building a similar overlay in Photoshop, but then I'll have to code it in to make it work.
Here's where mine's at right now with the new overlay simply pasted onto the wallpaper. Font is Hill House, applied through Bytafont:

Need to start playing with the font sizes to get them to match proportionately....it never ends...
Last edited: