2012-07-25 18:24:20 +00:00
|
|
|
<div class="player"></div>
|
2012-11-19 21:01:44 +00:00
|
|
|
<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 %> }),
|
2013-06-12 21:50:31 +00:00
|
|
|
containerWidth: <%= container_width || 'null' %>,
|
2012-11-19 21:01:44 +00:00
|
|
|
rendererClass: <%= renderer_class.html_safe %>,
|
|
|
|
autoPlay: <%= auto_play %>,
|
|
|
|
hud: <%= hud %>,
|
2012-12-01 13:56:10 +00:00
|
|
|
snapshot: "<%= (j(snapshot)).html_safe %>"
|
2012-11-19 21:01:44 +00:00
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|