Template:Peking2012 Color Prologue

From 2012.igem.org

(Difference between revisions)
m
m
 
(63 intermediate revisions not shown)
Line 4: Line 4:
/*
/*
  * Peking 2012 Header
  * Peking 2012 Header
-
  * by Sun Sibai, Yang Lu
+
  * 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/5/50/Peking2012_Color_Background.jpg");
+
   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: #b3f3ff;
+
   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 -90px;
+
   margin: 0 auto;
   text-align: center;
   text-align: center;
-
   z-index: 5;
+
   z-index: 1;
 +
  position: relative;
 +
  top: 0;
}
}
#PKU_banner_image
#PKU_banner_image
Line 235: Line 243:
#PKU_banner_logo
#PKU_banner_logo
{
{
-
   width: 230px;
+
   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;
-
  z-index: 5;
 
}
}
#PKU_banner_menu a ,
#PKU_banner_menu a ,
Line 278: Line 286:
#PKU_banner_submenu > li ul
#PKU_banner_submenu > li ul
{
{
-
   height: 120px;
+
   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: 30px;
+
   height: 25px;
   width: 100%;
   width: 100%;
-
   background-color: #5555ff;
+
   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: #8888ff;
+
   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: #e3e3e3;
+
   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: #ffffff;
+
   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 .PKU_context
+
#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: #3010f0
+
   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: 10px 30px 10px;
+
   padding: 10px;
   text-align: justify;
   text-align: justify;
}
}
Line 343: Line 424:
{
{
   text-align: left;
   text-align: left;
-
   color: #ffffff;
+
   color: #70d0ff;
-
   font-size: 22px;
+
   font-size: 30px;
-
   padding: 30px 10px 10px;
+
   padding: 10px;
 +
  line-height: 33px;
}
}
-
#text-body .PKU_context.floatC p
+
#text-body .PKU_context ul,
 +
#text-body .PKU_context li
{
{
-
   width: 897px;
+
   text-align: justify;
 +
  font-size: 16px;
}
}
-
#text-body .PKU_context.floatR p
+
#text-body .PKU_context ul.refer li
{
{
-
   width: 590px;
+
   font-size: 15px;
}
}
-
#text-body .PKU_context img ,
+
#text-body .PKU_context ul.refer
-
#text-body .PKU_context object
+
{
{
-
   padding: 0;
+
   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: 500px;
+
   width: 550px;
}
}
-
 
+
#text-body .PKU_context img ,
-
.w
+
#text-body .PKU_context object
{
{
-
   color: #fffecc;
+
   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 tmpstr = document.getElementById('pt-userpage').innerHTML;
+
var userbar = document.getElementById('pt-userpage');
var username;
var username;
 +
var userstr;
-
if (tmpstr!=undefined)
+
if (userbar!=null)
{
{
-
   username = tmpstr.substring(tmpstr.lastIndexOf('<'),tmpstr.indexOf('>')+1);
+
  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';
-
   tmpstr = document.getElementById('menubar').innerHTML;
+
   userstr = document.getElementById('menubar').innerHTML;
-
   if (tmpstr.search('unwatch')!=-1)
+
   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 (tmpstr.search('watch')!=-1)
+
   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">&#32;</p></div>
+
<div class="floatC"><p class="blank" style="height:20px;">&#32;</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:15px;" src="/wiki/images/8/85/Peking2012_Color_Logo_128.png" alt="" />Peking University</p>
+
   <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);" href="/Team:Peking/Team">
+
     <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);" href="/Team:Peking/Project">
+
     <a onmouseover="TriggerSubmenu(2);" onmouseout="TriggerSubmenu(0);">
Project
Project
     </a>
     </a>
   </li>
   </li>
   <li style="width:85px;">
   <li style="width:85px;">
-
     <a onmouseover="TriggerSubmenu(0);" href="/Team:Peking/DataPage">
+
     <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(3);" onmouseout="TriggerSubmenu(0);" href="/Team:Peking/Modeling">
+
     <a onmouseover="TriggerSubmenu(4);" onmouseout="TriggerSubmenu(0);">
Modeling
Modeling
     </a>
     </a>
   </li>
   </li>
   <li style="width:130px;">
   <li style="width:130px;">
-
     <a onmouseover="TriggerSubmenu(4);" onmouseout="TriggerSubmenu(0);" href="/Team:Peking/HumanPractice">
+
     <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/Attribution">
+
       <a href="/Team:Peking/Team/Protocol">
-
Attribution
+
Protocol
       </a>
       </a>
     </li>
     </li>
     <li class="submenu_team">
     <li class="submenu_team">
-
       <a href="/Team:Peking/Team/Diary">
+
       <a href="/Team:Peking/Team/AA">
-
Diary
+
Attribution
-
      </a>
+
-
    </li>
+
-
    <li class="submenu_team">
+
-
      <a href="/Team:Peking/Team/History">
+
-
History
+
       </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/LightCommunication">
+
       <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/Synthetic3D">
+
       <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:250px;display:block;">
+
     <ul onmouseover="TriggerSubmenu(3);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:170px;display:block;">
-
     <li class="submenu_modeling">
+
     <li class="submenu_project">
-
       <a href="/Team:Peking/Modeling/Luminesensor">
+
       <a href="/Team:Peking/DataPage">
-
Luminesensor Optimization
+
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/Channel">
+
       <a href="/Team:Peking/Modeling">
-
New Communication Channel
+
Overview
       </a>
       </a>
     </li>
     </li>
-
<!-- <li class="submenu_modeling">
+
    <li class="submenu_modeling">
-
       <a href="/Team:Peking/Modeling/Ring">
+
       <a href="/Team:Peking/Modeling/Luminesensor">
-
Ring-Pattern Formation
+
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(4);" onmouseout="TriggerSubmenu(0);" class="vertical" style="width:320px;display:block;">
+
     <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/SowingTomorrowSyntheticBiologists">
+
       <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/HistoriciGEMProjectsReview">
+
       <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/OutreachAndWorkshop">
+
       <a href="/Team:Peking/HumanPractice/Outreach/Visiting">
Outreach & Workshop
Outreach & Workshop
       </a>
       </a>
Line 643: Line 756:
  </div>
  </div>
</div>
</div>
-
 
-
<!--DEBUG
 
-
<div class="floatC w"><p id="console" style="text-align:left;"></p><p id="output" style="text-align:left;"></p></div>
 
-
<!--GUBED-->
 
<script type="text/javascript" >
<script type="text/javascript" >
Line 655: Line 764:
  */
  */
