I don't have one (and my daughter will never give me her android)

Is there someone around with Android html/javascript/css experience?
I guess it will only need this html adapted (mainly device orientation and viewport sizing).
Code: Select all
<!DOCTYPE html>
<html manifest="iphone">
<head>
<meta name="viewport" id="viewport" content="user-scalable=no, width=device-width, initial-scale=0.79, maximum-scale=0.79" />
<meta name="viewport" content="user-scalable=no" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="apple-touch-icon" href="http://www.meteoplug.com/iphone-icon-150.png" />
<style media="screen, mobile" type="text/css" charset="utf-8">
* {
margin:0;
padding:0;
}
body {
background: #000;
overflow:hidden;
margin:0;
padding:0;
}
#landscape {
position: absolute;
top: 0;
left: 0;
width: 960;
height: 640;
background:#000;
z-index: 1
}
#landscape2 {
position: absolute;
top: 0;
left: 0;
width: 960;
height: 640;
background:#000;
z-index: 2
}
#portrait {
position:absolute;
top: 0;
left: 0;
width: 640;
height: 960;
background:#000;
color: #ffffff;
z-index: 3
}
#tab {
font-family: verdana,arial,sans-serif;
font-size:9pt;
color: #A9D0F5;
border-spacing: 14px 9px;
}
td {
background: #000;
margin: 5px;
vertical-align: top;
}
tr {
}
h1 {
font-size: 28pt;
font-weight: bold;
text-align: left;
}
h2 {
font-size: 22pt;
font-weight: bold;
text-align: left;
}
h3 {
font-size: 12pt;
font-weight: bold;
text-align: left;
color: #BDBDBD;
}
h4 {
font-size: 9pt;
font-weight: normal;
text-align: left;
color: #BDBDBD;
}
</style>
</head>
<script>
function readDeviceOrientation() {
var iphone4 = (window.screen.height == (960 / 2));
var iphone5 = (window.screen.height == (1136 / 2));
if ((window.orientation) == 90) { // landscape
document.getElementById('portrait').style.visibility="hidden";
document.getElementById('landscape').style.visibility="visible";
document.getElementById('landscape2').style.visibility="hidden";
if (iphone5)
{
document.getElementById('viewport').setAttribute('content',
'width=960, height=640, initial-scale=0.93, maximum-scale=0.93');
} else {
document.getElementById('viewport').setAttribute('content',
'width=960, height=640, initial-scale=0.79, maximum-scale=0.79');
}
document.getElementById('portrait').style.zIndex=0;
document.getElementById('landscape').style.zIndex=10;
document.getElementById('landscape2').style.zIndex=0;
} else {
if ((window.orientation) == -90) { // landscape2
document.getElementById('portrait').style.visibility="hidden";
document.getElementById('landscape2').style.visibility="visible";
document.getElementById('landscape').style.visibility="hidden";
if (iphone5)
{
document.getElementById('viewport').setAttribute('content',
'width=960, height=640, initial-scale=1.0, maximum-scale=1.0');
} else {
document.getElementById('viewport').setAttribute('content',
'width=960, height=640, initial-scale=0.85, maximum-scale=0.85');
}
document.getElementById('portrait').style.zIndex=0;
document.getElementById('landscape2').style.zIndex=10;
document.getElementById('landscape').style.zIndex=0;
} else { // portrait
document.getElementById('portrait').style.visibility="visible";
document.getElementById('landscape').style.visibility="hidden";
document.getElementById('landscape2').style.visibility="hidden";
if (iphone5)
{
document.getElementById('viewport').setAttribute('content',
'width=960, height=640, initial-scale=1.0, maximum-scale=1.0');
} else {
document.getElementById('viewport').setAttribute('content',
'width=960, height=640, initial-scale=0.85, maximum-scale=0.85');
}
document.getElementById('portrait').style.zIndex=10;
document.getElementById('landscape').style.zIndex=0;
document.getElementById('landscape2').style.zIndex=0;
}
}
}
window.onorientationchange = readDeviceOrientation;
</script>
<body>
<div id="portrait">
<div id="head">
<font style="font-weight:normal; font-family: verdana,arial,sans-serif; color: #BDBDBD; font-size: 8pt;"> data from [actual_min5_misc_uploadlocaltime] © smartbedded UG</font>
</div>
<table id="tab">
<tr id="tab">
<td id="tab">Temperat. [°F]<BR><h1><font style="color: #FE642E;">[actual_min5_th0_temp_1_1.8_32:--]</font></h1></td>
<td id="tab">Today [°F]<BR><h3>[actual_day1_th0_tempmax_1_1.8_32:--] <font style="font-weight:normal; font-size: 8pt;">[actual_day1_th0_tempmaxtime_11_5:]</font></h3><h3>[actual_day1_th0_tempmin_1_1.8_32:--] <font style="font-weight:normal; font-size: 8pt;">[actual_day1_th0_tempmintime_11_5:]</font></h3></td>
<td id="tab">Yesterday<BR><h3>[-1D_day1_th0_tempmax_1_1.8_32:--] <font style="font-weight:normal; font-size: 8pt;">[-1D_day1_th0_tempmaxtime_11_5:]</font></h3><h3>[-1D_day1_th0_tempmin_1_1.8_32:--] <font style="font-weight:normal; font-size: 8pt;">[-1D_day1_th0_tempmintime_11_5:]</font></h3></td>
</tr>
<tr id="tab">
<td id="tab">Humidity [%]<BR><h1><font style="color: #01DF3A;">[actual_min5_th0_hum_1:--]</font></h1></td>
<td id="tab">Today [%]<BR><h3>[actual_day1_th0_hummax_0:--] <font style="font-weight:normal; font-size: 8pt;">[actual_day1_th0_hummaxtime_11_5:]</font></h3><h3>[actual_day1_th0_hummin_0:--] <font style="font-weight:normal; font-size: 8pt;">[actual_day1_th0_tempmintime_11_5:]</font></h3></td>
<td id="tab">Yesterday<BR><h3>[-1D_day1_th0_hummax_0:--] <font style="font-weight:normal; font-size: 8pt;">[-1D_day1_th0_hummaxtime_11_5:]</font></h3><h3>[-1D_day1_th0_hummin_0:--] <font style="font-weight:normal; font-size: 8pt;">[-1D_day1_th0_hummintime_11_5:]</font></h3></td>
</tr>
<tr id="tab">
<td id="tab">Pressure [inHg]<BR><h2><font style="color: #BE81F7;">[actual_min5_thb0_seapress_2_0.02952:--]</font></h2></td>
<td id="tab">Today [inHg]<BR><h3>[actual_day1_thb0_seapressmax_2_0.02952:--] <font style="font-weight:normal; font-size: 8pt;">[actual_day1_thb0_pressmaxtime_11_5:]</font></h3><h3>[actual_day1_thb0_seapressmin_2_0.02952:--] <font style="font-weight:normal; font-size: 8pt;">[actual_day1_thb0_pressmintime_11_5:]</font></h3></td>
<td id="tab">Yesterday<BR><h3>[-1D_day1_thb0_seapressmax_2_0.02952:--] <font style="font-weight:normal; font-size: 8pt;">[-1D_day1_thb0_pressmaxtime_11_5:]</font></h3><h3>[-1D_day1_thb0_seapressmin_2_0.02952:--] <font style="font-weight:normal; font-size: 8pt;">[-1D_day1_thb0_pressmintime_11_5:]</font></h3></td>
</tr>
<tr id="tab">
<td id="tab">Wind [mph]<BR><h1><font style="color: #ffffff;">[actual_min5_wind0_wind_0_2.237:--]</font><font style="font-size: 12pt; color: #ffffff;">[actual_min5_wind0_maindirtext:]</font></h1></td>
<td id="tab">Today [mph]<BR><h3>[actual_day1_wind0_gustmax_0_2.237:--] <font style="font-weight:normal; font-size: 8pt;">[actual_day1_wind0_gustmaxtime_11_5:]</font></h3><h3>[actual_day1_wind0_highdirtext:]</h3></td>
<td id="tab">Yesterday<BR><h3>[-1D_day1_wind0_gustmax_0_2.237:--] <font style="font-weight:normal; font-size: 8pt;">[-1D_day1_wind0_gustmaxtime_11_5:]</font></h3><h3>[-1D_day1_wind0_highdirtext:]</h3></td>
</tr>
<tr id="tab">
<td id="tab">Windchill [°F]<BR><h2><font style="color: #FE642E;">[actual_min5_wind0_chill_1_1.8_32:--]</font></h2></td>
<td id="tab">Heatindex [°F]<BR><h2><font style="color: #FE642E;">[actual_min5_th0_heat_1_1.8_32:--]</font></h2></td>
<td id="tab">Dewpoint [°F]<BR><h2><font style="color: #FE642E;">[actual_min5_th0_dew_1_1.8_32:--]</font></h2></td>
</tr>
<tr id="tab">
<td id="tab">Rain [in/h]<BR><h2>[actual_min5_rain0_rate_2_0.0394:--]</h2></td>
<td id="tab">Today [in]<BR><h2><font style="color: #BDBDBD;">[actual_day1_rain0_total_2_0.0394:--]</font></h2></td>
<td id="tab">Yesterday<BR><h2><font style="color: #BDBDBD;">[-1D_day1_rain0_total_2_0.0394:--]</font></h2></td>
</tr>
<tr id="tab">
<td id="tab">UV Index [uvi]<BR><h3><font style="color: #D7DF01;">[actual_min5_uv0_uvi_1:--]</font></h3></td>
<td id="tab">Today [uvi]<BR><h3>[actual_day1_uv0_uvimax_1:--] </h3><h4>[actual_day1_uv0_uvimaxtime_11_5:]</h4></td>
<td id="tab">Yesterday<BR><h3>[-1D_day1_uv0_uvimax_1:--] </h3><h4>[-1D_day1_uv0_uvimaxtime_11_5:]</h4></td>
</tr>
<tr id="tab">
<td id="tab">Solar [W/qm]<BR><h3><font style="color: #D7DF01;">[actual_min5_sol0_rad_0:--]</font></h3></td>
<td id="tab">Today [uvi]<BR><h3>[actual_day1_sol0_radmax_0:--] </h3><h4>[actual_day1_sol0_radmaxtime_11_5:]</h4></td>
<td id="tab">Yesterday<BR><h3>[-1D_day1_sol0_solmax_0:--] </h3><h4>[-1D_day1_sol0_radmaxtime_11_5:]</h4></td>
</tr>
</table>
</div>
<div id="landscape">
<iframe seamless="seamless" frameborder="0" src="http://www.meteoplug.com/cgi-bin/meteochart.cgi?draw=[drawtoken_*instruments-black-imp]&engine=js"></iframe>
</div>
<div id="landscape2">
<iframe seamless="seamless" frameborder="0" src="http://www.meteoplug.com/cgi-bin/meteochart.cgi?draw=[drawtoken_*iphone-tw-2d-imp]&engine=gp"></iframe>
<br /><br />
<iframe seamless="seamless" frameborder="0" src="http://www.meteoplug.com/cgi-bin/meteochart.cgi?draw=[drawtoken_*iphone-pr-2d-imp]&engine=gp"></iframe>
</div>
</body>
<script>
readDeviceOrientation();
</script>
</html>