COSC4606-Assignment-02

Database front end that allows for CRUD operations and user management
git clone git://mattcarlson.org/repos/COSC4606-Assignment-02.git
Log | Files | Refs | README

nav.js (573B)


      1 $('#actions').click(function() { open(); });
      2 
      3 function open() {
      4     /* Expand nav */
      5     document.getElementById('nav').style.width = '23rem';
      6 
      7     /* Shift contents of page over */
      8     document.getElementById('header').style.marginLeft = '23rem';
      9     document.getElementById('main').style.marginLeft = '23rem';
     10 }
     11 
     12 function exit() {
     13     /* Contract nav */
     14     document.getElementById('nav').style.width = '0';
     15 
     16     /* Put contents back to normal */
     17     document.getElementById('header').style.marginLeft = '0';
     18     document.getElementById('main').style.marginLeft = '0';
     19 }