diff options
| author | Julie Lala <jules@okfoc.us> | 2014-05-08 16:34:43 -0400 |
|---|---|---|
| committer | Julie Lala <jules@okfoc.us> | 2014-05-08 16:34:43 -0400 |
| commit | 3caac3e80e3a0eef2c481698de777a308d275d54 (patch) | |
| tree | 42d6a60c9bce54a57648d8538407b89913596a0a /falling | |
| parent | 4df42cb4c3243ba2320d48ea45a08b3239df92dd (diff) | |
grunt stuffffff
Diffstat (limited to 'falling')
| -rw-r--r-- | falling/index.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/falling/index.html b/falling/index.html index b1dd444..73b5807 100644 --- a/falling/index.html +++ b/falling/index.html @@ -1,7 +1,7 @@ <!doctype> <html> <head> - <title>IT'S RAINING WEEDLEAVES!!!!!!!!!!!!!</title> + <title>rain</title> <style type="text/css"> * { -moz-box-sizing: border-box; -webkit-box-sizing: border-box; box-sizing: border-box; } .mx-object3d { -webkit-transform-style: preserve-3d; transform-style: preserve-3d; } @@ -63,7 +63,7 @@ /(webkit)[ \/]([\w.]+)/.exec( ua ) || /(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) || /(msie) ([\w.]+)/.exec( ua ) || - ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) || + 0 > ua.indexOf("compatible") && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) || []; var matched = { browser: match[ 1 ] || "", @@ -150,7 +150,7 @@ var count = $.browser.mozilla ? 50 : 100 var w = window.innerWidth, h = window.innerHeight - for (var i = 0; i < count; i++) { + for (var i = 0; count > i; i++) { var hash = new MX.Image({ src: 'http://upload.wikimedia.org/wikipedia/commons/thumb/4/44/Cannabis_leaf_2.svg/200px-Cannabis_leaf_2.svg.png', scale: 0.5 @@ -180,7 +180,7 @@ hashtags.parent.children.forEach(function(item){ item.z -= ~~(item.dz*dt) item.rotationZ += item.drz - if (item.z < z_min) item.z = z_max + if (z_min > item.z) item.z = z_max if (item.z >= z_max-z_fade) { item.el.style.opacity = lerp((z_max-item.z)/z_fade, 0.0, 1.0) } |
