From 4300f3db5f029a1f86b8e8be01adc8b8ab24afe9 Mon Sep 17 00:00:00 2001 From: subokuleen Date: 2019年1月15日 01:19:23 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=94=B9=E6=AD=A3README.md=E7=9A=84updateD?= =?UTF-8?q?ate=E4=B8=AD,=20hourDeg=E7=9A=84=E8=AE=A1=E7=AE=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 延伸思考-方法二 updateDate函数中, hourDeg最后需要乘以360, 表示每秒增加旋转的小时指针度数 --- 02 - JS + CSS Clock/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/02 - JS + CSS Clock/README.md b/02 - JS + CSS Clock/README.md index 0ca0415..1e9cfeb 100644 --- a/02 - JS + CSS Clock/README.md +++ b/02 - JS + CSS Clock/README.md @@ -147,7 +147,7 @@ function initDate() { function updateDate() { secondDeg += (1 / 60) * 360; minDeg += ((1 / 60) / 60) * 360; - hourDeg += (((1 / 60) / 60) / 12); + hourDeg += (((1 / 60) / 60) / 12) * 360; secHand.style.transform = `rotate(${ secondDeg}deg)`; minHand.style.transform = `rotate(${ minDeg }deg)`; @@ -158,4 +158,4 @@ initDate(); setInterval(updateDate, 1000); ``` -问题解决。大功告成! \ No newline at end of file +问题解决。大功告成! From 1ad22b633208cd69facaffaf01e17db3561a6f76 Mon Sep 17 00:00:00 2001 From: subokuleen Date: 2019年1月15日 10:58:18 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E7=AC=AC=E4=B8=80?= =?UTF-8?q?=E5=A4=A9=E5=92=8C=E7=AC=AC=E4=BA=8C=E5=A4=A9=E8=87=AA=E5=B7=B1?= =?UTF-8?q?=E7=9A=84=E7=BB=83=E4=B9=A0html?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 01 - JavaScript Drum Kit/index-suboku.html | 116 +++++++++ 02 - JS + CSS Clock/index-suboku.html | 273 +++++++++++++++++++++ 2 files changed, 389 insertions(+) create mode 100644 01 - JavaScript Drum Kit/index-suboku.html create mode 100644 02 - JS + CSS Clock/index-suboku.html diff --git a/01 - JavaScript Drum Kit/index-suboku.html b/01 - JavaScript Drum Kit/index-suboku.html new file mode 100644 index 0000000..896e6bb --- /dev/null +++ b/01 - JavaScript Drum Kit/index-suboku.html @@ -0,0 +1,116 @@ + + + + + + JS Drum Kit + + + +

JS Drum Kit

+ + +
+
+ A + clap +
+
+ S + hihat +
+
+ D + kick +
+
+ F + openhat +
+
+ G + boom +
+
+ H + ride +
+
+ J + snare +
+
+ K + tom +
+
+ L + tink +
+
+ + + + + + + + + + + + + + +

AltStyle によって変換されたページ (->オリジナル) /

+ + diff --git a/02 - JS + CSS Clock/index-suboku.html b/02 - JS + CSS Clock/index-suboku.html new file mode 100644 index 0000000..e054723 --- /dev/null +++ b/02 - JS + CSS Clock/index-suboku.html @@ -0,0 +1,273 @@ + + + + + JS-clock + + + + +
+
+ + + + +
+ +
+
+ + + +
+ +
+

12:45

+
+
+
+ + + + + \ No newline at end of file