Template:Team:Oxford/scriptmain

From 2014.igem.org

(Difference between revisions)
Line 225: Line 225:
     $("#left").animate({left:'38.1%'});
     $("#left").animate({left:'38.1%'});
     $("#abstract").animate({width:'0%', left:'50%'});
     $("#abstract").animate({width:'0%', left:'50%'});
 +
    $("#menu1").animate({width:'0%', left:'50%'});
   });
   });
   $("#openmenu1").click(function(){
   $("#openmenu1").click(function(){
Line 263: Line 264:
   function hideabstract(x) {
   function hideabstract(x) {
     document.getElementById('abstract2').style.display = "none";
     document.getElementById('abstract2').style.display = "none";
 +
    document.getElementById('menu1').style.display = "none";
     document.getElementById('x').style.display = "none";
     document.getElementById('x').style.display = "none";
   }
   }
   function showabstract(x) {
   function showabstract(x) {
     document.getElementById('abstract2').style.display = "inline";
     document.getElementById('abstract2').style.display = "inline";
 +
    document.getElementById('x').style.display = "inline";
 +
    document.getElementById('DCMationwrap').style.display = "none";
 +
  }
 +
  function showmenu1(x) {
 +
    document.getElementById('menu1').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:20, 20 September 2014