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 |
Returns:
- Type
- void
(inner) createImgCarousel(imgEl, name, uri, images, embeddedImageCount, large) → {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 |
large |
boolean | show large images |
Returns:
- Type
- void
(inner) filterImageSelect(elId, searchstr) → {void}
Filters the image select
Parameters:
| Name | Type | Description |
|---|---|---|
elId |
string | element id |
searchstr |
string | search string |
Returns:
- Type
- void
(inner) getCssImageUri(uri) → {string}
Constructs an absolute image uri for css
Parameters:
| Name | Type | Description |
|---|---|---|
uri |
string | image uri |
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 |
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 |
Returns:
- Type
- void
(inner) getImageUri(uri) → {string}
Constructs an absolute image uri
Parameters:
| Name | Type | Description |
|---|---|---|
uri |
string | image uri |
Returns:
absolute image uri
- Type
- string
(inner) isCoverfile(uri) → {boolean}
Checks if the uri is defined as an albumart file
Parameters:
| Name | Type | Description |
|---|---|---|
uri |
string | uri to check |
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 or large file
Parameters:
| Name | Type | Description |
|---|---|---|
uri |
string | uri to check |
Returns:
true if it is albumart thumbnail or large file, else false
- Type
- boolean
(inner) openPictureWindow() → {void}
Opens the picture in a new window
Returns:
- Type
- void
(inner) zoomPicture(el) → {void}
Opens the picture modal
Parameters:
| Name | Type | Description |
|---|---|---|
el |
HTMLElement | EventTarget | image element |
Returns:
- Type
- void