-
Notifications
You must be signed in to change notification settings - Fork 0
/
mobile.html.tmpl
93 lines (79 loc) · 2.6 KB
/
mobile.html.tmpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
## $Id: mobile.html.tmpl 2749 2014-11-29 18:15:24Z tkeffer $
#encoding UTF-8
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<!--
This is a phone-formatted summary page based on examples posted
to the wview Google Group, and salted to taste for weewx.
It takes a full screen on my Verizon Fascinate (Samsung Galaxy S)
and its predecessor(s) were reportedly developed for a Apple iPhone.
[email protected] - 1/16/2010
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title> $station.location Weather</title>
<meta name="viewport" content="width=320; initial-scale=1.0; maximum-scale=1.0; user-scalable=1;"/>
<script type="application/x-javascript">
if (navigator.userAgent.indexOf('iPhone') != -1)
{
addEventListener("load", function()
{
setTimeout(hideURLbar, 0);
}, false);
}
function hideURLbar()
{
window.scrollTo(0, 1);
}
</script>
<style type="text/css" media="screen">@import "mobile.css";</style>
</head>
<body>
<center>
<div>
<table class="readings">
<tr>
<td><a href="daytempdew.png">Temp / Dewpoint:</a></td><td class="data"> $current.outTemp / $current.dewpoint </td>
</tr>
<tr class="alt">
<td>High Temp:</td><td class="data"> $day.outTemp.max at $day.outTemp.maxtime </td>
</tr>
<tr>
<td>Low Temp:</td><td class="data"> $day.outTemp.min at $day.outTemp.mintime </td>
</tr>
<tr class="alt">
<td><a href="daytempchill.png">Heat Index / Wind Chill:</a></td><td class="data"> $current.heatindex / $current.windchill </td>
</tr>
<tr>
<td>Humidity:</td><td class="data"> $current.outHumidity </td></tr>
</tr>
<tr class="alt">
<td><a href="dayrain.png">Rainfall:</a></td><td class="data"> $day.rain.sum </td>
</tr>
<tr>
<td>High Rain Rate:</td><td class="data"> $day.rainRate.max at $day.rainRate.maxtime </td>
</tr>
<tr class="alt">
<td><a href="daywind.png">Wind Speed:</a></td><td class="data"> $current.windSpeed </td>
</tr>
<tr>
<td>High Wind Speed:</td><td class="data"> $day.wind.max at $day.wind.maxtime </td>
</tr>
</table>
</div>
#if $Extras.has_key('radar_img')
<div class="radar">
#if $Extras.has_key('radar_url')
<a href="$Extras.radar_url">
#end if
<img src="$Extras.radar_img" alt="Radar" />
#if $Extras.has_key('radar_url')
</a>
#end if
<!-- yes I was too lazy to CSS the style below :-) -->
<p style="font-size: 12px; color: black; text-align: center;"> $current.dateTime</p>
</div>
#end if
</center>
</body>
</html>