PageSourceSearch

https://ewu-bund.com/wp-content/themes/horseclub/assets/js/horseclub_main.js

js ewu-bund.com collected 2026-10-10 00:57:18 UTC 15,690 bytes, 540 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
22 
23})
24jQuery(document).ready(function ($) {
25		"use strict";
26	
27		 $('.parallax').scrolly({bgParallax: true});
28		$(".post_share a").jqSocialSharer();	
29		$('#portfoliolist').mixitup();		
30		$(".videofit").fitVids();			
31		     $('.image-popup-no-margins').magnificPopup({
32       type: 'image',
33          closeOnContentClick: true,
34          mainClass: 'mfp-img-mobile',
35          image: {
36            verticalFit: true
37          }
38        });
39				
40		$('#up_topbar .widget.woocommerce.widget_shopping_cart').hide();
41		$('#up_topbar .shop_icon').hover(function () {
42			$('.widget.woocommerce.widget_shopping_cart', this).stop().slideToggle(200);
43		});		
44			$(document).on('click', '.navsearch-icon', function(event){
45		event.preventDefault();
46
47		$('body').addClass('navsearch-active');
48		$('.js-search-input').focus();
49	});
50	$(document).on('click', '.search-nav-close', function(){
51		$('body').removeClass('navsearch-active');
52	});
53
54	$(document).keyup(function(e) {
55	  if (e.keyCode == 27  &&  $('body').hasClass('navsearch-active') ) { 
56	  	$('body').removeClass('navsearch-active');
57	  }   
58	});	
59	
60	
61	$(document).on('click', '.popup-icon', function(event){
62		event.preventDefault();
63
64		$('body').addClass('popup_menu_active');
65		$('.js-search-input').focus();
66	});
67	$(document).on('click', '.search-nav-close', function(){
68		$('body').removeClass('popup_menu_active');
69	});
70
71	$(document).keyup(function(e) {
72	  if (e.keyCode == 27  &&  $('body').hasClass('popup_menu_active') ) { 
73	  	$('body').removeClass('popup_menu_active');
74	  }   
75	});	
76			
77 $('[href*="#"]:not([href*="#vc_"], [href="#"], [href*="#tab"] , a[data-vc-container*=".vc_tta"] )').click(function() 
78  {
79    if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') 
80        || location.hostname == this.hostname) 
81    {
82      
83      var target = $(this.hash),
84	 
85      headerHeight = $(".topclass.enable_sticky.topclass-shrink").height() ;
86   if (headerHeight < 50) {
87     headerHeight = 69;
88  }	
89            
90      target = target.length ? target : $('[name=' + this.hash.slice(1) +']');
91              
92      if (target.length) 
93      {
94        $('html,body').animate({
95          scrollTop: target.offset().top - headerHeight
96        }, 500);
97        return false;
98      }
99    }
100  });
101
102
103  	jQuery('ul.sf-menu').superfish({
104			delay:       500,                            
105			animation:   {opacity:'show',height:'show'},  
106			speed:       'fast'                          
107		});
108  
109		  $('.flexslider.testimonial.tcenter').flexslider({
110							animation: "fade",
111								slideshow: true,
112						controlNav: false,
113										directionNav: true,									
114										prevText: "<div><i class='left_nav_slider testi'></i></div>",
115										nextText: "<div><i class='right_nav_slider testi'></i></div>",
116						start: function(slider){
117						  $('body').removeClass('loading');
118						}
119					  });  
120					  
121		 $('.flexslider.testimonial').flexslider({
122						animation: "slide",
123						controlNav: true,
124										directionNav: false,
125										prevText: "<div><i class='left_nav_slider'></i></div>",
126										nextText: "<div><i class='right_nav_slider'></i></div>",
127						start: function(slider){
128						  $('body').removeClass('loading');
129						}
130					  });  			  
131  				
132       $('ul.slides.el').magnificPopup({
133          delegate: 'li a',
134          type: 'image',
135          tLoading: 'Loading image #%curr%...',
136          mainClass: 'mfp-img-mobile',
137          gallery: {
138            enabled: true,
139            navigateByImgClick: true,
140            preload: [0,1] // Will preload 0 - before current, and 1 after the current image
141          },
142          image: {
143            tError: '<a href="%url%">The image #%curr%</a> could not be loaded.',
144            titleSrc: function(item) {
145              return item.el.attr('title');
146            }
147          }
148        });	
149		$('.up_video').magnificPopup({
150  type: 'iframe',
151  
152  
153  iframe: {
154     markup: '<div class="mfp-iframe-scaler">'+
155                '<div class="mfp-close"></div>'+
156                '<iframe class="mfp-iframe" frameborder="0" allowfullscreen></iframe>'+
157                
158              '</div>'
159  },
160});
161
162	if ($('.up_progress_bar').length > 0){
163		 up_progress_bar();
164};	
165	if ($('.up_counter').length > 0){
166		 up_counter();
167};
168	if ($('.label-pp').length > 0){
169		 callhoverportfolio();
170};
171	
172  $(document).scroll(function(){
173        $('#up_topbar_left').stop().animate({
174            scrollTop : $(this).scrollTop()
175        });            
176    });	
177	var i = 1;	
178	$('.loading_more a').on('click', function(e)  {		
179		e.preventDefault();		
180		var link = $(this).attr('href');
181		var $content = '#portfoliolist';
182		var $anchor = '.grid_port_paging .loading_more a';
183		var $next_href = $($anchor).attr('href'); 
184	
185		$.get(link+'', function(data){		
186	var $new_content = $($content, data).wrapInner('').html(); 
187	$next_href = $($anchor, data).attr('href'); 
188	$('.mix.portfolio:last').after($new_content); 			
189	var min_height = $('.mix.portfolio:first').height();
190	$('.mix.portfolio').css('min-height',min_height);			
191	$('#portfoliolist').mixitup('remix','all');
192	callhoverportfolio();
193	if($('.loading_more').attr('rel') > i) {
194				$('.loading_more a').attr('href', $next_href); 
195			} else {
196				$('.loading_more').remove(); 
197			}
198			$('#portfoliolist .grid_port_paging:last').remove(); 
199			$('.mix.portfolio').css('min-height',0);
200			
201		});
202	i++;		
203	});	  
204	
205	$(window).scroll(function(){var e=$(this),t=$(".topclass.enable_sticky");if(e.scrollTop()>1){t.addClass("topclass-shrink")}else{t.removeClass("topclass-shrink")}});
206	
207	 $('a.linkedib').on('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) ? 1 : ( (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').vcwaypoint(function() {
359	  		jQuery('.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').vcwaypoint(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	"use strict";
479	$( 'ul.products li.up-gallery-woo a:first-child' ).hover( function() {
480		$( this ).children( '.wp-post-image' ).removeClass( 'fadeInDown' ).addClass( 'productanim fadeOutUp' );
481		$( this ).children( '.sec-image' ).removeClass( 'fadeOutUp' ).addClass( 'productanim fadeInDown' );
482	}, function() {
483		$( this ).children( '.wp-post-image' ).removeClass( 'fadeOutUp' ).addClass( 'fadeInDown' );
484		$( this ).children( '.sec-image' ).removeClass( 'fadeInDown' ).addClass( 'fadeOutUp' );
485	});
486	
487
488});
489
490(function ($) {
491  var vWidth = $(window).width();
492  $('#toggle-menu').click(function(){
493	  $('#pop_left').toggleClass('pop-visible');
494	   $(".menu-opener").toggleClass("active");
495    $(this).toggleClass('toggle-menu-visible').toggleClass('toggle-menu-hidden');	
496    var hidden = $('.main-navm');
497    if (hidden.hasClass('visible')){
498		
499		if (hidden.hasClass('left')){hidden.animate({"left":-vWidth*1.2}, 1000).removeClass('visible');}
500		
501		else{
502			
503        hidden.animate({"left":+vWidth*1.2}, 1000).removeClass('visible');}
504   
505
506   }
507
508	else {
509        hidden.animate({"left":"0px"}, 1000).addClass('visible');
510    }
511    });
512	
513
514})(jQuery);
515
516
517
518
519(function ($) { 
520     var vH = $(window).height();
521    $('.height-x').css('height',vH);
522
523     $('.height-x').css('height',vH);
524    
525})(jQuery);
526
527
528
529jQuery(document).ready(function($){
530	"use strict";
531	$( 'ul.products li.up-gallery-woo a:first-child' ).hover( function() {
532		$( this ).children( '.wp-post-image' ).removeClass( 'fadeInDown' ).addClass( 'productanim fadeOutUp' );
533		$( this ).children( '.sec-image' ).removeClass( 'fadeOutUp' ).addClass( 'productanim fadeInDown' );
534	}, function() {
535		$( this ).children( '.wp-post-image' ).removeClass( 'fadeOutUp' ).addClass( 'fadeInDown' );
536		$( this ).children( '.sec-image' ).removeClass( 'fadeInDown' ).addClass( 'fadeOutUp' );
537	});
538});
539
540

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.