From d99e72627c91814a8ee0ca140f60520bc55e050f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=ED=99=8D=EC=A3=BC=EC=84=B1?= Date: Wed, 21 Sep 2022 15:20:21 +0900 Subject: [PATCH] modify: add remark --- cocoSsd.html | 49 +++++++++++++++++++++++-------------------------- 1 file changed, 23 insertions(+), 26 deletions(-) diff --git a/cocoSsd.html b/cocoSsd.html index 9866f988..dcd7ff3e 100644 --- a/cocoSsd.html +++ b/cocoSsd.html @@ -63,13 +63,15 @@

INDEX Objects register

+
- +
+ @@ -116,59 +118,59 @@

INDEX Objects register

const _form = document.getElementById("regi-form") - /* - * garo start - */ - let savedPose = [{name:'seat'},{name:'armup'}] - let savedObject = [{name:'person'},{name:'chair'},{name:'cellphone'},{name:'cup'}] + + // garo start + + let savedPose = [{ name: 'seat' }, { name: 'armup' }] + let savedObject = [{ name: 'person' }, { name: 'chair' }, { name: 'cellphone' }, { name: 'cup' }] document.getElementById('pose-object-btn').addEventListener('click', () => { let area = document.getElementById('pose-object-mapping') let html = ` ` - + area.innerHTML = html document.getElementById('pose-object-mapping-btn').setAttribute('style', '') }) - document.getElementById('pose-object-mapping-btn').addEventListener('click', ()=>{ + document.getElementById('pose-object-mapping-btn').addEventListener('click', () => { let nodes = document.getElementById('pose-object-mapping').children let pose = getVal(nodes.pose); let object = getVal(nodes.object); let value = document.getElementById('pose-object-name').value - function getVal(node){ + function getVal(node) { let res; - for(let i=0; iINDEX Objects register - /* - * 거루가 쓰는 공간 2 - */ - - setInterval(() => { dataWebSocket.send(JSON.stringify({ log: objects }))