Javascript API


Widget's behavior

Widget may work in two modes: inline and overlay. In overlay mode recorder and auth sections will appear in overlay. In inline mode its will appear inline. Default behavior is inline.


blurts.setInline( (true|false) )

Sets widget's behavior
blurts.setInline(false);

Customize inline behavior

You can set up DOM-elements for append widget's elements to by adding special attributes to your textareas.

blurts:container

Sets container for widget elements (record button, recorder, editor, auth)
<textarea blurts:container="#place_widget_here"></textarea>

blurts:button

Sets container for record button
<textarea blurts:button="#place_button_here"></textarea>

blurts:recorder

Sets container for recorder. Only one recorder can be shown at one time.
<textarea blurts:recorder="#place_recorder_here"></textarea>

blurts:editor

Sets container for editor.
<textarea blurts:editor="#place_editor_here"></textarea>

blurts:auth

Sets container for auth. Only one auth can be shown at one time.
<textarea blurts:auth="#place_auth_here"></textarea>
You may specify all attributes or some.
<textarea blurts:container="#all_elements" blurts:button="#button_here"
	blurts:auth="#auth_here"></textarea>