Thread: weather and date widget
-
01-08-2010, 04:47 PM #1
weather and date widget
could someone help me to change the time from 24hr to am pm,
thank you
// 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 ) ? 0 : currentHours;
// Compose the string for display
var currentTimeString = currentHours + ":" + currentMinutes;
// Update the time display
document.getElementById("clock").firstChild.nodeVa lue = currentTimeString;
}
function init2 ( )
{
timeDisplay = document.createTextNode ( "" );
document.getElementById("ampm").appendChild ( timeDisplay );
}
function amPm ( )
{
var currentTime = new Date ( );
var currentHours = currentTime.getHours ( );
// 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 ) ? 0 : currentHours;
// Compose the string for display
var currentTimeString = timeOfDay;
// Update the time display
document.getElementById("ampm").firstChild.nodeVal ue = currentTimeString;
}
// -->


Weather
ate Widget.zip - File Shared from Box.net - Free Online File Storage
please does anyone know? it should be pretty easy I just have no idea which line to changeLast edited by paulrybicki83; 01-15-2010 at 12:44 PM. Reason: Automerged Doublepost
-
The Following User Says Thank You to paulrybicki83 For This Useful Post:
schnuller8888 (01-20-2010)
-
01-08-2010, 05:41 PM #2CHUCK-TASTIC
- Join Date
- Jun 2009
- Location
- Houston follow @al_da_beast
- Posts
- 7,945
- Thanks
- 273
- Thanked 1,033 Times in 956 Posts
Go to the ielegance thread or pm barsoverbeat cause he mite know
-
01-08-2010, 05:49 PM #3
ok thank you
-
01-11-2010, 11:19 AM #4
hi, i just installed this widget on my iphone along with the ielegance pro theme. i have a couple of questions if anyone can answer them. first, how do you change the time to 12 hour format and how do you use the pro font for the date and time like in the screenshot above?? thanks.here's my screenshot
-
01-11-2010, 11:25 AM #5
im still trying to figure out the 12 hour format. if you figure it out let me know
-
The Following User Says Thank You to paulrybicki83 For This Useful Post:
mejemaka (01-11-2010)
-
01-11-2010, 12:27 PM #6
Hey paulrybicki83, how did you get the PRO font for the date and temperature??
-
01-11-2010, 03:07 PM #7Santa Claus, Theme Creator
- Join Date
- Feb 2009
- Location
- seattle
- Posts
- 3,704
- Thanks
- 1,080
- Thanked 1,467 Times in 1,105 Posts
http://modmyi.com/forums/new-skins-t...ml#post5085701
here is the solution it'll change it to use the pro font because it switches to using System font which is what pro font replaces aka helvetica and will change it to a 12 hour clock i havn't tested yet but i am pretty certain it will work
-
The Following User Says Thank You to santaf For This Useful Post:
mejemaka (01-11-2010)
-
01-11-2010, 07:45 PM #8
hey paulrybicki83, i noticed your wallpaper is different from the one provided with the widget. do you think you can help me add that same line onto this spotlight wallpaper, if you can that is. thanks
-
01-12-2010, 02:47 AM #9Santa Claus, Theme Creator
- Join Date
- Feb 2009
- Location
- seattle
- Posts
- 3,704
- Thanks
- 1,080
- Thanked 1,467 Times in 1,105 Posts
-
The Following User Says Thank You to santaf For This Useful Post:
mejemaka (01-12-2010)
-
01-14-2010, 07:06 PM #10
hey what widget is that can u guys tell me the name of it or give a dl link of that widget.. i wanna use it too look so cool
-
01-14-2010, 07:10 PM #11Santa Claus, Theme Creator
- Join Date
- Feb 2009
- Location
- seattle
- Posts
- 3,704
- Thanks
- 1,080
- Thanked 1,467 Times in 1,105 Posts
hey man it's on the first post of this very same thread

right under the pictureLast edited by santaf; 01-14-2010 at 07:10 PM. Reason: Automerged Doublepost
-
The Following User Says Thank You to santaf For This Useful Post:
rickylo00 (01-14-2010)
-
01-14-2010, 07:15 PM #12
yeah i notice that right after i dl it but how do u change the city to my city.. it says london on mines
-
The Following User Says Thank You to rickylo00 For This Useful Post:
santaf (01-14-2010)
-
01-14-2010, 07:18 PM #13Santa Claus, Theme Creator
- Join Date
- Feb 2009
- Location
- seattle
- Posts
- 3,704
- Thanks
- 1,080
- Thanked 1,467 Times in 1,105 Posts
well my friend that can be done in the configure me part of the files i believe its a .js file located in Private folder
-
The Following User Says Thank You to santaf For This Useful Post:
rickylo00 (01-14-2010)
-
01-14-2010, 07:29 PM #14
cool i got it it was in the congfigme.js was kinda confusing at first but eventually got it thanks!!!
-
The Following User Says Thank You to rickylo00 For This Useful Post:
santaf (01-14-2010)
-
01-14-2010, 07:35 PM #15Santa Claus, Theme Creator
- Join Date
- Feb 2009
- Location
- seattle
- Posts
- 3,704
- Thanks
- 1,080
- Thanked 1,467 Times in 1,105 Posts
cool i fyou want a photoshop file for the background so you can make your own i would happy to give you the one i made to customize mejemaka's
-
-
01-14-2010, 07:37 PM #16
sure thanks
-
01-14-2010, 07:53 PM #17Santa Claus, Theme Creator
- Join Date
- Feb 2009
- Location
- seattle
- Posts
- 3,704
- Thanks
- 1,080
- Thanked 1,467 Times in 1,105 Posts
-
The Following User Says Thank You to santaf For This Useful Post:
rickylo00 (01-14-2010)
-
01-14-2010, 07:59 PM #18
cool thanks one last thing.. about the weather how could i change it where it would read the weather from the phone instead of accuweather and yahoo.. trying to figure it out because i have 2 different temps. and its annoying..
-
01-14-2010, 08:03 PM #19Santa Claus, Theme Creator
- Join Date
- Feb 2009
- Location
- seattle
- Posts
- 3,704
- Thanks
- 1,080
- Thanked 1,467 Times in 1,105 Posts
no problem you can edit the bar thing to hve the effect you want use your own wallpaper whatever :P the possibilities are endless haha... but as for the weather it only has sources for accuweather and for yahoo so unfortunately those are the only two you can use... i do believe the phone uses yahoo... there is a little yahoo icon at the bottom of th weather app... but maybe you ahve different temperatures because the widget can be set to either real feel temperature or just the temperature
-
01-15-2010, 11:54 AM #20
this is what im using now. hopefully the 12hr clock works



LinkBack URL
About LinkBacks
Reply With Quote
