Template:Team:UC Davis/Head
From 2011.igem.org
(Difference between revisions)
Aheuckroth (Talk | contribs) |
Aheuckroth (Talk | contribs) |
||
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>Team Members</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 barheight=0;var currenttarget=null;var thispagenumber=0;var $menulinks=null;var colorsarray=["#fff","#FF7722","#bb66ff","#12aeef","#EE3333","#AADD00", "#BA5FAB", "#33ee33"];var contentarray=["","<a>Team Members</a><br><br><a>Advisors</a><br><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 03:58, 26 August 2011