+ Reply
Page 8 of 28 FirstFirst ... 678910 18 ... LastLast
Results 141 to 160 of 541

Your favorite Apple, iPhone, iPad, iOS, Jailbreak, and Cydia site.


Thread: HTC Animated Wigdet For PerPageHTML

is a discussion within the

Native iPhone / iPod Touch App Launches

forums, a part of the

3rd Party Apps For iPhone | iPod Touch

section;
Just do then like above. Delete the <div> from above code. Then no bg pic. And remember to activate in Winterboard. When running in frame that HTC widget u can
...
  1. #141
    Green Apple
    Join Date
    Jan 2011
    Posts
    60
    Thanks
    1
    Thanked 7 Times in 2 Posts

    Just do then like above. Delete the <div> from above code. Then no bg pic. And remember to activate in Winterboard. When running in frame that HTC widget u can add other stuff to lockscreen too....

  2. #142
    What is that callender called? How about the lock? I didn't see them on Cydia, are they on different sources? Thanks!
    Last edited by [email protected]; 04-15-2011 at 09:01 PM. Reason: Spllng Err

  3. #143
    Green Apple scottdog129's Avatar
    Join Date
    Feb 2009
    Posts
    41
    Thanks
    1
    Thanked 3 Times in 1 Post
    I just had to reinstall it from Cydia and reconfigure the .js file for my location. Working great now!

  4. #144
    What's Jailbreak?
    Join Date
    Apr 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Can anyone tell me how to get rid of the clock and just have the forcast (in the red circle). And for some reason, didn't realize perpage could do this, but whenever this widget is active, this green button appears as the answer lock, and I have no clue how to get rid of it.Thanks.

  5. #145
    What's Jailbreak? plural's Avatar
    Join Date
    Dec 2007
    Posts
    16
    Thanks
    2
    Thanked 1 Time in 1 Post
    Does anyone have this problem?
    Attached Thumbnails Attached Thumbnails HTC Animated Wigdet For PerPageHTML-imageuploadedbymodmyi.jpg  

  6. #146
    iPhone? More like MyPhone
    Join Date
    Apr 2011
    Posts
    203
    Thanks
    48
    Thanked 73 Times in 54 Posts

    just installed the htc animated widget for perpage html and it works great.

    Two quick questions: is there a way to make the 5 day outlook under the clock auto spring open/close by touching on the clock somewhere. I know there is a lockscreen widget that does it. Also is there a way to put a refresh button next to the clock in case you want to refresh the weather right away.

  7. #147
    What's Jailbreak?
    Join Date
    Oct 2009
    Posts
    19
    Thanks
    1
    Thanked 1 Time in 1 Post
    Can we get a 24 - hour Update, please?!

  8. #148

  9. The Following User Says Thank You to [email protected] For This Useful Post:

    eScenCe (04-24-2011)

  10. #149
    What's Jailbreak?
    Join Date
    Oct 2009
    Posts
    19
    Thanks
    1
    Thanked 1 Time in 1 Post
    Perfect. Thanks!

  11. #150
    What's Jailbreak?
    Join Date
    Mar 2011
    Posts
    2
    Thanks
    0
    Thanked 1 Time in 1 Post
    Quote Originally Posted by [email protected] View Post
    Here's how to activate 24hr time: Open Widget.html, (or LockBackground.html if using Jose Sampo's lockscreen widget), and on line 195 change "false" to "true."
    This line?

    **var TwentyFourHourClock = false

    Don't know how to count lines in iFile.
    Thanks in advance.

  12. #151
    What's Jailbreak? eozen81's Avatar
    Join Date
    Mar 2011
    Posts
    7
    Thanks
    3
    Thanked 1 Time in 1 Post
    Quote Originally Posted by Nekrid00 View Post
    This line?

    **var TwentyFourHourClock = false

    Don't know how to count lines in iFile.
    Thanks in advance.
    - Open the file via iFile
    - Click Search icon at the lest bottom
    - Write twenty
    - It will directly get you that line so that you can change it to true.

  13. #152
    What's Jailbreak?
    Join Date
    Apr 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Please help me with this to be animated
    I installed this HTC animated perpage.

    Everyting is working fine except that it is not animated.

    something to do with my ios 4.3.2 jailbreak ihpone 4?

  14. #153
    What's Jailbreak? eozen81's Avatar
    Join Date
    Mar 2011
    Posts
    7
    Thanks
    3
    Thanked 1 Time in 1 Post
    Quote Originally Posted by truevine View Post
    I installed this HTC animated perpage.

    Everyting is working fine except that it is not animated.

    something to do with my ios 4.3.2 jailbreak ihpone 4?
    - Open var/mobile/Library/PerPageHTM*L/HTCaniPPH/cinfigureMe.js file via iFile
    - Make sure below line is true If not change it to true and save it than respring the phone.

    var showWeatherAni = true

  15. #154
    What's Jailbreak?
    Join Date
    Apr 2011
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Has anyone else had problems with weather not updating? Mine stays on sun all day even at night and my forecast is all screwed up. Like it thinks it's Wednesday etc...other locations seem to work but my location (zip code 82901) does not update. Any thoughts?

  16. #155
    What's Jailbreak?
    Join Date
    Aug 2009
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    would someone be able to email me the folder to SSH to my PerPageHTML folder? I cant get it to install with the deb and I have PerPageHTML+ so I cant use the one from cydia

  17. #156
    What's Jailbreak?
    Join Date
    Apr 2011
    Posts
    9
    Thanks
    6
    Thanked 0 Times in 0 Posts

    Hello

    I need help because of the 24 hour conversion to the widget

    I'm from Germany I know not as good of me so could someone write the code I receive this 24 hour display?

    I look up there with the AM and PM would not it be great if someone by the widget.hmtl could rewrite it so that I could save myself and the 24 hour clock would last!

    The AM and PM I do not know how I have to rewrite everything

  18. #157
    What's Jailbreak? eozen81's Avatar
    Join Date
    Mar 2011
    Posts
    7
    Thanks
    3
    Thanked 1 Time in 1 Post
    Quote Originally Posted by sync10 View Post
    Hello

    I need help because of the 24 hour conversion to the widget

    I'm from Germany I know not as good of me so could someone write the code I receive this 24 hour display?

    I look up there with the AM and PM would not it be great if someone by the widget.hmtl could rewrite it so that I could save myself and the 24 hour clock would last!

    The AM and PM I do not know how I have to rewrite everything

    - If you do not have Install iFile from Cydia.
    - Open iFile and go to var/mobile/Library/PerPageHTML/HTCAniPPH click on Widget.html and select Text Editor
    - Now make a search by clicking magnify button on the bottom left and search for "twenty"
    - You must see the line below
    var TwentyFourHourClock = false
    - Click Edit at the upper left and change false to true
    Then restart your phone

  19. #158
    What's Jailbreak?
    Join Date
    Apr 2011
    Posts
    9
    Thanks
    6
    Thanked 0 Times in 0 Posts

    I have but I can not I look gone by

    Here is the code itself


    Code:
    <html>
    
    <head><title>newclock</title>
    
    <!--Moddified by Jose Sampo (Kevlar)
    
    http://www.facebook.com/jsampo
    
    Version 1.7 Released 1-28-11 -->
    
    <style>
    
    
    
     
    
    SPAN#clock
    
    {
    
    	font-family: Helvetica;
    
    	font-weight: bold; 
    
    	color: #d1d1d1; 
    
    	text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.7);	
    
    	/*text-shadow: #FFFFFF 0px 1px 0px;*/
    
    	font-size: 26px;
    
    }
    
    
    
    SPAN#ampm
    
    {
    
    	font-family: Helvetica;
    
    	font-weight: bold; 
    
    	color: #d1d1d1; 
    
    	text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.7);	
    
    	/*text-shadow: #FFFFFF 0px 1px 0px;*/
    
    	font-size: 15px;
    
    	display:none;
    
    }
    
    
    
    TD#dateString
    
    {
    
    	font-family: Helvetica;
    
    	font-weight: bold; 
    
    	color: #d1d1d1; 
    
    	text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.7);	
    
    	/*text-shadow: #FFFFFF 0px 1px 0px;*/
    
    	font-size: 11px;
    
    	text-align:center;
    
    }
    
    
    
    TABLE#CalendarTable
    
    {
    
    	font-family: Helvetica;
    
    	font-weight: bold; 
    
    	color: #d1d1d1; 
    
    	text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.7);	
    
    	/*text-shadow: #FFFFFF 0px 1px 0px;*/
    
    	font-size: 11px;
    
    	text-align:center;
    
    	margin-top:-17px;
    
    }
    
    
    
    SPAN#calendar 
    
    {
    
    	font-family: Helvetica;
    
    	font-weight: bold;
    
    	color: #d1d1d1; 
    
    	text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.7);	
    
    	/*text-shadow: #FFFFFF 0px 1px 0px;*/
    
    	font-size: 14px;
    
    	position:absolute;
    
    	top:137px;
    
    	text-align:right;
    
    	width:300px;
    
    	
    
    }
    
    </style>
    
    <script type="text/javascript" src="configureMe.js"></script>	
    
    <base href="Private/"/>
    
    <script type="text/javascript">
    
    var this_weekday_name_array = new Array("Son","Mon","Die","Mit","Don","Fre","Sam")
    
    var this_month_name_array = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")	//predefine month names
    
        
    
    var this_date_timestamp = new Date()	
    
    
    
    var this_weekday = this_date_timestamp.getDay()    
    
    var this_date = this_date_timestamp.getDate()	 
    
    var this_month = this_date_timestamp.getMonth()    
    
    var this_year = this_date_timestamp.getYear()	 
    
    
    
    if (this_year < 1000)
    
        this_year+= 1900;
    
    if (this_year==101)
    
        this_year=2001;	   
    
    
    
    var this_date_string = this_weekday_name_array[this_weekday] + " " + this_date + " " + this_month_name_array[this_month]//concat long date string
    
    
    
    function init ( )
    
    {
    
      timeDisplay = document.createTextNode ( "" );
    
      document.getElementById("clock").appendChild ( timeDisplay );
    
    
    
    }
    
    
    
    function updateClock ( )
    
    {
    
    	
    
      var TwentyFourHourClock = true  
    
      var currentTime = new Date ( );
    
      var currentHours = currentTime.getHours ( );
    
      var currentMinutes = currentTime.getMinutes ( );
    
      var currentSeconds = currentTime.getSeconds ( );
    
    
    
      // Pad the minutes and seconds with leading zeros, if required
    
      currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
    
      currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;
    
    
    
    if (TwentyFourHourClock == true){
    
    
    
      var timeOfDay = ( currentHours < 12 ) ? "AM" : "PM"
    
      currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
    
      currentHours = ( currentHours == 0 ) ? 12 : currentHours;
    
    if (timeOfDay == "Am"){
    
    document.getElementById("ampm").src="pm.png"
    
    }
    
    else
    
    {
    
    document.getElementById("ampm").src="am.png"
    
    }
    
    }
    
      // Compose the string for display
    
      var currentTimeString = currentHours + ":" + currentMinutes;
    
    
    
      // Update the time display
    
      currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
    
    
    
    document.getElementById("hr1").src="Digits/"+currentHours.charAt(0)+".png";
    
    document.getElementById("hr2").src="Digits/"+currentHours.charAt(1)+".png";
    
    document.getElementById("min1").src="Digits/"+currentMinutes.charAt(0)+".png";
    
    document.getElementById("min2").src="Digits/"+currentMinutes.charAt(1)+".png";
    
    }
    
    
    
    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 ) ? 12 : currentHours;
    
    
    
      // Compose the string for display
    
      var currentTimeString = timeOfDay;
    
    
    
      // Update the time display
    
      document.getElementById("ampm").firstChild.nodeValue = currentTimeString;
    
    }
    
    
    
    function init3 ( )
    
    {
    
      timeDisplay = document.createTextNode ( "" );
    
      document.getElementById("calendar").appendChild ( timeDisplay );
    
    }
    
    
    
    function daysInMonth(iMonth, iYear)
    
    {
    
    	return 32 - new Date(iYear, iMonth, 32).getDate();
    
    }
    
    
    
    function zeroPad(num,count)
    
    {
    
    var numZeropad = num + '';
    
    while(numZeropad.length < count) {
    
    numZeropad = "0" + numZeropad;
    
    }
    
    return numZeropad;
    
    }
    
    
    
    function calendarDate ( )
    
    {
    
    var this_weekday_name_array = new Array("Son","Mon","Die","Mit","Don","Fre","Sat")
    
    var this_month_name_array = new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")	  //predefine month names
    
        
    
      var this_date_timestamp = new Date()	  
    
    
    
      var this_weekday = this_date_timestamp.getDay()    
    
      var this_date = this_date_timestamp.getDate()  
    
     
    
      var this_month = this_date_timestamp.getMonth()    
    
    Current_Month = this_month
    
    document.getElementById("calendar").firstChild.nodeValue = this_weekday_name_array[this_weekday] + ", " + this_month_name_array[this_month] + " " + this_date 
    
    }
    
    </script>
    
    <script type="text/javascript" src="translation.js"></script>
    
    <script type="text/javascript">
    
    var MiniIcons =
    
    [
    
    	"tstorm3",		//0	tornado
    
    	"tstorm3",		//1	tropical storm
    
    	"tstorm3",		//2	hurricane
    
    	"tstorm3",		//3	severe thunderstorms
    
    	"tstorm3",		//4	thunderstorms
    
    	"sleet",		//5	mixed rain and snow
    
    	"sleet",		//6	mixed rain and sleet
    
    	"sleet",		//7	mixed snow and sleet
    
    	"sleet",		//8	freezing drizzle
    
    	"light_rain",		//9	drizzle
    
    	"sleet",		//10	freezing rain
    
    	"shower3",		//11	showers
    
    	"shower3",		//12	showers
    
    	"snow1",		//13	snow flurries
    
    	"snow2",		//14	light snow showers
    
    	"snow4",		//15	blowing snow
    
    	"snow4",		//16	snow
    
    	"hail", 	//17	hail
    
    	"sleet",		//18	sleet
    
    	"mist", 	//19	dust
    
    	"fog",		//20	foggy
    
    	"fog",		//21	haze
    
    	"fog",		//22	smoky
    
    	"windy",		//23	blustery
    
    	"windy",		//24	windy
    
    	"windy",		//25	cold
    
    	"overcast",		//26	cloudy
    
    	"cloudy4_night",		//27	mostly cloudy (night)
    
    	"cloudy4",		//28	mostly cloudy (day)
    
    	"cloudy1_night",		//29	partly cloudy (night)
    
    	"cloudy1",		//30	partly cloudy (day)
    
    	"sunny_night",		//31	clear (night)
    
    	"sunny",		//32	sunny
    
    	"fair_night",		//33	fair (night)
    
    	"fair", 	//34	fair (day)
    
    	"hail", 	//35	mixed rain and hail
    
    	"hot",		//36	hot
    
    	"tstorm1",		//37	isolated thunderstorms
    
    	"tstorm2",		//38	scattered thunderstorms
    
    	"tstorm2",		//39	scattered thunderstorms
    
    	"shower1",		//40	scattered showers
    
    	"snow5",		//41	heavy snow
    
    	"snow3",		//42	scattered snow showers
    
    	"snow5",		//43	heavy snow
    
    	"cloudy1",		//44	partly cloudy
    
    	"tstorm3",		//45	thundershowers
    
    	"snow2",		//46	snow showers
    
    	"tstorm1",		//47	isolated thundershowers
    
    	"dunno",		//3200	not available
    
    ]
    
    
    
    
    
    function constructError (string)
    
    {
    
    	return {error:true, errorString:string};
    
    }
    
    
    
    function findChild (element, nodeName)
    
    {
    
    	var child;
    
    	
    
    	for (child = element.firstChild; child != null; child = child.nextSibling)
    
    	{
    
    		if (child.nodeName == nodeName)
    
    			return child;
    
    	}
    
    	
    
    	return null;
    
    }
    
    
    
    
    
    function fetchWeatherData (callback, zip)
    
    {
    
    	if (isCelsius == false){
    
    	varUnit = 'f'
    
    	}
    
    	else
    
    	{
    
    	varUnit = 'c'
    
    	}
    
    
    
    url="http://xml.weather.yahoo.com/forecastrss/" //u=Farenheit, because accuWeather sucks
    
    	
    
    	var xml_request = new XMLHttpRequest();
    
    	xml_request.onload = function(e) {xml_loaded(e, xml_request, callback);}
    
    	xml_request.overrideMimeType("text/xml");
    
    	xml_request.open("GET", url+zip+'_'+varUnit+'.xml');
    
    	xml_request.setRequestHeader("Cache-Control", "no-cache");
    
    	xml_request.send(null); 
    
    	
    
    	return xml_request;
    
    }
    
    
    
    function xml_loaded (event, request, callback)
    
    {
    
    	if (request.responseXML)
    
    	{
    
    		var obj = {error:false, errorString:null};
    
    		var effectiveRoot = findChild(findChild(request.responseXML, "rss"), "channel");
    
    		obj.city = findChild(effectiveRoot, "yweather:location").getAttribute("city");
    
    		obj.realFeel = findChild(effectiveRoot, "yweather:wind").getAttribute("chill");//Only accounts for windChill
    
    		
    
    		conditionTag = findChild(findChild(effectiveRoot, "item"), "yweather:condition");
    
    		obj.temp = conditionTag.getAttribute("temp");
    
    		obj.icon = conditionTag.getAttribute("code");
    
    		obj.description = conditionTag.getAttribute("text"); 
    
    		
    
    		obj.sunset = request.responseXML.getElementsByTagName("astronomy")[0].getAttribute("sunset");
    
    		obj.sunset = obj.sunset.split(' ')[0]
    
    		obj.sunsethr = obj.sunset.split(':')[0]*1+12
    
    		obj.sunsetmin = obj.sunset.split(':')[1]
    
    		
    
    		obj.Today = request.responseXML.getElementsByTagName("forecast")[0].getAttribute("day");
    
    		obj.TodayHi = request.responseXML.getElementsByTagName("forecast")[0].getAttribute("high");
    
    		obj.TodayLo = request.responseXML.getElementsByTagName("forecast")[0].getAttribute("low");
    
    		obj.TodayCode = request.responseXML.getElementsByTagName("forecast")[0].getAttribute("code");
    
    
    
    		obj.Day1 = request.responseXML.getElementsByTagName("forecast")[1].getAttribute("day");
    
    		obj.Day1Hi = request.responseXML.getElementsByTagName("forecast")[1].getAttribute("high");
    
    		obj.Day1Lo = request.responseXML.getElementsByTagName("forecast")[1].getAttribute("low");
    
    		obj.Day1Code = request.responseXML.getElementsByTagName("forecast")[1].getAttribute("code");
    
    
    
    		obj.Day2 = request.responseXML.getElementsByTagName("forecast")[2].getAttribute("day");
    
    		obj.Day2Hi = request.responseXML.getElementsByTagName("forecast")[2].getAttribute("high");
    
    		obj.Day2Lo = request.responseXML.getElementsByTagName("forecast")[2].getAttribute("low");
    
    		obj.Day2Code = request.responseXML.getElementsByTagName("forecast")[2].getAttribute("code");
    
    
    
    		obj.Day3 = request.responseXML.getElementsByTagName("forecast")[3].getAttribute("day");
    
    		obj.Day3Hi = request.responseXML.getElementsByTagName("forecast")[3].getAttribute("high");
    
    		obj.Day3Lo = request.responseXML.getElementsByTagName("forecast")[3].getAttribute("low");
    
    		obj.Day3Code = request.responseXML.getElementsByTagName("forecast")[3].getAttribute("code");
    
    
    
    		obj.Day4 = request.responseXML.getElementsByTagName("forecast")[4].getAttribute("day");
    
    		obj.Day4Hi = request.responseXML.getElementsByTagName("forecast")[4].getAttribute("high");
    
    		obj.Day4Lo = request.responseXML.getElementsByTagName("forecast")[4].getAttribute("low");
    
    		obj.Day4Code = request.responseXML.getElementsByTagName("forecast")[4].getAttribute("code");
    
    
    
    
    
    		forecastTag = findChild(findChild(effectiveRoot, "item"), "yweather:forecast");
    
    		callback (obj); 
    
    	}else{
    
    		callback ({error:true, errorString:"XML request failed. no responseXML"});
    
    	}
    
    }
    
    
    
    
    
    function validateWeatherLocation (location, callback)
    
    {
    
    	var obj = {error:false, errorString:null, cities: new Array};
    
    	obj.cities[0] = {zip: location}; //Not very clever, are we?
    
    	callback (obj);
    
    }
    
    
    
    var LangTranslate = English // or Italian
    
    var stylesheet = 'myopiaAlt' //'originalBubble'|'myopia'|'iconOnly'|'split'
    
    var iconSet = "HTC" //'klear'|'tango'|null (null makes iconSet = stylesheet)
    
    var iconExt = ".png" //'.png'|.'gif' etc.
    
    var source = 'yahooWeather' //'appleAccuweatherStolen'|'yahooWeather'
    
    </script>
    
    
    
    <script type="text/javascript">
    
    var postal;
    
    
    
    if(iconSet == null || iconSet == 'null'){
    
    	var iconSet = stylesheet;
    
    }
    
    
    
    var headID = document.getElementsByTagName("head")[0];	       
    
    var styleNode = document.createElement('link');
    
    styleNode.type = 'text/css';
    
    styleNode.rel = 'stylesheet';
    
    styleNode.href = 'Stylesheets/'+stylesheet+'.css';
    
    headID.appendChild(styleNode);
    
    
    
    var scriptNode = document.createElement('script');
    
    scriptNode.type = 'text/javascript';
    
    scriptNode.src = 'Sources/'+source+'.js';
    
    headID.appendChild(scriptNode);
    
    
    
    function onLoad(){
    
    	//document.getElementById("weatherIcon").src="Icon Sets/"+iconSet+"/"+"dunno"+iconExt;
    
    	validateWeatherLocation(escape(locale).replace(/^%u/g, "%"), setPostal)
    
    	setInterval('fetchWeatherData(dealWithWeather,postal)', 1000*60*updateInterval);
    
    }
    
    
    
    
    
    function setPostal(obj){
    
    	
    
    	if (obj.error == false){
    
    		if(obj.cities.length > 0){
    
    			postal = escape(obj.cities[0].zip).replace(/^%u/g, "%")
    
    			fetchWeatherData(dealWithWeather,postal);
    
    		}else{
    
    			document.getElementById("city").innerText="Not Found";
    
    		}
    
    	}else{
    
    		document.getElementById("city").innerText=obj.errorString;	
    
    	}
    
    }
    
    
    
    
    
    
    
    function dealWithWeather(obj){
    
    
    
    	if (obj.error == false){
    
    		document.getElementById("city").innerText=obj.city.substring(0,11);
    
    		
    
    		if (LangTranslate == English)
    
    		{
    
    		document.getElementById("desc").innerText=obj.description; //+" ("+obj.icon+")";
    
    		}
    
    		else
    
    		{
    
    		document.getElementById("desc").innerText = LangTranslate[obj.icon*1];		}
    
    		if(useRealFeel == true){
    
    			tempValue = obj.realFeel;
    
    		}else{
    
    			tempValue = obj.temp;
    
    		}
    
    
    
    		var currentTime = new Date ( );
    
    		var currentHours = currentTime.getHours ( );
    
    		var currentMinutes = currentTime.getMinutes ( );
    
    		if(obj.sunsethr < currentHours){
    
    		obj.TOD = "Tonight"
    
    		}
    
    		else if(obj.sunsethr < currentHours)
    
    		{
    
    		obj.TOD = "Tonight"
    
    		}
    
    		else if(currentHours < 2)
    
    		{
    
    		obj.TOD = "Tonight"
    
    		}
    
    		else
    
    		{
    
    		obj.TOD = "Today"
    
    		}
    
    
    
    		if (isCelsius == true) {
    
    			document.getElementById("temp").innerHTML=tempValue+ " C";
    
    		} else {
    
    			document.getElementById("temp").innerHTML=tempValue+ " F";
    
    		}
    
    		document.getElementById("weatherIcon").src="Icon Sets/"+iconSet+"/"+obj.icon+iconExt;
    
    		
    
    		if (showBackground == false){
    
    			document.getElementById("mainbk").src="Icon Sets/mnidhk"+"/"+obj.icon+iconExt;
    
    			}
    
    	
    
    		if (showForecast == true){
    
    		document.getElementById("Today").innerHTML=ForecastDayNames(obj.TOD);
    
    		document.getElementById("TodayIcon").src="Icon Sets/"+iconSet+"/"+obj.TodayCode+'_small'+iconExt;
    
    		document.getElementById("TodayHiLo").innerHTML=obj.TodayHi+ " / <font color=#a8a8a8>"+obj.TodayLo+ "</font>";
    
    				
    
    		document.getElementById("Day1").innerHTML=ForecastDayNames(obj.Day1);
    
    		document.getElementById("Day1Icon").src="Icon Sets/"+iconSet+"/"+obj.Day1Code+'_small'+iconExt;
    
    		document.getElementById("Day1HiLo").innerHTML=obj.Day1Hi+ " / <font color=#a8a8a8>"+obj.Day1Lo+ "</font>";
    
    		
    
    		document.getElementById("Day2").innerHTML=ForecastDayNames(obj.Day2);
    
    		document.getElementById("Day2Icon").src="Icon Sets/"+iconSet+"/"+obj.Day2Code+'_small'+iconExt;
    
    		document.getElementById("Day2HiLo").innerHTML=obj.Day2Hi+ " / <font color=#a8a8a8>"+obj.Day2Lo+ "</font>";
    
    
    
    		document.getElementById("Day3").innerHTML=ForecastDayNames(obj.Day3);
    
    		document.getElementById("Day3Icon").src="Icon Sets/"+iconSet+"/"+obj.Day3Code+'_small'+iconExt;
    
    		document.getElementById("Day3HiLo").innerHTML=obj.Day3Hi+ " / <font color=#a8a8a8>"+obj.Day3Lo+ "</font>";
    
    
    
    		document.getElementById("Day4").innerHTML=ForecastDayNames(obj.Day4);
    
    		document.getElementById("Day4Icon").src="Icon Sets/"+iconSet+"/"+obj.Day4Code+'_small'+iconExt;
    
    		document.getElementById("Day4HiLo").innerHTML=obj.Day4Hi+ " / <font color=#a8a8a8>"+obj.Day4Lo+ "</font>";
    
    		}
    
    
    
      var currentTime = new Date ( );
    
      var currentHours = currentTime.getHours ( );
    
      var currentMinutes = currentTime.getMinutes ( );
    
      var currentSeconds = currentTime.getSeconds ( );
    
    
    
      // Pad the minutes and seconds with leading zeros, if required
    
      currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
    
      currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;
    
    
    
      // 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 = currentHours + ":" + currentMinutes;	    
    
    	    
    
    	var Conditions =	["thunderstorm",
    
    				"rain",
    
    				"rain",
    
    				"thunderstorm",
    
    				"thunderstorm",
    
    				"sleet",
    
    				"sleet",
    
    				"sleet",
    
    				"sleet",
    
    				"showers_cloud",
    
    				"sleet",
    
    				"showers_cloud",
    
    				"showers_cloud",
    
    				"snow",
    
    				"snow",
    
    				"snow",
    
    				"snow",
    
    				"hail",
    
    				"sleet",
    
    				"fog",
    
    				"fog",
    
    				"Haze",
    
    				"fog",
    
    				"wind",
    
    				"wind",
    
    				"frost",
    
    				"cloud",
    
    				"partlymoon",
    
    				"partlysunny",
    
    				"partlymoon",
    
    				"partlysunny",
    
    				"moon",
    
    				"sun",
    
    				"partlymoon",
    
    				"partlysunny",
    
    				"sleet",
    
    				"sun",
    
    				"thunderstorm",
    
    				"thunderstorm",
    
    				"thunderstorm",
    
    				"thunderstorm",
    
    				"snow",
    
    				"snow",
    
    				"snow",
    
    				"cloud",
    
    				"thunderstorm",
    
    				"snow",
    
    				"thunderstorm",
    
    				"blank"];
    
    if (showWeatherAni == true){
    
    		document.getElementById("animationFrame").src="Animations/"+Conditions[obj.icon]+".html";
    
    		//debugging weather codes / animations
    
    		//document.getElementById("desc").innerText=obj.description +" ("+obj.icon+")" + " / ("+Conditions[obj.icon] +")"
    
    }
    
    
    
    
    
    
    
    	}
    
    	
    
    	
    
    }
    
    
    
    </script>
    
    </head>
    
    <body onLoad="onLoad()"style="margin: 0">
    
    <div id="weatherFrame">
    
    	    <iframe id="animationFrame" name="animation" src="Animations/blank.html" width="320" height="480" scrolling="no" frameborder="0" marginwidth="0" marginheight="0" allowtransparency="true"></iframe>
    
    	</div>
    
    
    
    
    <img src="bg.png" style="position: absolute; z-index:-1;top:0; left: 0px;" height="186" width="320">
    
    
    
    <img src="" id="ampm" style="position: absolute; z-index:-1;top:110; left: 40px;" width="20">
    
    <table border=0 style="position: absolute; z-index:-1;top:22; left: 37px;"><tr><td><img src="" width="49" height="80" border=0 id="hr1"></td><td><img src="" width="49" height="80" border=0 id="hr2"></td>
    
    <td width=30></td>
    
    <td><img src="" width="49" height="80" border=0 id="min1"></td><td><img src="" width="49" height="80" border=0 id="min2"></td>
    
    </tr>
    
    </table>
    
    <span id="calendar" align=right>
    
    	<script language="JavaScript">calendarDate(); setInterval('calendarDate()', 1000 )</script>
    
    	</span>
    
        <span id="clock">
    
    	<script language="JavaScript">updateClock(); setInterval('updateClock()', 1000 )</script></span> <span id="ampm">
    
        </span>
    
    <div id="WeatherContainer">
    
    <div id="TextContainer">
    
    <img id="weatherIcon" src="" height=108 width=114 style="position:absolute; top:90px;left:103px;z-index:1;">
    
    <a id="city"></a><a id="desc"></a><a id="temp"></a>
    
    
    
    <script type="text/javascript">
    
    	if (showForecast == true){
    
    	document.write("<img src=\"forecast-bg.png\" style=\"position: absolute; z-index:-1;top:200; left: 0px;\" width=\"320\">");
    
    	} 
    
    	
    
    </script>
    
    
    
    <table cellpadding=0 cellspacing=0 style="position:absolute; top:185px; left:20px;z-index:1" width="280" align=center>
    
    	<tr>
    
    		<td align=center><img id="TodayIcon" height=50 src=""/></td>
    
    		<td align=center><img id="Day1Icon" height=50 src=""/></td>
    
    
    
    		<td align=center><img id="Day2Icon" height=50 src=""/></td>
    
    		<td align=center><img id="Day3Icon" height=50 src=""/></td>
    
    		<td align=center><img id="Day4Icon" height=50 src=""/></td>
    
    
    
    	</tr>
    
    </table>
    
    
    
    <table cellpadding=0 cellspacing=0 style="position:absolute; top:225px; left:20px" width="280" align=center>
    
    	<tr>
    
    		<td align=center><a id="TodayHiLo"></a></td>
    
    		<td align=center><a id="Day1HiLo"></a></td>
    
    
    
    		<td align=center><a id="Day2HiLo"></a></td>
    
    		<td align=center><a id="Day3HiLo"></a></td>
    
    		<td align=center><a id="Day4HiLo"></a></td>
    
    
    
    	</tr>
    
    	<tr>
    
    
    
    		<td align=center><a id="Today"></a></td>
    
    		<td align=center><a id="Day1"></a></td>
    
    		<td align=center><a id="Day2"></a></td>
    
    
    
    		<td align=center><a id="Day3"></a></td>
    
    		<td align=center><a id="Day4"></a></td>
    
    	</tr>
    
    </table>
    
    <a id="time" style="position:absolute; top:80px; width:299px;z-index:-1;font-size:8px;display:none;"></a>
    
    </div>
    
    </div>	
    
    </body>

  20. #159
    What's Jailbreak? eozen81's Avatar
    Join Date
    Mar 2011
    Posts
    7
    Thanks
    3
    Thanked 1 Time in 1 Post
    I have checked your code, and it looks like fine about the line so If you have respring (or restrat) your phone, you should see 24 hour format. If now I would recommend you to delete tweak and restart than re-insatall.

  21. The Following User Says Thank You to eozen81 For This Useful Post:

    sync10 (04-29-2011)

  22. #160
    What's Jailbreak?
    Join Date
    Apr 2011
    Posts
    9
    Thanks
    6
    Thanked 0 Times in 0 Posts

    I uninstalled it and reinstalled and made ​​just as you have described

    1a has many thanks worked perfectly

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