mirror of
https://github.com/scratchfoundation/scratch-vm.git
synced 2024-12-23 14:32:59 -05:00
Added 'New Project' Button (#171)
* Added 'New Project' Button * Added 'New Project' Button Functionality * Changed To addEventListener * Move To Import/Export
This commit is contained in:
parent
dec5d054c8
commit
b6e30a7b23
2 changed files with 5 additions and 0 deletions
|
@ -35,6 +35,7 @@
|
|||
<pre id="blockexplorer"></pre>
|
||||
</div>
|
||||
<div id="tab-importexport">
|
||||
<button id="createEmptyProject">New Project</button><br />
|
||||
Import/Export<br />
|
||||
Project ID: <input id="projectId" value="119615668" />
|
||||
<button id="projectLoadButton">Load</button><br />
|
||||
|
|
|
@ -30,6 +30,10 @@ window.onload = function() {
|
|||
document.location = '#' + document.getElementById('projectId').value;
|
||||
location.reload();
|
||||
};
|
||||
document.getElementById('createEmptyProject').addEventListener('click', function() {
|
||||
document.location = '#' + 'createEmptyProject';
|
||||
location.reload();
|
||||
});
|
||||
loadProject();
|
||||
|
||||
// Instantiate the renderer and connect it to the VM.
|
||||
|
|
Loading…
Reference in a new issue