Код: Выделить всё
function send(){
var iFrame = document.getElementById('compiler');
iFrame.contentWindow.postMessage({
eventType: 'populateCode',
language: 'python',
files: [
{
"name": "code.py",
"content": "## Write your code here!"
}
]
}, "*");
}
Подробнее здесь: https://stackoverflow.com/questions/795 ... r-compiler
Мобильная версия