mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
cleaned out some dead code...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
77c3dc79a3
commit
96114f4e24
@ -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)
|
||||||
|
|||||||
@ -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%;
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user