PageSourceSearch

https://lindsaywildlife.org/wp-content/plugins/wp-simple-booking-calendar-premium/js/wpsbc.js?ver=7.0.5

js lindsaywildlife.org collected 2026-09-24 10:05:14 UTC 3,634 bytes, 86 lines download raw bytes

1var wpsbc = jQuery.noConflict();
2function showLoader($this){
3    $this.find('.wpsbc-loading').fadeTo(0,0).css('display','block').fadeTo(200,1);
4    $this.find('.wpsbc-calendar ul').animate({
5        'opacity' : '0.7'
6    },200);
7}
8function hideLoader(){
9    wpsbc('.wpsbc-loading').css('display','none');
10}
11function changeDay(direction, timestamp, $this){
12    var data = {
13		action: 'changeDay',
14        calendarDirection: direction,
15		totalCalendars: $this.find(".wpsbc-total-calendars").html(), 
16        currentTimestamp: timestamp,
17        calendarData: $this.find(".wpsbc-calendar-data").attr('data-calendar-data'),
18        calendarHistory: $this.find(".wpsbc-calendar-history").html(),
19        calendarLegend: $this.find(".wpsbc-calendar-legend").attr('data-calendar-legend'),
20        showLegend: $this.find(".wpsbc-show-legend").html(),
21        showDropdown: $this.find(".wpsbc-show-dropdown").html(),
22        calendarHistory: $this.find(".wpsbc-calendar-history").html(),
23        showTooltip: $this.find(".wpsbc-calendar-tooltip").html(),
24        showWeekNumbers: $this.find(".wpsbc-calendar-weeknumbers").html(),
25        calendarLanguage: $this.find(".wpsbc-calendar-language").html(),
26        weekStart : $this.find(".wpsbc-calendar-week-start").html(),
27        calendarID : $this.find(".wpsbc-calendar-ID").html()
28        
29	};
30	wpsbc.post(ajaxurl, data, function(response) {
31		$this.find('.wpsbc-calendars').html(response);
32        hideLoader();     
33        $this.find('.wpsbc-dropdown').customSelect();  
34	});
35}
36
37wpsbc(document).ready(function(){
38    wpsbc('.wpsbc-dropdown').customSelect();
39    wpsbc('div.wpsbc-container').each(function(){
40        
41        var $instance = wpsbc(this);
42        
43        wpsbc($instance).on('change','.wpsbc-dropdown',function(e){
44            showLoader($instance);     
45            e.preventDefault();        
46            changeDay('jump',wpsbc(this).val(), $instance)
47        });
48        
49        wpsbc($instance).on('click','.wpsbc-prev',function(e){
50            showLoader($instance);
51            e.preventDefault();
52            if($instance.find(".wpsbc-current-timestamp a").length == 0)
53                timestamp = $instance.find(".wpsbc-current-timestamp").html();
54            else 
55                timestamp = $instance.find(".wpsbc-current-timestamp a").html()
56            changeDay('prev',timestamp, $instance);
57        });
58        
59        
60        wpsbc($instance).on('click','.wpsbc-next',function(e){  
61            showLoader($instance);
62            e.preventDefault();     
63            if($instance.find(".wpsbc-current-timestamp a").length == 0)
64                timestamp = $instance.find(".wpsbc-current-timestamp").html();
65            else 
66                timestamp = $instance.find(".wpsbc-current-timestamp a").html()   
67            changeDay('next',timestamp, $instance);
68        });
69    
70    });
71    
72    wpsbc("div.wpsbc-container").on('mouseenter','li.wpsbc-day', function(){        
73        $li = wpsbc(this);
74        if(typeof $li.attr('data-tooltip') != 'undefined'){
75            $li.addClass('wpsbc-tooltip-active');
76            $li.append('<div class="wpsbc-tooltip"><strong>' + $li.attr('data-tooltip-date') + '</strong>' + $li.attr('data-tooltip') + '</div>');    
77        }            
78    });    
79      
80    wpsbc("div.wpsbc-container").on('mouseleave','li.wpsbc-day', function(){
81        wpsbc(".wpsbc-tooltip-active").removeClass('wpsbc-tooltip-active');        
82        wpsbc("li.wpsbc-day .wpsbc-tooltip").remove();
83            
84    });
85})
86$ = jQuery.noConflict();

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.