some fixes
This commit is contained in:
@ -42,16 +42,21 @@
|
||||
|
||||
<%- include('./static/start.ejs',{name:'main',async: true}) %>
|
||||
<%- include('./header.ejs') %>
|
||||
<script src="/lib/interact.min.js"></script>
|
||||
<!-- <script src="/lib/interact.min.js"></script> -->
|
||||
|
||||
<div id="drags"></div>
|
||||
<div id="projs_div"></div>
|
||||
|
||||
<div class="dropzone"></div>
|
||||
<div class="trash"></div>
|
||||
<button >new project</button>
|
||||
|
||||
<button onclick="add('cube')">add</button>
|
||||
<button onclick="save()">save</button>
|
||||
<script>
|
||||
load_projs((projs)=>{
|
||||
projs.forEach(proj => {
|
||||
// console.log(proj);
|
||||
let div = document.getElementById("projs_div");
|
||||
div.innerHTML += `<button id='proj_${proj["name"]}' class='proj' onclick="goto('/proj/${proj["name"]}')">${proj["name"]}</button>`;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
|
||||
<script src="/lib/inter.js"></script>
|
||||
<!-- <script src="/lib/inter.js"></script> -->
|
||||
<%- include('./static/end.ejs') %>
|
||||
Reference in New Issue
Block a user