Template:Peking2012 Color Prologue
From 2012.igem.org
(Difference between revisions)
m |
m |
||
(64 intermediate revisions not shown) | |||
Line 4: | Line 4: | ||
/* | /* | ||
* Peking 2012 Header | * Peking 2012 Header | ||
- | * | + | * Copyleft (C) Sun Sibai <sun.niasw@gmail.com> |
* this = /Template:Peking2012_Color_Prologue | * this = /Template:Peking2012_Color_Prologue | ||
*/ | */ | ||
Line 28: | Line 28: | ||
background-position: 50% 0; | background-position: 50% 0; | ||
background-repeat: no-repeat; | background-repeat: no-repeat; | ||
- | background-image: url("/wiki/images/ | + | background-image: url("/wiki/images/d/d7/Peking2012_Color_Background_Large.jpg"); |
overflow: hidden; | overflow: hidden; | ||
} | } | ||
Line 75: | Line 75: | ||
#content a:hover | #content a:hover | ||
{ | { | ||
- | color: # | + | color: #fff350; |
display: inline; | display: inline; | ||
} | } | ||
Line 94: | Line 94: | ||
display: inline; | display: inline; | ||
} | } | ||
- | + | ul,li | |
- | ul , li | + | |
{ | { | ||
margin: 0; | margin: 0; | ||
Line 101: | Line 100: | ||
list-style-image: none; | list-style-image: none; | ||
list-style-type: none; | list-style-type: none; | ||
+ | } | ||
+ | table | ||
+ | { | ||
+ | border-collapse:collapse; | ||
+ | background-color: transparent; | ||
+ | color: #ffffff; | ||
+ | text-align: justify; | ||
} | } | ||
h3 | h3 | ||
Line 224: | Line 230: | ||
{ | { | ||
padding: 0; | padding: 0; | ||
- | margin: 0 auto | + | margin: 0 auto; |
text-align: center; | text-align: center; | ||
- | z-index: 0; | + | z-index: 1; |
+ | position: relative; | ||
+ | top: 0; | ||
} | } | ||
#PKU_banner_image | #PKU_banner_image | ||
Line 235: | Line 243: | ||
#PKU_banner_logo | #PKU_banner_logo | ||
{ | { | ||
- | width: | + | width: 60px; |
height: 60px; | height: 60px; | ||
text-align: center; | text-align: center; | ||
Line 242: | Line 250: | ||
font-size: 15px; | font-size: 15px; | ||
font-variant: small-caps; | font-variant: small-caps; | ||
+ | letter-spacing: 2px; | ||
padding-top: 10px; | padding-top: 10px; | ||
} | } | ||
Line 256: | Line 265: | ||
text-align: center; | text-align: center; | ||
font-size: 15px; | font-size: 15px; | ||
- | font-family: serif; | + | font-family: Georgia, serif; |
overflow: hidden; | overflow: hidden; | ||
- | |||
} | } | ||
#PKU_banner_menu a , | #PKU_banner_menu a , | ||
Line 278: | Line 286: | ||
#PKU_banner_submenu > li ul | #PKU_banner_submenu > li ul | ||
{ | { | ||
- | height: | + | height: 130px; |
overflow: hidden; | overflow: hidden; | ||
text-align: center; | text-align: center; | ||
Line 288: | Line 296: | ||
#PKU_banner_submenu > li ul > li | #PKU_banner_submenu > li ul > li | ||
{ | { | ||
- | height: | + | height: 25px; |
width: 100%; | width: 100%; | ||
- | background-color: # | + | background-color: #3570ff; |
opacity: 0.85; | opacity: 0.85; | ||
} | } | ||
#PKU_banner_submenu > li ul > li:hover | #PKU_banner_submenu > li ul > li:hover | ||
{ | { | ||
- | background-color: # | + | background-color: #80aaff; |
opacity: 1.0; | opacity: 1.0; | ||
} | } | ||
Line 302: | Line 310: | ||
#PKU_banner_submenu > li ul > li a:visited | #PKU_banner_submenu > li ul > li a:visited | ||
{ | { | ||
- | color: # | + | color: #f0f0f0; |
text-decoration: none; | text-decoration: none; | ||
+ | padding-top: 2px; | ||
+ | vertical-align: middle; | ||
} | } | ||
#PKU_banner_submenu > li ul > li a:hover , | #PKU_banner_submenu > li ul > li a:hover , | ||
#PKU_banner_submenu > li ul > li a:active | #PKU_banner_submenu > li ul > li a:active | ||
{ | { | ||
- | color: # | + | color: #ffffcc; |
text-decoration: none; | text-decoration: none; | ||
} | } | ||
Line 315: | Line 325: | ||
#text-body | #text-body | ||
{ | { | ||
+ | position: relative; | ||
+ | top: -90px; | ||
z-index: 1; | z-index: 1; | ||
} | } | ||
- | #text-body | + | #text-body #PKU_subsubmenu |
{ | { | ||
background-color: transparent; | background-color: transparent; | ||
padding: 0; | padding: 0; | ||
+ | margin: 0; | ||
+ | } | ||
+ | #text-body #PKU_subsubmenu a, | ||
+ | #text-body #PKU_subsubmenu a:link, | ||
+ | #text-body #PKU_subsubmenu a:visited | ||
+ | { | ||
+ | color: #eeeeee; | ||
+ | } | ||
+ | #text-body #PKU_subsubmenu a:hover, | ||
+ | #text-body #PKU_subsubmenu a:active | ||
+ | { | ||
+ | color: #ffffff; | ||
+ | } | ||
+ | #text-body ul#PKU_subsubmenu > li | ||
+ | { | ||
+ | width: 184px; | ||
+ | overflow: hidden; | ||
+ | line-height: 20px; | ||
+ | vertical-align: middle; | ||
+ | padding: 13px 18px; | ||
+ | text-align: left; | ||
+ | font-family: Eras Medium ITC, Verdana, sans-serif; | ||
+ | } | ||
+ | #text-body ul#PKU_subsubmenu > li.trunk | ||
+ | { | ||
+ | margin-top: 20px; | ||
+ | font-size: 18px; | ||
+ | background-position: 50% 50%; | ||
+ | } | ||
+ | #text-body ul#PKU_subsubmenu > li:first-child | ||
+ | { | ||
+ | margin-top: 0; | ||
+ | } | ||
+ | #text-body ul#PKU_subsubmenu > li.branch | ||
+ | { | ||
+ | padding: 7px 17px; | ||
margin: 0; | margin: 0; | ||
border-style: solid; | border-style: solid; | ||
border-width: 1px; | border-width: 1px; | ||
- | border-color: # | + | border-color: #70a0ff; |
+ | font-size: 14px; | ||
+ | height: 0; | ||
+ | } | ||
+ | #text-body ul#PKU_subsubmenu > li.branch li | ||
+ | { | ||
+ | line-height: 30px; | ||
+ | vertical-align: middle; | ||
+ | } | ||
+ | |||
+ | #text-body .PKU_context | ||
+ | { | ||
+ | background-color: transparent; | ||
+ | color: #ffffff; | ||
+ | padding: 25px; | ||
+ | margin: 20px 0; | ||
+ | border-style: solid; | ||
+ | border-width: 1px; | ||
+ | border-color: #70a0ff; | ||
text-align: center; | text-align: center; | ||
font-family: Arial, sans-serif; | font-family: Arial, sans-serif; | ||
} | } | ||
- | + | #text-body .PKU_context.first | |
+ | { | ||
+ | margin-top: 0; | ||
+ | } | ||
#text-body .PKU_context * | #text-body .PKU_context * | ||
{ | { | ||
margin: 0; | margin: 0; | ||
+ | } | ||
+ | #text-body .PKU_context table | ||
+ | { | ||
+ | margin: 0 auto; | ||
+ | width: 560px; | ||
+ | font-size: 15px; | ||
+ | } | ||
+ | #text-body .PKU_context table td | ||
+ | { | ||
+ | border-style: solid; | ||
+ | border-color: #ffffff; | ||
+ | border-width: 1px; | ||
} | } | ||
#text-body .PKU_context p | #text-body .PKU_context p | ||
{ | { | ||
font-size: 16px; | font-size: 16px; | ||
- | padding: | + | padding: 10px; |
text-align: justify; | text-align: justify; | ||
} | } | ||
Line 343: | Line 424: | ||
{ | { | ||
text-align: left; | text-align: left; | ||
- | color: # | + | color: #70d0ff; |
- | font-size: | + | font-size: 30px; |
- | padding: | + | padding: 10px; |
+ | line-height: 33px; | ||
} | } | ||
- | #text-body .PKU_context. | + | #text-body .PKU_context ul, |
+ | #text-body .PKU_context li | ||
{ | { | ||
- | + | text-align: justify; | |
+ | font-size: 16px; | ||
} | } | ||
- | #text-body .PKU_context. | + | #text-body .PKU_context ul.refer li |
{ | { | ||
- | + | font-size: 15px; | |
} | } | ||
- | #text-body .PKU_context | + | #text-body .PKU_context ul.refer |
- | + | ||
{ | { | ||
- | padding: | + | padding-left: 10px; |
+ | width: 655px; | ||
+ | } | ||
+ | #text-body .PKU_context ul | ||
+ | { | ||
+ | padding-left: 20px; | ||
+ | width: 570px; | ||
+ | } | ||
+ | #text-body .PKU_context.floatC p | ||
+ | { | ||
+ | width: 887px; | ||
+ | } | ||
+ | #text-body .PKU_context.floatR p | ||
+ | { | ||
+ | width: 655px; | ||
} | } | ||
- | #text-body .PKU_context p.description | + | #text-body .PKU_context.floatR p.description |
{ | { | ||
font-style: italic; | font-style: italic; | ||
Line 367: | Line 464: | ||
padding: 10px 10px; | padding: 10px 10px; | ||
text-align: justify; | text-align: justify; | ||
- | width: | + | width: 550px; |
} | } | ||
- | + | #text-body .PKU_context img , | |
- | . | + | #text-body .PKU_context object |
{ | { | ||
- | + | padding: 0; | |
} | } | ||
Line 456: | Line 553: | ||
pkutopa[12].href = 'https://2012.igem.org/wiki/index.php?title=Special:UserLogin' + '&'.substring(0,1) + 'returnto=' + thispage; | pkutopa[12].href = 'https://2012.igem.org/wiki/index.php?title=Special:UserLogin' + '&'.substring(0,1) + 'returnto=' + thispage; | ||
- | var | + | var userbar = document.getElementById('pt-userpage'); |
var username; | var username; | ||
+ | var userstr; | ||
- | if ( | + | if (userbar!=null) |
{ | { | ||
- | username = | + | userstr = userbar.innerHTML; |
+ | username = userstr.substring(userstr.lastIndexOf('<'),userstr.indexOf('>')+1); | ||
pkutopa[17].innerHTML = username; | pkutopa[17].innerHTML = username; | ||
pkutopa[17].href = 'https://2012.igem.org/User:' + username; | pkutopa[17].href = 'https://2012.igem.org/User:' + username; | ||
Line 469: | Line 568: | ||
pkutopli[5].style.display='inline'; | pkutopli[5].style.display='inline'; | ||
pkutopli[6].style.display='none'; | pkutopli[6].style.display='none'; | ||
- | + | userstr = document.getElementById('menubar').innerHTML; | |
- | if ( | + | if (userstr.search('unwatch')!=-1) |
{ | { | ||
pkutopli[2].style.display='none'; | pkutopli[2].style.display='none'; | ||
pkutopli[3].style.display='inline'; | pkutopli[3].style.display='inline'; | ||
} | } | ||
- | else if ( | + | else if (userstr.search('watch')!=-1) |
{ | { | ||
pkutopli[2].style.display='inline'; | pkutopli[2].style.display='inline'; | ||
Line 497: | Line 596: | ||
</script> | </script> | ||
- | <div class="floatC"><p class="blank"> </p></div> | + | <div class="floatC"><p class="blank" style="height:20px;"> </p></div> |
<div id="PKU_banner_container"> | <div id="PKU_banner_container"> | ||
<div class="floatL"> | <div class="floatL"> | ||
Line 503: | Line 602: | ||
</div> | </div> | ||
<div class="floatR"> | <div class="floatR"> | ||
- | <p id="PKU_banner_logo"><img style="width:50px;margin-right: | + | <p id="PKU_banner_logo"><img style="width:50px;margin-right:0;" src="/wiki/images/8/85/Peking2012_Color_Logo_128.png" alt="" /></p> |
</div> | </div> | ||
<div class="floatR"> | <div class="floatR"> | ||
Line 513: | Line 612: | ||
</li> | </li> | ||
<li style="width:60px;"> | <li style="width:60px;"> | ||
- | <a onmouseover="TriggerSubmenu(1);" onmouseout="TriggerSubmenu(0); | + | <a onmouseover="TriggerSubmenu(1);" onmouseout="TriggerSubmenu(0);"> |
Team | Team | ||
</a> | </a> | ||
</li> | </li> | ||
<li style="width:70px;"> | <li style="width:70px;"> | ||
- | <a onmouseover="TriggerSubmenu(2);" onmouseout="TriggerSubmenu(0); | + | <a onmouseover="TriggerSubmenu(2);" onmouseout="TriggerSubmenu(0);"> |
Project | Project | ||
</a> | </a> | ||
</li> | </li> | ||
<li style="width:85px;"> | <li style="width:85px;"> | ||
- | <a onmouseover="TriggerSubmenu( | + | <a onmouseover="TriggerSubmenu(3);" onmouseout="TriggerSubmenu(0);"> |
Data Page | Data Page | ||
</a> | </a> | ||
</li> | </li> | ||
<li style="width:80px;"> | <li style="width:80px;"> | ||
- | <a onmouseover="TriggerSubmenu( | + | <a onmouseover="TriggerSubmenu(4);" onmouseout="TriggerSubmenu(0);"> |
Modeling | Modeling | ||
</a> | </a> | ||
</li> | </li> | ||
<li style="width:130px;"> | <li style="width:130px;"> | ||
- | <a onmouseover="TriggerSubmenu( | + | <a onmouseover="TriggerSubmenu(5);" onmouseout="TriggerSubmenu(0);"> |
Human Practice | Human Practice | ||
</a> | </a> | ||
Line 557: | Line 656: | ||
</li> | </li> | ||
<li class="submenu_team"> | <li class="submenu_team"> | ||
- | <a href="/Team:Peking/Team/ | + | <a href="/Team:Peking/Team/Protocol"> |
- | + | Protocol | |
</a> | </a> | ||
</li> | </li> | ||
<li class="submenu_team"> | <li class="submenu_team"> | ||
- | <a href="/Team:Peking/Team/ | + | <a href="/Team:Peking/Team/AA"> |
- | + | Attribution | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
</a> | </a> | ||
</li> | </li> | ||
Line 575: | Line 669: | ||
<li> | <li> | ||
<ul onmouseover="TriggerSubmenu(2);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:200px;display:block;"> | <ul onmouseover="TriggerSubmenu(2);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:200px;display:block;"> | ||
+ | <li class="submenu_project"> | ||
+ | <a href="/Team:Peking/Project"> | ||
+ | Overview | ||
+ | </a> | ||
+ | </li> | ||
<li class="submenu_project"> | <li class="submenu_project"> | ||
<a href="/Team:Peking/Project/Luminesensor"> | <a href="/Team:Peking/Project/Luminesensor"> | ||
Line 581: | Line 680: | ||
</li> | </li> | ||
<li class="submenu_project"> | <li class="submenu_project"> | ||
- | <a href="/Team:Peking/Project/ | + | <a href="/Team:Peking/Project/Communication"> |
Light Communication | Light Communication | ||
</a> | </a> | ||
</li> | </li> | ||
<li class="submenu_project"> | <li class="submenu_project"> | ||
- | <a href="/Team:Peking/Project/ | + | <a href="/Team:Peking/Project/3D"> |
Synbio in 2D & 3D | Synbio in 2D & 3D | ||
</a> | </a> | ||
Line 598: | Line 697: | ||
</li> | </li> | ||
<li> | <li> | ||
- | <ul onmouseover="TriggerSubmenu(3);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width: | + | <ul onmouseover="TriggerSubmenu(3);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:170px;display:block;"> |
- | <li class=" | + | <li class="submenu_project"> |
- | <a href="/Team:Peking/ | + | <a href="/Team:Peking/DataPage"> |
- | + | Data Page | |
</a> | </a> | ||
</li> | </li> | ||
+ | <li class="submenu_project"> | ||
+ | <a href="/Team:Peking/DataPage/Judging"> | ||
+ | Judging Criteria | ||
+ | </a> | ||
+ | </li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li> | ||
+ | <ul onmouseover="TriggerSubmenu(4);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:250px;display:block;"> | ||
<li class="submenu_modeling"> | <li class="submenu_modeling"> | ||
- | <a href="/Team:Peking/Modeling | + | <a href="/Team:Peking/Modeling"> |
- | + | Overview | |
</a> | </a> | ||
</li> | </li> | ||
- | + | <li class="submenu_modeling"> | |
- | <a href="/Team:Peking/Modeling/ | + | <a href="/Team:Peking/Modeling/Luminesensor"> |
- | + | Luminesensor | |
</a> | </a> | ||
- | </li | + | </li> |
<li class="submenu_modeling"> | <li class="submenu_modeling"> | ||
<a href="/Team:Peking/Modeling/Phototaxis"> | <a href="/Team:Peking/Modeling/Phototaxis"> | ||
Phototaxis Simulation | Phototaxis Simulation | ||
+ | </a> | ||
+ | </li> | ||
+ | <li class="submenu_modeling"> | ||
+ | <a href="/Team:Peking/Modeling/Ring"> | ||
+ | Ring Pattern | ||
</a> | </a> | ||
</li> | </li> | ||
Line 622: | Line 735: | ||
</li> | </li> | ||
<li> | <li> | ||
- | <ul onmouseover="TriggerSubmenu( | + | <ul onmouseover="TriggerSubmenu(5);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:320px;display:block;"> |
<li class="submenu_humanpractice"> | <li class="submenu_humanpractice"> | ||
- | <a href="/Team:Peking/HumanPractice/ | + | <a href="/Team:Peking/HumanPractice/Sowing"> |
- | Sowing Tomorrow Synthetic Biologists | + | Sowing Tomorrow's Synthetic Biologists |
</a> | </a> | ||
</li> | </li> | ||
<li class="submenu_humanpractice"> | <li class="submenu_humanpractice"> | ||
- | <a href="/Team:Peking/HumanPractice/ | + | <a href="/Team:Peking/HumanPractice/Review"> |
Historic iGEM Projects Review | Historic iGEM Projects Review | ||
</a> | </a> | ||
</li> | </li> | ||
<li class="submenu_humanpractice"> | <li class="submenu_humanpractice"> | ||
- | <a href="/Team:Peking/HumanPractice/ | + | <a href="/Team:Peking/HumanPractice/Outreach/Visiting"> |
Outreach & Workshop | Outreach & Workshop | ||
</a> | </a> | ||
Line 643: | Line 756: | ||
</div> | </div> | ||
</div> | </div> | ||
- | |||
- | |||
- | |||
- | |||
<script type="text/javascript" > | <script type="text/javascript" > | ||
Line 655: | Line 764: | ||
*/ | */ | ||
- | var Submenu_Size_Cur = [ | + | var Submenu_Size_Cur = [130, 0, 0, 0, 0, 0]; |
- | var Submenu_Item_Num = | + | var Submenu_Item_Num = 5; |
var Submenu_Item_Des = 0; | var Submenu_Item_Des = 0; | ||
var Submenu_Item_Cur = 0; | var Submenu_Item_Cur = 0; | ||
- | var Submenu_BlankWidth = [0, | + | var Submenu_BlankWidth = [0, 445, 470, 562, 608, 640]; //Unit: Pixel |
- | var Submenu_ListHeight = [ | + | var Submenu_ListHeight = [130, 75, 125, 50, 100, 75]; //Unit: Pixel |
var Submenu_Handle_State = 0; //0:Null, 1:Growth, 2:Waiting, 3:Wither | var Submenu_Handle_State = 0; //0:Null, 1:Growth, 2:Waiting, 3:Wither | ||
var Submenu_Handle = null; | var Submenu_Handle = null; | ||
Line 672: | Line 781: | ||
Submenu_Obj[it].style.display='none'; | Submenu_Obj[it].style.display='none'; | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
/* Automatic Function */ | /* Automatic Function */ | ||
function ItemGrowth() | function ItemGrowth() | ||
{ | { | ||
- | Submenu_Size_Cur[Submenu_Item_Cur] = Submenu_Size_Cur[Submenu_Item_Cur] * 0.6 + Submenu_ListHeight[Submenu_Item_Cur] * 1. | + | Submenu_Size_Cur[Submenu_Item_Cur] = Submenu_Size_Cur[Submenu_Item_Cur] * 0.6 + Submenu_ListHeight[Submenu_Item_Cur] * 1.2 * 0.4; |
if (Submenu_Size_Cur[Submenu_Item_Cur]>=Submenu_ListHeight[Submenu_Item_Cur]) | if (Submenu_Size_Cur[Submenu_Item_Cur]>=Submenu_ListHeight[Submenu_Item_Cur]) | ||
{ | { | ||
Line 695: | Line 800: | ||
function ItemWither() | function ItemWither() | ||
{ | { | ||
- | Submenu_Size_Cur[Submenu_Item_Cur] = Submenu_Size_Cur[Submenu_Item_Cur] * 0.6 - | + | Submenu_Size_Cur[Submenu_Item_Cur] = Submenu_Size_Cur[Submenu_Item_Cur] * 0.6 - 5 * 0.4; |
if (Submenu_Size_Cur[Submenu_Item_Cur]<=0) | if (Submenu_Size_Cur[Submenu_Item_Cur]<=0) | ||
{ | { | ||
Line 719: | Line 824: | ||
else | else | ||
{ | { | ||
+ | Submenu_Obj[Submenu_Item_Cur-1].style.height=Submenu_Size_Cur[Submenu_Item_Cur]+'px'; | ||
Submenu_Handle = setTimeout(ItemWither,50); | Submenu_Handle = setTimeout(ItemWither,50); | ||
} | } | ||
- | |||
} | } | ||
function ToWither() | function ToWither() | ||
Line 731: | Line 836: | ||
function TriggerSubmenu(i) | function TriggerSubmenu(i) | ||
{ | { | ||
- | |||
- | |||
- | |||
if (Submenu_Handle_State==0) | if (Submenu_Handle_State==0) | ||
{ | { | ||
Line 803: | Line 905: | ||
} | } | ||
} | } | ||
- | |||
- | |||
- | |||
} | } | ||
</script> | </script> | ||
<div id="text-body"> | <div id="text-body"> | ||
</html> | </html> |
Latest revision as of 05:09, 26 October 2012