diff --git a/index.html b/index.html index b9f7a75..5c17c1a 100644 --- a/index.html +++ b/index.html @@ -338,9 +338,9 @@ } function angleForTime(date) { - // 0:00 = bottom (-90°), 12:00 = top (90°), 24:00 = bottom (-90°) + // 0:00 = bottom, 6:00 = left, 12:00 = top, 18:00 = right var hours = date.getHours() + date.getMinutes() / 60; - return ((hours / 24) * 360 - 90) * Math.PI / 180; + return ((hours / 24) * 360 + 90) * Math.PI / 180; } function pointOnCircle(date, radius) {