From c3588848f4e529ae8312e8a7f9ef9b1b55e3efc0 Mon Sep 17 00:00:00 2001 From: Isol Date: Wed, 20 Apr 2022 13:42:11 +0900 Subject: [PATCH] =?UTF-8?q?=ED=8D=BC=EB=B8=94=EB=A6=AC=EC=8B=B1=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=20-=20=EC=8B=9C=EA=B0=84=EB=9D=BC=EC=9D=B8?= =?UTF-8?q?=EC=9D=84=20=EB=A7=88=EC=9A=B0=EC=8A=A4=EB=A1=9C=20=ED=81=B4?= =?UTF-8?q?=EB=A6=AD=ED=95=B4=EC=84=9C=20=EC=9B=80=EC=A7=81=EC=9D=BC?= =?UTF-8?q?=EC=88=98=20=EC=9E=88=EB=8F=84=EB=A1=9D=20=ED=8D=BC=EB=B8=94?= =?UTF-8?q?=EB=A6=AC=EC=8B=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webapp/m/html/memory/memory_week.html | 25 +++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/src/main/webapp/m/html/memory/memory_week.html b/src/main/webapp/m/html/memory/memory_week.html index 2fb0290..3139390 100644 --- a/src/main/webapp/m/html/memory/memory_week.html +++ b/src/main/webapp/m/html/memory/memory_week.html @@ -99,7 +99,7 @@ -
+
  • @@ -153,7 +153,7 @@
    -
  • 01
  • +
  • 00
  • 03
  • 06
  • 09
  • @@ -234,6 +234,27 @@ clickable: true } }); + + function moveTimeLine(event) { + let y = event.clientY; + let num = y - 270; + let hour = Math.floor((num + 10) / (43/3)); + let minute = Math.floor((((num + 10) % (43/3))/(43/3.001)*60)%60); + if (num < -9) { + num = -9; + hour = 0; + minute = 00; + } + if (num > 331) { + num = 331; + hour = 24; + minute = 00; + } + let coords = "num: " + num + " hour: " + hour + " min: " + minute; + + $(".time_bar").css("top", num + "px"); + $(".time_bar_number > p").text(hour+":"+(minute<10?"0":"")+minute); + }