asciinema.org/app/views/asciicasts/_player.html.erb

19 lines
531 B
Plaintext
Raw Normal View History

2012-07-25 18:24:20 +00:00
<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 %> }),
rendererClass: <%= renderer_class.html_safe %>,
autoPlay: <%= auto_play %>,
hud: <%= hud %>,
2012-12-01 13:56:10 +00:00
snapshot: "<%= (j(snapshot)).html_safe %>"
});
});
</script>