Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.
Status
Not open for further replies.
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:

IMG_1000000652.PNG

Need to start playing with the font sizes to get them to match proportionately....it never ends...
 
Last edited:
THANK YOU!!!!! I thought for sure that one was a goner, since I hadn't noticed any other instances of people using or modding it.

Off to play!

You're welcome! Odds are, if there's one that was posted on dBar or MacThemes, I've probably got it...lol.

Sorry about the wallpaper dilemma. I wish designers would just go with a standard code (like dBar had started to do there towards the end) so everything is easy to change around. Of course, I'm not complaining...I don't have the skills to pull off these designs and I'm grateful to those that do and choose to share them!
 
You're welcome! Odds are, if there's one that was posted on dBar or MacThemes, I've probably got it...lol.

Sorry about the wallpaper dilemma. I wish designers would just go with a standard code (like dBar had started to do there towards the end) so everything is easy to change around. Of course, I'm not complaining...I don't have the skills to pull off these designs and I'm grateful to those that do and choose to share them!

Hey, it's a learning curve for me. A couple of days ago, I managed to add an overlay to one of Lexs' widgets by pasting code from one of Supervixen's widgets of a similar type, so I *should* be able to do the same here. If I remember what I did... :D

Getting the overlay to look right is another whole ball of wax. But well, Ps is a nice break from code, and vice versa. And you can see by the weather here that there's not a whole lot else going on!
 
You've got a bunch of random icons from random themes and a dark gray background...yeah...you're really burning up the "prettier" side of things. :rolleyes:

Why even take the time to post such garbage? Is it really useful to post just to bash other people's homescreens and sound like an insufferable...nevermind. I'm not playing that game with you.

BTW, this isn't an "opinions" thread. Nobody needs, or wants, your input.

You're already playing the game, but we'll stop here.

I personally think the icons go very well together. I don't see what you mean by "a bunch of random icons". Do you say that because they're not from one specific theme? And a dark gray (textured) background isn't intrusive and allows me to see which icons are which; I like it that way! ;)

Sometimes I post "garbage" like that to see how many nice people I can get to respond. :rolleyes:
 
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:

View attachment 289151

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

I was wondering why I was losing the box effect when I used my own wallpaper and looking thru the coding I found the weather twice....thanks for the help vixen!
 
You're already playing the game, but we'll stop here.

I personally think the icons go very well together. I don't see what you mean by "a bunch of random icons". Do you say that because they're not from one specific theme? And a dark gray (textured) background isn't intrusive and allows me to see which icons are which; I like it that way! ;)

Sometimes I post "garbage" like that to see how many nice people I can get to respond. :rolleyes:

Stop if you want, but I've got plenty more in me, sport. And it only took you 5 days to respond. Heck, I'd forgotten all about this.

BTW, I've seen a lot of stuff in forums over the years, but congratulations! You're the first person I've ever seen ADMIT TO BEING A TROLL without even having been accused of it. That's impressive!

Now, if you've got something useful to add to the thread, we're all ears. But if all you want to do is to dog other people's layouts while having nothing constructive to say (and nothing impressive to show), the door is over there.

Cheers! :D
 
removed image for brevity.

special thanks to dbarthemes and Philipp Walter
download

I know you have probably shared the wifi and carrier bars (in your screenshot) before :eek:, but I couldnt find them, and Ive been searching for them for a while. Could you please share them again ? thanks. :)

EDIT: nm, i finally found them by searching for "wifi bars" in the macthemes official request thread..... :p
Its the Minimalistic theme on macthemes if anyone else is interested in the signal and wifi bars in Supervixen's screenshots
 
Last edited:
Still playing with HTML/CSS...modded a couple more of Lexs' widgets from eons ago. Might try playing with the weather icons on this one, something about this isn't looking right to my eye.

IMG_1000000663.PNG
 
Got done jamming to The Black Keys waiting til time Eminem performes (more for the wife!)

So in the meantime I modded this:
Credit to Gary!

imagerlo.jpg



@IrishVixen:

Prob the temp is way too close to the icon! If it were me doing this I'd eliminate the weather icon, enable the description and make it sideways like the calendar widget and below it along with the temp

Or keep the weather icon where it's at and put temp at botton OR put both weather icon and temp at bottom and move the cal widget up a tad!

SORRY I'm at Bonnaroo and of course been "staying hydrated" all weekend!
 
Last edited:
@IrishVixen:

Prob the temp is way too close to the icon! If it were me doing this I'd eliminate the weather icon, enable the description and make it sideways like the calendar widget and below it along with the temp

Or keep the weather icon where it's at and put temp at botton OR put both weather icon and temp at bottom and move the cal widget up a tad!

I'll probably try all of the above and then some. Good practice, anyway. Thanks for the input, appreciate it!

SORRY I'm at Bonnaroo and of course been "staying hydrated" all weekend!

LOL--have fun! (sounds like you already are...) :p
 
^^^^ Could you tell us what icon theme that is and how to center them?

Edius HD theme
Gridlock + Iconoclasm with 5x5 (1.0) layout[/QUOTE]

@supervixen:How do you get the three icons on the dock i use 5x5 (1.0) for the Homescreen and gridlock;)
 
Got done jamming to The Black Keys waiting til time Eminem performes (more for the wife!)

So in the meantime I modded this:
Credit to Gary!

Image


@IrishVixen:

Prob the temp is way too close to the icon! If it were me doing this I'd eliminate the weather icon, enable the description and make it sideways like the calendar widget and below it along with the temp

Or keep the weather icon where it's at and put temp at botton OR put both weather icon and temp at bottom and move the cal widget up a tad!

SORRY I'm at Bonnaroo and of course been "staying hydrated" all weekend!

HI bro you you share the sbwallpaper.
Thanks in Advance;)
 
AWSUM, what icon set is this? It looks like EdiusHD but there are some different icons. I like the facebook, instagram, mail and cydia icons if you care to share.

I think most of it is Zorsha rather than Edius. The icons have the bevel at the top, rather than the bottom the way Edius and Upojenie do, and the bevel is a lot taller than Edius too.

There's a thread for it at MacThemes.
 
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.