Module: images_js

Methods

(inner) _createImgCarousel(imgEl, name, images) → {void}

Creates the image carousel
Parameters:
Name Type Description
imgEl HTMLElement element to populate with the carousel
name string name to construct the image carousel id from
images object array of all images to display
Source:
Returns:
Type
void

(inner) createImgCarousel(imgEl, name, uri, images, embeddedImageCount) → {void}

Creates the array of images and creates the image carousel
Parameters:
Name Type Description
imgEl HTMLElement element to populate with the carousel
name string name to construct the image carousel id from
uri string uri of the image
images object array of additional images
embeddedImageCount number number of embedded images
Source:
Returns:
Type
void

(inner) filterImageSelect(elId, searchstr) → {void}

Filters the image select
Parameters:
Name Type Description
elId string element id
searchstr string search string
Source:
Returns:
Type
void

(inner) getCssImageUri(uri) → {string}

Constructs an absolute image uri
Parameters:
Name Type Description
uri string image uri
Source:
Returns:
absolute image uri
Type
string

(inner) getImageList(sel, addOptions, type) → {void}

Gets the list of images and populates the select element
Parameters:
Name Type Description
sel HTMLElement select element to populate
addOptions object additional options to add
type string one of thumbs, backgrounds
Source:
Returns:
Type
void

(inner) getImageListId(selectId, addOptions, type) → {void}

Gets the list of images and populates the select element
Parameters:
Name Type Description
selectId string id of select to populate
addOptions object additional options to add
type string one of thumbs, backgrounds
Source:
Returns:
Type
void

(inner) isCoverfile(uri) → {boolean}

Checks if the uri is defined as an albumart file
Parameters:
Name Type Description
uri string uri to check
Source:
Returns:
true if it is albumart file, else false
Type
boolean

(inner) isThumbnailfile(uri) → {boolean}

Checks if the uri is defined as an albumart thumbnail file
Parameters:
Name Type Description
uri string uri to check
Source:
Returns:
true if it is albumart thumbnail file, else false
Type
boolean

(inner) openPictureWindow() → {void}

Opens the picture in a new window
Source:
Returns:
Type
void

(inner) zoomPicture(el) → {void}

Opens the picture modal
Parameters:
Name Type Description
el HTMLElement | EventTarget image element
Source:
Returns:
Type
void