Template:Team:Oxford/scriptmain

From 2014.igem.org

(Difference between revisions)
Line 227: Line 227:
   });
   });
   $("#openmenu1").click(function(){
   $("#openmenu1").click(function(){
 +
  $("#right").animate({left:'85%'});
 +
  $("#left").animate({left:'3.1%'});
 +
  $("#abstract").animate({width:'69.9%', left:'15.1%'});
 +
  });
 +
  $("#openmenu2").click(function(){
 +
  $("#right").animate({left:'85%'});
 +
  $("#left").animate({left:'3.1%'});
 +
  $("#abstract").animate({width:'69.9%', left:'15.1%'});
 +
  });
 +
  $("#openmenu3").click(function(){
   $("#right").animate({left:'85%'});
   $("#right").animate({left:'85%'});
   $("#left").animate({left:'3.1%'});
   $("#left").animate({left:'3.1%'});
Line 264: Line 274:
     document.getElementById('abstract2').style.display = "none";
     document.getElementById('abstract2').style.display = "none";
     document.getElementById('menu1').style.display = "none";
     document.getElementById('menu1').style.display = "none";
 +
    document.getElementById('menu2').style.display = "none";
 +
    document.getElementById('menu3').style.display = "none";
     document.getElementById('x').style.display = "none";
     document.getElementById('x').style.display = "none";
   }
   }
Line 273: Line 285:
   function showmenu1(x) {
   function showmenu1(x) {
     document.getElementById('menu1').style.display = "inline";
     document.getElementById('menu1').style.display = "inline";
 +
    document.getElementById('x').style.display = "inline";
 +
    document.getElementById('DCMationwrap').style.display = "none";
 +
  }
 +
  function showmenu2(x) {
 +
    document.getElementById('menu2').style.display = "inline";
 +
    document.getElementById('x').style.display = "inline";
 +
    document.getElementById('DCMationwrap').style.display = "none";
 +
  }
 +
  function showmenu3(x) {
 +
    document.getElementById('menu3').style.display = "inline";
     document.getElementById('x').style.display = "inline";
     document.getElementById('x').style.display = "inline";
     document.getElementById('DCMationwrap').style.display = "none";
     document.getElementById('DCMationwrap').style.display = "none";

Revision as of 02:43, 20 September 2014