summaryrefslogtreecommitdiff
path: root/emoji/follow.html
diff options
context:
space:
mode:
Diffstat (limited to 'emoji/follow.html')
-rw-r--r--emoji/follow.html11
1 files changed, 7 insertions, 4 deletions
diff --git a/emoji/follow.html b/emoji/follow.html
index e612263..8dabb47 100644
--- a/emoji/follow.html
+++ b/emoji/follow.html
@@ -56,6 +56,7 @@
<script type="text/javascript" src="http://okfoc.us/beentrill/shirts/assets/js/vendor/mx.scene.js"></script>
<script type="text/javascript" src="http://asdf.us/dither/js/util.js"></script>
<script type="text/javascript" src="http://okfoc.us/beentrill/shirts/assets/js/image.js"></script>
+ <script type="text/javascript" src="okstars.js"></script>
<script type="text/javascript">
(function( ua ) {
ua = ua.toLowerCase();
@@ -187,7 +188,7 @@
if (z_min > item.z) {
item.loadTexture({
src: 'http://okfocus.s3.amazonaws.com/emoji/' + (randint(845) + 1) + ".png",
- scale: randrange(0.4, 1.6)
+ scale: randrange(0.8, 2.6)
})
item.reposition()
// var theta = TWO_PI*random()
@@ -203,17 +204,19 @@
})
}
MX.Image.prototype.reposition = function(){
+ var w = window.innerWidth
var h = window.innerHeight
var theta = TWO_PI*random()
- this.x = sin(theta) * randrange(0.5, 1.6) * h
- this.y = cos(TWO_PI*random()) * randrange(0.5, 1.2) * h
+ this.x = sin(theta) * randrange(0.5, 1.6) * w
+ this.y = cos(TWO_PI*random()) * randrange(0.5, 1.2) * w
// this.z = randrange(z_min, z_max)
this.z = z_max + randint(z_shadow)
- this.rotationZ = random()*360
+ this.rotationZ = 30 * (random() - 0.5)
this.el.style.opacity = 1.0
this.dz = randrange(-800,-400)
this.drz = randrange(-1,1)/2
// this.update()
}
+ $('body').okstars()
</script>
</html>