newdavinci-blockly
Version:
New daVinci Fork of Blockly
54 lines (50 loc) • 1.22 kB
HTML
<html>
<head>
<meta charset="utf-8">
<title>Blockly Demo: Iframe Blockly</title>
<style>
html, body {
height: 100%;
}
body {
background-color: #fff;
font-family: sans-serif;
margin-top: 0;
margin-bottom: 0;
}
h1 {
font-weight: normal;
font-size: 140%;
}
iframe {
width: 100%;
height: 100%;
border: none;
}
</style>
</head>
<body>
<table width="100%" height="99%">
<tr>
<td>
<h1><a href="https://developers.google.com/blockly/">Blockly</a> >
<a href="../index.html">Demos</a> > Iframe Blockly</h1>
<p>This is a simple demo of injecting Blockly into a resizable 'iframe' element.</p>
<p>→ More info on <a href="https://developers.google.com/blockly/installation/injecting-resizable">injecting resizable Blockly</a>...</p>
</td>
</tr>
<tr>
<td height="99%">
<script>
function blocklyLoaded(blockly) {
// Called once Blockly is fully loaded.
window.Blockly = blockly;
}
</script>
<iframe src="frame.html"></iframe>
</td>
</tr>
</table>
</body>
</html>