asciinema.org/app/views/asciicasts/raw.html.slim
2013-06-12 21:52:15 +02:00

12 lines
419 B
Plaintext

= player @asciicast
javascript:
$(function() {
var target = parent.postMessage ? parent : (parent.document.postMessage ? parent.document : undefined);
if (typeof target != "undefined" && window !== window.parent) {
var w = $('.player').css('width');
var h = $('.player').css('height');
target.postMessage(['asciicast:size', { id: #{@asciicast.id}, width: w, height: h }], '*');
}
});