Μπορει να μου πει καποιος πως σταματαω τα δευτερολεπτα απο την 2UINique MP LS5 γιατι μου γονατιζει την μπαταρια?
<head>
<base href="Private/"/>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Aspire HD MP SB Mod</title>
<link href="StyleSheets/LockScreen.css" rel="stylesheet" type="text/css" />
</head> <script type="text/javascript">
var EnableGreeting = false;
var enableWallpaper = true;
var locale = "SWXX0033" //
var isCelsius = true //true|false//
var useRealFeel = false //true|false
var enableWallpaper = true; //true|false
var enableLockScreen = true; //true|false
var stylesheetWall = 'MP'//
var stylesheetLock = 'MP'//
var iconSetWall = 'Custom' //
var iconExtWall = ".png" //'.png'|.'gif' etc.
var iconSetLock = 'Custom' //See above.
var iconExtLock = '.png' //See above.
var source = 'yahooWeather' //
var updateInterval = 5 //Minutes
var postal;
var demoMode = false;
var enabled;
if (location.href.indexOf("LockBackground") == -1){
stylesheet = stylesheetWall;
iconSet = iconSetWall;
iconExt = iconExtWall;
enabled = enableWallpaper;
}else{
stylesheet = stylesheetLock;
iconSet = iconSetLock;
iconExt = iconExtLock;
enabled = enableLockScreen;
}
if(enabled == true){
if(iconSet == null || iconSet == 'null' || iconSet == ""){
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(){
if (enabled == true){
if (demoMode == true){
document.getElementById("weatherIcon").src="Icon Sets/"+iconSet+"/"+"cloudy1"+iconExt;
document.getElementById("city").innerText="Somewhere";
document.getElementById("desc").innerText=descriptions[obj.icon];
document.getElementById("temp").innerText="100ºC";
}else{
document.getElementById("weatherIcon").src="Icon Sets/"+iconSet+"/"+"dunno"+iconExt;
validateWeatherLocation(escape(locale).replace(/^%u/g, "%"), setPostal)
}
}else{
document.getElementsByTagName("body")[0].innerText='';
}
}
function convertTemp(num)
{
if (isCelsius == true)
return Math.round ((num - 32) * 5 / 9);
else
return num;
}
function setPostal(obj){
if (obj.error == false){
if(obj.cities.length > 0){
postal = escape(obj.cities[0].zip).replace(/^%u/g, "%")
document.getElementById("WeatherContainer").className = "";
weatherRefresherTemp();
}else{
document.getElementById("city").innerText="Not Found";
document.getElementById("WeatherContainer").className = "errorLocaleNotFound";
}
}else{
document.getElementById("city").innerText=obj.errorString;
document.getElementById("WeatherContainer").className = "errorLocaleValidate";
setTimeout('validateWeatherLocation(escape(locale).replace(/^%u/g, "%"), setPostal)', Math.round(1000*60*5));
}
}
function dealWithWeather(obj){
if (obj.error == false){
document.getElementById("city").innerText=obj.city;
document.getElementById("desc").innerText=descriptions[obj.icon];
if(useRealFeel == true){
tempValue = convertTemp(obj.realFeel);
}else{
tempValue = convertTemp(obj.temp)
}
document.getElementById("temp").innerText=tempValue+"ºC";
document.getElementById("weatherIcon").src="Icon Sets/"+iconSet+"/"+MiniIcons[obj.icon]+iconExt;
document.getElementById("WeatherContainer").className = "";
}else{
document.getElementById("WeatherContainer").className = "errorWeatherDataFetch";
}
}
function weatherRefresherTemp(){
fetchWeatherData(dealWithWeather,postal);
setTimeout(weatherRefresherTemp, 60*1000*updateInterval);
}
var descriptions =
[
"tornado",
"tropical storm",
"hurricane",
"severe thunderstorms",
"thunderstorms",
"mixed rain and snow",
"mixed rain and sleet",
"mixed snow and sleet",
"freezing drizzle!",
"drizzle",
"freezing rain",
"showers",
"showers",
"snow flurries",
"light snow showers",
"blowing snow",
"snow",
"hail",
"sleet",
"dust",
"foggy",
"haze",
"smoky",
"blustery",
"windy",
"cold",
"cloudy ",
"mostly cloudy",
"mostly cloudy",
"partly cloudy",
"partly cloudy",
"clear night",
"sunny",
"fair",
"fair",
"mixed rain and hail",
"hot",
"isolated thunderstorms",
"scattered thunderstorms",
"scattered thunderstorms",
"scattered showers",
"heavy snow",
"scattered snow showers",
"heavy snow",
"partly cloudy",
"thundershowers",
"snow showers",
"isolated thundershowers",
"not available",
]
var MiniIcons =
[
"tstorm3", //0 tornado
"tstorm3", //1 tropical storm
"tstorm3", //2 hurricane
"tstorm3", //3 severe thunderstorms
"tstorm2", //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
"shower2", //11 showers
"shower2", //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
"cloudy1", //23 blustery
"cloudy1", //24 windy
"overcast", //25 cold
"cloudy5", //26 cloudy
"cloudy4_night", //27 mostly cloudy (night)
"cloudy4", //28 mostly cloudy (day)
"cloudy1_night", //29 partly cloudy (night)
"cloudy2", //30 partly cloudy (day)
"fair_night", //31 clear (night)
"sunny", //32 sunny
"fair_night", //33 fair (night)
"fair", //34 fair (day)
"hail", //35 mixed rain and hail
"sunny", //36 hot
"tstorm1", //37 isolated thunderstorms
"tstorm2", //38 scattered thunderstorms
"tstorm2", //39 scattered thunderstorms
"tstorm2", //40 scattered showers
"snow5", //41 heavy snow
"snow3", //42 scattered snow showers
"snow5", //43 heavy snow
"cloudy1", //44 partly cloudy
"storm1", //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)
{
url="
http://weather.yahoo...castrss?u=f&p=" //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);
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");
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};
callback (obj);
}
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)
{
url="
http://weather.yahoo...castrss?u=f&p=" //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);
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");
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};
callback (obj);
}
</script>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
</head>
<body bgcolor="Transparent" onLoad="onLoad()">
<div id="WeatherContainer">
<div id="TextContainer">
<p id="city">Loading...</p>
<p id="temp">.?..</p>
<p id="desc">.?..</p>
</div>
<img id="weatherIcon" src=""/> </div>
</div>
<div id="Underlay">
<img src="Underlay.png" width="320" height="480"/>
</div>
<div id="Overlay">
<img src="Overlay.png" width="320" height="480"/>
</div>
<div id="Chaser">
<img src="Chaser.png" width="320" height="480"/>
</div>
<div id="Logo">
<img src="Logo.png" width="70" height="55"/>
</div>
<style>
#weatherIcon{
position: absolute;
top: -10px;
left: 0px;
height:480px;
width: 320px;
opacity:1.0;
z-index:-10;
display:;
-webkit-animation-name: Glow_Anim;
-webkit-animation-duration: 10s;
-webkit-animation-iteration-count: 1;
-webkit-animation-timing-function: ease;
-webkit-animation-delay:0s;
}
#desc{
position: absolute;
font: 13px "Helvetica";
color: white;
text-shadow: black 1px 1px 2px;
top: 25px;
left: 20px;
width: 320px;
height: 30px;
opacity: 1.0;
z-index:10;
display:;
text-align:;
text-transform:Capitalize;
-webkit-animation-name: Glow_Anim;
-webkit-animation-duration: 10s;
-webkit-animation-iteration-count: 1;
-webkit-animation-timing-function: ease;
-webkit-animation-delay:0s;
}
#city{
position: absolute;
font: 20px "Helvetica";
font-weight:regular;
color: #039ede;
text-shadow: black 1px 1px 0px;
top: 8px;
left: 125px;
opacity: 1.0;
display:inline;
z-index:10;
font-weight:700;
text-align:center;
-webkit-animation-name: Glow_Anim;
-webkit-animation-duration: 10s;
-webkit-animation-iteration-count: 1;
-webkit-animation-timing-function: ease;
-webkit-animation-delay:0s;
}
#temp{
position:absolute;
font: 13px "Helvetica";
font-weight:regular;
color: white;
text-shadow: black 1px 1px 2px;
top: 25px;
left: 270px;
width: 40px;
opacity: 1.0;
z-index:10;
-webkit-animation-name: Glow_Anim;
-webkit-animation-duration: 10s;
-webkit-animation-iteration-count: 1;
-webkit-animation-timing-function: ease;
-webkit-animation-delay:0s;
}
#Underlay{
position: absolute;
top: 0px;
left: 0px;
height:480px;
width: 320px;
z-index:-8;
opacity:0;
-webkit-animation-name: Underlay_Anim;
-webkit-animation-duration: 20s;
-webkit-animation-iteration-count: 1;
-webkit-animation-timing-function: linear;
-webkit-animation-delay:0s;
}
@-webkit-keyframes Underlay_Anim{
0%{opacity:1.0;}
80%{opacity:1.0;}
100%{opacity:0.0;}}
#Overlay{
position: absolute;
top: 0px;
left: 0px;
height:480px;
width: 320px;
z-index:-5;
-webkit-animation-name: Glow_Anim;
-webkit-animation-duration: 1s;
-webkit-animation-iteration-count: 1;
-webkit-animation-timing-function: ease;
-webkit-animation-delay:0s;
}
@-webkit-keyframes Glow_Anim{
0%{opacity:0.0;}
50%{opacity:0.0;}
100%{opacity:1.0;}}
#Chaser{
position: absolute;
top: -25px;
left: 0px;
height:480px;
width: 320px;
z-index:-7;
opacity:0;
-webkit-animation-name: Chaser_Anim;
-webkit-animation-duration: 3s;
-webkit-animation-iteration-count: 4;
-webkit-animation-timing-function: linear;
-webkit-animation-delay:5s;
}
@-webkit-keyframes Chaser_Anim{
0%{opacity:1.0;-webkit-transform:scale(1.0)translateY(-40px);}
15%{opacity:1.0;-webkit-transform:scale(1.0)translateY(175px);}
30%{opacity:1.0;-webkit-transform:scale(1.0)translateX(113px)translateY(175px);}
45%{opacity:1.0;-webkit-transform:scale(1.0)translateX(113px)translateY(-0px);}
60%{opacity:1.0;-webkit-transform:scale(1.0)translateY(-0px)translateX(220px);}
75%{opacity:1.0;-webkit-transform:scale(1.0)translateX(220px)translateY(285px);}
100%{opacity:1.0;-webkit-transform:scale(1.0)translateY(285px)translateX(-100px);}
}
#logo{
position: absolute;
top:280px;
left:25px;
border:none;
z-index:20;
-webkit-transform:translateX(-2px)translateY(0px);
-webkit-animation-name: LogoIntro;
-webkit-animation-duration:3s;
-webkit-animation-iteration-count:1;
-webkit-animation-delay:0s;
-webkit-animation-timing-function: linear;
}
@-webkit-keyframes LogoIntro{
0%{opacity:0.0;-webkit-transform:scale(8.0)translateX(-2px)translateY(0px);}
50%{opacity:0.0;-webkit-transform:scale(7.0)translateX(-2px)translateY(0px);}
100%{opacity:1.0;-webkit-transform:scale(1.0)translateX(-2px)translateY(0px);}
}
SPAN#clock {
display: inline;
text-align: right;
font-family: Helvetica;
font-size: 20px;
color: white;
text-shadow: black 1px 1px 1px;
letter-spacing: 0.0em;
font-weight: 200;
text-transform: uppercase;
-webkit-animation-name: Glow_Anim;
-webkit-animation-duration: 10s;
-webkit-animation-iteration-count: 1;
-webkit-animation-timing-function: ease;
-webkit-animation-delay:0s;
}
SPAN#ampm {
display: none;
font-family: Helvetica;
font-size: 12px;
font-weight: bold;
color: #d1d1d1;
}
SPAN#Calendar {
display: inline;
font-family: Helvetica;
text-transform: uppercase;
text-align: left;
font-size: 15px;
font-weight: 200;
letter-spacing: 0.0em;
color: #039ede;
text-shadow: black 1px 1px 1px;
z-index:10;
-webkit-animation-name: Glow_Anim;
-webkit-animation-duration: 10s;
-webkit-animation-iteration-count: 1;
-webkit-animation-timing-function: ease;
-webkit-animation-delay:0s;
}
</style>
<script type="text/javascript">
<!--
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;
// -->
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
currentHours = ( currentHours < 10 ? "0" : "" ) + currentHours;
currentMinutes = ( currentMinutes < 10 ? "0" : "" ) + currentMinutes;
currentSeconds = ( currentSeconds < 10 ? "0" : "" ) + currentSeconds;
//Convert an hours component of "0" to "12"
//currentHours = ( currentHours == 0 ) ? currentHours + 12 : currentHours;
//Convert the hours component to 12-hour format if needed
//currentHours = ( currentHours > 12 ) ? currentHours - 12 : currentHours;
//Convert an hours component of "12" to "12"
//currentHours = ( currentHours == 0 ) ? 12 : currentHours;
// Compose the string for display
var currentTimeString = currentHours + ":" + currentMinutes + ":" + currentSeconds;
// Update the time display
document.getElementById("clock").firstChild.nodeValue = currentTimeString;
}
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 calendarDate ( ) {
var this_date_name_array = new Array ("0", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23","24","25","26","27","28","29","30","31")
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")
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()
document.getElementById("calendar").firstChild.nodeValue = this_weekday_name_array[this_weekday] + " " + this_date_name_array[this_date] + " " + this_month_name_array[this_month]//concat long date string
}
// -->
</script>
</head>
<body>
</div>
<body bgcolor="Transparent" onload="onLoad()">
<table style="position: fixed;top: 306px; left: 0px; width: 320px; height: 461px;z-index: 150">
<tr align="center" valign="top" border="0" cellpadding="0">
<td height="12" valign="top" margin-left="20">
<span id="clock">
<script language="JavaScript">updateClock(); setInterval('updateClock()', 1000 )</script>
</span>
</td>
</tr>
</table>
<table style="position: absolute;top: 70px; left: 30px; width: 320px; height: 461px;">
<tr align="center" valign="top" border="0" cellpadding="0">
<td height="12" valign="top" margin-left="20" >
<span id="ampm">
<script language="JavaScript">amPm(); setInterval('amPm()', 1000 )</script>
</span>
</td>
</tr>
</table>
<table style="position: absolute; top:288px; left: 0px; width: 320px; height: 461px;z-index:150;">
<tr align="center" valign="top" border="0" cellpadding="0">
<td height="12" valign="top" margin-left="20" >
<span id="calendar">
<script language="JavaScript">calendarDate(); setInterval('calendarDate()', 1000 )</script></span>
</td>
</tr>
</table>
</body>
</html>