-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
123 lines (106 loc) · 3.85 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/jquery.mobile-1.1.0.css">
<link rel="stylesheet" href="css/jquery.mobile.structure-1.1.0.css">
<script src="js/jquery-1.7.1.js"></script>
<script src="js/jquery.mobile.router.js"></script>
<script src="js/underscore.js"></script>
<script src="js/backbone.js"></script>
<script src="js/backbone.localStorage.js"></script>
<script src="js/jquery.mobile-1.1.0.js"></script>
<script src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script src="js/jquery.ui.map.full.min.js"></script>
<!--<script src="js/model.js"></script>
<script src="js/views.js"></script>
<script src="js/controller.js"></script>-->
<script src="js/application-orignal.js"></script>
<script type="text/javascript">
$.mobile.ajaxEnabled = false;
</script>
</head>
<body>
<!-- home page -->
<div id="home" data-role="page" class="type-index">
<div data-role="header">
<h1>Local notes</h1>
<a href="#new" data-role="button" class="ui-btn-right" data-icon="plus" data-rel="dialog" data-transition="flip">New</a>
</div>
<div data-role="content">
<a href="#new" data-role="button" data-icon="plus" data-theme="b" data-rel="dialog" data-transition="flip">New Note</a>
<ul data-role="listview" id="listActions" data-inset="true">
<li>
<a href="#all">All notes</a>
</li>
<li>
<a href="#nearest">Nearest notes</a>
</li>
</ul>
</div>
<div data-role="footer" class="footer-docs" data-theme="a">
<h1>©Varun's Notes Application</h1>
</div>
</div>
<!-- Add new note -->
<div id="new" data-role="page">
<div data-role="header">
<h1 id="headNewEditNote">New Note</h1>
</div>
<div data-role="content">
<form action="#" method="post">
<div data-role="fieldcontain">
<label for="name">Note Name:</label>
<input type="text" name="title" id="title" value="" />
</div>
<div data-role="fieldcontain">
<label for="name">Note Details:</label>
<textarea name="details" id="details"></textarea>
</div>
<div data-role="fieldcontain">
<label for="locate">Geolocate:</label>
<select data-role="slider" id="locate" name="locate">
<option value="yes">Yes</option>
<option value="no">No</option>
</select>
</div>
<div data-role="fieldcontain">
<div id="map_holder" class="ui-bar-c ui-corner-all ui-shadow" style="padding:1em;display:none;">
<div id="map_canvas" style="height: 300px; position: relative; background-color: rgb(229, 227, 223); overflow: hidden;"></div>
</div>
</div>
<button data-icon="check" id="save" data-theme="b">Save</button>
</form>
</div>
</div>
<!-- View for listing all the notes -->
<div id="all" data-role="page">
<div data-role="header">
<h1>All Notes</h1>
<a href="#home" data-icon="back">Back</a>
</div>
<div data-role="content" id="divAllNotes">
<ul id="notesList" data-role="listview" data-inset="true" data-filter="true" data-filter-placeholder="Seach Notes..."></ul>
</div>
<div data-role="footer" class="footer-docs" data-theme="a">
<h1>©Varun's Notes Application</h1>
</div>
</div>
<div id="noteDetails" data-role="page">
<div data-role="header">
<h1>All Notes</h1>
<a href="#home" data-icon="back">Back</a>
</div>
<div data-role="content" id="divAllNotes">
<ul id="notesList" data-role="listview" data-inset="true" data-filter="true" data-filter-placeholder="Seach Notes..."></ul>
</div>
<div data-role="footer" class="footer-docs" data-theme="a">
<h1>©Varun's Notes Application</h1>
</div>
</div>
<script type="text/template" id="note-item">
<li><a href="#new?id=<%= note.id %>" data-rel="dialog" data-transition="flip"><%= note.get("title") %></a></li>
</script>
</body>
</html>