asciinema.org/app/views/asciicasts/_player.html.slim
2014-01-18 14:53:15 +01:00

19 lines
609 B
Plaintext

.player class="#{options.size}-font"
javascript:
$(function() {
var playerClass = #{options.player_class};
var maxWidth = #{options.max_width || 'null'};
window.player = new playerClass({
el: $('.player'),
speed: #{options.speed},
benchmark: #{options.benchmark},
model: new Asciinema.Asciicast(#{asciicast.html_safe}),
maxWidth: maxWidth || $('.cinema .player').parent().width(),
rendererClass: #{options.renderer_class},
autoPlay: #{options.autoplay},
hud: #{!options.hide_hud}
});
});