You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
asciinema.org/app/views/asciicasts/raw.html.slim

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 }], '*');
}
});