Team:UCLA/Template/Javascript

From 2014.igem.org

(Difference between revisions)
Line 169: Line 169:
     classie.toggle( menuRight, 'cbp-spmenu-open' );
     classie.toggle( menuRight, 'cbp-spmenu-open' );
     disableOther( 'showRight' );
     disableOther( 'showRight' );
-
};
 
-
showTop.onclick = function() {
 
-
    classie.toggle( this, 'active' );
 
-
    classie.toggle( menuTop, 'cbp-spmenu-open' );
 
-
    disableOther( 'showTop' );
 
-
};
 
-
showBottom.onclick = function() {
 
-
    classie.toggle( this, 'active' );
 
-
    classie.toggle( menuBottom, 'cbp-spmenu-open' );
 
-
    disableOther( 'showBottom' );
 
-
};
 
-
showLeftPush.onclick = function() {
 
-
    classie.toggle( this, 'active' );
 
-
    classie.toggle( body, 'cbp-spmenu-push-toright' );
 
-
    classie.toggle( menuLeft, 'cbp-spmenu-open' );
 
-
    disableOther( 'showLeftPush' );
 
-
};
 
-
showRightPush.onclick = function() {
 
-
    classie.toggle( this, 'active' );
 
-
    classie.toggle( body, 'cbp-spmenu-push-toleft' );
 
-
    classie.toggle( menuRight, 'cbp-spmenu-open' );
 
-
    disableOther( 'showRightPush' );
 
};
};
   
   

Revision as of 22:29, 6 August 2014