mirror of
https://github.com/scratchfoundation/scratch-blocks.git
synced 2025-08-28 22:10:31 -04:00
Remove to javascript button from playgrounds (#534)
This commit is contained in:
parent
32fd019e08
commit
98d73d1b4c
2 changed files with 0 additions and 14 deletions
|
@ -119,12 +119,6 @@
|
||||||
taChange();
|
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.
|
// Disable the "Import from XML" button if the XML is invalid.
|
||||||
// Preserve text between page reloads.
|
// Preserve text between page reloads.
|
||||||
function taChange() {
|
function taChange() {
|
||||||
|
|
|
@ -122,12 +122,6 @@
|
||||||
taChange();
|
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.
|
// Disable the "Import from XML" button if the XML is invalid.
|
||||||
// Preserve text between page reloads.
|
// Preserve text between page reloads.
|
||||||
function taChange() {
|
function taChange() {
|
||||||
|
@ -1320,8 +1314,6 @@
|
||||||
|
|
||||||
<input type="button" value="Import from XML" onclick="fromXml()" id="import">
|
<input type="button" value="Import from XML" onclick="fromXml()" id="import">
|
||||||
<br>
|
<br>
|
||||||
<input type="button" value="To JavaScript" onclick="toCode('JavaScript')">
|
|
||||||
<br>
|
|
||||||
<textarea id="importExport" style="width: 26%; height: 12em"
|
<textarea id="importExport" style="width: 26%; height: 12em"
|
||||||
onchange="taChange();" onkeyup="taChange()"></textarea>
|
onchange="taChange();" onkeyup="taChange()"></textarea>
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue