Update code and docs to new namespace

rails
Marcin Kulik 9 years ago
parent 4ea6db5274
commit b1b3195f89

@ -2,7 +2,7 @@
function tryCreatePlayer(parentNode, asciicast, options) {
function createPlayer() {
asciinema_player.core.CreatePlayer(
asciinema.player.js.CreatePlayer(
parentNode,
asciicast.url,
{

@ -45,7 +45,7 @@
<body>
<div id="player-container"></div>
<script>
asciinema_player.core.CreatePlayer('player-container', '/<%= page.asciicast_download_filename %>', { width: <%= page.asciicast_width %>, height: <%= page.asciicast_height %> });
asciinema.player.js.CreatePlayer('player-container', '/<%= page.asciicast_download_filename %>', { width: <%= page.asciicast_width %>, height: <%= page.asciicast_height %> });
&lt;/script>
&lt;/body>
&lt;/html></code></pre>

Loading…
Cancel
Save