Remove to javascript button from playgrounds (#534)

This commit is contained in:
rachel-fenichel 2016-07-14 13:30:14 -07:00 committed by Tim Mickel
parent 32fd019e08
commit 98d73d1b4c
2 changed files with 0 additions and 14 deletions

View file

@ -119,12 +119,6 @@
taChange();
}
function toCode(lang) {
var output = document.getElementById('importExport');
output.value = Blockly[lang].workspaceToCode(workspace);
taChange();
}
// Disable the "Import from XML" button if the XML is invalid.
// Preserve text between page reloads.
function taChange() {

View file

@ -122,12 +122,6 @@
taChange();
}
function toCode(lang) {
var output = document.getElementById('importExport');
output.value = Blockly[lang].workspaceToCode(workspace);
taChange();
}
// Disable the "Import from XML" button if the XML is invalid.
// Preserve text between page reloads.
function taChange() {
@ -1320,8 +1314,6 @@
 
<input type="button" value="Import from XML" onclick="fromXml()" id="import">
<br>
<input type="button" value="To JavaScript" onclick="toCode('JavaScript')">
<br>
<textarea id="importExport" style="width: 26%; height: 12em"
onchange="taChange();" onkeyup="taChange()"></textarea>
</p>