asciinema.org/app/views/asciicasts/_player.html.erb
2013-08-06 00:37:37 +02:00

20 lines
580 B
Plaintext

<div class="player"></div>
<script>
$(function() {
var playerClass = <%= player_class.html_safe %>;
window.player = new playerClass({
el: $('.player'),
cols: <%= cols %>,
lines: <%= lines %>,
speed: <%= speed %>,
benchmark: <%= benchmark %>,
model: new AsciiIo.Asciicast({ id: <%= asciicast_id %> }),
containerWidth: <%= container_width || 'null' %>,
rendererClass: <%= renderer_class.html_safe %>,
autoPlay: <%= auto_play %>,
hud: <%= hud %>,
snapshot: <%= snapshot.html_safe %>
});
});
</script>