cleaned out some dead code...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2012-06-17 01:47:31 +04:00
parent 77c3dc79a3
commit 96114f4e24
2 changed files with 9 additions and 22 deletions

View File

@ -11,8 +11,6 @@ $(document).ready(function() {
$(document) $(document)
.keydown(handleKeys) .keydown(handleKeys)
$('.viewer') $('.viewer')
// XXX does not work on android... (might need to add tap event handling)
//.gestures({eventHandler: handleGestures})
// XXX this is flaky and breaks some of my code... // XXX this is flaky and breaks some of my code...
.swipe({ .swipe({
swipeLeft: nextImage, swipeLeft: nextImage,
@ -71,26 +69,6 @@ function loadImages(json){
// XXX jquery.gestures handler...
function handleGestures(e){
switch (e){
case 'N':
shiftImageUp()
break
case 'S':
shiftImageDown()
break
case 'E':
prevImage()
break
case 'W':
nextImage()
break
}
}
function handleImageClick(e) { function handleImageClick(e) {
var cur = $(this) var cur = $(this)

View File

@ -179,6 +179,9 @@
/* XXX need to fix animation with this... */ /* XXX need to fix animation with this... */
position: absolute; position: absolute;
left: 0px; left: 0px;
/*
zoom: 120%;
*/
} }
.single-image-mode .image:hover { .single-image-mode .image:hover {
@ -210,9 +213,15 @@
.wide-view-mode .image { .wide-view-mode .image {
width: 50px; width: 50px;
height: 50px; height: 50px;
/*
zoom: 10%;
*/
} }
.wide-view-mode .ribbon { .wide-view-mode .ribbon {
height: 60px; height: 60px;
/*
zoom: 10%;
*/
} }