Spaces:
Running
Running
Update templates/index.html
Browse files- templates/index.html +7 -4
templates/index.html
CHANGED
@@ -4,14 +4,17 @@
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Node Canvas</title>
|
7 |
-
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
|
8 |
<script src="https://unpkg.com/konva@9/konva.min.js"></script>
|
9 |
</head>
|
10 |
<body>
|
11 |
-
<div id="container"></div>
|
12 |
<div id="controls">
|
13 |
-
<
|
|
|
|
|
|
|
14 |
</div>
|
15 |
-
<
|
|
|
16 |
</body>
|
17 |
</html>
|
|
|
4 |
<meta charset="UTF-8">
|
5 |
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6 |
<title>Node Canvas</title>
|
7 |
+
<link rel="stylesheet" href="{{ url_for('static', filename='css/styles.css') }}">
|
8 |
<script src="https://unpkg.com/konva@9/konva.min.js"></script>
|
9 |
</head>
|
10 |
<body>
|
|
|
11 |
<div id="controls">
|
12 |
+
<input type="file" id="codeFile" accept=".py">
|
13 |
+
<textarea id="codeInput" rows="10" cols="50" placeholder="Paste Python code here"></textarea>
|
14 |
+
<button onclick="submitCode()">Parse Code</button>
|
15 |
+
<button onclick="addNode()">Add Manual Node</button>
|
16 |
</div>
|
17 |
+
<div id="container"></div>
|
18 |
+
<script src="{{ url_for('static', filename='js/canvas.js') }}"></script>
|
19 |
</body>
|
20 |
</html>
|