var textBlock = $( ".textBlock" );
$( "#slider" ).slider({
create: function() {
textBlock.text( $( this ).slider( "value" ) );
},
slide: function( event, ui ) {
textBlock.text( ui.value );
}
});
var positionStickySupport = function () {
var el = document.createElement('a'),
mStyle = el.style;
mStyle.cssText = "position:sticky;position:-webkit-sticky;position:-ms-sticky;";
return mStyle.position.indexOf('sticky') !== -1;
}();
var footerOffset = $('.js-footer-offset').innerHeight() + 20;
if (!positionStickySupport) {
$.lockfixed(".sidebar-box--fixed", {offset: {top: 81, bottom: footerOffset}});
}