home
about
usage
settings
Settings
"Air Gallery" is fully customizable. Each setting has a default value and can be ignored. Each numeric setting has a minimum value. Some numeric settings have a maximum value. Some settings depend on other settings. Below is a complete list of settings.
Path settings
PHOTOS_FOLDER
Path to photos folder. This path determines content location of your gallery.
Default value is "images/people".
AIR_OBJECTS_FOLDER
Path to air objects folder. This folder contains images of air vehicles.
Default value is "images/air_objects/mid".
BACKGROUND_IMAGE
Path to background image.
By default there will be no background image.
SERVER_SCRIPT
Path to server script providing retrieve a list of images in the folder.
Default value is "image-list.php".
Image list settings
PHOTO_LIST
Photo file names. Use this setting to define image list of your gallery.
Default value is [ ].
AIR_OBJECT_LIST
Air object file names. Use this setting to define a list of air vehicle images.
Default value is [ ].
GET_PHOTO_LIST_WITH_SERVER_SCRIPT
Here we define how the gallery will get a photo list.
true means that list will be generated automatically using server script.
false means that list will be defined by PHOTO_LIST setting.
Default value is false.
GET_AIR_OBJECT_LIST_WITH_SERVER_SCRIPT
Here we define how the gallery will get air object list.
true means that list will be generated automatically using server script.
false means that list will be defined by AIR_OBJECT_LIST setting.
Default value is false.
Air object settings
VISIBLE_AIR_OBJECTS_TOTAL
The number of visible air objects.
Min value is 1. Default value is 45.
AIR_OBJECT_MAX_SPEED
Max speed of air object. Measured in pixels per second.
Min value is 1. Default value is 60.
AIR_OBJECT_MIN_SPEED
Min speed of air object. Measured in pixels per second.
Min value is 1. Max value is AIR_OBJECT_MAX_SPEED. Default value is 10.
AIR_OBJECT_INERTIAL_TIME
Time between throwing object and the moment when object's speed came to a normal value. Measured in seconds.
Min value is 0.01. Max value is 10. Default value is 2.
AIR_OBJECT_ACCELERATION_TIME
The time between releasing dragged object (without throwing) and the moment when the object's speed came to a normal value. Measured in seconds.
Min value is 0.01. Max value is 20. Default value is 2.
Thumbnail settings
PHOTO_WIDTH
Width of thumbnail image. Height will be calculated according to image aspect ratio. Measured in pixels.
Min value is 1. Default value is 100.
PHOTO_BORDER_WIDTH
Width of thumbnail image border. Measured in pixels.
Min value is 0. Default value is 2.
PHOTO_BORDER_COLOR
Color of thumbnail image border.
Default value is "white".
PHOTO_SWING_AMPLITUDE
Amplitude of image swing. Measured in degrees.
Min value is 0. Max value is 45. Default value is 7.
PHOTO_SWING_FREQUENCY
Frequency of image swing. Measured in oscillations per second.
Min value is 0. Default value is 0.3.
PHOTO_DRAG_SENSITIVITY
This parameter determines how dragging affects the thumbnail rotation. It is defined by a number between 0 and 1.
Min value is 0. Max value is 1. Default value is 0.5.
Mouse & touch settings
USE_MOUSE_AND_TOUCH
Determines whether we use mouse & touch interactivity. Allowable values: true and false.
Default value is true.
Modal window settings
USE_MODAL_WINDOW
Determines whether we use a modal window containing full-size image. Allowable values: true and false.
Default value is true.
MODAL_BACKGROUND_COLOR
Background color of modal window.
Default value is "black".
MODAL_BACKGROUND_OPACITY
Background opacity of modal window.
Min value is 0. Max value is 1. Default value is 0.7.
FULL_SIZE_PHOTO_MARGIN
Margin of full-size image. Measured in pixels.
Min value is 0. Default value is 30.
FULL_SIZE_PHOTO_BORDER_WIDTH
Border width of full-size image. Measured in pixels.
Min value is 0. Default value is 15.
Arrow button settings
ARROW_BUTTON_LINE_COLOR
Line color of arrow button.
Default value is "#333333".
ARROW_BUTTON_LINE_WIDTH
Line width of arrow button. Measured in pixels.
Min value is 1. Default value is 4.
ARROW_BUTTON_BACKGROUND_SIZE
Background size of arrow button. Measured in pixels.
Min value is 5. Default value is 50. Depends on ARROW_BUTTON_GRAPHICS_SIZE.
ARROW_BUTTON_BACKGROUND_COLOR
Background color of arrow button.
Default value is "white".
ARROW_BUTTON_GRAPHICS_SIZE
Size of the picture with the arrow. Measured in pixels.
Min value is 5. Default value is 20.
ARROW_BUTTON_SPACING
Distance between arrow button and full-size image. Measured in pixels.
Min value is 0. Default value is 3.
Close button settings
CLOSE_BUTTON_SIZE
Size of close button. Measured in pixels.
Min value is 5. Default value is 20.
CLOSE_BUTTON_MARGIN
Margin of close button. Measured in pixels.
Min value is 0. Default value is 30.
CLOSE_BUTTON_LINE_COLOR
Line color of close button.
Default value is "white".
CLOSE_BUTTON_LINE_WIDTH
Line width of close button. Measured in pixels.
Min value is 1. Default value is 2.
Fullscreen button settings
USE_FULL_SCREEN_BUTTON
Determines whether fullscreen button is displayed. Allowable values: true and false.
Default value is false.
FULL_SCREEN_BUTTON_LINE_COLOR
Line color of fullscreen button.
Default value is "#333333".
FULL_SCREEN_BUTTON_LINE_WIDTH
Line width of fullscreen button. Measured in pixels.
Min value is 1. Default value is 2.
FULL_SCREEN_BUTTON_BACKGROUND_SIZE
Background size of fullscreen button. Measured in pixels.
Min value is 5. Default value is 40. Depends on FULL_SCREEN_BUTTON_GRAPHICS_SIZE.
FULL_SCREEN_BUTTON_BACKGROUND_COLOR
Background color of fullscreen button.
Default value is "white".
FULL_SCREEN_BUTTON_GRAPHICS_SIZE
Size of fullscreen button pictogram. Measured in pixels.
Min value is 5. Default value is 24.
FULL_SCREEN_BUTTON_MARGIN
Margin of fullscreen button. Measured in pixels.
Min value is 0. Default value is 10.
Preloader settings
PRELOADER_COLOR
Preloader color.
Default value is "gray".
PRELOADER_RADIUS
Radius of preloader circle. Measured in pixels.
Min value is 5. Default value is 20.
PRELOADER_STRIPES_TOTAL
The number of preloader stripes.
Min value is 1. Default value is 30.
PRELOADER_STRIPE_WIDTH
Width of preloader stripe. Measured in pixels.
Min value is 0.5. Default value is 1.
PRELOADER_STRIPE_LENGTH
Length of preloader stripe. Measured in pixels.
Min value is 1. Default value is 8. Depends on PRELOADER_RADIUS.
Pixel density settings
USE_HIGH_PIXEL_DENSITY
Defines in which cases we use high pixel density. Allowable values: "always", "auto", "retina", "never".
"always" means that we will always use high pixel density.
"auto" means that if we can establish that the device pixel ratio less than 2, we will not use high pixel density, otherwise we will use it.
"retina" means that if we can establish that the device pixel ratio is greater than or equal to 2, we will use high pixel density, otherwise we'll not use it.
"never" means that we will never use high pixel density.
Default value is "auto".