PageSourceSearch

https://www.moncoursdegolf.com/wp-content/themes/horseclub/assets/js/horseclub_main.js

js moncoursdegolf.com collected 2026-10-06 11:17:43 UTC 15,674 bytes, 538 lines download raw bytes

1jQuery(window).load(function() {
2       "use strict";
3	jQuery("#up_status").fadeOut();
4
5	jQuery("#loader").delay(700).fadeOut("slow");
6
7var screenwidth = jQuery(window).width();
8if (screenwidth>1025) {	
9	  if(navigator.userAgent.match(/Trident\/7\./)) {
10          jQuery('.footer_up_wrap').removeClass('cover');
11	}
12 jQuery('#wrapper').css('margin-bottom', jQuery('.footer_up_wrap.cover').height());
13 jQuery(".sb_btn.action").mouseenter(function(){
14    jQuery(".sb_btn_bg").removeClass("ui-animate-3d-left").addClass("ui-animate-3d-right");
15  });
16  jQuery(".sb_btn.action").mouseleave(function(){
17    jQuery(".sb_btn_bg").removeClass("ui-animate-3d-right").addClass("ui-animate-3d-left");
18  });
19 
20 };		
21})
22jQuery(document).ready(function ($) {
23		"use strict";
24	
25		 $('.parallax').scrolly({bgParallax: true});
26		$(".post_share a").jqSocialSharer();	
27		$('#portfoliolist').mixitup();		
28		$(".videofit").fitVids();			
29		     $('.image-popup-no-margins').magnificPopup({
30       type: 'image',
31          closeOnContentClick: true,
32          mainClass: 'mfp-img-mobile',
33          image: {
34            verticalFit: true
35          }
36        });
37				
38		$('#up_topbar .widget.woocommerce.widget_shopping_cart').hide();
39		$('#up_topbar .shop_icon').hover(function () {
40			$('.widget.woocommerce.widget_shopping_cart', this).stop().slideToggle(200);
41		});		
42			$(document).on('click', '.navsearch-icon', function(event){
43		event.preventDefault();
44
45		$('body').addClass('navsearch-active');
46		$('.js-search-input').focus();
47	});
48	$(document).on('click', '.search-nav-close', function(){
49		$('body').removeClass('navsearch-active');
50	});
51
52	$(document).keyup(function(e) {
53	  if (e.keyCode == 27  &&  $('body').hasClass('navsearch-active') ) { 
54	  	$('body').removeClass('navsearch-active');
55	  }   
56	});	
57	
58	
59	$(document).on('click', '.popup-icon', function(event){
60		event.preventDefault();
61
62		$('body').addClass('popup_menu_active');
63		$('.js-search-input').focus();
64	});
65	$(document).on('click', '.search-nav-close', function(){
66		$('body').removeClass('popup_menu_active');
67	});
68
69	$(document).keyup(function(e) {
70	  if (e.keyCode == 27  &&  $('body').hasClass('popup_menu_active') ) { 
71	  	$('body').removeClass('popup_menu_active');
72	  }   
73	});	
74			
75 $('[href*="#"]:not([href*="#vc_"], [href="#"], [href*="#tab"] , a[data-vc-container*=".vc_tta"] )').click(function() 
76  {
77    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
78        || location.hostname == this.hostname) 
79    {
80      
81      var target = $(this.hash),
82	 
83      headerHeight = $(".topclass.enable_sticky.topclass-shrink").height() ;
84   if (headerHeight < 50) {
85     headerHeight = 69;
86  }	
87            
88      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
89              
90      if (target.length) 
91      {
92        $('html,body').animate({
93          scrollTop: target.offset().top - headerHeight
94        }, 500);
95        return false;
96      }
97    }
98  });
99
100
101  	jQuery('ul.sf-menu').superfish({
102			delay:       500,                            
103			animation:   {opacity:'show',height:'show'},  
104			speed:       'fast'                          
105		});
106  
107		  $('.flexslider.testimonial.tcenter').flexslider({
108							animation: "fade",
109								slideshow: true,
110						controlNav: false,
111										directionNav: true,									
112										prevText: "<div><i class='left_nav_slider testi'></i></div>",
113										nextText: "<div><i class='right_nav_slider testi'></i></div>",
114						start: function(slider){
115						  $('body').removeClass('loading');
116						}
117					  });  
118					  
119		 $('.flexslider.testimonial').flexslider({
120						animation: "slide",
121						controlNav: true,
122										directionNav: false,
123										prevText: "<div><i class='left_nav_slider'></i></div>",
124										nextText: "<div><i class='right_nav_slider'></i></div>",
125						start: function(slider){
126						  $('body').removeClass('loading');
127						}
128					  });  			  
129  				
130       $('ul.slides.el').magnificPopup({
131          delegate: 'li a',
132          type: 'image',
133          tLoading: 'Loading image #%curr%...',
134          mainClass: 'mfp-img-mobile',
135          gallery: {
136            enabled: true,
137            navigateByImgClick: true,
138            preload: [0,1] // Will preload 0 - before current, and 1 after the current image
139          },
140          image: {
141            tError: '<a href="%url%">The image #%curr%</a> could not be loaded.',
142            titleSrc: function(item) {
143              return item.el.attr('title');
144            }
145          }
146        });	
147		$('.up_video').magnificPopup({
148  type: 'iframe',
149  
150  
151  iframe: {
152     markup: '<div class="mfp-iframe-scaler">'+
153                '<div class="mfp-close"></div>'+
154                '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>'+
155                
156              '</div>'
157  },
158});
159
160	if ($('.up_progress_bar').length > 0){
161		 up_progress_bar();
162};	
163	if ($('.up_counter').length > 0){
164		 up_counter();
165};
166	if ($('.label-pp').length > 0){
167		 callhoverportfolio();
168};
169	
170  $(document).scroll(function(){
171        $('#up_topbar_left').stop().animate({
172            scrollTop : $(this).scrollTop()
173        });            
174    });	
175	var i = 1;	
176	$('.loading_more a').on('click', function(e)  {		
177		e.preventDefault();		
178		var link = $(this).attr('href');
179		var $content = '#portfoliolist';
180		var $anchor = '.grid_port_paging .loading_more a';
181		var $next_href = $($anchor).attr('href'); 
182	
183		$.get(link+'', function(data){		
184	var $new_content = $($content, data).wrapInner('').html(); 
185	$next_href = $($anchor, data).attr('href'); 
186	$('.mix.portfolio:last').after($new_content); 			
187	var min_height = $('.mix.portfolio:first').height();
188	$('.mix.portfolio').css('min-height',min_height);			
189	$('#portfoliolist').mixitup('remix','all');
190	callhoverportfolio();
191	if($('.loading_more').attr('rel') > i) {
192				$('.loading_more a').attr('href', $next_href); 
193			} else {
194				$('.loading_more').remove(); 
195			}
196			$('#portfoliolist .grid_port_paging:last').remove(); 
197			$('.mix.portfolio').css('min-height',0);
198			
199		});
200	i++;		
201	});	  
202	
203	$(window).scroll(function(){
204		//var e=$(this),t=$(".topclass.enable_sticky");if(e.scrollTop()>1){t.addClass("topclass-shrink")}else{t.removeClass("topclass-shrink")}
205	});
206	
207	 $('a.linkedib').live('click', function(){
208        newwindow=window.open($(this).attr('href'),'','height=450,width=700');
209        if (window.focus) {newwindow.focus()}
210        return false;
211    });
212
213	
214	    
215	$(document).keyup(function(e) {
216	  if (e.keyCode == 27  &&  $('.main-navm').hasClass('visible') ) { 
217	  	
218		$('.main-navm').removeAttr('style');
219			
220	  }   
221	});	
222	
223	
224 
225	
226
227
228});//end
229
230	if ( typeof window['callhoverportfolio'] !== 'function' ) {
231  function callhoverportfolio() { 
232			jQuery('.label-pp').hover(
233		function () {
234			jQuery(this).animate({opacity:'1'});
235		},
236		function () {
237			jQuery(this).animate({opacity:'0'});
238		}
239	);  	
240  } 
241};
242
243
244(function ( $, window, document, undefined ) {
245   "use strict";
246    var pluginName = 'scrolly',
247        defaults = {
248            bgParallax: false
249        },
250        didScroll = false;
251
252    function Plugin( element, options ) {
253        this.element = element;
254        this.$element = $(this.element);
255
256        this.options = $.extend( {}, defaults, options) ;
257        
258        this._defaults = defaults;
259        this._name = pluginName;
260        
261        this.init();
262    }
263
264    Plugin.prototype.init = function () {
265        var self = this;
266        this.startPosition = this.$element.position().top;
267        this.offsetTop = this.$element.offset().top;
268        this.height = this.$element.outerHeight(true);
269        this.velocity = this.$element.attr('data-velocity');
270        this.bgStart = parseInt(this.$element.attr('data-fit'), 10);
271
272        $(document).scroll(function(){
273            self.didScroll = true;
274        });
275        
276        setInterval(function() {
277            if (self.didScroll) {
278                self.didScroll = false;
279                self.scrolly();
280            }
281        }, 10);
282    };
283
284		if ($(window).width() > 960) {var lengte = 5} else  {var lengte = 0}  
285	
286    Plugin.prototype.scrolly = function() {
287        var dT =  $(window).scrollTop(),
288            wH = $(window).height(),
289         
290    position = dT  * this.velocity / + lengte ;
291         
292        if(this.bgStart){ position = position + this.bgStart; }
293
294        if(this.options.bgParallax === true) {
295            this.$element.css({backgroundPosition: '50% '+position+'px'});
296        } else {
297            this.$element.css({top: position});
298        }
299    };
300
301    $.fn[pluginName] = function ( options ) {
302        return this.each(function () {
303            if (!$.data(this, 'plugin_' + pluginName)) {
304                $.data(this, 'plugin_' + pluginName, new Plugin( this, options ));
305            }
306        });
307    };
308
309})(jQuery, window, document);
310	
311(function($) {
312"use strict";
313      // store the slider in a local variable
314      var $window = $(window),
315          flexslider;
316
317      // tiny helper function to add breakpoints
318      function getGridSize() {
319       return ( (window.innerWidth || document.documentElement.clientWidth) < 600) ? 2 : ( (window.innerWidth || document.documentElement.clientWidth) < 1200) ? 3 : 4;
320      }
321
322      $window.load(function() {
323        $('.flexslider.carousel').flexslider({
324          animation: "slide",
325          animationLoop: false,
326		  itemWidth: 370,
327          itemMargin: 0,
328		  pauseOnAction: true,
329			pauseOnHover: true,           
330			controlNav: false,
331		directionNav: true,
332			prevText: "<div><i class='left_nav_slider'></i></div>",
333			nextText: "<div><i class='right_nav_slider'></i></div>",
334          minItems: getGridSize(), // use function to pull in initial value
335          maxItems: getGridSize(), // use function to pull in initial value
336          start: function(slider){
337            $('body').removeClass('loading');
338            flexslider = slider;
339          }
340        });
341      });
342
343     if ($('.flexslider.carousel').length > 0){
344      $window.resize(function() {
345        var gridSize = getGridSize();
346	
347        flexslider.vars.minItems = gridSize;
348        flexslider.vars.maxItems = gridSize;
349      });
350	  
351	  }
352	  	  
353    })(jQuery);
354	   			
355	if ( typeof window['up_progress_bar'] !== 'function' ) {
356  function up_progress_bar() { 
357  "use strict";
358    	jQuery('.up_progress_bar').waypoint(function() {
359	  		jQuery(this).find('.up_progress_bar_inner').each(function(index) {
360	        var $this = jQuery(this),
361	            bar = $this.find('.up_bar_v'),
362				nume =  $this.find('.prog_count'),
363	            val = bar.data('percentage');								
364	  		  setTimeout(function(){ bar.css({"height" : val+'%'}); },1000);  			  
365	jQuery({someValue: 0}).animate({someValue: val}, {
366	
367      duration: 1500,
368      easing:'swing', 
369      step: function() {          
370          nume.text(Math.round(this.someValue));
371      },                
372  });   					   					  			  			  
373	    	});						
374	}, { offset: '85%' });
375  }
376  
377};							
378		
379	if ( typeof window['up_counter'] !== 'function' ) {
380  function up_counter() { 
381  "use strict";
382    	jQuery('.up_counter').waypoint(function() {
383  jQuery('.timer').each(count);
384      
385      
386      function count(options) {
387        var $this = jQuery(this);
388        options = jQuery.extend({}, options || {}, $this.data('countToOptions') || {});
389        $this.countTo(options);
390      };
391							
392	}, { offset: '85%' });
393  }
394  
395};
396
397(function ($) {
398	$.fn.countTo = function (options) {
399		options = options || {};
400
401		return $(this).each(function () {
402			// set options for current element
403			var settings = $.extend({}, $.fn.countTo.defaults, {
404				from:            $(this).data('from'),
405				to:              $(this).data('to'),
406				speed:           $(this).data('speed'),
407				refreshInterval: $(this).data('refresh-interval'),
408				decimals:        $(this).data('decimals')
409			}, options);
410
411			var loops = Math.ceil(settings.speed / settings.refreshInterval),
412				increment = (settings.to - settings.from) / loops;
413
414			// references & variables that will change with each update
415			var self = this,
416				$self = $(this),
417				loopCount = 0,
418				value = settings.from,
419				data = $self.data('countTo') || {};
420
421			$self.data('countTo', data);
422
423			// if an existing interval can be found, clear it first
424			if (data.interval) {
425				clearInterval(data.interval);
426			}
427			data.interval = setInterval(updateTimer, settings.refreshInterval);
428
429			// initialize the element with the starting value
430			render(value);
431
432			function updateTimer() {
433				value += increment;
434				loopCount++;
435
436				render(value);
437
438				if (typeof(settings.onUpdate) == 'function') {
439					settings.onUpdate.call(self, value);
440				}
441
442				if (loopCount >= loops) {
443					// remove the interval
444					$self.removeData('countTo');
445					clearInterval(data.interval);
446					value = settings.to;
447
448					if (typeof(settings.onComplete) == 'function') {
449						settings.onComplete.call(self, value);
450					}
451				}
452			}
453
454			function render(value) {
455				var formattedValue = settings.formatter.call(self, value, settings);
456				$self.text(formattedValue);
457			}
458		});
459	};
460
461	$.fn.countTo.defaults = {
462		from: 0,               // the number the element should start at
463		to: 0,                 // the number the element should end at
464		speed: 1000,           // how long it should take to count between the target numbers
465		refreshInterval: 100,  // how often the element should be updated
466		decimals: 0,           // the number of decimal places to show
467		formatter: formatter,  // handler for formatting the value before rendering
468		onUpdate: null,        // callback method for every time the element is updated
469		onComplete: null       // callback method for when the element finishes updating
470	};
471
472	function formatter(value, settings) {
473		return value.toFixed(settings.decimals);
474	}
475}(jQuery));
476
477jQuery(document).ready(function($){
478	$( 'ul.products li.up-gallery-woo a:first-child' ).hover( function() {
479		$( this ).children( '.wp-post-image' ).removeClass( 'fadeInDown' ).addClass( 'productanim fadeOutUp' );
480		$( this ).children( '.sec-image' ).removeClass( 'fadeOutUp' ).addClass( 'productanim fadeInDown' );
481	}, function() {
482		$( this ).children( '.wp-post-image' ).removeClass( 'fadeOutUp' ).addClass( 'fadeInDown' );
483		$( this ).children( '.sec-image' ).removeClass( 'fadeInDown' ).addClass( 'fadeOutUp' );
484	});
485	
486
487});
488
489(function ($) {
490  var vWidth = $(window).width();
491  $('#toggle-menu').click(function(){
492	  $('#pop_left').toggleClass('pop-visible');
493	   $(".menu-opener").toggleClass("active");
494    $(this).toggleClass('toggle-menu-visible').toggleClass('toggle-menu-hidden');	
495    var hidden = $('.main-navm');
496    if (hidden.hasClass('visible')){
497		
498		if (hidden.hasClass('left')){hidden.animate({"left":-vWidth*1.2}, 1000).removeClass('visible');}
499		
500		else{
501			
502        hidden.animate({"left":+vWidth*1.2}, 1000).removeClass('visible');}
503   
504
505   }
506
507	else {
508        hidden.animate({"left":"0px"}, 1000).addClass('visible');
509    }
510    });
511	
512
513})(jQuery);
514
515
516
517
518(function ($) { 
519     var vH = $(window).height();
520    $('.height-x').css('height',vH);
521
522     $('.height-x').css('height',vH);
523    
524})(jQuery);
525
526
527
528jQuery(document).ready(function($){
529	$( 'ul.products li.up-gallery-woo a:first-child' ).hover( function() {
530		$( this ).children( '.wp-post-image' ).removeClass( 'fadeInDown' ).addClass( 'productanim fadeOutUp' );
531		$( this ).children( '.sec-image' ).removeClass( 'fadeOutUp' ).addClass( 'productanim fadeInDown' );
532	}, function() {
533		$( this ).children( '.wp-post-image' ).removeClass( 'fadeOutUp' ).addClass( 'fadeInDown' );
534		$( this ).children( '.sec-image' ).removeClass( 'fadeInDown' ).addClass( 'fadeOutUp' );
535	});
536});
537
538

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.