PageSourceSearch

https://visitlelandnc.com/sites/default/files/js/js_dku7nAKm64Scq2xKZ9_BE0T1lLS13EOq_39RRgGv8qE.js

js visitlelandnc.com collected 2026-10-02 20:19:17 UTC 6,729 bytes, 214 lines download raw bytes

1(function ($) {
2  $.fn.aria = function() {
3    onHide = function() {
4      var $li = this.closest('li.menuparent');
5
6      $li.attr('aria-expanded', false)
7        .children('ul').attr('aria-hidden', true);
8    },
9    onBeforeShow = function() {
10      var $li = this.closest('li.menuparent');
11
12      $li.attr('aria-expanded', true)
13        .children('ul').attr('aria-hidden', false);
14    };
15
16    return this.each(function() {
17      var o = $.fn.superfish.o[this.serial]; // Get this menu's options
18
19      // If callbacks already set, store them
20      var _onBeforeShow = o.onBeforeShow,
21      _onHide = o.onHide;
22
23      $.extend($.fn.superfish.o[this.serial],{
24        onBeforeShow: function() {
25          onBeforeShow.call(this);   // Fire our ARIA callback
26          _onBeforeShow.call(this);  // Fire stored callbacks
27        },
28        onHide: function() {
29          onHide.call(this);   // Fire our ARIA callback
30          _onHide.call(this);  // Fire stored callbacks
31        }
32      });
33    });
34  };
35})(jQuery);
36;
37/**
38 * @file
39 * script.js
40 */
41
42(function ($) {
43  'use strict';
44
45  $.fn.runOwlCar = function () {
46    $(".view-home-features .view-content").addClass('owl-carousel');
47    $(".view-home-features .view-content").owlCarousel({
48      dots: true,
49      items: 1,
50      loop: true,
51      nav:false,
52      autoplay: true,
53      autoplayTimeout: 6000,
54      autoplayHoverPause: true,
55      responsive: {
56        800: {
57          nav: true
58        }
59      }
60    });
61
62    $(".view-events-calendar .view-content").addClass('owl-carousel');
63    $('.view-events-calendar .view-content').owlCarousel({
64      nav: true,
65      dots:false,
66      margin: 44,
67      responsive: {
68        0: {
69          items: 1,
70          nav: true
71        },
72        800: {
73          items: 2,
74          nav: true
75        },
76        1100: {
77          items: 3,
78          nav: true
79        }
80      }
81    });
82  };
83
84
85  // Fix ADA issue with Colorbox buttons
86  $(window).load(function(){
87    $('#cboxPrevious').text("previous");
88    $('#cboxNext').text("next");
89    $('#cboxSlideshow').text("slideshow");
90  });
91
92  function hideEmptyCalendarFilter() {
93    if ($('[class*="form-item-edit-field-event-category"]').find('[type="checkbox"]').length === 0) {
94      $('.view-events-calendar').addClass('no-filter');
95    }
96  }
97
98  // Mobile menu.
99  $(document).on('click', '.menu-icon', function () {
100    $('body').toggleClass('mobile-menu-active');
101  });
102
103  $(document).on('click', '.mobile-menu-expand', function () {
104    $(this).parent().siblings('.really-expanded').removeClass('really-expanded').find('> ul').slideToggle();
105    $(this).prev().slideToggle().parent().toggleClass('really-expanded');
106  });
107
108  if ($('.region-above-page .menu-block-wrapper .active').length > 0) {
109    $('.region-above-page .menu-block-wrapper .active-trail:not(.active)').siblings('.mobile-menu-expand').trigger('click');
110
111    setTimeout(function () {
112      $('.region-above-page .menu-block-wrapper').scrollTop($('.region-above-page .menu-block-wrapper .active').position().top);
113    }, 800);
114  }
115
116  Drupal.behaviors.starterTheme = {
117    attach: function (context) {
118
119      //Social media
120      if ($('body').hasClass('front')) {
121        if ($('.front').length) {
122        $('body').runOwlCar();
123      }
124      }
125
126      // Enable Main Menu ARIA hidden true/false function
127      $('#superfish-1').aria();
128
129      // Set the form action to the current page on all panel views.
130      $('.pane-views-panes form').each(function () {
131        $(this).attr('action', window.location.pathname);
132      });
133
134      if ($('.moscone-flipped .radix-layouts-sidebar .panel-pane:not(.pane-panels-ipe) .pane-content').length === 0) {
135        $('.moscone-flipped').addClass('no-sidebar');
136      }
137
138      $('.region-above-page').find('.menu-block-wrapper').find('> .menu').find('li.expanded').append('<button class="mobile-menu-expand"><span class="visually-hidden">expand</span></button>');
139
140      if ($('.region-sidebar-first .active-trail').length === 0) {
141        $('body').addClass('top-level');
142      }
143
144      //Move Feature image to top on page
145      if ($('.field-name-field-featured-image').length) {
146        $('body:not(.page-node-edit, .page-node-add).node-type-page').addClass('page-feature-image');
147      }
148
149      $( "body:not(.page-node-edit, .page-node-add).node-type-page .field-name-field-featured-image" ).addClass('full-screen').insertAfter( ".message-container" );
150
151      // Wrap each Vimeo player with a responsive class.
152      $('iframe[src*="//player.vimeo.com/"]').each(function () {
153        if ($(this).hasClass("align-left")) {
154          $(this).wrap('<div class="vimeo-container align-left"></div>');
155        } else if ($(this).hasClass("align-right")) {
156          $(this).wrap('<div class="vimeo-container align-right"></div>');
157        } else if ($(this).hasClass("align-center")) {
158          $(this).wrap('<div class="vimeo-container align-center"></div>');
159        }
160      });
161
162      // Remove calendar filter if there are no categories.
163      if ($('body').hasClass('page-calendar')) {
164        hideEmptyCalendarFilter();
165      }
166
167      //Randomize calendar background image
168      // var calendarBackgrounds = ['bg0.png','bg1.png', 'bg2.png', 'bg3.png', 'bg4.png','bg5.png','bg6.png'];
169      // $('.views-events_calendar-upcoming_events').css({'background-image': 'url(/sites/all/themes/vc3/img/' + calendarBackgrounds[Math.floor(Math.random() * calendarBackgrounds.length)] + ')'});
170
171
172      // When going from month to month, the calendar is loaded via AJAX and
173      // the filter will show without this.
174      $(context).ajaxComplete(function () {
175        if ($('body').hasClass('page-calendar')) {
176          hideEmptyCalendarFilter();
177        }
178      });
179
180      // Close the pop-up with Site Alert.
181      $('.pop-up', context).on('click', function (event) {
182        if ($(event.target).parents('.views-field-body').length === 0) {
183          $('.pop-up').addClass('inactive');
184        }
185      });
186
187      $('.calendar.monthview', context).on('click', function (event) {
188        if ($(this).width() > 30) {
189          return;
190        }
191
192        if (!$(this).hasClass('active')) {
193          event.preventDefault();
194
195          $(this).parents('.calendar-calendar').find('.monthview.active').not($(this)).removeClass('active');
196          $(this).addClass('active');
197        } else {
198          $(this).removeClass('active');
199        }
200      });
201
202      //Add class "help" to the logo on Help Site
203      if ($('body').hasClass('page-node-42') ||
204          $('body').hasClass('page-node-43')) {
205        $('a.logo').addClass('help');
206      }
207    }
208  };
209})(jQuery);
210
211(function (H) {
212  H.className = H.className.replace(/\bno-js\b/, "js");
213})(document.documentElement);
214;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.