-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
116 lines (103 loc) · 4.22 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title>Tram winken</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css">
<link rel="stylesheet" href="tram-winken.css">
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="https://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.js"></script>
<script src="html5sql.js"></script>
<script src="app.js"></script>
</head>
<body>
<div data-role="page">
<div data-role="header">
<a href="javascript:resetDatabase()" class="ui-btn ui-btn-left ui-icon-refresh ui-btn-icon-left">Reset</a>
<h1>Tram winken</h1>
<a href="#addDialog" class="ui-btn ui-btn-right ui-icon-plus ui-btn-icon-left">Add</a>
</div>
<div data-role="main" class="ui-content">
<table id="dataTable" data-role="table" data-mode="columntoggle" class="ui-responsive">
<thead>
<tr>
<th data-priority="1">Time</th>
<th>Number</th>
<th data-priority="5">Line</th>
<th data-priority="5">Direction</th>
<th>Reaction</th>
<th data-priority="2">Notes</th>
<th></th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
<!-- <div data-role="footer">
<h1>Footer Text</h1>
</div> -->
</div>
<div data-role="popup" data-dialog="true" id="addDialog">
<div data-role="header">
<h1>Add new event</h1>
</div>
<div data-role="main" class="ui-content">
<form id="eventForm" method="post" action"#">
<label for="time">Time:</label>
<input type="time" name="time" id="time">
<label for="number">Tram number:</label>
<input type="number" name="number" id="number">
<label for="line">Tram line:</label>
<input type="number" name="line" id="line">
<fieldset data-role="controlgroup" data-type="horizontal">
<legend>Direction:</legend>
<label for="ltr"><span class="ui-icon-arrow-r ui-btn-icon-notext"></span></label>
<input type="radio" name="direction" id="ltr" value="ltr" checked="checked">
<label for="rtl"><span class="ui-icon-arrow-l ui-btn-icon-notext"></span></label>
<input type="radio" name="direction" id="rtl" value="rtl">
</fieldset>
<fieldset data-role="controlgroup">
<legend>Reaction:</legend>
<label for="waving">Waving</label>
<input type="checkbox" name="reaction" id="waving" value="waving">
<label for="ringing">Ringing</label>
<input type="checkbox" name="reaction" id="ringing" value="ringing">
<label for="intLights">Interior lights</label>
<input type="checkbox" name="reaction" id="intLights" value="intLights">
<label for="headlight">Headlight</label>
<input type="checkbox" name="reaction" id="headlight" value="headlight">
<label for="blinkers">Blinkers</label>
<input type="checkbox" name="reaction" id="blinkers" value="blinkers">
<label for="loudspeaker">
<div class="ui-field-contain checkbox-text">
<label for="loudspeakerText">Loudspeaker:</label>
<input type="text" name="loudspeakerText" id="loudspeakerText">
</div>
</label>
<input type="checkbox" name="reaction" id="loudspeaker" value="loudspeaker">
<label for="other">
<div class="ui-field-contain checkbox-text">
<label for="otherText">Other:</label>
<input type="text" name="otherText" id="otherText">
</div>
<input type="checkbox" name="reaction" id="other" value="other">
</fieldset>
<label for="notes">Notes:</label>
<input type="text" name="notes" id="notes">
<a href="#" id="submit" data-rel="back" data-role="button">Submit</a>
</form>
</div>
</div>
<div data-role="popup" data-dialog="true" id="historyDialog">
<div data-role="header">
<h1>History</h1>
</div>
<div data-role="main" class="ui-content">
<ul id="historyList">
</ul>
</div>
</div>
</body>
</html>