diff options
author | David DeSandro <desandrocodes@gmail.com> | 2014-12-21 12:20:54 -0500 |
---|---|---|
committer | David DeSandro <desandrocodes@gmail.com> | 2014-12-21 12:20:54 -0500 |
commit | a3ff3a4a0684f77e7f3be9d0223aedd551cbeec4 (patch) | |
tree | e70f1d57be67b6a135538f2744ae660669dba2eb | |
parent | 9e326512d2fb3f6b1821d2ce9ad8a62b82c475ef (diff) | |
download | flickity-dev-a3ff3a4a0684f77e7f3be9d0223aedd551cbeec4.zip flickity-dev-a3ff3a4a0684f77e7f3be9d0223aedd551cbeec4.tar.gz flickity-dev-a3ff3a4a0684f77e7f3be9d0223aedd551cbeec4.tar.bz2 |
remove sandbox/
-rw-r--r-- | attractors1/attractor.js (renamed from sandbox/attractors1/attractor.js) | 0 | ||||
-rw-r--r-- | attractors1/attractors1.html (renamed from sandbox/attractors1/attractors1.html) | 0 | ||||
-rw-r--r-- | attractors1/attractors1.js (renamed from sandbox/attractors1/attractors1.js) | 0 | ||||
-rw-r--r-- | attractors1/particle.js (renamed from sandbox/attractors1/particle.js) | 0 | ||||
-rw-r--r-- | attractors1/request-animation-frame.js (renamed from sandbox/attractors1/request-animation-frame.js) | 0 | ||||
-rw-r--r-- | attractors2/attractor.js (renamed from sandbox/attractors2/attractor.js) | 0 | ||||
-rw-r--r-- | attractors2/attractors2.html (renamed from sandbox/attractors2/attractors2.html) | 0 | ||||
-rw-r--r-- | attractors2/demo.js (renamed from sandbox/attractors2/demo.js) | 0 | ||||
-rw-r--r-- | attractors2/particle.js (renamed from sandbox/attractors2/particle.js) | 0 | ||||
-rw-r--r-- | attractors2/request-animation-frame.js (renamed from sandbox/attractors2/request-animation-frame.js) | 0 | ||||
-rw-r--r-- | attractors3/attractor.js (renamed from sandbox/attractors3/attractor.js) | 0 | ||||
-rw-r--r-- | attractors3/demo.js (renamed from sandbox/attractors3/demo.js) | 0 | ||||
-rw-r--r-- | attractors3/index.html (renamed from sandbox/attractors3/index.html) | 0 | ||||
-rw-r--r-- | attractors3/particle.js (renamed from sandbox/attractors3/particle.js) | 0 | ||||
-rw-r--r-- | attractors3/request-animation-frame.js (renamed from sandbox/attractors3/request-animation-frame.js) | 0 | ||||
-rw-r--r-- | attractors4/attractor.js (renamed from sandbox/attractors4/attractor.js) | 0 | ||||
-rw-r--r-- | attractors4/demo.js (renamed from sandbox/attractors4/demo.js) | 0 | ||||
-rw-r--r-- | attractors4/index.html (renamed from sandbox/attractors4/index.html) | 0 | ||||
-rw-r--r-- | attractors4/particle.js (renamed from sandbox/attractors4/particle.js) | 0 | ||||
-rw-r--r-- | attractors4/request-animation-frame.js (renamed from sandbox/attractors4/request-animation-frame.js) | 0 | ||||
-rw-r--r-- | attractors5/attractor.js (renamed from sandbox/attractors5/attractor.js) | 0 | ||||
-rw-r--r-- | attractors5/demo.js (renamed from sandbox/attractors5/demo.js) | 0 | ||||
-rw-r--r-- | attractors5/index.html (renamed from sandbox/attractors5/index.html) | 0 | ||||
-rw-r--r-- | attractors5/particle.js (renamed from sandbox/attractors5/particle.js) | 0 | ||||
-rw-r--r-- | attractors5/request-animation-frame.js (renamed from sandbox/attractors5/request-animation-frame.js) | 0 | ||||
-rw-r--r-- | attractors6/attractor.js (renamed from sandbox/attractors6/attractor.js) | 0 | ||||
-rw-r--r-- | attractors6/demo.js (renamed from sandbox/attractors6/demo.js) | 0 | ||||
-rw-r--r-- | attractors6/index.html (renamed from sandbox/attractors6/index.html) | 0 | ||||
-rw-r--r-- | attractors6/particle.js (renamed from sandbox/attractors6/particle.js) | 0 | ||||
-rw-r--r-- | attractors6/request-animation-frame.js (renamed from sandbox/attractors6/request-animation-frame.js) | 0 | ||||
-rw-r--r-- | attractors7/attractor.js (renamed from sandbox/attractors7/attractor.js) | 0 | ||||
-rw-r--r-- | attractors7/demo.js (renamed from sandbox/attractors7/demo.js) | 0 | ||||
-rw-r--r-- | attractors7/index.html (renamed from sandbox/attractors7/index.html) | 0 | ||||
-rw-r--r-- | attractors7/particle.js (renamed from sandbox/attractors7/particle.js) | 0 | ||||
-rw-r--r-- | attractors7/request-animation-frame.js (renamed from sandbox/attractors7/request-animation-frame.js) | 0 | ||||
-rw-r--r-- | attractors8/attractor.js (renamed from sandbox/attractors8/attractor.js) | 0 | ||||
-rw-r--r-- | attractors8/demo.js (renamed from sandbox/attractors8/demo.js) | 0 | ||||
-rw-r--r-- | attractors8/index.html (renamed from sandbox/attractors8/index.html) | 0 | ||||
-rw-r--r-- | attractors8/particle.js (renamed from sandbox/attractors8/particle.js) | 0 | ||||
-rw-r--r-- | attractors8/request-animation-frame.js (renamed from sandbox/attractors8/request-animation-frame.js) | 0 | ||||
-rw-r--r-- | bounds1/attractor.js (renamed from sandbox/bounds1/attractor.js) | 0 | ||||
-rw-r--r-- | bounds1/demo.js (renamed from sandbox/bounds1/demo.js) | 0 | ||||
-rw-r--r-- | bounds1/index.html (renamed from sandbox/bounds1/index.html) | 0 | ||||
-rw-r--r-- | bounds1/particle.js (renamed from sandbox/bounds1/particle.js) | 0 | ||||
-rw-r--r-- | bounds2/attractor.js (renamed from sandbox/bounds2/attractor.js) | 0 | ||||
-rw-r--r-- | bounds2/demo.js (renamed from sandbox/bounds2/demo.js) | 0 | ||||
-rw-r--r-- | bounds2/index.html (renamed from sandbox/bounds2/index.html) | 0 | ||||
-rw-r--r-- | bounds2/particle.js (renamed from sandbox/bounds2/particle.js) | 0 | ||||
-rw-r--r-- | bounds3/demo.js (renamed from sandbox/bounds3/demo.js) | 0 | ||||
-rw-r--r-- | bounds3/index.html (renamed from sandbox/bounds3/index.html) | 0 | ||||
-rw-r--r-- | bounds3/slider.js (renamed from sandbox/bounds3/slider.js) | 0 | ||||
-rw-r--r-- | bounds4/demo.js (renamed from sandbox/bounds4/demo.js) | 0 | ||||
-rw-r--r-- | bounds4/index.html (renamed from sandbox/bounds4/index.html) | 0 | ||||
-rw-r--r-- | bounds4/quad-limit.js (renamed from sandbox/bounds4/quad-limit.js) | 0 | ||||
-rw-r--r-- | bounds4/slider.js (renamed from sandbox/bounds4/slider.js) | 0 | ||||
-rw-r--r-- | cells1/cell.js (renamed from sandbox/cells1/cell.js) | 0 | ||||
-rw-r--r-- | cells1/demo.js (renamed from sandbox/cells1/demo.js) | 0 | ||||
-rw-r--r-- | cells1/index.html (renamed from sandbox/cells1/index.html) | 0 | ||||
-rw-r--r-- | cells1/request-animation-frame.js (renamed from sandbox/cells1/request-animation-frame.js) | 0 | ||||
-rw-r--r-- | cells1/slider.js (renamed from sandbox/cells1/slider.js) | 0 | ||||
-rw-r--r-- | cells2/cell.js (renamed from sandbox/cells2/cell.js) | 0 | ||||
-rw-r--r-- | cells2/demo.js (renamed from sandbox/cells2/demo.js) | 0 | ||||
-rw-r--r-- | cells2/index.html (renamed from sandbox/cells2/index.html) | 0 | ||||
-rw-r--r-- | cells2/request-animation-frame.js (renamed from sandbox/cells2/request-animation-frame.js) | 0 | ||||
-rw-r--r-- | cells2/slider.js (renamed from sandbox/cells2/slider.js) | 0 | ||||
-rw-r--r-- | cells3/cell.js (renamed from sandbox/cells3/cell.js) | 0 | ||||
-rw-r--r-- | cells3/demo.js (renamed from sandbox/cells3/demo.js) | 0 | ||||
-rw-r--r-- | cells3/index.html (renamed from sandbox/cells3/index.html) | 0 | ||||
-rw-r--r-- | cells3/slider.js (renamed from sandbox/cells3/slider.js) | 0 | ||||
-rw-r--r-- | click1/demo.js (renamed from sandbox/click1/demo.js) | 0 | ||||
-rw-r--r-- | click1/index.html (renamed from sandbox/click1/index.html) | 0 | ||||
-rw-r--r-- | click2/demo.js (renamed from sandbox/click2/demo.js) | 0 | ||||
-rw-r--r-- | click2/index.html (renamed from sandbox/click2/index.html) | 0 | ||||
-rw-r--r-- | click3/demo.js (renamed from sandbox/click3/demo.js) | 0 | ||||
-rw-r--r-- | click3/index.html (renamed from sandbox/click3/index.html) | 0 | ||||
-rw-r--r-- | click4/demo.js (renamed from sandbox/click4/demo.js) | 0 | ||||
-rw-r--r-- | click4/index.html (renamed from sandbox/click4/index.html) | 0 | ||||
-rw-r--r-- | click5/demo.js | 96 | ||||
-rw-r--r-- | click5/index.html | 56 | ||||
-rw-r--r-- | position-cells1/index.html (renamed from sandbox/position-cells1/index.html) | 0 | ||||
-rw-r--r-- | prevnext1/cell.js (renamed from sandbox/prevnext1/cell.js) | 0 | ||||
-rw-r--r-- | prevnext1/demo.js (renamed from sandbox/prevnext1/demo.js) | 0 | ||||
-rw-r--r-- | prevnext1/index.html (renamed from sandbox/prevnext1/index.html) | 0 | ||||
-rw-r--r-- | prevnext1/slider.js (renamed from sandbox/prevnext1/slider.js) | 0 | ||||
-rw-r--r-- | request-animation-frame.js (renamed from sandbox/request-animation-frame.js) | 0 | ||||
-rw-r--r-- | sandbox/.jshintrc | 5 | ||||
-rw-r--r-- | svg1/index.html (renamed from sandbox/svg1/index.html) | 0 | ||||
-rw-r--r-- | svg2/index.html (renamed from sandbox/svg2/index.html) | 0 |
88 files changed, 152 insertions, 5 deletions
diff --git a/sandbox/attractors1/attractor.js b/attractors1/attractor.js index 6531324..6531324 100644 --- a/sandbox/attractors1/attractor.js +++ b/attractors1/attractor.js diff --git a/sandbox/attractors1/attractors1.html b/attractors1/attractors1.html index a68557d..a68557d 100644 --- a/sandbox/attractors1/attractors1.html +++ b/attractors1/attractors1.html diff --git a/sandbox/attractors1/attractors1.js b/attractors1/attractors1.js index f8a0ea1..f8a0ea1 100644 --- a/sandbox/attractors1/attractors1.js +++ b/attractors1/attractors1.js diff --git a/sandbox/attractors1/particle.js b/attractors1/particle.js index 89f17a6..89f17a6 100644 --- a/sandbox/attractors1/particle.js +++ b/attractors1/particle.js diff --git a/sandbox/attractors1/request-animation-frame.js b/attractors1/request-animation-frame.js index 1de8cd4..1de8cd4 100644 --- a/sandbox/attractors1/request-animation-frame.js +++ b/attractors1/request-animation-frame.js diff --git a/sandbox/attractors2/attractor.js b/attractors2/attractor.js index fc7bca1..fc7bca1 100644 --- a/sandbox/attractors2/attractor.js +++ b/attractors2/attractor.js diff --git a/sandbox/attractors2/attractors2.html b/attractors2/attractors2.html index 2a69d72..2a69d72 100644 --- a/sandbox/attractors2/attractors2.html +++ b/attractors2/attractors2.html diff --git a/sandbox/attractors2/demo.js b/attractors2/demo.js index 55b4a51..55b4a51 100644 --- a/sandbox/attractors2/demo.js +++ b/attractors2/demo.js diff --git a/sandbox/attractors2/particle.js b/attractors2/particle.js index 8974c37..8974c37 100644 --- a/sandbox/attractors2/particle.js +++ b/attractors2/particle.js diff --git a/sandbox/attractors2/request-animation-frame.js b/attractors2/request-animation-frame.js index 1de8cd4..1de8cd4 100644 --- a/sandbox/attractors2/request-animation-frame.js +++ b/attractors2/request-animation-frame.js diff --git a/sandbox/attractors3/attractor.js b/attractors3/attractor.js index 6531324..6531324 100644 --- a/sandbox/attractors3/attractor.js +++ b/attractors3/attractor.js diff --git a/sandbox/attractors3/demo.js b/attractors3/demo.js index 0cefb6f..0cefb6f 100644 --- a/sandbox/attractors3/demo.js +++ b/attractors3/demo.js diff --git a/sandbox/attractors3/index.html b/attractors3/index.html index eb04e79..eb04e79 100644 --- a/sandbox/attractors3/index.html +++ b/attractors3/index.html diff --git a/sandbox/attractors3/particle.js b/attractors3/particle.js index ac09423..ac09423 100644 --- a/sandbox/attractors3/particle.js +++ b/attractors3/particle.js diff --git a/sandbox/attractors3/request-animation-frame.js b/attractors3/request-animation-frame.js index 1de8cd4..1de8cd4 100644 --- a/sandbox/attractors3/request-animation-frame.js +++ b/attractors3/request-animation-frame.js diff --git a/sandbox/attractors4/attractor.js b/attractors4/attractor.js index 6531324..6531324 100644 --- a/sandbox/attractors4/attractor.js +++ b/attractors4/attractor.js diff --git a/sandbox/attractors4/demo.js b/attractors4/demo.js index aeca41c..aeca41c 100644 --- a/sandbox/attractors4/demo.js +++ b/attractors4/demo.js diff --git a/sandbox/attractors4/index.html b/attractors4/index.html index eb04e79..eb04e79 100644 --- a/sandbox/attractors4/index.html +++ b/attractors4/index.html diff --git a/sandbox/attractors4/particle.js b/attractors4/particle.js index ac09423..ac09423 100644 --- a/sandbox/attractors4/particle.js +++ b/attractors4/particle.js diff --git a/sandbox/attractors4/request-animation-frame.js b/attractors4/request-animation-frame.js index 1de8cd4..1de8cd4 100644 --- a/sandbox/attractors4/request-animation-frame.js +++ b/attractors4/request-animation-frame.js diff --git a/sandbox/attractors5/attractor.js b/attractors5/attractor.js index 6531324..6531324 100644 --- a/sandbox/attractors5/attractor.js +++ b/attractors5/attractor.js diff --git a/sandbox/attractors5/demo.js b/attractors5/demo.js index 0db328f..0db328f 100644 --- a/sandbox/attractors5/demo.js +++ b/attractors5/demo.js diff --git a/sandbox/attractors5/index.html b/attractors5/index.html index 7373df6..7373df6 100644 --- a/sandbox/attractors5/index.html +++ b/attractors5/index.html diff --git a/sandbox/attractors5/particle.js b/attractors5/particle.js index ac09423..ac09423 100644 --- a/sandbox/attractors5/particle.js +++ b/attractors5/particle.js diff --git a/sandbox/attractors5/request-animation-frame.js b/attractors5/request-animation-frame.js index 1de8cd4..1de8cd4 100644 --- a/sandbox/attractors5/request-animation-frame.js +++ b/attractors5/request-animation-frame.js diff --git a/sandbox/attractors6/attractor.js b/attractors6/attractor.js index 6531324..6531324 100644 --- a/sandbox/attractors6/attractor.js +++ b/attractors6/attractor.js diff --git a/sandbox/attractors6/demo.js b/attractors6/demo.js index 96b9717..96b9717 100644 --- a/sandbox/attractors6/demo.js +++ b/attractors6/demo.js diff --git a/sandbox/attractors6/index.html b/attractors6/index.html index 1fd629f..1fd629f 100644 --- a/sandbox/attractors6/index.html +++ b/attractors6/index.html diff --git a/sandbox/attractors6/particle.js b/attractors6/particle.js index bd9e9c6..bd9e9c6 100644 --- a/sandbox/attractors6/particle.js +++ b/attractors6/particle.js diff --git a/sandbox/attractors6/request-animation-frame.js b/attractors6/request-animation-frame.js index 1de8cd4..1de8cd4 100644 --- a/sandbox/attractors6/request-animation-frame.js +++ b/attractors6/request-animation-frame.js diff --git a/sandbox/attractors7/attractor.js b/attractors7/attractor.js index 6531324..6531324 100644 --- a/sandbox/attractors7/attractor.js +++ b/attractors7/attractor.js diff --git a/sandbox/attractors7/demo.js b/attractors7/demo.js index 0e15e1e..0e15e1e 100644 --- a/sandbox/attractors7/demo.js +++ b/attractors7/demo.js diff --git a/sandbox/attractors7/index.html b/attractors7/index.html index b68da28..b68da28 100644 --- a/sandbox/attractors7/index.html +++ b/attractors7/index.html diff --git a/sandbox/attractors7/particle.js b/attractors7/particle.js index ed869f7..ed869f7 100644 --- a/sandbox/attractors7/particle.js +++ b/attractors7/particle.js diff --git a/sandbox/attractors7/request-animation-frame.js b/attractors7/request-animation-frame.js index 1de8cd4..1de8cd4 100644 --- a/sandbox/attractors7/request-animation-frame.js +++ b/attractors7/request-animation-frame.js diff --git a/sandbox/attractors8/attractor.js b/attractors8/attractor.js index 6531324..6531324 100644 --- a/sandbox/attractors8/attractor.js +++ b/attractors8/attractor.js diff --git a/sandbox/attractors8/demo.js b/attractors8/demo.js index 1d39eb6..1d39eb6 100644 --- a/sandbox/attractors8/demo.js +++ b/attractors8/demo.js diff --git a/sandbox/attractors8/index.html b/attractors8/index.html index b958ed2..b958ed2 100644 --- a/sandbox/attractors8/index.html +++ b/attractors8/index.html diff --git a/sandbox/attractors8/particle.js b/attractors8/particle.js index 4a33e2b..4a33e2b 100644 --- a/sandbox/attractors8/particle.js +++ b/attractors8/particle.js diff --git a/sandbox/attractors8/request-animation-frame.js b/attractors8/request-animation-frame.js index 1de8cd4..1de8cd4 100644 --- a/sandbox/attractors8/request-animation-frame.js +++ b/attractors8/request-animation-frame.js diff --git a/sandbox/bounds1/attractor.js b/bounds1/attractor.js index 6531324..6531324 100644 --- a/sandbox/bounds1/attractor.js +++ b/bounds1/attractor.js diff --git a/sandbox/bounds1/demo.js b/bounds1/demo.js index b7a5d30..b7a5d30 100644 --- a/sandbox/bounds1/demo.js +++ b/bounds1/demo.js diff --git a/sandbox/bounds1/index.html b/bounds1/index.html index cac516f..cac516f 100644 --- a/sandbox/bounds1/index.html +++ b/bounds1/index.html diff --git a/sandbox/bounds1/particle.js b/bounds1/particle.js index 1f754c4..1f754c4 100644 --- a/sandbox/bounds1/particle.js +++ b/bounds1/particle.js diff --git a/sandbox/bounds2/attractor.js b/bounds2/attractor.js index 6531324..6531324 100644 --- a/sandbox/bounds2/attractor.js +++ b/bounds2/attractor.js diff --git a/sandbox/bounds2/demo.js b/bounds2/demo.js index 8f3e1d4..8f3e1d4 100644 --- a/sandbox/bounds2/demo.js +++ b/bounds2/demo.js diff --git a/sandbox/bounds2/index.html b/bounds2/index.html index 07cc7a5..07cc7a5 100644 --- a/sandbox/bounds2/index.html +++ b/bounds2/index.html diff --git a/sandbox/bounds2/particle.js b/bounds2/particle.js index f6058e3..f6058e3 100644 --- a/sandbox/bounds2/particle.js +++ b/bounds2/particle.js diff --git a/sandbox/bounds3/demo.js b/bounds3/demo.js index f245b06..f245b06 100644 --- a/sandbox/bounds3/demo.js +++ b/bounds3/demo.js diff --git a/sandbox/bounds3/index.html b/bounds3/index.html index c6b6e54..c6b6e54 100644 --- a/sandbox/bounds3/index.html +++ b/bounds3/index.html diff --git a/sandbox/bounds3/slider.js b/bounds3/slider.js index e245071..e245071 100644 --- a/sandbox/bounds3/slider.js +++ b/bounds3/slider.js diff --git a/sandbox/bounds4/demo.js b/bounds4/demo.js index cf87093..cf87093 100644 --- a/sandbox/bounds4/demo.js +++ b/bounds4/demo.js diff --git a/sandbox/bounds4/index.html b/bounds4/index.html index a6f14e2..a6f14e2 100644 --- a/sandbox/bounds4/index.html +++ b/bounds4/index.html diff --git a/sandbox/bounds4/quad-limit.js b/bounds4/quad-limit.js index 63b7d3c..63b7d3c 100644 --- a/sandbox/bounds4/quad-limit.js +++ b/bounds4/quad-limit.js diff --git a/sandbox/bounds4/slider.js b/bounds4/slider.js index e245071..e245071 100644 --- a/sandbox/bounds4/slider.js +++ b/bounds4/slider.js diff --git a/sandbox/cells1/cell.js b/cells1/cell.js index 7762f95..7762f95 100644 --- a/sandbox/cells1/cell.js +++ b/cells1/cell.js diff --git a/sandbox/cells1/demo.js b/cells1/demo.js index 80a8e2d..80a8e2d 100644 --- a/sandbox/cells1/demo.js +++ b/cells1/demo.js diff --git a/sandbox/cells1/index.html b/cells1/index.html index 52311e7..52311e7 100644 --- a/sandbox/cells1/index.html +++ b/cells1/index.html diff --git a/sandbox/cells1/request-animation-frame.js b/cells1/request-animation-frame.js index 661e15d..661e15d 100644 --- a/sandbox/cells1/request-animation-frame.js +++ b/cells1/request-animation-frame.js diff --git a/sandbox/cells1/slider.js b/cells1/slider.js index 2c50438..2c50438 100644 --- a/sandbox/cells1/slider.js +++ b/cells1/slider.js diff --git a/sandbox/cells2/cell.js b/cells2/cell.js index 7762f95..7762f95 100644 --- a/sandbox/cells2/cell.js +++ b/cells2/cell.js diff --git a/sandbox/cells2/demo.js b/cells2/demo.js index 0fe89b6..0fe89b6 100644 --- a/sandbox/cells2/demo.js +++ b/cells2/demo.js diff --git a/sandbox/cells2/index.html b/cells2/index.html index 85bb5f4..85bb5f4 100644 --- a/sandbox/cells2/index.html +++ b/cells2/index.html diff --git a/sandbox/cells2/request-animation-frame.js b/cells2/request-animation-frame.js index 661e15d..661e15d 100644 --- a/sandbox/cells2/request-animation-frame.js +++ b/cells2/request-animation-frame.js diff --git a/sandbox/cells2/slider.js b/cells2/slider.js index f3673c5..f3673c5 100644 --- a/sandbox/cells2/slider.js +++ b/cells2/slider.js diff --git a/sandbox/cells3/cell.js b/cells3/cell.js index 7e071e0..7e071e0 100644 --- a/sandbox/cells3/cell.js +++ b/cells3/cell.js diff --git a/sandbox/cells3/demo.js b/cells3/demo.js index 0385325..0385325 100644 --- a/sandbox/cells3/demo.js +++ b/cells3/demo.js diff --git a/sandbox/cells3/index.html b/cells3/index.html index 9c6bbcf..9c6bbcf 100644 --- a/sandbox/cells3/index.html +++ b/cells3/index.html diff --git a/sandbox/cells3/slider.js b/cells3/slider.js index f3673c5..f3673c5 100644 --- a/sandbox/cells3/slider.js +++ b/cells3/slider.js diff --git a/sandbox/click1/demo.js b/click1/demo.js index d9696b1..d9696b1 100644 --- a/sandbox/click1/demo.js +++ b/click1/demo.js diff --git a/sandbox/click1/index.html b/click1/index.html index e1e96a4..e1e96a4 100644 --- a/sandbox/click1/index.html +++ b/click1/index.html diff --git a/sandbox/click2/demo.js b/click2/demo.js index 444c7e1..444c7e1 100644 --- a/sandbox/click2/demo.js +++ b/click2/demo.js diff --git a/sandbox/click2/index.html b/click2/index.html index 590f582..590f582 100644 --- a/sandbox/click2/index.html +++ b/click2/index.html diff --git a/sandbox/click3/demo.js b/click3/demo.js index 5681aa4..5681aa4 100644 --- a/sandbox/click3/demo.js +++ b/click3/demo.js diff --git a/sandbox/click3/index.html b/click3/index.html index 5439f40..5439f40 100644 --- a/sandbox/click3/index.html +++ b/click3/index.html diff --git a/sandbox/click4/demo.js b/click4/demo.js index 69c1586..69c1586 100644 --- a/sandbox/click4/demo.js +++ b/click4/demo.js diff --git a/sandbox/click4/index.html b/click4/index.html index cb854ef..cb854ef 100644 --- a/sandbox/click4/index.html +++ b/click4/index.html diff --git a/click5/demo.js b/click5/demo.js new file mode 100644 index 0000000..162589d --- /dev/null +++ b/click5/demo.js @@ -0,0 +1,96 @@ +var box; +var boxX = 0, boxY = 0; + +document.addEventListener( 'DOMContentLoaded', init, false ); + +function init() { + box = document.querySelector('#box'); + box.addEventListener( 'click', onClick, false ); + box.addEventListener( 'mousedown', onMousedown, false ); +} + +// ----- ----- // + +var linkClickEvent; + + + +// ----- mouse ----- // + +var mousedownX, mousedownY; +var dragStartX, dragStartY; +var dragStartBoxX, dragStartBoxY; +var mouseDownEvent; + +function onMousedown( event ) { + event.preventDefault(); + // kludge to blur focused inputs in dragger + var focused = document.activeElement; + if ( focused && focused.blur ) { + focused.blur(); + } + mousedownX = event.pageX; + mousedownY = event.pageY; + + window.addEventListener( 'mousemove', onMousemove, false ); + window.addEventListener( 'mouseup', onMouseup, false ); +} + +var isDragging = false; + +function onMousemove( event ) { + // don't move until mouse has moved at least 3 pixels in any direction + + var moveX = event.pageX - mousedownX; + var moveY = event.pageY - mousedownY; + var bigMove = Math.max( Math.abs( moveX ), Math.abs( moveY ) ); + + if ( !isDragging && bigMove > 3 ) { + dragStartX = event.pageX; + dragStartY = event.pageY; + // position of box when drag started + dragStartBoxX = boxX; + dragStartBoxY = boxY; + + isDragging = true; + // disable clicks + shouldClick = false; + } + + if ( isDragging ) { + boxX = dragStartBoxX + ( event.pageX - dragStartX ); + boxY = dragStartBoxY + ( event.pageY - dragStartY ); + box.style.left = boxX + 'px'; + box.style.top = boxY + 'px'; + } + +} + +var shouldClick = true; + +function onMouseup( event) { + if ( !isDragging ) { + // allow click in text input + if ( event.target.nodeName === 'INPUT' && event.target.type === 'text' ) { + event.target.focus(); + } + } + console.log('mouse up'); + isDragging = false; + setTimeout( function() { + shouldClick = true; + }) + + window.removeEventListener( 'mousemove', onMousemove, false ); + window.removeEventListener( 'mouseup', onMouseup, false ); +} + +// ----- click ----- // + +function onClick( event ) { + if ( !shouldClick ) { + event.preventDefault(); + } else { + console.log('non drag click'); + } +} diff --git a/click5/index.html b/click5/index.html new file mode 100644 index 0000000..a045fbb --- /dev/null +++ b/click5/index.html @@ -0,0 +1,56 @@ +<!doctype html> +<html> +<head> + <meta charset="utf-8"> + + <title>click5</title> + + <style> + * { margin: 0; padding: 0; } + + body { + } + + + #box { + width: 160px; + height: 160px; + position: absolute; + left: 0; + top: 0; + background: #CCC; + border-radius: 5px; + padding: 10px; + } + + #box a { + font-size: 20px; + } + </style> + +</head> +<body> + + <h1>click5</h1> + + + <input /> + <input type="checkbox" /> + <input type="radio" name="bar" /> + <input type="radio" name="bar" /> + +<div id="box"> + <a href="http://example.com">example.com</a> + <button>Button</button> + <input /> + <div> + <input type="checkbox" /> + <input type="radio" name="foo" /> + <input type="radio" name="foo" /> + </div> +</div> + +<script src="demo.js"></script> + +</body> +</html> diff --git a/sandbox/position-cells1/index.html b/position-cells1/index.html index 4d34c72..4d34c72 100644 --- a/sandbox/position-cells1/index.html +++ b/position-cells1/index.html diff --git a/sandbox/prevnext1/cell.js b/prevnext1/cell.js index 7e071e0..7e071e0 100644 --- a/sandbox/prevnext1/cell.js +++ b/prevnext1/cell.js diff --git a/sandbox/prevnext1/demo.js b/prevnext1/demo.js index 6ef4ac3..6ef4ac3 100644 --- a/sandbox/prevnext1/demo.js +++ b/prevnext1/demo.js diff --git a/sandbox/prevnext1/index.html b/prevnext1/index.html index 0dfcef4..0dfcef4 100644 --- a/sandbox/prevnext1/index.html +++ b/prevnext1/index.html diff --git a/sandbox/prevnext1/slider.js b/prevnext1/slider.js index f3673c5..f3673c5 100644 --- a/sandbox/prevnext1/slider.js +++ b/prevnext1/slider.js diff --git a/sandbox/request-animation-frame.js b/request-animation-frame.js index 661e15d..661e15d 100644 --- a/sandbox/request-animation-frame.js +++ b/request-animation-frame.js diff --git a/sandbox/.jshintrc b/sandbox/.jshintrc deleted file mode 100644 index e3e16a8..0000000 --- a/sandbox/.jshintrc +++ /dev/null @@ -1,5 +0,0 @@ -{ - "browser": true, - "devel": true, - "undef": true -} diff --git a/sandbox/svg1/index.html b/svg1/index.html index 069d9b1..069d9b1 100644 --- a/sandbox/svg1/index.html +++ b/svg1/index.html diff --git a/sandbox/svg2/index.html b/svg2/index.html index 6bd4ef1..6bd4ef1 100644 --- a/sandbox/svg2/index.html +++ b/svg2/index.html |