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.
12 lines
419 B
Plaintext
12 lines
419 B
Plaintext
11 years ago
|
= player @asciicast
|
||
|
|
||
|
javascript:
|
||
11 years ago
|
$(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');
|
||
11 years ago
|
target.postMessage(['asciicast:size', { id: #{@asciicast.id}, width: w, height: h }], '*');
|
||
11 years ago
|
}
|
||
|
});
|