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.
Can someone help me out with the 12 and 24 hr options in the HTML files. Some are easy to change, others not. I typically see this though:

Code:
// Convert an hours component of "0" to "12"

 [COLOR="red"]//[/COLOR]currentHours = ( currentHours == 0 ) ? currentHours + 24 : currentHours;



// Convert the hours component to 12-hour format if needed

[COLOR="Red"]//[/COLOR] currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;



// Convert an hours component of "0" to "12"

 [COLOR="red"]//[/COLOR]currentHours = ( currentHours == 0 ) ? 12 : currentHours;

Is removing the red // all you need to do to convert from 24hr to 12hr time?

If I am looking at this correct, the first part if the hour is 0 it adds 24? This part I dont understand

The second part makes sense, if the hours are over 12 it subtracts 12.

The third part if the hour is 0, it changes it to 12. This makes sense also.

So what does that first part do?

Well, *usually* removing that is all you need to do. I have at least one lockscreen though (REDLOCK, IIRC) where that doesn't seem to be the case, and I haven't figured out what's up with that one.
 
Well, *usually* removing that is all you need to do. I have at least one lockscreen though (REDLOCK, IIRC) where that doesn't seem to be the case, and I haven't figured out what's up with that one.

Thanks, I'm still confused about this part though:

// Convert an hours component of "0" to "12"

//currentHours = ( currentHours == 0 ) ? currentHours + 24 : currentHours;
 
I am really liking this green and purple together haha

dca40a9a.jpg
 
I really like that new statusbar tweak.

Here's my setup

leftside is: ram, battery percent

rightside is: notifications, signal, then 3G/wifi

c3e940de.jpg
 
Can someone help me out with the 12 and 24 hr options in the HTML files. Some are easy to change, others not. I typically see this though:

Code:
// Convert an hours component of "0" to "12"

 [COLOR="red"]//[/COLOR]currentHours = ( currentHours == 0 ) ? currentHours + 24 : currentHours;



// Convert the hours component to 12-hour format if needed

[COLOR="Red"]//[/COLOR] currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;



// Convert an hours component of "0" to "12"

 [COLOR="red"]//[/COLOR]currentHours = ( currentHours == 0 ) ? 12 : currentHours;

Is removing the red // all you need to do to convert from 24hr to 12hr time?

If I am looking at this correct, the first part if the hour is 0 it adds 24? This part I dont understand

The second part makes sense, if the hours are over 12 it subtracts 12.

The third part if the hour is 0, it changes it to 12. This makes sense also.

So what does that first part do?

You only need to remove the // in this script to get 12 HR clock

// Convert the hours component to 12-hour format if needed

// currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
 
You only need to remove the // in this script to get 12 HR clock

OK, thanks. If you don't remove it from the third, you get 00 instead of 12 at midnight and at noon though right? Is the first one just for the description?

Sorry, I know that maybe this isn't important, as long as it works, but I'm trying to figure some of this stuff out. Thanks again.
 
OK, thanks. If you don't remove it from the third, you get 00 instead of 12 at midnight and at noon though right? Is the first one just for the description?

Sorry, I know that maybe this isn't important, as long as it works, but I'm trying to figure some of this stuff out. Thanks again.

True. I'm sorry just thought you wanted to get 12 HR clock. All the third part is at midnight it'll read 00:00-00:59. The noon will still read 12:00.
 
Madly in love...

IMG_1000000797.PNG

(The slider on the original is great, just wasn't working well with this particular layout. So I went with a clear one.)

Thanks, supervixen! Love love love both the typophone type layout and especially the font.
 
Last edited:
Wow, that looks FANTASTIC, IrishVixen!

I'm going through a blue/black phase right now. Luckily, there are enough alt Touchit icons out there to give me my fix...lol.

9ccec8d8.png
26c90754.png
 
The widget is post in post# 4149 here:

https://forums.macrumors.com/showthread.php?p=12851307&blue+mood#post12851307

I just moved the temp I think.

More of the same wallpaper in different colors here:

http://macthemes.net/forum/viewtopic.php?pid=823134

The icons are most(if not all) from the icon request thread here:

https://forums.macrumors.com/threads/1105595/

If you want what I have bundled already, send me your email address by PM and I will send them to you. Its not very many because its only the ones I wanted.

jjk dude! thank you!!
 
surprisingly i was able to figure it out myself (wow). awesome theme jjk. now when i get sick of it in two days (NO OFFENSE TO YOU JJK!!) i would love it if someone posted a cool noki-hd theme with a weather widget. AND a cool lockscreen. cause im thirsty for new stuff! haha
 
Wow, that looks FANTASTIC, IrishVixen!

Thanks! I was pleased with how it turned out; need to watch it though as I bet when I hit double digit hours, I'm going to have to tweak it. Think I'll right align the clock (with the am/pm left aligned) and if I position them right, it *should* behave regardless. We'll see come 10 o'clock in these parts. LOL

And look, I managed to use a lockscreen without adding the ring slider to it! :D

woa nice!

where in the code do you move things around?

It's all in the HTML for this one. The weather related style stuff is near the top of the file, the clock related piece is in the table style section near the bottom. Changes were made to each piece for "top" and "left" position mostly--those are the terms you look for first. I think I moved everything down around 200 px, and over around 50 px. For this, I started with the bottom line (which is the weather "desc"), moved it down, then moved everything else down by the same number of pixels. That keeps everything still in the same exact layout. Then once it was all near the bottom, I moved each piece to the left, one line at a time.

Getting rid of the seconds on the clock and adding the PM back in was a little more tweaking to get the position right for both, and as I said, I'm betting there'll be an issue with that once I get to double digit hours.

surprisingly i was able to figure it out myself (wow). awesome theme jjk. now when i get sick of it in two days (NO OFFENSE TO YOU JJK!!) i would love it if someone posted a cool noki-hd theme with a weather widget. AND a cool lockscreen. cause im thirsty for new stuff! haha

Seriously, there's only a zillion noki mods already about a month back in this thread. And on modmyi. If noki's what you're after, there's plenty out there. It's probably the most modded theme made for HD!
 
My LS now

LS Blink and a wallpaper I found back in the thread.

bild.png


Btw do anybody know how I can get the status bar with battery % and operator transparant? And if anybody has a suggestion/tips how to change the status bar into something more clean like the Blink clock I would be so greatful!
 
Can I make tadads cardboard weather LS a springboard theme?? If yes, how?
I dont want to spoil it by making a mistake!
Anyone point me in the right direction....
Thanks in advance
 
Can anyone edit the image attcahed for me please?

I would like the status bar shading to be removed if possible,hope someone can help...cheers :)
 

Attachments

  • Overlay.png
    Overlay.png
    7.1 KB · Views: 112
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.