+ Reply
Page 1 of 4 123 ... LastLast
Results 1 to 20 of 70
  1. #1
    What's Jailbreak?
    Join Date
    Oct 2009
    Posts
    13
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default 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;
    }

    // -->





    Weatherate 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 change
    Last edited by paulrybicki83; 01-15-2010 at 12:44 PM. Reason: Automerged Doublepost

  2. The Following User Says Thank You to paulrybicki83 For This Useful Post:

    schnuller8888 (01-20-2010)

  3. #2
    CHUCK-TASTIC battlecrushr's Avatar
    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

  4. #3
    What's Jailbreak?
    Join Date
    Oct 2009
    Posts
    13
    Thanks
    0
    Thanked 3 Times in 3 Posts

    ok thank you

  5. #4
    iPhoneaholic mejemaka's Avatar
    Join Date
    Dec 2009
    Posts
    343
    Thanks
    197
    Thanked 266 Times in 134 Posts

    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
    Attached Thumbnails Attached Thumbnails weather and date widget-securedownload.jpg  

  6. #5
    What's Jailbreak?
    Join Date
    Oct 2009
    Posts
    13
    Thanks
    0
    Thanked 3 Times in 3 Posts

    im still trying to figure out the 12 hour format. if you figure it out let me know

  7. The Following User Says Thank You to paulrybicki83 For This Useful Post:

    mejemaka (01-11-2010)

  8. #6
    iPhoneaholic mejemaka's Avatar
    Join Date
    Dec 2009
    Posts
    343
    Thanks
    197
    Thanked 266 Times in 134 Posts

    Hey paulrybicki83, how did you get the PRO font for the date and temperature??

  9. #7
    Santa Claus, Theme Creator santaf's Avatar
    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

  10. The Following User Says Thank You to santaf For This Useful Post:

    mejemaka (01-11-2010)

  11. #8
    iPhoneaholic mejemaka's Avatar
    Join Date
    Dec 2009
    Posts
    343
    Thanks
    197
    Thanked 266 Times in 134 Posts

    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
    Attached Thumbnails Attached Thumbnails weather and date widget-wallpaper.png  

  12. #9
    Santa Claus, Theme Creator santaf's Avatar
    Join Date
    Feb 2009
    Location
    seattle
    Posts
    3,704
    Thanks
    1,080
    Thanked 1,467 Times in 1,105 Posts

    Quote Originally Posted by mejemaka View Post
    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
    herhe it is the exact line but dont know how good it's gonna look since this wallpaper is the for shelves one
    Attached Thumbnails Attached Thumbnails weather and date widget-wallpaper.png  

  13. The Following User Says Thank You to santaf For This Useful Post:

    mejemaka (01-12-2010)

  14. #10
    Green Apple rickylo00's Avatar
    Join Date
    Dec 2009
    Posts
    58
    Thanks
    36
    Thanked 26 Times in 18 Posts

    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

  15. #11
    Santa Claus, Theme Creator santaf's Avatar
    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 picture

  16. The Following User Says Thank You to santaf For This Useful Post:

    rickylo00 (01-14-2010)

  17. #12
    Green Apple rickylo00's Avatar
    Join Date
    Dec 2009
    Posts
    58
    Thanks
    36
    Thanked 26 Times in 18 Posts

    yeah i notice that right after i dl it but how do u change the city to my city.. it says london on mines

  18. The Following User Says Thank You to rickylo00 For This Useful Post:

    santaf (01-14-2010)

  19. #13
    Santa Claus, Theme Creator santaf's Avatar
    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

  20. The Following User Says Thank You to santaf For This Useful Post:

    rickylo00 (01-14-2010)

  21. #14
    Green Apple rickylo00's Avatar
    Join Date
    Dec 2009
    Posts
    58
    Thanks
    36
    Thanked 26 Times in 18 Posts

    cool i got it it was in the congfigme.js was kinda confusing at first but eventually got it thanks!!!

  22. The Following User Says Thank You to rickylo00 For This Useful Post:

    santaf (01-14-2010)

  23. #15
    Santa Claus, Theme Creator santaf's Avatar
    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

  24. The Following 2 Users Say Thank You to santaf For This Useful Post:

    mejemaka (01-15-2010), rickylo00 (01-14-2010)

  25. #16
    Green Apple rickylo00's Avatar
    Join Date
    Dec 2009
    Posts
    58
    Thanks
    36
    Thanked 26 Times in 18 Posts

    sure thanks

  26. #17
    Santa Claus, Theme Creator santaf's Avatar
    Join Date
    Feb 2009
    Location
    seattle
    Posts
    3,704
    Thanks
    1,080
    Thanked 1,467 Times in 1,105 Posts

    Quote Originally Posted by rickylo00 View Post
    sure thanks
    k here
    Attached Files Attached Files

  27. The Following User Says Thank You to santaf For This Useful Post:

    rickylo00 (01-14-2010)

  28. #18
    Green Apple rickylo00's Avatar
    Join Date
    Dec 2009
    Posts
    58
    Thanks
    36
    Thanked 26 Times in 18 Posts

    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..

  29. #19
    Santa Claus, Theme Creator santaf's Avatar
    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

  30. #20
    What's Jailbreak?
    Join Date
    Oct 2009
    Posts
    13
    Thanks
    0
    Thanked 3 Times in 3 Posts

    this is what im using now. hopefully the 12hr clock works


+ Reply
Page 1 of 4 123 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts