1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00
This commit is contained in:
Tim Düsterhus 2013-08-02 21:34:28 +02:00
parent e583283d00
commit c99c707eda

View File

@ -391,9 +391,9 @@ Free the fish.
fish = $ """<div id="fish">#{WCF.String.escapeHTML('><((((\u00B0>')}</div>""" fish = $ """<div id="fish">#{WCF.String.escapeHTML('><((((\u00B0>')}</div>"""
fish.css fish.css
position: 'absolute' position: 'fixed'
top: '150px' top: '50%'
left: '400px' left: '50%'
color: 'black' color: 'black'
textShadow: '1px 1px white' textShadow: '1px 1px white'
zIndex: 9999 zIndex: 9999
@ -404,8 +404,8 @@ Free the fish.
top = Math.random() * 100 - 50 top = Math.random() * 100 - 50
fish = $ '#fish' fish = $ '#fish'
left *= -1 unless fish.width() < (fish.position().left + left) < ($(document).width() - fish.width()) left *= -1 unless fish.width() < (fish.position().left + left) < ($(window).width() - fish.width())
top *= -1 unless fish.height() < (fish.position().top + top) < ($(document).height() - fish.height()) top *= -1 unless fish.height() < (fish.position().top + top) < ($(window).height() - fish.height())
if left > 0 if left > 0
fish.text '><((((\u00B0>' if left > 0 fish.text '><((((\u00B0>' if left > 0
@ -413,8 +413,8 @@ Free the fish.
fish.text '<\u00B0))))><' fish.text '<\u00B0))))><'
fish.animate fish.animate
top: "+=#{top}" top: (fish.position().top + top)
left: "+=#{left}" left: (fish.position().left + left)
, 1e3 , 1e3
, 1.5e3 , 1.5e3