Template:Team:UC Davis/Head
From 2011.igem.org
(Difference between revisions)
Aheuckroth (Talk | contribs) |
Aheuckroth (Talk | contribs) |
||
(80 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | + | <html> | |
<head> | <head> | ||
- | |||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script> | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script> | ||
<script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> | <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js"></script> | ||
Line 31: | Line 30: | ||
var thispagenumber=0; | var thispagenumber=0; | ||
var $menulinks=null; | var $menulinks=null; | ||
- | var colorsarray=["#fff","#FF7722","#bb66ff","#12aeef","#EE3333","# | + | var colorsarray=["#fff","#FF7722","#bb66ff","#12aeef","#EE3333","#EEEE33", "#BA5FAB", "#33ee33"]; |
- | var linkcolorsarray=["#33ff33","#FF7722","#bb66ff","#12aeef","#FFFFFF","# | + | var linkcolorsarray=["#33ff33","#FF7722","#bb66ff","#12aeef","#FFFFFF","#EEEE33", "#BA5FAB", "#33ee33"]; |
var contentarray=[ | var contentarray=[ | ||
Line 39: | Line 38: | ||
"<ul><li><a href=https://2011.igem.org/Team:UC_Davis/Team#Team>Team Members</a></li><li><a href=https://2011.igem.org/Team:UC_Davis/Team#Advisors>Advisors</a></li><li><a href=https://2011.igem.org/Team:UC_Davis/Team#Contact>Contact</a></li></ul>", | "<ul><li><a href=https://2011.igem.org/Team:UC_Davis/Team#Team>Team Members</a></li><li><a href=https://2011.igem.org/Team:UC_Davis/Team#Advisors>Advisors</a></li><li><a href=https://2011.igem.org/Team:UC_Davis/Team#Contact>Contact</a></li></ul>", | ||
- | "<ul><li><a href='https://2011.igem.org/Team:UC_Davis/ | + | "<ul><li><a href='https://2011.igem.org/Team:UC_Davis/Project'>Overview</a></li><li><a href='https://2011.igem.org/Team:UC_Davis/Project_Selection'>Selection</a></li><li><a href='https://2011.igem.org/Team:UC_Davis/PartFamilies'>Make a Part Family</a></li><li><a href='https://2011.igem.org/Team:UC_Davis/Process'>Our Process</a></li><li><a href='https://2011.igem.org/Team:UC_Davis/PromoterFamilies'>Promoter Families</a></li><li><a href=https://2011.igem.org/Team:UC_Davis/KO3D>KO3D</a></li></ul>", |
"<ul><li><a href=https://2011.igem.org/Team:UC_Davis/Safety#Environmental>Environmental</a></li><li><a href=https://2011.igem.org/Team:UC_Davis/Safety#Public>Public</a></li><li><a href=https://2011.igem.org/Team:UC_Davis/Safety#Researcher>Researcher</a></li><li><a href=https://2011.igem.org/Team:UC_Davis/Safety#Questionnaire>Questionnaire</a></li><ul>", | "<ul><li><a href=https://2011.igem.org/Team:UC_Davis/Safety#Environmental>Environmental</a></li><li><a href=https://2011.igem.org/Team:UC_Davis/Safety#Public>Public</a></li><li><a href=https://2011.igem.org/Team:UC_Davis/Safety#Researcher>Researcher</a></li><li><a href=https://2011.igem.org/Team:UC_Davis/Safety#Questionnaire>Questionnaire</a></li><ul>", | ||
- | "<ul><li><a href='https://2011.igem.org/Team:UC_Davis/Gallery'>Gallery</a></li><li><a href='https://2011.igem.org/Team:UC_Davis/Protocols'>Protocols</a></li></ul>", | + | "<ul><li><a href='https://2011.igem.org/Team:UC_Davis/Notebook'>Overview</a></li><li><a href='https://2011.igem.org/Team:UC_Davis/Gallery'>Gallery</a></li><li><a href='https://2011.igem.org/Team:UC_Davis/Protocols'>Protocols</a></li></ul>", |
- | "<ul><li><a>LacI</a></li><li><a>TetR</a></li><li><a>λ cI</a></li></ul>", | + | "<ul><li><a href=https://2011.igem.org/Team:UC_Davis/Data>Overview</a></li><li><a href=https://2011.igem.org/Team:UC_Davis/Data_LacI>LacI</a></li><li><a href=https://2011.igem.org/Team:UC_Davis/Data_TetR>TetR</a></li><li><a href = 'https://2011.igem.org/Team:UC_Davis/Data_LambdacI'>λ cI</a></li></ul>", |
- | "", | + | "<ul><li><a href='https://2011.igem.org/Team:UC_Davis/Attributions'>Overview</a></li><li><a href='https://2011.igem.org/Team:UC_Davis/Sponsors'>Our Sponsors</a></li></ul>", |
- | "<ul><li><a href=http://partsregistry.org/Main_Page>Parts Registry</a></li><li><a href=https://igem.org/About>About</a></li></ul>", | + | "<ul><li><a href='https://2011.igem.org/Main_Page' target='_blank'>iGEM Main Page</a></li><li><a href='http://partsregistry.org/Main_Page' target='_blank'>Parts Registry</a></li><li><a href='https://igem.org/About' target='_blank'>About</a></li><li><a href='https://2011.igem.org/Team:UC_Davis/Criteria'>Criteria</a></li></ul>", |
]; | ]; | ||
Line 123: | Line 122: | ||
left:$target.parent().position().left-(newwidth-$target.parent().outerWidth())/2, | left:$target.parent().position().left-(newwidth-$target.parent().outerWidth())/2, | ||
- | height:$contentbox.outerHeight()+$menulinks.eq(0).outerHeight() | + | height:$contentbox.outerHeight()+$menulinks.eq(0).outerHeight()},setting.fxtime,setting.fx); |
$target.dequeue().animate({color:colorsarray[$target.parent().index()]}, | $target.dequeue().animate({color:colorsarray[$target.parent().index()]}, | ||
Line 161: | Line 160: | ||
$(document).ready(function() { | $(document).ready(function() { | ||
- | window.$ = jQuery; | + | window.$ = jQuery; |
+ | $('#linktable td').click(function(){ | ||
+ | window.location = "https://2011.igem.org/Team:UC_Davis/Notebook/Week_" + $(this).text(); | ||
+ | }); | ||
+ | var urlpieces = window.location.href.split('/'); | ||
+ | if(urlpieces[urlpieces.length-2] == 'Notebook') | ||
+ | { | ||
+ | var weeknum = urlpieces[urlpieces.length-1].split('_'); | ||
+ | weeknum = parseInt(weeknum[1]); | ||
+ | if(weeknum) | ||
+ | { | ||
+ | $('#linktable td').eq(weeknum-1).mouseover().unbind(); | ||
+ | } | ||
+ | |||
+ | } | ||
$('.floatbox a').css('color', linkcolorsarray[thispagenumber]); | $('.floatbox a').css('color', linkcolorsarray[thispagenumber]); | ||
$('.sponsorfloat a').css('color', linkcolorsarray[thispagenumber]); | $('.sponsorfloat a').css('color', linkcolorsarray[thispagenumber]); | ||
$('.floatbox *').replaceText(/(Bba\_)/gi, ''); | $('.floatbox *').replaceText(/(Bba\_)/gi, ''); | ||
- | $('.floatbox *').replaceText(/\b([A-Z]\d{4,})\b/gi, '<a href="http://partsregistry.org/Part:BBa_$1" class="partsreglink">BBa_$1</a>'); | + | $('.floatbox *').replaceText(/\b([A-Z]\d{4,})\b/gi, '<a href="http://partsregistry.org/Part:BBa_$1" class="partsreglink" target="_blank">BBa_$1</a>'); |
- | $('.floatbox *').replaceText(/\b(pSB\d[A-Z]+\d)\b/gi, '<a href="http://partsregistry.org/Part:$1" class="partsreglink">$1</a>'); | + | $('.floatbox *').replaceText(/\b(pSB\d[A-Z]+\d)\b/gi, '<a href="http://partsregistry.org/Part:$1" class="partsreglink" target="_blank">$1</a>'); |
}); | }); | ||
</script> | </script> | ||
Line 315: | Line 328: | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
background-attachment:fixed; | background-attachment:fixed; | ||
+ | font-family: Helvetica, sans-serif; | ||
} | } | ||
Line 349: | Line 363: | ||
{ | { | ||
visibility: hidden; | visibility: hidden; | ||
+ | } | ||
+ | |||
+ | .floatbox img | ||
+ | { | ||
+ | margin-right: 10px; | ||
+ | } | ||
+ | |||
+ | .floatbox2 img | ||
+ | { | ||
+ | margin-right: 10px; | ||
+ | } | ||
+ | |||
+ | .floatbox3 img | ||
+ | { | ||
+ | margin-right: 10px; | ||
} | } | ||
Line 355: | Line 384: | ||
width:707px; | width:707px; | ||
float:left; | float:left; | ||
- | background-color: rgba(0,0,0,. | + | background-color: rgba(0,0,0,.65); |
- | margin-top: | + | margin-top: 5px; |
border-radius: 4px; | border-radius: 4px; | ||
padding: 15px 15px 15px 15px; | padding: 15px 15px 15px 15px; | ||
Line 373: | Line 402: | ||
width:677px; | width:677px; | ||
float:left; | float:left; | ||
- | background-color: rgba(0,0,0,. | + | background-color: rgba(0,0,0,.4); |
- | margin-top: | + | margin-top: 5px; |
border-radius: 4px; | border-radius: 4px; | ||
padding: 0px 15px 15px 15px; | padding: 0px 15px 15px 15px; | ||
Line 386: | Line 415: | ||
width:677px; | width:677px; | ||
float:left; | float:left; | ||
- | background-color: rgba(0,0,0,. | + | background-color: rgba(0,0,0,.4); |
+ | margin-top: 0px; | ||
+ | border-radius: 4px; | ||
+ | padding: 15px 15px 15px 15px; | ||
+ | font: sans-serif; | ||
+ | font-size: 13px; | ||
+ | color: rgba(225,225,225,1); | ||
+ | } | ||
+ | |||
+ | .floatboxleft | ||
+ | { | ||
+ | width:318px; | ||
+ | background-color: rgba(0,0,0,.4); | ||
margin-top: 10px; | margin-top: 10px; | ||
+ | margin-right: 5px; | ||
border-radius: 4px; | border-radius: 4px; | ||
padding: 15px 15px 15px 15px; | padding: 15px 15px 15px 15px; | ||
Line 393: | Line 435: | ||
font-size: 13px; | font-size: 13px; | ||
color: rgba(225,225,225,1); | color: rgba(225,225,225,1); | ||
+ | float: left; | ||
+ | } | ||
+ | |||
+ | .floatboxright | ||
+ | { | ||
+ | width:318px; | ||
+ | background-color: rgba(0,0,0,.4); | ||
+ | margin-top: 10px; | ||
+ | margin-left: 5px; | ||
+ | border-radius: 4px; | ||
+ | padding: 15px 15px 15px 15px; | ||
+ | font: sans-serif; | ||
+ | font-size: 13px; | ||
+ | color: rgba(225,225,225,1); | ||
+ | float: right; | ||
} | } | ||
Line 413: | Line 470: | ||
.sponsorfloat img | .sponsorfloat img | ||
{ | { | ||
- | margin-top: | + | margin-top: 5px; |
+ | margin-bottom: 5px; | ||
+ | padding: 0px; | ||
+ | } | ||
+ | |||
+ | |||
+ | #linktable td { | ||
+ | top: 25px; | ||
+ | right: 25px; | ||
+ | margin: 2px; | ||
+ | display: inline-block; | ||
+ | background: rgba(200,200,200,.4); | ||
+ | padding: 3px 11px 3px 11px; | ||
+ | border-radius: 5px; | ||
+ | color: rgba(225,225,225,1); | ||
+ | opacity:.3; | ||
+ | width: 14px; | ||
+ | text-align: center; | ||
+ | cursor: pointer; | ||
+ | } | ||
+ | #linktable td a:hover { | ||
+ | text-decoration:none; | ||
} | } | ||
</style> | </style> | ||
- | + | ||
+ | <script> | ||
+ | </script> | ||
Line 436: | Line 516: | ||
<li><a href="https://2011.igem.org/Team:UC_Davis/Data">Data</a></li> | <li><a href="https://2011.igem.org/Team:UC_Davis/Data">Data</a></li> | ||
<li><a href="https://2011.igem.org/Team:UC_Davis/Attributions">Attributions</a></li> | <li><a href="https://2011.igem.org/Team:UC_Davis/Attributions">Attributions</a></li> | ||
- | <li><a href="https://igem.org/ | + | <li><a href="https://2011.igem.org/Team:UC_Davis/iGEM">iGEM</a></li> |
Line 446: | Line 526: | ||
</div><!--/nav--> | </div><!--/nav--> | ||
</div><!--/navcon--> | </div><!--/navcon--> | ||
- | |||
</body> | </body> | ||
</html> | </html> | ||
- | |||
{{Team:UC_Davis/Sponsors}} | {{Team:UC_Davis/Sponsors}} |
Latest revision as of 19:59, 23 October 2011