Line 778: | Line 778: | ||
}); | }); | ||
+ | |||
+ | $(window).load(function() { | ||
+ | $('li.notebook').addClass('active'); | ||
+ | $('li.n_over').addClass('active'); | ||
+ | |||
+ | $(".affix").css("width", $("#parent").width()); | ||
+ | }); | ||
+ | |||
+ | $(window).scroll(function() { | ||
+ | $(".affix").css("width", $("#parent").width()); | ||
+ | }); | ||
+ | |||
+ | $(window).resize(function() { | ||
+ | $(".affix").css("width", $("#parent").width()); | ||
+ | }); | ||
</script> | </script> | ||
Revision as of 16:30, 29 October 2017