From 389db25e8f8f05df56ae558a4867fab27166456e Mon Sep 17 00:00:00 2001 From: Chris Cowan Date: Sat, 29 Sep 2018 21:44:02 -0700 Subject: [PATCH 1/3] +.editorconfig --- .editorconfig | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..9225c67 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,5 @@ +root = true + +[*] +indent_style = space +indent_size = 3 From 122672b1474a9c984cb90d29447df80a2b525190 Mon Sep 17 00:00:00 2001 From: Chris Cowan Date: Fri, 28 Sep 2018 00:40:39 -0700 Subject: [PATCH 2/3] Increase opacity to make cube easier to understand. --- demos/device-orientation-api-demo.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demos/device-orientation-api-demo.html b/demos/device-orientation-api-demo.html index 33aa1a4..980d007 100644 --- a/demos/device-orientation-api-demo.html +++ b/demos/device-orientation-api-demo.html @@ -27,7 +27,7 @@ line-height: 150px; background-color: #999999; box-shadow: inset 0 0 20px #333333; - opacity: 0.6; + opacity: 0.9; } .cube .one From b14ff84dd6d494aa7954dffb51d1d63cae02d5bf Mon Sep 17 00:00:00 2001 From: Chris Cowan Date: Fri, 28 Sep 2018 00:41:11 -0700 Subject: [PATCH 3/3] Fix cube rotation. If you hold your phone flat and then lower a side, then the part of the cube near that lowered side should be revealed. The cube shouldn't spin wildly when you hold your screen vertical. --- demos/device-orientation-api-demo.html | 103 ++++++++++++++++++++++++- 1 file changed, 99 insertions(+), 4 deletions(-) diff --git a/demos/device-orientation-api-demo.html b/demos/device-orientation-api-demo.html index 980d007..eae8773 100644 --- a/demos/device-orientation-api-demo.html +++ b/demos/device-orientation-api-demo.html @@ -129,17 +129,112 @@

Device Orientation API