From b6e30a7b23e5ebad5e6f2c89c4158593ef4b4fd7 Mon Sep 17 00:00:00 2001
From: TheBrokenRail <connor24nolan@live.com>
Date: Tue, 13 Sep 2016 22:04:44 -0400
Subject: [PATCH] Added 'New Project' Button (#171)

* Added 'New Project' Button

* Added 'New Project' Button Functionality

* Changed To addEventListener

* Move To Import/Export
---
 playground/index.html    | 1 +
 playground/playground.js | 4 ++++
 2 files changed, 5 insertions(+)

diff --git a/playground/index.html b/playground/index.html
index 67ac05cd1..12a545d99 100644
--- a/playground/index.html
+++ b/playground/index.html
@@ -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 />
diff --git a/playground/playground.js b/playground/playground.js
index 9561173b3..9c3f00690 100644
--- a/playground/playground.js
+++ b/playground/playground.js
@@ -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.