Template:Team:UC Davis/Head
From 2011.igem.org
(Difference between revisions)
Line 10: | Line 10: | ||
<script> | <script> | ||
jQuery.noConflict();jQuery.extend(jQuery.easing,{easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;}}) | jQuery.noConflict();jQuery.extend(jQuery.easing,{easeOutBack:function(x,t,b,c,d,s){if(s==undefined)s=1.70158;return c*((t=t/d-1)*t*((s+1)*t+s)+1)+b;}}) | ||
- | var barheight=0;var currenttarget=null;var thispagenumber=0;var $menulinks=null;var colorsarray=["#fff","#FF7722","#bb66ff","#12aeef","#EE3333","#AADD00", "#BA5FAB", "#33ee33"];var contentarray=["","<a>undergrads</a><br><a>advisors</a><br><a>contact</a>","<a href='https://2011.igem.org/Team:UC_Davis/cilambda'>cI | + | var barheight=0;var currenttarget=null;var thispagenumber=0;var $menulinks=null;var colorsarray=["#fff","#FF7722","#bb66ff","#12aeef","#EE3333","#AADD00", "#BA5FAB", "#33ee33"];var contentarray=["","<a>undergrads</a><br><a>advisors</a><br><a>contact</a>","<a href='https://2011.igem.org/Team:UC_Davis/cilambda'>λ cI</a><br><a href='https://2011.igem.org/Team:UC_Davis/TetR'>TetR</a><br><a href='https://2011.igem.org/Team:UC_Davis/LacI'>LacI</a>","<a>questionnaire</a><br><a>environmental</a><br><a>public</a><br><a>researcher</a>","<a href='https://2011.igem.org/Team:UC_Davis/Gallery2'>gallery</a>","<a>λ cI</a><br><a>TetR</a><br><a>LacI</a>","","<a href=http://partsregistry.org/Main_Page>parts registry</a><br><a href=https://igem.org/About>about</a>",];var gooeymenu={effectmarkup:'<li class="active"></li>',setup:function(usersetting){jQuery(function($){function snapback(dur){} |
var setting=jQuery.extend({fx:'easeOutBack',fxtime:500,snapdelay:300},usersetting);var $menu=$('#'+setting.id).find('li:eq(0)').parents('ul:eq(0)');$menulinks=$menu.find('li a');$menulinks.eq(thispagenumber).css('color',colorsarray[thispagenumber]);var $contentbox=$('#contentbox').css({top:$menulinks.eq(0).position().bottom,zIndex:1});var $effectref=$(gooeymenu.effectmarkup).css({top:$menulinks.eq(0).position().top,width:$menulinks.eq(thispagenumber).parent().outerWidth(),height:$menulinks.eq(0).outerHeight(),zIndex:0,opacity:0.5}).appendTo($menu);barheight=$menulinks.eq(0).outerHeight();$effectref.css({left:$menulinks.eq(thispagenumber).position().left});if(typeof setting.selectitem!="undefined"){var $selectedlink=$menulinks.removeClass('selected').eq(setting.selectitem).addClass('selected');} | var setting=jQuery.extend({fx:'easeOutBack',fxtime:500,snapdelay:300},usersetting);var $menu=$('#'+setting.id).find('li:eq(0)').parents('ul:eq(0)');$menulinks=$menu.find('li a');$menulinks.eq(thispagenumber).css('color',colorsarray[thispagenumber]);var $contentbox=$('#contentbox').css({top:$menulinks.eq(0).position().bottom,zIndex:1});var $effectref=$(gooeymenu.effectmarkup).css({top:$menulinks.eq(0).position().top,width:$menulinks.eq(thispagenumber).parent().outerWidth(),height:$menulinks.eq(0).outerHeight(),zIndex:0,opacity:0.5}).appendTo($menu);barheight=$menulinks.eq(0).outerHeight();$effectref.css({left:$menulinks.eq(thispagenumber).position().left});if(typeof setting.selectitem!="undefined"){var $selectedlink=$menulinks.removeClass('selected').eq(setting.selectitem).addClass('selected');} | ||
else{var $selectedlink=$menulinks.filter('.selected:eq(0)');var $selectedlink=$menulinks.eq(1);} | else{var $selectedlink=$menulinks.filter('.selected:eq(0)');var $selectedlink=$menulinks.eq(1);} |
Revision as of 20:09, 25 August 2011