var GALLERY_JSON = { "id": "<id>", /* unique gallery ID */ "header": "<header>", /* gallery header */ "footer": "<footer>", /* gallery footer */ "thumb_size": "<width>x<height>", /* thumbnail width and height in px */ "popup_size": "<width>x<height>", /* popup viewer width and height in px */ "images": [ /* a list with all images in the gallery */ {
"id": "<id>", /* unique image ID */ "caption": "<caption>", /* image caption */ "thumb_url": "<url>", /* URL of the thumbnail image version displayed on the page */ "large_url": "<url>", /* URL of the image version displayed in the popup viewer", "full_url": "<url>", /* [optional] URL of the original image */ "link": "<url or JavaScript code>", /* URL that should be open if an user clicks on the thumbnail image */ /* OR the code for loading the popup viewer */ "image_attributes": { /* attached those attributes to the img tag for each gallery image */ "<attribute name1>": "<attribute value1>", "<attribute name2>": "<attribute value2>",
... } ) } , ...... ] } |