Sha256: 8d68caeb0c9385f60ebd9e8eac8d03aaa16e7df5d86d2f36691428ebfda11cc8
Contents?: true
Size: 862 Bytes
Versions: 44
Compression:
Stored size: 862 Bytes
Contents
scrollToComponentSection = ($component, duration = 0) -> sectionOffset = $component.closest('.component-section-item').offset().top + $('.navmenu').scrollTop() headerHeight = $('.navmenu .navmenu-brand').outerHeight() $('.navmenu-nav').scrollTo(sectionOffset - headerHeight, duration: duration) responsive_sidebar_navigation = -> # Scroll to active element's section on page change if ($activeItem = $('.component-item.active')).length scrollToComponentSection($activeItem) $('.component-item').on 'click', 'a', (e) -> scrollToComponentSection($(e.currentTarget), 150) $(document).on 'page:change turbolinks:load', -> responsive_sidebar_navigation() $(".selectize-tags").selectize delimiter: "," persist: false create: (input) -> value: input text: input $(window).resize -> responsive_sidebar_navigation()
Version data entries
44 entries across 44 versions & 1 rubygems