forked from decker67/Ngy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Ngy.html
181 lines (151 loc) · 6.52 KB
/
Ngy.html
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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!DOCTYPE html>
<html lang="de" manifest="Ngy.appcache">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no, maximum-scale=1"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<link rel="apple-touch-icon" href="images/Ngy57x57.png"/>
<link rel="apple-touch-startup-image" href="images/Ngy.png" />
<title>Ngy</title>
<link rel="stylesheet" href="css/jquery.mobile-1.3.0.min.css" />
<link rel="stylesheet" href="css/jquery.jqplot.min.css" />
<link rel="stylesheet" href="Ngy.css?v=1" />
<script src="libs/jquery-1.7.2.min.js"></script>
<script src="libs/jquery.mobile-1.3.0.min.js"></script>
<script src="libs/json2.js"></script> <!-- needed for jstorage -->
<script src="libs/jstorage.js"></script> <!-- must be placed after jquery -->
<script src="libs/jquery.jqplot.min.js"></script>
<script src="libs/jqplot.barRenderer.min.js"></script>
<script src="libs/jqplot.dateAxisRenderer.min.js"></script>
<script src="libs/jqplot.highlighter.min.js"></script>
<script src="libs/jqplot.canvasAxisTickRenderer.min.js"></script>
<script src="libs/jqplot.canvasTextRenderer.min.js"></script>
<script src="libs/jqplot.canvasAxisLabelRenderer.min.js"></script>
</head>
<body>
<!-- enter new energy counter -->
<div data-role="page" id="enter_new_energy_counter">
<div data-theme="a" data-role="header">
<span class="ui-title">Ngy</span>
</div>
<div data-role="content">
<h2>Zählerstand erfassen</h2>
<div data-role="fieldcontain">
<fieldset data-role="controlgroup">
<label for="new_date">Datum</label>
<input name="new_date" id="new_date" placeholder="" value="" type="date" />
</fieldset>
</div>
<div data-role="fieldcontain">
<fieldset data-role="controlgroup">
<label for="new_time">Uhrzeit</label>
<input name="new_time" id="new_time" placeholder="" value="" type="time" />
</fieldset>
</div>
<div data-role="fieldcontain">
<fieldset data-role="controlgroup">
<label for="new_energy_counter">Zählerstand</label>
<input name="new_energy_counter" id="new_energy_counter" placeholder="" value="" type="number" />
</fieldset>
</div>
<div data-role="navbar" data-iconpos="top" data-position="fixed">
<ul>
<li><a id="save_new_entry" href="#consumption" data-transition="fade" data-theme="" data-icon="save" />Speichern</a></li>
<li><a href="#all_entries" data-transition="fade" data-theme="" data-icon="bar">Übersicht</a></li>
</ul>
</div>
</div>
</div>
<!-- consumption -->
<div data-role="page" id="consumption">
<div data-theme="a" data-role="header">
<span class="ui-title">Ngy</span>
</div>
<div data-role="content">
<h2>Verbrauch</h2>
<div class="ui-grid-a">
<div class="ui-block-a">Tag</div>
<div id="dayEstimation" class="ui-block-b">12,4 kWh</div>
<div class="ui-block-a">Monat</div>
<div id="monthEstimation" class="ui-block-b">350 kWh</div>
<div class="ui-block-a">Jahr</div>
<div id="yearEstimation" class="ui-block-b">4000 kWh</div>
</div>
<div data-role="navbar" data-iconpos="top" data-position="fixed">
<ul>
<li><a href="#enter_new_energy_counter" data-transition="fade" data-theme="" data-icon="plus">Neu</a></li>
<li><a href="#all_entries" data-transition="fade" data-theme="" data-icon="bar">Übersicht</a></li>
</ul>
</div>
</div>
</div>
<!-- list of all energy entries -->
<div data-role="page" id="all_entries">
<div data-theme="a" data-role="header">
<span class="ui-title">Ngy</span>
</div>
<div data-role="content">
<!-- h2>Zählerstände</h2 -->
<ul id="entries" data-role="listview" data-divider-theme="b" data-inset="true" data-filter="true"></ul>
</div>
<div data-role="navbar" data-iconpos="top" data-position="fixed">
<ul>
<li><a href="#enter_new_energy_counter" data-transition="fade" data-theme="" data-icon="plus">Neu</a></li>
<li><a href="#graph" data-transition="fade" data-theme="" data-icon="grid">Grafik</a></li>
</ul>
</div>
</div>
<!-- page phone_entry -->
<div data-role="page" id="edit_entry">
<div data-theme="a" data-role="header">
<span class="ui-title">Ngy</span>
</div>
<div data-role="content">
<h2>Zählerstand bearbeiten</h2>
<div data-role="fieldcontain">
<fieldset data-role="controlgroup">
<label for="entry_date">Datum</label>
<input name="entry_date" id="entry_date" placeholder="" value="" type="date" />
</fieldset>
</div>
<div data-role="fieldcontain">
<fieldset data-role="controlgroup">
<label for="entry_time">Uhrzeit</label>
<input name="entry_time" id="entry_time" placeholder="" value="" type="time" />
</fieldset>
</div>
<div data-role="fieldcontain">
<fieldset data-role="controlgroup">
<label for="entry_energy_counter">Zählerstand</label>
<input name="entry_energy_counter" id="entry_energy_counter" placeholder="" value="" type="number" />
</fieldset>
</div>
<div data-role="navbar" data-iconpos="top" data-position="fixed">
<ul>
<li><a href="#all_entries" id="save_entry" data-transition="fade" data-theme="" data-icon="save">Speichern</a></li>
<li><a href="#all_entries" id="delete_entry" data-transition="fade" data-theme="" data-icon="delete">Löschen</a></li>
<li><a href="#all_entries" data-transition="fade" data-theme="" data-icon="bar">Übersicht</a></li>
</ul>
</div>
</div>
</div>
<!-- show all values in a graph -->
<div data-role="page" id="graph">
<div data-theme="a" data-role="header">
<span class="ui-title">Ngy</span>
</div>
<div data-role="content">
<!-- h2>Grafik</h2 -->
<div id="chart" style="height:330px; width:315px"></div>
</div>
<div data-role="navbar" data-iconpos="top" data-position="fixed">
<ul>
<li><a href="#enter_new_energy_counter" data-transition="fade" data-theme="" data-icon="plus">Neu</a></li>
<li><a href="#all_entries" data-transition="fade" data-theme="" data-icon="bar">Übersicht</a></li>
</ul>
</div>
</div>
<script src="Ngy.js?v=1"></script>
</body>
</html>