This commit is contained in:
2015-04-16 13:50:31 +03:00
parent 2403169f43
commit 700743c0b0
126 changed files with 13285 additions and 1225 deletions

View File

@@ -0,0 +1,13 @@
(function() {
function onScroll(e) {
var sidebar = document.getElementById('sidebar-container-fixed');
if (window.scrollY > 0) {
sidebar.style.width = sidebar.offsetWidth + 'px'
sidebar.classList.add('sticky');
} else {
sidebar.style.width = 'auto'
sidebar.classList.remove('sticky');
}
}
document.addEventListener('scroll', onScroll);
})();