Team:Freiburg/Templates/html/js.html

From 2014.igem.org

(Difference between revisions)
Line 62: Line 62:
       });
       });
     $('header nav').on('affixed.bs.affix', function(){
     $('header nav').on('affixed.bs.affix', function(){
-
      //pad the content so the affixed navbar stays visible
+
        //pad the content so the affixed navbar stays visible
-
      $('body > .wrapper-outer').addClass('top-padded');
+
        $('body:not(.mediawiki) > .wrapper-outer').addClass('top-padded');
-
    });
+
        $('#bodyContent').addClass('top-padded');
-
    $('header nav').on('affixed-top.bs.affix', function(){
+
      });
-
      // remove padding if the nav bar is unaffixed
+
      $('header nav').on('affixed-top.bs.affix', function(){
-
      $('body > .wrapper-outer').removeClass('top-padded');
+
        // remove padding if the nav bar is unaffixed
-
    });
+
        $('body:not(.mediawiki) > .wrapper-outer').removeClass('top-padded');
 +
        $('#bodyContent').removeClass('top-padded');
 +
      });
     $('.accordion').accordion({
     $('.accordion').accordion({

Revision as of 17:46, 16 September 2014