02.06.2013, 18:51
Geil oldster...super.. Da bin ich ja mal gepannt.. Geil mit 5 tagevorschau
Gruss
Gruss
(03.06.2013, 13:56)M@!k schrieb: man braucht ifile oder einen clienten mit dem man aufs iphone zugreiffen kann! Dann gehst du nach var/stash/themes dort drinn ist der name des themas und dortdrinn ist die lockbackground!
Voraussgesetzt du hast es über winterboard....
(03.06.2013, 07:31)M@!k schrieb: xml_request.open("GET", url+zip+'&u='+varUnit+'&d=5.xml')
Und alles sollte wieder funktionieren
<html>
<head><title>newclock</title><base href="Private/"/>
<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:6px;
}
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:162px;
text-align:right;
width:300px;
}
body {
background-image:url('../L.png');
</style>
<script type="text/javascript">
<!--
var this_weekday_name_array = new Array("Sun","Mon","Tue","Wed","Thu","Fri","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()
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 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;
// Update the time display
currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
if (timeOfDay == "PM"){
document.getElementById("ampm").src="pm.png"
}
else
{
document.getElementById("ampm").src="am.png"
}
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("Sun","Mon","Tue","Wed","Thu","Fri","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_date + " " + this_month_name_array[this_month]//concat long date string
//document.getElementById("calendar").firstChild.nodeValue = this_weekday_name_array[this_weekday] + "," + " " + this_month_name_array[this_month] + " " + this_date //concat long date string
document.getElementById("calendar").firstChild.nodeValue = this_weekday_name_array[this_weekday] + ", " + this_month_name_array[this_month] + " " + this_date
}
// -->
</script>
</head>
<body style="margin-left: 0">
<img src="/private/var/mobile/Library/SpringBoard/LockBackgroundPortrait.jpg" height="480" width="320" style="position: absolute; top: 0px; left: 0px; z-index:-1;">
<img src="bg.png" style="position: absolute; z-index:-1;top:25; left: 0px;" height="186" width="320">
<img src="forecast-bg.png" style="position: absolute; z-index:-1;top:225; left: 0px;" width="320">
<img src="" id="ampm" style="position: absolute; z-index:-1;top:135; left: 40px;" width="20">
<table border=0 style="position: absolute; z-index:-1;top:47; 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>
<object data="WeatherWidget/WeatherWidget.html" type="text/html" height="480" width="320" style="left:0px">
<p>Place WeatherWidget in Subthemes</p>
</object>
</body>
</html>