Template:Peking2012 Color Prologue

From 2012.igem.org

(Difference between revisions)
m
m
Line 290: Line 290:
   text-align: center;
   text-align: center;
}
}
-
#PKU_banner_menu > li ,
+
#PKU_banner_menu > li
-
#PKU_banner_submenu > li ul > li
+
{
{
   height: 30px;
   height: 30px;
Line 297: Line 296:
#PKU_banner_submenu > li ul > li
#PKU_banner_submenu > li ul > li
{
{
 +
  height: 30px;
   width: 100%;
   width: 100%;
-
}
 
-
#PKU_banner_submenu > li ul > li
 
-
{
 
   background-color: #5555ff;
   background-color: #5555ff;
   opacity: 0.85;
   opacity: 0.85;
Line 668: Line 665:
var Submenu_Item_Des = 0;
var Submenu_Item_Des = 0;
var Submenu_Item_Cur = 0;
var Submenu_Item_Cur = 0;
-
var Submenu_BlankWidth = [0, 450, 500, 600, 700]; //Unit: Pixel
+
var Submenu_BlankWidth = [0, 430, 460, 500, 600]; //Unit: Pixel
var Submenu_ListHeight = [120, 120, 120, 90, 90]; //Unit: Pixel
var Submenu_ListHeight = [120, 120, 120, 90, 90]; //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
Line 685: Line 682:
document.getElementById('console').innerHTML="Growth";
document.getElementById('console').innerHTML="Growth";
document.getElementById('terminal').innerHTML+=Submenu_Item_Cur+' '+Submenu_Item_Des+' '+Submenu_Handle_State+"<br />";
document.getElementById('terminal').innerHTML+=Submenu_Item_Cur+' '+Submenu_Item_Des+' '+Submenu_Handle_State+"<br />";
-
   Submenu_Size_Cur[Submenu_Item_Cur] = Submenu_Size_Cur[Submenu_Item_Cur] * 0.7 + Submenu_ListHeight[Submenu_Item_Cur] * 1.05 * 0.3;
+
   Submenu_Size_Cur[Submenu_Item_Cur] = Submenu_Size_Cur[Submenu_Item_Cur] * 0.6 + Submenu_ListHeight[Submenu_Item_Cur] * 1.05 * 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 703: Line 700:
document.getElementById('console').innerHTML="Wither";
document.getElementById('console').innerHTML="Wither";
document.getElementById('terminal').innerHTML+=Submenu_Item_Cur+' '+Submenu_Item_Des+' '+Submenu_Handle_State+"<br />";
document.getElementById('terminal').innerHTML+=Submenu_Item_Cur+' '+Submenu_Item_Des+' '+Submenu_Handle_State+"<br />";
-
   Submenu_Size_Cur[Submenu_Item_Cur] = Submenu_Size_Cur[Submenu_Item_Cur] * 0.7 - 0.1 * 1.05 * 0.3;
+
   Submenu_Size_Cur[Submenu_Item_Cur] = Submenu_Size_Cur[Submenu_Item_Cur] * 0.6 - 0.5 * 0.4;
   if (Submenu_Size_Cur[Submenu_Item_Cur]<=0)
   if (Submenu_Size_Cur[Submenu_Item_Cur]<=0)
   {
   {

Revision as of 15:27, 10 September 2012