forked from llad/empltz-standalone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
163 lines (133 loc) · 5.84 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
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
<!DOCTYPE html>
<html>
<head>
<meta name="viewport" content="initial-scale=1.0,maximum-scale=1.0,height=device-height,width=device-width,user-scalable = no">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="stylesheet" href="http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.css" />
<link rel="stylesheet" href="custom.css" />
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.1/jquery.min.js"></script>
<script src="support/underscore-1.1.6-min.js"></script>
<script src="support/backbone-0.3.3.js"></script>
<script src="support/backbone-localstorage.js"></script>
<script src="code.js"></script>
<script src="http://code.jquery.com/mobile/1.0b1/jquery.mobile-1.0b1.min.js"></script
</head>
<body>
<!-- Start of first page -->
<div data-role="page" id="list" class="swipedelete" data-theme="d">
<div data-role="header">
<h1>empltz</h1>
<a id="optionsButton" href="#options" data-rel="dialog" data-transition="flip" data-icon="gear" class="ui-btn-left" data-iconpos="notext">Options</a>
<a id="addButton" href="#add" data-rel="dialog" data-transition="pop" data-icon="plus" class="tool-tip ui-btn-right" data-iconpos="notext"><span class="classic">Click here to add one</span></a>
</div><!-- /header -->
<div data-role="content">
<ul id="templateList" data-role="listview" data-inset="true" data-split-icon="gear"
data-theme="d" data-split-theme="d" data-divider-theme="d">
<li id="listart" data-role="list-divider"></li>
<li id="liend" data-role="list-divider"></li>
</ul>
<p><b>hint:</b> Swipe to delete </p>
</div><!-- /content -->
</div><!-- /page -->
<!-- Start of second page -->
<div data-role="page" id="edit">
<div data-role="header">
<h1>Edit</h1>
</div><!-- /header -->
<div data-role="content">
<form id="editForm" method="get" action="#" accept-charset="utf-8">
<div data-role="fieldcontain">
<fieldset data-role="controlgroup" data-type="horizontal">
<legend>Type:</legend>
<input type="radio" name="type" id="mailto" value="mailto">
<label for="mailto">Email</label>
<input type="radio" name="type" id="sms" value="sms" >
<label for="sms">SMS</label>
</fieldset>
<label for="name">Label:</label>
<input type="text" name="name" id="name" value="" >
<label for="to">To:</label>
<input type="email" name="to" id="to" value="" >
<label for="tosms">SMS To:</label>
<input type="tel" name="tosms" id="tosms" value="" >
<label for="subject">Subject:</label>
<input type="text" name="subject" id="subject" value="" >
<label for="body">Body:</label>
<input type="text" name="body" id="body" value="" >
</div>
<button type="submit" value="Save" data-theme="a" >Save</button>
</form>
</div><!-- /content -->
</div><!-- /page -->
<!-- Start of second page -->
<div data-role="page" id="add">
<div data-role="header">
<h1>Add</h1>
</div><!-- /header -->
<div data-role="content">
<form id="addForm" method="get" action="#" accept-charset="utf-8">
<div data-role="fieldcontain">
<fieldset data-role="controlgroup" data-type="horizontal">
<legend>Type:</legend>
<input type="radio" name="type" id="mailto" value="mailto">
<label for="mailto">Email</label>
<input type="radio" name="type" id="sms" value="sms" >
<label for="sms">SMS</label>
</fieldset>
<label for="name">Label:</label>
<input type="text" name="name" id="name" value="" >
<label for="to" id="to">To:</label>
<input type="email" name="to" id="to" value="" >
<label for="tosms" id="tosms">SMS To:</label>
<input type="tel" name="tosms" id="tosms" value="" >
<label for="subject">Subject:</label>
<input type="text" name="subject" id="subject" value="" >
<label for="body">Body:</label>
<input type="text" name="body" id="body" value="" >
</div>
<button type="submit" value="Save" data-theme="a" >Save</button>
</form>
</div><!-- /content -->
</div><!-- /page -->
<!-- Start of Options page -->
<div data-role="page" id="options">
<div data-role="header">
<h1>Options</h1>
</div><!-- /header -->
<div data-role="content">
<form id="optionsForm" method="get" action="#" accept-charset="utf-8">
<div data-role="fieldcontain">
<label for="slider">SMS:</label>
<select name="sms" id="slider" data-role="slider">
<option value="false">Off</option>
<option value="true">On</option>
</select>
<p> Turn this on if your phone supports SMS URIs. iPhones don't :(</p
</div>
<button type="submit" value="Save" data-theme="a" >OK</button>
</form>
</div><!-- /content -->
</div><!-- /page -->
<!-- Templates -->
<script type="text/template" id="item-template">
<a class="pltLink" id=<%= id %> href=<%= url %> > <%= name %> </a> <a class="pltEdit" href="#edit" data-rel="dialog" data-transition="pop">Edit</a>
</script>
<script type="text/template" id="stats-template">
<% if (total) { %>
<span class="todo-count">
<span class="number"><%= remaining %></span>
<span class="word"><%= remaining == 1 ? 'item' : 'items' %></span> left.
</span>
<% } %>
<% if (done) { %>
<span class="todo-clear">
<a href="#">
Clear <span class="number-done"><%= done %></span>
completed <span class="word-done"><%= done == 1 ? 'item' : 'items' %></span>
</a>
</span>
<% } %>
</script>
</body>
</html>