Gifu/rensyuu

From 2014.igem.org

(Difference between revisions)
(Undo revision 406812 by Fukufuku (talk))
Line 99: Line 99:
};
};
 +
function catching(){
 +
BBB=setInterval(function(){
 +
rad+=2;
 +
if(rad==m){rad-=2,k-=2};
 +
if(rad==360){rad=0};
 +
x=r*Math.cos(Math.PI/180*rad);
 +
y=r*Math.sin(Math.PI/180*rad);
 +
circle.style.top=y+180+"px";
 +
circle.style.left=x+390+"px";
 +
 +
if(rad==m){k-=2;}
 +
else{k+=2;};
 +
if(rad==360){k=90};
 +
circle.style.transform="rotate("+k+"deg)";
 +
 +
},7);
 +
};
 +
 +
function stopmove1(){
 +
clearInterval(AAA);
 +
m=270;
 +
catching();
 +
};
 +
 +
function stopmove2(){
 +
clearInterval(AAA);
 +
m=342;
 +
catching();
 +
};
 +
 +
function stopmove3(){
 +
clearInterval(AAA);
 +
m=54;
 +
catching();
 +
};
 +
 +
function stopmove4(){
 +
clearInterval(AAA);
 +
m=126;
 +
catching();
 +
};
 +
 +
function stopmove5(){
 +
clearInterval(AAA);
 +
m=198;
 +
catching();
 +
};
 +
 +
function startmove(){
 +
clearInterval(BBB);
 +
spin();
 +
};
 +
 +
 +
function sakujo(){
 +
setTimeout(function(){
 +
$("#rib").css("visibility","hidden");
 +
},3000);
 +
};
 +
 +
$(function(){
 +
$("#menu1").mouseover(
 +
  function(){
 +
  $("#stopme").css("visibility","hidden")
 +
  $("#fukidasi1").css("visibility","visible")
 +
  $("#fukidasi2").css("visibility","hidden")
 +
  $("#fukidasi3").css("visibility","hidden")
 +
  $("#fukidasi4").css("visibility","hidden")
 +
  $("#fukidasi5").css("visibility","hidden")
 +
});
 +
}); 
 +
 +
$(function(){
 +
$("#menu2").mouseover(
 +
  function(){
 +
  $("#stopme").css("visibility","hidden")
 +
  $("#fukidasi2").css("visibility","visible")
 +
  $("#fukidasi1").css("visibility","hidden")
 +
  $("#fukidasi3").css("visibility","hidden")
 +
  $("#fukidasi4").css("visibility","hidden")
 +
  $("#fukidasi5").css("visibility","hidden")
 +
});
 +
}); 
 +
 
 +
$(function(){
 +
$("#menu3").mouseover(
 +
  function(){
 +
  $("#stopme").css("visibility","hidden")
 +
  $("#fukidasi3").css("visibility","visible")
 +
  $("#fukidasi1").css("visibility","hidden")
 +
  $("#fukidasi2").css("visibility","hidden")
 +
  $("#fukidasi4").css("visibility","hidden")
 +
  $("#fukidasi5").css("visibility","hidden")
 +
});
 +
}); 
 +
 +
$(function(){
 +
$("#menu4").mouseover(
 +
  function(){
 +
  $("#stopme").css("visibility","hidden")
 +
  $("#fukidasi4").css("visibility","visible")
 +
  $("#fukidasi1").css("visibility","hidden")
 +
  $("#fukidasi2").css("visibility","hidden")
 +
  $("#fukidasi3").css("visibility","hidden")
 +
  $("#fukidasi5").css("visibility","hidden")
 +
});
 +
}); 
 +
 +
$(function(){
 +
$("#menu5").mouseover(
 +
  function(){
 +
  $("#stopme").css("visibility","hidden")
 +
  $("#fukidasi5").css("visibility","visible")
 +
  $("#fukidasi1").css("visibility","hidden")
 +
  $("#fukidasi2").css("visibility","hidden")
 +
  $("#fukidasi3").css("visibility","hidden")
 +
  $("#fukidasi4").css("visibility","hidden")
 +
});
 +
}); 
 +
 +
$(function(){
 +
$("#rail").mouseout(
 +
  function(){
 +
  $("#stopme").css("visibility","visible")
 +
  $("#fukidasi1").css("visibility","hidden")
 +
  $("#fukidasi2").css("visibility","hidden")
 +
  $("#fukidasi3").css("visibility","hidden")
 +
  $("#fukidasi4").css("visibility","hidden")
 +
  $("#fukidasi5").css("visibility","hidden")
 +
});
 +
});

Revision as of 07:30, 5 September 2015

factory1