Team:UCLA/anuved verma ucla2014 workspace/Javascript
From 2014.igem.org
(Difference between revisions)
Anuvedverma (Talk | contribs) |
Anuvedverma (Talk | contribs) |
||
Line 4: | Line 4: | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
jQuery(document).ready(function($){ | jQuery(document).ready(function($){ | ||
- | $('.spiderbutton').click(function(){ | + | $('.spiderbutton, .backtotop').click(function(){ |
$('.spiderbutton').stop(true,true).animate({ top: '-=60%'}, 800, function(){$('.spiderbutton').stop(true,true).animate({ top: '+=60%'}, 3000)}); | $('.spiderbutton').stop(true,true).animate({ top: '-=60%'}, 800, function(){$('.spiderbutton').stop(true,true).animate({ top: '+=60%'}, 3000)}); | ||
$('.spiderline').stop(true,true).animate({ top: '-=60%'}, 800, function(){$('.spiderline').stop(true,true).animate({ top: '+=60%'}, 3000)}); | $('.spiderline').stop(true,true).animate({ top: '-=60%'}, 800, function(){$('.spiderline').stop(true,true).animate({ top: '+=60%'}, 3000)}); |
Revision as of 21:47, 19 September 2014