API Docs for: 1.4.4
Show:

ukeGeeks.scriptasaurus Class

Finds page HTML elements & creates ukeGeek objects; Reads song text, parses, draws choard diagrams.

Methods

_getHandlesFromClass

(
  • wrap
)
ukeGeeks.data.htmlHandles private

Parameters:

  • wrap DomElement

Returns:

ukeGeeks.data.htmlHandles:

_getHandlesFromId

() ukeGeeks.data.htmlHandles private

Returns:

ukeGeeks.data.htmlHandles:

_runSong

(
  • handles
)
SongObj private

Parameters:

  • handles ukeGeeks.data.htmlHandles

Returns:

SongObj:

init

(
  • isIeFamily
)
Void

Preps this class for running

Parameters:

  • isIeFamily Bool

    TRUE if UserAgent (Browser to you and me) is Internet Explorer

Returns:

Void:

run

() SongObject

Runs all Scriptasaurus methods using the element Ids defined in the settings class. This is your "Do All". See data.song for structure.

Returns:

SongObject:

runByClasses

() Array of songObject

Same as "run" except runs using class names, this allows you to have multiple songs on a single page.

Returns:

Array of songObject:

setTuningOffset

(
  • offset
)

Is this really nececessary?

Parameters:

  • offset Int

    (optional) default 0. Number of semitones to shift the tuning. See ukeGeeks.definitions.instrument.

showErrors

() Void

Shows a JavaScript alert box containing list of unknown chords.

Returns:

Void:

Properties

_public

Object

attach public members to this object