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.
Wirelessly posted (Mozilla/5.0 (iPhone; U; CPU iPhone OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5)

jjk454ss said:
to make it work add "Pad the minutes and seconds with leading zeros, if required" script AFTER the "Convert 24hr to 12hr "(or something along those lines) to look EXACTLY like this:

Code:
 <!-- Convert the hours component to 12-hour format if needed -->
      currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;


 <!-- Pad the minutes and seconds with leading zeros, if required
	currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
	currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
	currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;

SAVE AND RESPRING

I think it would go in/under here, but I can't get it to work. Thank you for helping me, sorry I'm just not getting it though. I'm really a newbie when it comes to HTML:confused::

Code:
/*---------------------------------------------------------------------------------------------------------------------------------AM PM Edit------*/

/* Remove the /* from under this line to display am or pm after the 12 hours clock */  /* NEW!! */

  // Choose either "AM" or "PM" as appropriate
  var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM";
  // 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;
  // Compose the string for display
  var currentTimeString = timeOfDay;
  // Update the time display
  
document.getElementById("ampm").firstChild.nodeValue = currentTimeString;
}

Pm me your HTML file and I'll fix it for you!
 
Less is more..i think.. :D
 

Attachments

  • IMG_0606.png
    IMG_0606.png
    1.1 MB · Views: 83
Image

I use the cal/day/date as a seperate widget so I can add it if required to any other widget or Theme



Just make sure it is above your Theme in winter board

To move it up or Down Edit the following

.CalendarWidget
{
text-align: center; margin-left:0px; margin-top: 0px; width: 320px; height: 480px;
position: absolute; align: center; top: 355px; right: 0px; down: 0px; left: 0px;
/* background: url(../Backgrounds/DefaultSB.png) no-repeat;*/

355px being near the bottom above the Dock icons

Download http://www.box.net/shared/xxlj5o7meo4syll9fagp
@Lex:Can you point me where in the html and how much px you set Schnedis clock down to the bottom
 
Last edited:
Nice i agree here in Germany with a beautiful Autumn,post the widget and bring us the summer nearer:)

How I love your little picture posts
Thanks guys for all the nice comments on last post/widget

Snakeeater for the clock hrs top: 247px; left: -203px

Mins top: 257px; left: 112px;

Am top: 275px; left: 193px;

Month top:319px; left: 112px;

Hope that helps :)

Go down near the bottom
 
How I love your little picture posts
Thanks guys for all the nice comments on last post/widget

Snakeeater for the clock hrs top: 247px; left: -203px

Mins top: 257px; left: 112px;

Am top: 275px; left: 193px;

Month top:319px; left: 112px;

Hope that helps :)

Go down near the bottom


i'm in London this weekend, if i can offer you a drink :D
great themes.. about to scourer macthemes for the icons :)
 
How I love your little picture posts
Thanks guys for all the nice comments on last post/widget

Snakeeater for the clock hrs top: 247px; left: -203px

Mins top: 257px; left: 112px;

Am top: 275px; left: 193px;

Month top:319px; left: 112px;

Hope that helps :)

Go down near the bottom

Thanks Honey i will test it and btw i am not in London but my drink for you is here , with shoes to fit you well i think"Lady in Red"
 

Attachments

  • martini_drink_red_shoes (3).jpg
    martini_drink_red_shoes (3).jpg
    13.8 KB · Views: 59
Status
Not open for further replies.
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.