Здраствуйте. Никак не могу найти, судя о всему, глупую ошибку. Код (Text): <style> * {margin: 0} header {background: blue; width: 100%; height: 80px; box-shadow: 0 0 15px rgba(122,122,122,0.8); position: fixed; top: 0; left: 0; overflow: hidden; -webkit-transition: height 0.3s; -moz-transition: height 0.3s; transition: height 0.3s} header.sticky { position: fixed; height: 48px; width: 100%; background: #efc47D; } </style> <header class="header"></header> <script type="text/javascript"> $(window).scroll(function() { if ($(this).scrollTop() > 1){ $('header').addClass("sticky"); } else{ $('header').removeClass("sticky"); } }); </script> <div style="padding-left: 20%; padding-right: 20%; background: #f2f2f2;"> <div style="background: white; width: 100%; min-height: 1000px; box-shadow: 0 0 15px rgba(122,122,122,0.8); margin-top: 70px">Тееееееееееекст</div> </div> <footer style="width: 100%; height: 120px; background: #73C35a"></footer> Почему может не работать скрипт?