Update code and docs to new namespace

This commit is contained in:
Marcin Kulik 2016-04-22 13:39:00 +02:00
parent 4ea6db5274
commit b1b3195f89
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -45,7 +45,7 @@
<body> <body>
<div id="player-container"></div> <div id="player-container"></div>
<script> <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;/script>
&lt;/body> &lt;/body>
&lt;/html></code></pre> &lt;/html></code></pre>