PageSourceSearch

https://www.fremantlefishingboatharbour.com/wp-content/plugins/eventON/assets/js/eventon_functions.js?ver=2.6

js fremantlefishingboatharbour.com collected 2026-10-02 20:43:12 UTC 3,302 bytes, 127 lines download raw bytes

1/*
2	Javascript: EventON functions for all calendars
3	version:	0.1
4*/
5(function($){
6
7	// return all filter values for given calendar
8		$.fn.evoGetFilters = function(){
9
10			var ev_cal = $(this); 
11			var evodata = ev_cal.find('.evo-data');
12			
13			var filters_on = ( evodata.attr('data-filters_on')=='true')?'true':'false';
14			
15			// creat the filtering data array if exist
16			if(filters_on =='true'){
17				var filter_section = ev_cal.find('.eventon_filter_line');
18				var filter_array = [];
19				
20				filter_section.find('.eventon_filter').each(function(index){
21					var filter_val = $(this).attr('data-filter_val');
22					
23					if(filter_val !='all'){
24						var filter_ar = {};
25						filter_ar['filter_type'] = $(this).attr('data-filter_type');
26						filter_ar['filter_name'] = $(this).attr('data-filter_field');
27
28						if($(this).attr('data-fl_o')=='NOT'){
29							filter_ar['filter_op']='NOT IN';
30						}
31						filter_ar['filter_val'] = filter_val;
32						filter_array.push(filter_ar);
33					}
34				});		
35			}else{
36				var filter_array ='';
37			}			
38			return filter_array;
39		}
40
41	// get shortcode arguments
42		$.fn.evo_shortcodes = function(){
43			
44			var ev_cal = $(this);
45			var shortcode_array ={};
46					
47			ev_cal.find('.cal_arguments').each(function(){
48				$.each(this.attributes, function(i, attrib){
49					var name = attrib.name;
50					if(attrib.name!='class' && attrib.name!='style' && attrib.value !=''){
51						name__ = attrib.name.split('-');
52						shortcode_array[name__[1]] = attrib.value;	
53					}
54				});
55			});	
56			return shortcode_array;
57		}
58		$.fn.evo_item_shortcodes = function(){			
59			var OBJ = $(this);
60			var shortcode_array ={};			
61			OBJ.each(function(){	
62				$.each(this.attributes, function(i, attrib){
63					var name = attrib.name;
64					if(attrib.name!='class' && attrib.name!='style' && attrib.value !=''){
65						name__ = attrib.name.split('-');
66						shortcode_array[name__[1]] = attrib.value;	
67					}
68				});
69			});
70			return shortcode_array;
71		}
72
73	// get evo data for a given calendar
74		$.fn.evo_getevodata = function(){
75
76			var ev_cal = $(this);
77			var evoData = {};
78			
79			ev_cal.find('.evo-data').each(function(){
80				$.each(this.attributes, function(i, attrib){
81					var name = attrib.name;
82					if(attrib.name!='class' && attrib.name!='style' ){
83						name__ = attrib.name.split('-');
84						evoData[name__[1]] = attrib.value;	
85					}
86				});
87			});	
88
89			return evoData;
90		}
91
92	// update main calendar AJAX data args with eventon other vals that may been passed
93		$.fn.evo_otherVals = function(opt){
94			var defaults = {
95				data_arg:	'',
96			};
97			var options = $.extend({}, defaults, opt); 
98			var cal_head = $(this);
99
100			cal_head.find('.eventon_other_vals').each(function(){
101				if($(this).val()!=''){
102					options.data_arg[$(this).attr('name')] = $(this).val();
103				}
104			});
105
106			return options.data_arg;
107		}
108
109	// eventon loading functions
110	// v 2.4.5
111		$.fn.evo_loader_animation = function(opt){
112			var defaults = {
113				direction:'start'
114			}
115			var OPT = $.extend({}, defaults, opt);
116
117			if(OPT.direction == 'start'){
118				$(this).find('#eventon_loadbar').slideDown();
119			}else{
120				$(this).find('#eventon_loadbar').slideUp();
121			}
122		}
123
124	
125		
126
127}(jQuery));

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.