navbar.js 757 B

12345678910111213141516171819
  1. /*
  2. * To change this license header, choose License Headers in Project Properties.
  3. * To change this template file, choose Tools | Templates
  4. * and open the template in the editor.
  5. */
  6. $(document).ready(function () {
  7. console.log("ready navbar");
  8. // getting the color before the color is changed ( not sure this is needed )
  9. var thecolor = $('a.incognito').css("color");
  10. $("a.incognito").mouseover(function () {
  11. // setting the color previously picked
  12. $(this).css({'color': thecolor});
  13. });
  14. $(document.body).css('padding-top', $('#topnavbar').height() + 10);
  15. $(window).resize(function () {
  16. console.log("adding padding");
  17. $(document.body).css('padding-top', $('#topnavbar').height() + 10);
  18. });
  19. });