PageSourceSearch

https://whitewater.org/wp-content/themes/usnwc-2024/assets/js/calendar.js?ver=1.0.0

js whitewater.org collected 2026-10-03 23:56:07 UTC 2,203 bytes, 61 lines download raw bytes

1/**
2 *	Custom jQuery Scripts
3 *	
4 *	Developed by: Lisa DeBona
5 */
6
7jQuery(document).ready(function ($) {
8
9  if( $('.tribe-events-calendar-month .tribe-events-calendar-month__day').length ) {
10    var EventListing=[]
11    $('.tribe-events-calendar-month__day').each(function(k){
12      var cell = $(this);
13      var parent = $(this).parents('.tribe-events-calendar-month');
14      var target = $(this).find('.tribe-events-calendar-month__day-cell');
15      if( $(this).find('.tribe-events-calendar-month__events article').length ) {
16        var items = $(this).find('.tribe-events-calendar-month__events article');
17        items.each(function(a){
18          var article = $(this);
19              article.attr('data-index', a);
20          var prevArticle = article.prev();
21          if( $(this).find('h3[data-slug]').length ) {
22            var eventName = $(this).find('h3[data-slug]');
23            var eventSlug = eventName.attr('data-slug');
24            if( cell.prev().find('[data-slug="'+eventSlug+'"]').length ) {
25              article.addClass('seriesEvent');
26              if(prevArticle.hasClass('tribe_events')) {
27                article.insertBefore(prevArticle);
28              }
29            } else {
30              if( cell.next().find('[data-slug="'+eventSlug+'"]').length ) {
31                var countEvents = cell.next().find('[data-slug="'+eventSlug+'"]').length;
32                article.addClass('seriesParentEvent');
33              }
34            }
35          }
36        });
37      }
38    });
39
40    $('.tribe-events-calendar-month__day').each(function(k){
41      var cellWidth = $(this).width();
42      var items = $(this).find('article.tribe_events');
43      //console.log(cellWidth);
44      items.each(function(a){
45        var target = $(this);
46        if( $(this).attr('data-child-count')!=undefined ) {
47          //var thisWidth = $(this).outerWidth();
48          var count = $(this).attr('data-child-count');
49              count = parseInt(count);
50          if(count>1) {
51            var ncount = count+1;
52            var newWidth = cellWidth * ncount;
53            //target.css('width',newWidth+'px');
54          }
55        }  
56      });
57    });
58  }
59
60
61});// END #####################################    END

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.