Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(document).ready(function () {
- $('#toggle').click(function (e) { $('#floating-topics').toggleClass('open'); });
- window.scrollTop = $(window).scrollTop();
- $(window).scroll(function (e) {
- var newScroll = $(window).scrollTop();
- var newPosition = newScroll - scrollTop + 'px';
- $('#floating-topics').css('top', newPosition);
- });
- });
Add Comment
Please, Sign In to add comment