Frio: sitck aside on page scroll

use sticky-kit jquery library to keep aside inside viewport
when user scrolls the page.
This commit is contained in:
fabrixxm 2017-04-22 20:36:48 +02:00
parent 5b731a60ae
commit e569e20caf
3 changed files with 17 additions and 0 deletions

View file

@ -315,6 +315,13 @@ $(document).ready(function(){
$(document).on('change', 'textarea', function(event) {
autosize.update(event.target);
});
/*
* Sticky aside on page scroll
*/
$("aside").stick_in_parent({
offset_top: 100 // px, header + tab bar + spacing
});
});
function openClose(theID) {