Skip to content

Commit 0724285

Browse files
added cursors to hint drag functionality
1 parent 26c64f8 commit 0724285

File tree

5 files changed

+21
-2
lines changed

5 files changed

+21
-2
lines changed

cache.manifest

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
CACHE MANIFEST
2-
# version 202
2+
# version 203
33

44
# gogole maps files
55
http://maps.google.com/maps/api/js?v=3.10&sensor=false&language=en_us&key=AIzaSyCOqkcNey4CCyG4X0X5qxHAhCgD8g5DwXg

css/main.css

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,18 @@ header > div {
143143
font-weight: normal;
144144
float: right;
145145
color: #aaa;
146-
}
146+
}
147+
148+
#main .data {
149+
cursor: url('../img/openhand.cur'), row-resize;
150+
}
151+
152+
#main.drag,
153+
#main.drag .data,
154+
#main.drag .header {
155+
cursor: url('../img/closedhand.cur'), row-resize;
156+
}
157+
147158
#main .header {
148159
height: 20px;
149160
padding: 10px;

img/closedhand.cur

326 Bytes
Binary file not shown.

img/openhand.cur

326 Bytes
Binary file not shown.

js/app.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,14 @@ $(window).ready(function() {
227227
});
228228
});
229229

230+
// hand cursor for dragging the vehicle list
231+
$("#main").on("mousedown", ".row", function () {
232+
$("#main").addClass("drag");
233+
})
234+
$("body").on("mouseup", function () {
235+
$("#main").removeClass("drag");
236+
});
237+
230238
// confirm dialog when launchnig a native map app with coordinates
231239
$('#main').on('click', '#launch_mapapp', function() {
232240
return confirm("Launch your maps app?");

0 commit comments

Comments
 (0)