text: (function ($) {
    "use strict";
  
    // Bootstrap JS
    // @codekit-prepend "bootstrap/util.js";
    // @codekit-prepend "bootstrap/carousel.js";
    // @codekit-prepend "bootstrap/collapse.js";
    // @codekit-prepend "bootstrap/dropdown.js";
    // @codekit-prepend "bootstrap/modal.js";
  
    // Waypoints
    // @codekit-prepend "plugins/jquery.waypoints.min.js"
  
    // Placeholders
    // @codekit-prepend "plugins/jquery.placeholder.js";
  
    // Video JS
    // @codekit-prepend "plugins/video.js";
  
    // Vimeo modal autoplay
    // @codekit-prepend "plugins/jquery.vimeo.api.js";
  
    // Donut Chart
    // @codekit-prepend "plugins/chart.js";
  
  
    function navMobileCollapse() {
      // avoid having both mobile navs opened at the same time
      $('#collapsingMobileUser').on('show.bs.collapse', function () {
        $('#collapsingNavbar').removeClass('in');
        $('[data-target="#collapsingNavbar"]').attr('aria-expanded', 'false');
      });
      $('#collapsingNavbar').on('show.bs.collapse', function () {
        $('#collapsingMobileUser').removeClass('in');
        $('[data-target="#collapsingMobileUser"]').attr('aria-expanded', 'false');
      });
      // dark navbar
      $('#collapsingMobileUserInverse').on('show.bs.collapse', function () {
        $('#collapsingNavbarInverse').removeClass('in');
        $('[data-target="#collapsingNavbarInverse"]').attr('aria-expanded', 'false');
      });
      $('#collapsingNavbarInverse').on('show.bs.collapse', function () {
        $('#collapsingMobileUserInverse').removeClass('in');
        $('[data-target="#collapsingMobileUserInverse"]').attr('aria-expanded', 'false');
      });
    }
  
    function navSearch() {
      // hide first nav items when search is opened
      $('.nav-dropdown-search').on('show.bs.dropdown', function () {
        $(this).siblings().not('.navbar-nav .dropdown').addClass('sr-only');
      });
      // cursor focus
      $('.nav-dropdown-search').on('shown.bs.dropdown', function () {
        $('.navbar-search-input').focus();
      });
      // show all nav items when search is closed
      $('.nav-dropdown-search').on('hide.bs.dropdown', function () {
        $(this).siblings().removeClass('sr-only');
      });
    }
  
    function scrollToTop() {
      $('.scroll-top').on( 'click', function(){
        $('html, body').animate({
          scrollTop: 0
        }, 1000);
        return false;
      });
    }
  
  
    function init() {
      navMobileCollapse();
      navSearch();
      scrollToTop();
    }
  
    init();
  
  })(jQuery);
  