mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 18:30:09 +00:00
some cleanup...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
bd7ff349f6
commit
06b88caf87
@ -718,6 +718,10 @@ function convertDataGen1(data, cmp){
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
// Update an image element
|
// Update an image element
|
||||||
|
//
|
||||||
|
// NOTE: care must be taken to reset ALL attributes an image can have,
|
||||||
|
// a common bug if this is not done correctly, is that some settings
|
||||||
|
// may leak to newly loaded images...
|
||||||
function updateImage(image, gid, size){
|
function updateImage(image, gid, size){
|
||||||
image = $(image)
|
image = $(image)
|
||||||
var title = ''
|
var title = ''
|
||||||
@ -1031,6 +1035,11 @@ function loadSettings(){
|
|||||||
* Image caching...
|
* Image caching...
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// TODO add global cache...
|
||||||
|
// - manage cache by number and preview size...
|
||||||
|
// - keep in biggish...
|
||||||
|
|
||||||
|
|
||||||
// NOTE: this will always overwrite the previous cache set for a ribbon...
|
// NOTE: this will always overwrite the previous cache set for a ribbon...
|
||||||
// NOTE: it appears that sorting images by priority before loading them
|
// NOTE: it appears that sorting images by priority before loading them
|
||||||
// to cache has little or no affect on the order they are
|
// to cache has little or no affect on the order they are
|
||||||
|
|||||||
@ -51,8 +51,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*********************************************************************/
|
|
||||||
|
|
||||||
|
/*********************************************************************/
|
||||||
|
|
||||||
body {
|
body {
|
||||||
font-family: sans-serif;
|
font-family: sans-serif;
|
||||||
@ -215,8 +215,7 @@ body {
|
|||||||
|
|
||||||
|
|
||||||
/* default backgrounds */
|
/* default backgrounds */
|
||||||
/* XXX not sure if we need these... */
|
/* XXX not sure if we need these...
|
||||||
/*
|
|
||||||
.image {
|
.image {
|
||||||
background-image: url(images/loading.gif);
|
background-image: url(images/loading.gif);
|
||||||
}
|
}
|
||||||
@ -685,6 +684,7 @@ body {
|
|||||||
|
|
||||||
|
|
||||||
/********************************************** Mode: single image ***/
|
/********************************************** Mode: single image ***/
|
||||||
|
|
||||||
.single-image-mode.viewer .image {
|
.single-image-mode.viewer .image {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
/* NOTE: need to keep a distance from screen borders... */
|
/* NOTE: need to keep a distance from screen borders... */
|
||||||
@ -703,6 +703,7 @@ body {
|
|||||||
|
|
||||||
|
|
||||||
/********************************************************** Themes ***/
|
/********************************************************** Themes ***/
|
||||||
|
|
||||||
/* XXX this is by no means final... */
|
/* XXX this is by no means final... */
|
||||||
.viewer,
|
.viewer,
|
||||||
.light.viewer,
|
.light.viewer,
|
||||||
@ -723,6 +724,7 @@ body {
|
|||||||
|
|
||||||
|
|
||||||
/********************************************************* Overlay ***/
|
/********************************************************* Overlay ***/
|
||||||
|
|
||||||
.overlay-block {
|
.overlay-block {
|
||||||
display: none;
|
display: none;
|
||||||
position: absolute:
|
position: absolute:
|
||||||
@ -748,6 +750,7 @@ body {
|
|||||||
|
|
||||||
|
|
||||||
/************************************************************ Help ***/
|
/************************************************************ Help ***/
|
||||||
|
|
||||||
/* this is for sliding stuff */
|
/* this is for sliding stuff */
|
||||||
.viewer.drawer-mode {
|
.viewer.drawer-mode {
|
||||||
box-shadow: 0px 0px 50px 0px silver;
|
box-shadow: 0px 0px 50px 0px silver;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user