-
var Submenu_Size_Cur = [120, 0, 0, 0, 0];
+
var Submenu_Size_Cur = [130, 0, 0, 0, 0, 0];
-
var Submenu_Item_Num = 4;
+
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, 440, 480, 570, 600]; //Unit: Pixel
+
var Submenu_BlankWidth = [0, 445, 470, 562, 608, 640]; //Unit: Pixel
-
var Submenu_ListHeight = [120, 120, 120, 90, 90]; //Unit: Pixel
+
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';
}
}
-
 
-
/*DEBUG
 
-
setInterval('document.getElementById("console").innerHTML=Submenu_Handle_State+" "+Submenu_Item_Cur+" "+Submenu_Item_Des+" "+Submenu_Handle+"<br>";',100);
 
-
/*GUBED*/
 
/* 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.05 * 0.4;
+
   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 - 2 * 0.4;
+
   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 714: Line 819:
       Submenu_Handle_State = 0;
       Submenu_Handle_State = 0;
       Submenu_Handle = null;
       Submenu_Handle = null;
-
       Submenu_Parent.style.zIndex = 2;
+
       Submenu_Parent.style.zIndex = 0;
     }
     }
   }
   }
   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);
   }
   }
-
  Submenu_Obj[Submenu_Item_Cur-1].style.height=Submenu_Size_Cur[Submenu_Item_Cur]+'px';
 
}
}
function ToWither()
function ToWither()
Line 731: Line 836:
function TriggerSubmenu(i)
function TriggerSubmenu(i)
{
{
-
/*DEBUG
 
-
document.getElementById("output").innerHTML+="Inital:("+i+") "+Submenu_Handle_State+" "+Submenu_Item_Cur+" "+Submenu_Item_Des+" "+Submenu_Handle+" ";
 
-
/*GUBED*/
 
   if (Submenu_Handle_State==0)
   if (Submenu_Handle_State==0)
   {
   {
Line 803: Line 905:
     }
     }
   }
   }
-
/*DEBUG
 
-
document.getElementById("output").innerHTML+="Final:"+Submenu_Handle_State+" "+Submenu_Item_Cur+" "+Submenu_Item_Des+" "+Submenu_Handle+"<br>";
 
-
/*GUBED*/
 
}
}
</script>
</script>
<div id="text-body">
<div id="text-body">
</html>
</html>

Latest revision as of 05:09, 26 October 2012