mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-16 16:21:40 +00:00
updated comments and notices...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
01d914cd60
commit
7a30c347a2
@ -88,7 +88,6 @@ var keys = {
|
|||||||
|
|
||||||
function handleKeys(event){
|
function handleKeys(event){
|
||||||
var code = event.keyCode, fn = $.inArray;
|
var code = event.keyCode, fn = $.inArray;
|
||||||
// XXX
|
|
||||||
var _ = (fn(code, keys.closeKeys) >= 0) ? function(){}()
|
var _ = (fn(code, keys.closeKeys) >= 0) ? function(){}()
|
||||||
: (fn(code, keys.nextKeys) >= 0) ? nextImage()
|
: (fn(code, keys.nextKeys) >= 0) ? nextImage()
|
||||||
: (fn(code, keys.previousKeys) >= 0) ? prevImage()
|
: (fn(code, keys.previousKeys) >= 0) ? prevImage()
|
||||||
@ -136,7 +135,6 @@ function toggleWideView(){
|
|||||||
$('.wide-view-mode')
|
$('.wide-view-mode')
|
||||||
.removeClass('wide-view-mode')
|
.removeClass('wide-view-mode')
|
||||||
.one("webkitTransitionEnd oTransitionEnd msTransitionEnd transitionend", function(){
|
.one("webkitTransitionEnd oTransitionEnd msTransitionEnd transitionend", function(){
|
||||||
// XXX does not animate...
|
|
||||||
$('.current-image').click()
|
$('.current-image').click()
|
||||||
return true
|
return true
|
||||||
});
|
});
|
||||||
@ -148,7 +146,6 @@ function toggleWideView(){
|
|||||||
.not('.wide-view-mode')
|
.not('.wide-view-mode')
|
||||||
.addClass('wide-view-mode')
|
.addClass('wide-view-mode')
|
||||||
.one("webkitTransitionEnd oTransitionEnd msTransitionEnd transitionend", function(){
|
.one("webkitTransitionEnd oTransitionEnd msTransitionEnd transitionend", function(){
|
||||||
// XXX does not animate...
|
|
||||||
$('.current-image').click()
|
$('.current-image').click()
|
||||||
return true
|
return true
|
||||||
});
|
});
|
||||||
@ -180,7 +177,6 @@ function focusBelowRibbon(){
|
|||||||
|
|
||||||
|
|
||||||
// create ribbon above/below helpers...
|
// create ribbon above/below helpers...
|
||||||
// XXX
|
|
||||||
function createRibbonAbove(){
|
function createRibbonAbove(){
|
||||||
return $('<div class="new-ribbon"></div>')
|
return $('<div class="new-ribbon"></div>')
|
||||||
.insertBefore('.current-ribbon')
|
.insertBefore('.current-ribbon')
|
||||||
@ -238,7 +234,7 @@ function promoteImage(){
|
|||||||
}
|
}
|
||||||
// XXX sort elements correctly...
|
// XXX sort elements correctly...
|
||||||
if($('.current-ribbon').children('.image').length == 1){
|
if($('.current-ribbon').children('.image').length == 1){
|
||||||
// XXX this adds image to the head while thebelow portion adds it to the tail...
|
// XXX this adds image to the head while the below portion adds it to the tail...
|
||||||
mergeRibbonsDown()
|
mergeRibbonsDown()
|
||||||
} else {
|
} else {
|
||||||
img = $('.current-image')
|
img = $('.current-image')
|
||||||
@ -327,7 +323,7 @@ function demoteImage(){
|
|||||||
|
|
||||||
.ribbon {
|
.ribbon {
|
||||||
height: 360px;
|
height: 360px;
|
||||||
/* XXX make this expand correctly */
|
/* XXX make this expand dynamically */
|
||||||
width: 8000px;
|
width: 8000px;
|
||||||
overflow: visible;
|
overflow: visible;
|
||||||
padding-top: 2px;
|
padding-top: 2px;
|
||||||
@ -389,6 +385,7 @@ function demoteImage(){
|
|||||||
opacity: 1.0;
|
opacity: 1.0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/* wide view mode */
|
/* wide view mode */
|
||||||
|
|
||||||
/* XXX not yet working correctly...
|
/* XXX not yet working correctly...
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user