Difference between revisions of "Team:BostonU/HomeOne"

Line 70: Line 70:
 
       $("#four").css('display', 'none');  
 
       $("#four").css('display', 'none');  
 
       n = 2;}       
 
       n = 2;}       
      else if (n == 2) {
 
      $("#one").css('display', 'block');
 
      $("#two").css('display', 'none');
 
      $("#three").css('display', 'none');
 
      $("#four").css('display', 'none'); }
 
 
       else if (n==3) {
 
       else if (n==3) {
 
       $('#two').animate({'right':'10%'}, 500);
 
       $('#two').animate({'right':'10%'}, 500);
       $("#one").animate({'left':'110%'}, 500);
+
       $("#one").animate({'left':'110%'}, 500);}
      $("#three").css('display', 'none');
+
      $("#four").css('display', 'none');}
+
 
       else if (n==4) {
 
       else if (n==4) {
       $("#three").css('display', 'block');
+
       $('#three').animate({'right':'10%'}, 500);
      $("#one").css('display', 'none');
+
       $("#two").animate({'left':'110%'}, 500);}
       $("#two").css('display', 'none');
+
      $("#four").css('display', 'none');}
+
 
       else if (n==5) {
 
       else if (n==5) {
       $("#four").css('display', 'block');
+
       $('#four').animate({'right':'10%'}, 500);
      $("#one").css('display', 'none');
+
       $("#three").animate({'left':'110%'}, 500);}
      $("#two").css('display', 'none');
+
       $("#three").css('display', 'none');}
+
 
         });
 
         });
  

Revision as of 17:37, 15 August 2016

>
<