summaryrefslogtreecommitdiff
path: root/falling/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'falling/index.html')
-rw-r--r--falling/index.html8
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)
}