Difference between revisions of "Template:BNU-CHINA/article"

Line 19: Line 19:
 
     console.log($("#top_menu_14").height());
 
     console.log($("#top_menu_14").height());
  
     $('.filter-button-group').on('click', 'li', function () {
+
     $(".sub-header").css({
        var filterValue = $(this).attr('data-filter');
+
        top": baseline - $(this).height()
        $people.isotope({filter: filterValue});
+
 
     });
 
     });
  
Line 39: Line 38:
 
         if (($(window).scrollTop() <= $(".navbar-siren").height())) {
 
         if (($(window).scrollTop() <= $(".navbar-siren").height())) {
 
             $(".sub-header").css({
 
             $(".sub-header").css({
                 "transform": "translate3D(0, "+baseline+"-100%, 0)",
+
                 "transform": "translate3D(0, -100%, 0)",
 
             });
 
             });
 
         } else {
 
         } else {
 
             $(".sub-header").css({
 
             $(".sub-header").css({
                 "transform": "translate3D(0, "+baseline+", 0)",
+
                 "transform": "translate3D(0, 0, 0)",
 
             });
 
             });
 
         }
 
         }

Revision as of 20:10, 17 September 2015