Module: lyrics_js

Methods

(inner) createLyricsTabs(el, obj) → {void}

Parses the MYMPD_API_LYRICS_GET jsonrpc response
Parameters:
Name Type Description
el HTMLElement container element to show the lyrics
obj object jsonrpc response
Source:
Returns:
Type
void

(inner) getLyrics(uri, el) → {void}

Gets the lyrics
Parameters:
Name Type Description
uri string song uri
el HTMLElement container element to show the lyrics
Source:
Returns:
Type
void

(inner) parseSyncedLyrics(parent, lyrics, currentLyrics) → {void}

Parses synced lyrics (lrc format)
Parameters:
Name Type Description
parent HTMLElement element to append the lyrics
lyrics string the lyrics
currentLyrics boolean true = lyrics in playback view, false lyrics in song details modal
Source:
Returns:
Type
void

(inner) parseUnsyncedLyrics(parent, text) → {void}

Parses unsynced lyrics
Parameters:
Name Type Description
parent HTMLElement element to append the lyrics
text string the lyrics
Source:
Returns:
Type
void