PageSourceSearch

https://www.windenergy.ie/wp-content/themes/jarvis_wp/js/shortcodes.js?ver=1

js windenergy.ie collected 2026-10-08 01:42:03 UTC 5,807 bytes, 185 lines download raw bytes

1
2
3
4function rnrShortcodes($) {
5	
6		
7	/* ------------------------------------------------------------------------ */
8	/* Accordion */
9	/* ------------------------------------------------------------------------ */
10	
11	jQuery('.accordion').each(function(){
12	    var acc = jQuery(this).attr("rel") * 2;
13	    jQuery(this).find('.accordion-inner:nth-child(' + acc + ')').show();
14	     jQuery(this).find('.accordion-inner:nth-child(' + acc + ')').prev().addClass("active");
15	});
16	
17	jQuery('.accordion .accordion-title').click(function() {
18	    if(jQuery(this).next().is(':hidden')) {
19	        jQuery(this).parent().find('.accordion-title').removeClass('active').next().slideUp(200);
20	        jQuery(this).toggleClass('active').next().slideDown(200);
21	    }
22	    return false;
23	});
24	
25	/* ------------------------------------------------------------------------ */
26	/* Alert Messages */
27	/* ------------------------------------------------------------------------ */
28	
29	jQuery(".alert-message .close").bind('click',function(){
30		jQuery(this).parent().animate({'opacity' : '0'}, 300).slideUp(300);
31		return false;
32	});
33	
34	 
35	/* ------------------------------------------------------------------------ */
36	/* Skillbar */
37	/* ------------------------------------------------------------------------ */	
38	jQuery('.skillbar').appear(function() {
39		jQuery('.skillbar').each(function(){
40			dataperc = jQuery(this).attr('data-perc'),
41			jQuery(this).find('.skill-percentage').animate({ "width" : dataperc + "%"}, dataperc*10);
42		});
43	 }); 
44	 
45
46	 
47	
48	/* ------------------------------------------------------------------------ */
49	/* Tabs */
50	/* ------------------------------------------------------------------------ */
51	
52	jQuery('div.tabset').tabset();
53	
54	/* ------------------------------------------------------------------------ */
55	/* Toggle */
56	/* ------------------------------------------------------------------------ */
57	
58	if( jQuery(".toggle .toggle-title").hasClass('active') ){
59		jQuery(".toggle .toggle-title.active").closest('.toggle').find('.toggle-inner').show();
60	}
61	
62	jQuery(".toggle .toggle-title").click(function(){
63		if( jQuery(this).hasClass('active') ){
64			jQuery(this).removeClass("active").closest('.toggle').find('.toggle-inner').slideUp(200);
65		}
66		else{
67			jQuery(this).addClass("active").closest('.toggle').find('.toggle-inner').slideDown(200);
68		}
69	});
70
71/* EOF document.ready */
72
73};
74
75/* Tabset Function ---------------------------------- */
76(function (jQuery) {
77jQuery.fn.tabset = function () {
78    var jQuerytabsets = jQuery(this);
79    jQuerytabsets.each(function (i) {
80        var jQuerytabs = jQuery('li.tab a', this);
81        jQuerytabs.click(function (e) {
82            var jQuerythis = jQuery(this);
83                panels = jQuery.map(jQuerytabs, function (val, i) {
84                    return jQuery(val).attr('href');
85                });
86            jQuery(panels.join(',')).hide();
87            jQuerytabs.removeClass('selected');
88            jQuerythis.addClass('selected').blur();
89            jQuery(jQuerythis.attr('href')).show();
90            e.preventDefault();
91            return false;
92        }).first().triggerHandler('click');
93    });
94};
95
96    //img overlays
97    jQuery('.team-thumb').on('mouseover', function()
98    {
99        var overlay = jQuery(this).find('.team-overlay');
100        var content = jQuery(this).find('.overlay-content');
101
102        overlay.stop(true,true).fadeIn(600);
103        content.stop().animate({'top': "40%",
104			                     opacity:1 }, 600);
105        
106    }).on('mouseleave', function()
107    {
108        var overlay = jQuery(this).find('.team-overlay');
109        var content = jQuery(this).find('.overlay-content');
110        
111        content.stop().animate({'top': "60%",
112			                     opacity:0  }, 300, function(){
113			content.css('top',"20%")});
114			
115        overlay.fadeOut(300);
116		
117    }); 
118	
119    jQuery('a.modal-popup-link').bind('click',function(){
120	   jQuery(window).trigger("scroll");
121	});
122	
123	/* ------------------------------------------------------------------------ */
124	/* TEAM MODAL
125	/* ------------------------------------------------------------------------ */	
126		jQuery('.modal').each(function(){
127			jQuery(this).appendTo("body");
128		});	
129		
130		
131	jQuery('.milestone-counter').appear(function() {
132		jQuery('.milestone-counter').each(function(){
133			dataperc = jQuery(this).attr('data-perc'),
134			jQuery(this).find('.milestone-count').delay(6000).countTo({
135            from: 0,
136            to: dataperc,
137            speed: 2000,
138            refreshInterval: 100
139        });
140     });
141    });		
142	
143	
144	/* element effects
145	================================================== */
146	jQuery('.rnr-animate').appear(function() {			
147		var effect = jQuery(this).data('effect');			
148		jQuery(this).delay(50).queue( function() {				
149			jQuery(this).removeClass('rnr-animate').addClass( effect );				
150		});
151		
152				  
153	});	
154	
155		/* Youtube WMODE
156		================================================== */
157		jQuery('iframe').each(function() {
158			
159			var url = jQuery(this).attr("src");
160			
161			if ( url!=undefined ) {
162				
163				var youtube   = url.search("youtube"),			
164					splitable = url.split("?");
165				
166				/* url has already vars */	
167				if( youtube > 0 && splitable[1] ) {
168					jQuery(this).attr("src",url+"&wmode=transparent")
169				}
170				
171				/* url has no vars */
172				if( youtube > 0 && !splitable[1] ) {
173					jQuery(this).attr("src",url+"?wmode=transparent")
174				}
175			
176			}
177			
178		});
179
180	
181})(jQuery);
182
183/* ------------------------------------------------------------------------ */
184/* EOF */
185/* ------------------------------------------------------------------------ */

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.