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

19 lines
533 B
Plaintext
Raw Normal View History

.player class="#{size}-font"
javascript:
$(function() {
var playerClass = #{player_class.html_safe};
2013-11-18 11:04:57 +00:00
var containerWidth = #{container_width || 'null'};
window.player = new playerClass({
el: $('.player'),
speed: #{speed},
benchmark: #{benchmark},
model: new Asciinema.Asciicast(#{asciicast.html_safe}),
2013-11-18 11:04:57 +00:00
containerWidth: containerWidth || $('.cinema .player').parent().width(),
rendererClass: #{renderer_class.html_safe},
autoPlay: #{auto_play},
hud: #{hud}
});
});