renderToSelector()

The global function window.renderToSelector() accepts a valid jQuery selector and the ID or name of a passage. If both exist in the story, it will render the contents of the passage and overwrite the HTML of any elements matching the selector provided.

Example

<div id="playerUI"></div>
<%
  renderToSelector("#playerUI", "UI");
%>

results matching ""

    No results matching ""