-
Notifications
You must be signed in to change notification settings - Fork 1
/
passwordthing.html
132 lines (125 loc) · 4.62 KB
/
passwordthing.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
<!DOCTYPE html>
<html manifest="cache.manifest">
<head>
<title>PwdThing</title>
<link rel="stylesheet" href="jquery.mobile-1.0a2.min.css" />
<script src="jquery-1.4.4.min.js"></script>
<script src="jquery.mobile-1.0a2.min.js"></script>
<script src="json2.min.js"></script>
<script src="passwordthing.js"></script>
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="viewport" content="width=device-width;user-scalable=no" />
</head>
<body>
<div data-role="page" id="home">
<div data-role="header">
<h1>Password Thing</h1>
</div>
<div data-role="content">
<ul data-role="listview" id="things"></ul>
</div>
<div data-role="footer" class="ui-bar">
<a href="#add" data-icon="plus">Add</a>
<a href="#options" data-icon="gear">Options</a>
</div>
</div>
<div data-role="page" id="add">
<div data-role="header">
<h1>Add item</h1>
</div>
<div data-role="content">
<form>
<div data-role="fieldcontain">
<label for="add-title">Title:</label> <input type="text" name="add-title" id="add-title" />
</div>
<div data-role="fieldcontain">
<label for="add-username">Username:</label> <input type="text" name="add-username" id="add-username" />
</div>
<div data-role="fieldcontain">
<label for="add-password">Password:</label> <input type="text" name="add-password" id="add-password" />
</div>
<div data-role="fieldcontain">
<label for="add-website">Website:</label> <input type="url" name="add-website" id="add-website" />
</div>
<button type="submit">Save</button>
</form>
</div>
<div data-role="footer" class="ui-bar">
<a href="#home" data-icon="delete">Cancel</a>
</div>
</div>
<div data-role="page" id="view">
<div data-role="header">
<h1></h1>
</div>
<div data-role="content">
<div data-role="fieldcontain">
<label for="view-username">Username:</label> <input type="text" name="view-username" id="view-username" readonly="readonly" />
</div>
<div data-role="fieldcontain">
<label for="view-password">Password:</label> <input type="text" name="view-password" id="view-password" />
</div>
<div data-role="fieldcontain">
<label for="view-website">Website:</label> <input type="url" name="view-website" id="view-website" readonly="readonly" />
</div>
</div>
<div data-role="footer" class="ui-bar">
<a href="#home" data-icon="grid">Home</a>
<a href="#" id="edit" data-icon="edit">Edit</a>
<a href="#" id="delete" data-icon="delete">Delete</a>
</div>
</div>
<div data-role="page" id="edit">
<div data-role="header">
<h1>Editing item</h1>
</div>
<div data-role="content">
<form>
<div data-role="fieldcontain">
<label for="edit-title">Title:</label> <input type="text" name="edit-title" id="edit-title" />
</div>
<div data-role="fieldcontain">
<label for="edit-username">Username:</label> <input type="text" name="edit-username" id="edit-username" />
</div>
<div data-role="fieldcontain">
<label for="edit-password">Password:</label> <input type="text" name="edit-password" id="edit-password" />
</div>
<div data-role="fieldcontain">
<label for="edit-website">Website:</label> <input type="url" name="edit-website" id="edit-website" />
</div>
<button type="submit">Save</button>
</form>
</div>
<div data-role="footer" class="ui-bar">
<a href="#home" data-icon="grid">Home</a>
<a href="#view" data-icon="delete">Cancel</a>
</div>
</div>
<div data-role="page" id="options">
<div data-role="header"><h1>Options</h1></div>
<div data-role="content">
<a href="#" id="reset-db" data-role="button">Reset DB</a>
<a href="#get-dropbox-token" data-role="button">Get Dropbox Token</a>
<a href="#" id="backup-to-dropbox" data-role="button">Backup to Dropbox</a>
<a href="#" id="restore-from-dropbox" data-role="button">Restore from Dropbox</a>
</div>
<div data-role="footer" class="ui-bar">
<a href="#home" data-icon="grid">Home</a>
</div>
</div>
<div data-role="page" id="get-dropbox-token">
<div data-role="header"><h1>Get Dropbox Token</h1></div>
<div data-role="content">
<form>
<div data-role="fieldcontain"><label for="dropbox-email">Email:</label> <input type="email" name="email" id="dropbox-email" /></div>
<div data-role="fieldcontain"><label for="dropbox-password">Password:</label> <input type="password" name="pwd" id="dropbox-password" /></div>
</form>
</div>
<div data-role="footer" class="ui-bar">
<a href="#" id="save-dropbox-token">Save</a>
<a href="#options">Cancel</a>
</div>
</div>
</body>
</html>