PageSourceSearch

https://unjfsc.edu.pe/wp-content/themes/wizeedu/js/theme.js?ver=5.4.2

js unjfsc.edu.pe collected 2026-10-02 10:36:12 UTC 25,567 bytes, 791 lines download raw bytes

1"use strict";
2var header = jQuery('.main_header'),
3	footer = jQuery('.main_footer'),
4	main_wrapper = jQuery('.main_wrapper'),
5	site_wrapper = jQuery('.site_wrapper'),
6	nav = jQuery('nav.main_nav'),
7	menu = nav.find('ul.menu'),
8	html = jQuery('html'),
9	body = jQuery('body'),
10	myWindow = jQuery(window);
11
12
13(function gt3_preloader () {
14	setTimeout(function(){
15		jQuery('#loading').fadeOut();
16	},8000);
17}());
18
19jQuery(document).ready(function($) {
20
21	var ie = (function(){
22
23	    var undef,
24	        v = 3,
25	        div = document.createElement('div'),
26	        all = div.getElementsByTagName('i');
27	    
28	    while (
29	        div.innerHTML = '<!--[if gt IE ' + (++v) + ']><i></i><![endif]-->',
30	        all[0]
31	    );
32	   
33	    return v > 4 ? v : undef;
34	    
35	}());
36
37	if (ie == 9) {
38		jQuery('body').addClass('ie_9');
39	}
40
41	gt3_search();
42	gt3_mobile_menu();
43	gt3_menu_line();
44	gt3_sticky_header ();
45	gt3_message_close();
46	gt3_custom_price_button ();
47	gt3_back_to_top();
48
49	if (jQuery('.pp_block').size() > 0) {
50		html.addClass('pp_page');
51	}
52	if(jQuery('.gt3_js_bg_img').size() > 0) {
53		jQuery('.gt3_js_bg_img').each(function(){
54			jQuery(this).css('background-image', 'url('+jQuery(this).attr('data-src')+')');
55		});
56	}
57	if(jQuery('.gt3_js_bg_color').size() > 0) {
58		jQuery('.gt3_js_bg_color').each(function(){
59			jQuery(this).css('background-color', jQuery(this).attr('data-bgcolor'));
60		});
61	}
62	if(jQuery('.gt3_js_color').size() > 0) {
63		jQuery('.gt3_js_color').each(function(){
64			jQuery(this).css('color', jQuery(this).attr('data-color'));
65		});
66	}
67	if(jQuery('.gt3_js_transition').size() > 0) {
68		jQuery('.gt3_js_transition').each(function(){
69			var transition_time = jQuery(this).attr('data-transition') + 'ms';
70			jQuery(this).css({'transition-duration': transition_time});
71		});
72	}
73
74	//Flickr Widget
75	if (jQuery('.flickr_widget_wrapper').size() > 0) {
76		jQuery('.flickr_badge_image a').each(function() {
77			jQuery(this).append('<div class="flickr_fadder"></div>');
78		});
79	}
80
81	//Blank Anchors
82	jQuery('a[href="#"]').on('click', function(e) {
83		e.preventDefault();
84	});
85
86	// Nivoslider
87	if (jQuery('.nivoSlider').size() > 0) {
88		jQuery('.nivoSlider').each(function() {
89			jQuery(this).nivoSlider({
90				directionNav: true,
91				controlNav: false,
92				effect:'fade',
93				pauseTime:4000,
94				slices: 1
95			});
96		});
97	}
98
99	// Gt3 Carousel List
100	gt3_carousel_list ();
101
102	// // GT3 Testimonials List
103	gt3_testimonials_list ();
104
105	// Slick Slider Arrows
106	gt3_slick_slider_arrows ();
107	var carousel_arrows_tag = jQuery('.gt3_module_featured_posts .carousel_arrows');
108	if (carousel_arrows_tag.length) {
109		carousel_arrows_tag.each(function() {
110			jQuery(this).find('a.left_slick_arrow').on("click", function() {
111				jQuery(this).parents('.gt3_module_carousel').find('.slick-prev').click();
112			});
113			jQuery(this).find('a.right_slick_arrow').on("click", function() {
114				jQuery(this).parents('.gt3_module_carousel').find('.slick-next').click();
115			});
116		});
117	}
118
119	if (jQuery('.gt3-contact-widget').length) {
120		jQuery('.gt3-contact-widget_label').on('click', function () {
121			jQuery('.gt3-contact-widget').toggleClass('open');
122		})
123	}
124
125	// GT3 Countdown
126	gt3_countdown_module ();
127
128	// GT3 Flicker Widget
129	gt3_flickr_widget ();
130
131	// GT3 Popup Video
132	gt3_popup_video ();
133
134	gt3_includes_js ();
135
136
137
138});
139
140
141function gt3_includes_js () {
142	if (jQuery('.gt3_module_counter').length) {
143		// GT3 Counter
144		gt3_initCounter();
145	}
146	// GT3 Button
147	if (jQuery('.gt3_btn_customize').length) {
148		jQuery('.gt3_btn_customize').each(function() {
149			var this_btn = jQuery(this).find('a');
150			var body_tag = jQuery('body');
151
152			// Default Attributes
153			var btn_default_bg = this_btn.attr('data-default-bg');
154			var btn_default_color = this_btn.attr('data-default-color');
155			var btn_default_border_color = this_btn.attr('data-default-border');
156			var btn_default_icon = jQuery(this).find('.gt3_btn_icon').attr('data-default-icon');
157
158			// Hover Attributes
159			var btn_hover_bg = this_btn.attr('data-hover-bg');
160			var btn_hover_color = this_btn.attr('data-hover-color');
161			var btn_hover_border_color = this_btn.attr('data-hover-border');
162			var btn_hover_icon = jQuery(this).find('.gt3_btn_icon').attr('data-hover-icon');
163
164			// Theme Color
165			var theme_color = body_tag.attr('data-theme-color');
166
167			this_btn.mouseenter(function(){
168				// Button Hover Bg
169				if(typeof btn_hover_bg !== 'undefined') {
170					this_btn.css({'background-color' : btn_hover_bg});
171				} else {
172					this_btn.css({'background-color' : '#ffffff'});
173				}
174				// Button Hover Text Color
175				if(typeof btn_hover_color !== 'undefined') {
176					this_btn.css({'color' : btn_hover_color});
177				} else {
178					this_btn.css({'color' : theme_color});
179				}
180				// Button Hover Border Color
181				if(typeof btn_hover_border_color !== 'undefined') {
182					this_btn.css({'border-color' : btn_hover_border_color});
183				} else {
184					this_btn.css({'border-color' : theme_color});
185				}
186				// Button Hover Icon Color
187				if(typeof btn_hover_icon !== 'undefined') {
188					this_btn.find('.gt3_btn_icon').css({'color' : btn_hover_icon});
189				} else {
190					this_btn.find('.gt3_btn_icon').css({'color' : '#ffffff'});
191				}
192			}).mouseleave(function(){
193				// Button Default Bg
194				if(typeof btn_default_bg !== 'undefined') {
195					this_btn.css({'background-color' : btn_default_bg});
196				} else {
197					this_btn.css({'background-color' : theme_color});
198				}
199				// Button Default Text Color
200				if(typeof btn_default_color !== 'undefined') {
201					this_btn.css({'color' : btn_default_color});
202				} else {
203					this_btn.css({'color' : '#ffffff'});
204				}
205				// Button Default Border Color
206				if(typeof btn_default_border_color !== 'undefined') {
207					this_btn.css({'border-color' : btn_default_border_color});
208				} else {
209					this_btn.css({'border-color' : theme_color});
210				}
211				// Button Default Icon Color
212				if(typeof btn_default_icon !== 'undefined') {
213					this_btn.find('.gt3_btn_icon').css({'color' : btn_default_icon});
214				} else {
215					this_btn.find('.gt3_btn_icon').css({'color' : '#ffffff'});
216				}
217			});
218
219		});
220	}
221}
222
223
224function gt3_course_lessons_iframe(){
225	jQuery('#course-curriculum-popup iframe').each(function(){
226		jQuery(this).css({width:'0'})
227		console.log(jQuery(this));
228	})
229}
230
231function gt3_popup_video () {
232	if (jQuery(".swipebox-video, .swipebox").length) {
233		jQuery( '.swipebox-video, .swipebox' ).swipebox( {
234			useCSS : true, // false will force the use of jQuery for animations
235			useSVG : true, // false to force the use of png for buttons
236			initialIndexOnArray : 0, // which image index to init when a array is passed
237			hideCloseButtonOnMobile : false, // true will hide the close button on mobile devices
238			removeBarsOnMobile : true, // false will show top bar on mobile devices
239			hideBarsDelay : 3000, // delay before hiding bars on desktop
240			videoMaxWidth : 1140,
241			autoplayVideos: false,
242			beforeOpen: function() {}, // called before opening
243			afterOpen: null, // called after opening
244			afterClose: function() {}, // called after closing
245			loopAtEnd: false // true will return to the first image after the last image is reached
246		} );
247	}
248}
249
250function gt3_back_to_top(){
251	var W_height = jQuery(window).height();
252	var element = jQuery('#back_to_top');
253	if (element.length) {
254		element.click(function(){
255			jQuery('body,html').animate({
256				scrollTop: 0
257			}, 500);
258			return false;
259		});		
260		var show_back_to_top = function (){
261			if (jQuery(document).scrollTop() < W_height) {
262	        	element.removeClass('show');
263	        }else{
264	        	element.addClass('show');
265	        }
266		}
267		show_back_to_top();
268		jQuery(window).scroll(function() {
269	        show_back_to_top();
270	    });
271	}	
272}
273
274// menu line
275function gt3_menu_line(){
276	var menu = jQuery('.main-menu.main_menu_container.menu_line_enable > ul');
277	if (menu.length) {
278		menu.each(function(){
279			var menu = jQuery(this);
280			var current = '';
281			menu.append('<span class="menu_item_line"></span>');
282			var menu_item = menu.find('> .menu-item');
283			var currentItem = menu.find('> .current-menu-item');
284			var currentItemParent = menu.find('> .current-menu-ancestor');
285			var line = menu.find('.menu_item_line');
286			if (currentItem.length || currentItemParent.length) {
287				current = currentItem.length ? currentItem : (currentItemParent.length ? currentItemParent : '');
288				line.css({width: current.find('>a').outerWidth()});
289				line.css({left: current.find('>a').offset().left - menu.offset().left});
290			}
291
292			menu_item.mouseenter(function(){
293                line.css({width: jQuery(this).find('> a').outerWidth()});
294                line.css({left: jQuery(this).find('> a').offset().left - jQuery(this).parent().offset().left});
295            });
296
297            menu.mouseleave(function(){
298                if (current.length) {
299                    line.css({width: current.find('> a').outerWidth()});
300                    line.css({left: current.find('> a').offset().left - menu.offset().left});
301                } else {
302                	line.css({width:'0'});
303                    line.css({left:'100%'});
304                }
305            });
306
307
308		})
309	}
310}
311
312function gt3_sticky_header (){
313	if (jQuery(window).width() > 1200) {
314		var stickyNumber = jQuery('header.main_header').height();
315		var stickyHeader = jQuery('header.main_header > .sticky_header');
316		var docScroll = jQuery(document).scrollTop();
317		var docScrollNext = jQuery(document).scrollTop();
318		if (stickyHeader.length) {
319			var stickyType = stickyHeader.attr('data-sticky-type');
320			if (stickyHeader[0].hasAttribute('data-sticky-number')) {
321				stickyNumber = stickyHeader.attr('data-sticky-number');
322			}
323			var stickyOn = function(){
324				docScroll = jQuery(document).scrollTop();
325				if (stickyType == 'classic') {
326					if (docScroll < stickyNumber) {
327						stickyHeader.removeClass('sticky_on')
328					}else{
329						stickyHeader.addClass('sticky_on')
330					}
331				}else{
332					if (( docScrollNext < docScroll) || (docScroll < stickyNumber) ) {
333						stickyHeader.removeClass('sticky_on')
334					}else{
335						stickyHeader.addClass('sticky_on')
336					}				
337				}	
338				docScrollNext = jQuery(document).scrollTop();		
339
340			}
341			stickyOn();
342			jQuery(window).scroll(function() {
343	            stickyOn();
344	        });
345		}
346	}
347
348}
349
350// mobile menu
351function gt3_mobile_menu(){
352	var windowW = jQuery(window)
353	var loaded = false;
354	var main_menu = jQuery('.mobile_menu_container .main-menu > ul');
355	var sub_menu = jQuery('.mobile_menu_container .main-menu > ul ul');
356	var mobile_toggle = jQuery('.mobile-navigation-toggle');
357	if (windowW.width() <= 1200) {
358		sub_menu.hide().removeClass('showsub')
359		main_menu.hide().addClass('mobile_view_on');
360		loaded = true;
361		gt3_mobile_menu_switcher(main_menu)		
362	}else{
363		sub_menu.show();
364		main_menu.show();
365	}
366
367	jQuery(window).resize(function() {
368		if (windowW.width() <= 1200) {
369			if (!mobile_toggle.hasClass('is-active')) {
370				sub_menu.hide().removeClass('showsub')
371				main_menu.hide().removeClass('showsub').addClass('mobile_view_on');
372				mobile_toggle.removeClass('is-active')
373			}
374			if (loaded == false) {
375				loaded = true;
376				gt3_mobile_menu_switcher(main_menu)
377			}		
378		}else{
379			sub_menu.show().removeClass('showsub');
380			main_menu.show().removeClass('showsub').removeClass('mobile_view_on');
381			mobile_toggle.removeClass('is-active')
382		}
383	});
384}
385// end mobile menu 
386
387function gt3_mobile_menu_switcher(main_menu){
388	if (jQuery(main_menu).find('.menu-item-has-children > .mobile_sitcher').length == 0) {
389		jQuery(main_menu).find('.menu-item-has-children').append('<div class="mobile_sitcher"></div>')
390	}
391	jQuery('.mobile-navigation-toggle').on("tap click", function() {
392		var element = jQuery(this);
393		if (element.hasClass('is-active')) {
394			main_menu.removeClass('showsub').slideUp(200)
395			element.removeClass('is-active')
396		}else{
397			main_menu.addClass('showsub').slideDown(200)
398			element.addClass('is-active')
399		}
400	});
401
402	jQuery(main_menu).find('.menu-item-has-children > .mobile_sitcher , .menu-item-has-children > a[href*=#]').on("tap click", function(e) {
403		e.preventDefault();
404		var element = jQuery(this);
405		if (element.hasClass('is-active')) {
406			element.prev('ul.sub-menu').removeClass('showsub').slideUp(200)
407			element.next('ul.sub-menu').removeClass('showsub').slideUp(200)
408			element.removeClass('is-active')
409		}else{
410			element.prev('ul.sub-menu').addClass('showsub').slideDown(200)
411			element.next('ul.sub-menu').addClass('showsub').slideDown(200)
412			element.addClass('is-active')
413		}
414	});
415}
416
417function gt3_search(){
418	var top_search = jQuery('.header_search');
419
420	if (top_search.size() > 0) {
421		top_search.each(function () {
422
423			var $ctsearch = jQuery(this),
424				$ctsearchinput = $ctsearch.find('input.search_text'),
425				$body = jQuery('html, body'),
426				openSearch = function () {
427					$ctsearch.data('open', true).addClass('ct-search-open');
428					$ctsearchinput.focus();
429					return false;
430				},
431				closeSearch = function () {
432					$ctsearch.data('open', false).removeClass('ct-search-open');
433				};
434
435			$ctsearchinput.on('click', function (e) {
436				e.stopPropagation();
437				$ctsearch.data('open', true);
438			});
439
440			$ctsearch.on('click', function (e) {
441				e.stopPropagation();
442				if (!$ctsearch.data('open')) {
443					openSearch();
444					$body.on('click', function (e) {
445						closeSearch();
446					});
447				}
448				else {
449					if ($ctsearchinput.val() === '') {
450						closeSearch();
451						return false;
452					}
453				}
454			});
455
456			top_search.on('click', function(){
457				var element = jQuery(this);
458				if (element.hasClass('ct-search-hover')) {
459					element.removeClass('ct-search-hover');
460				}else{
461					element.addClass('ct-search-hover');
462					setTimeout(function(){
463						element.find('input.search_text').focus();
464					}, 100);
465				}
466			})
467
468		});
469	}
470
471	jQuery(".search_form .search_submit").on("mouseover", function(){
472		jQuery(this).parents('.search_form').addClass("button-hover");
473	})
474	jQuery(".search_form .search_submit").on("mouseleave", function(){
475		jQuery(this).parents('.search_form').removeClass("button-hover");
476	})
477}
478
479function gt3_message_close(){
480	jQuery(".gt3_message_box-closable").each(function(){
481		var element = jQuery(this);
482		element.find('.gt3_message_box__close').on('click',function(){
483			element.slideUp(300);
484		})
485	})
486}
487
488jQuery(window).resize(function() {
489	// Slick Slider Arrows
490	gt3_slick_slider_arrows ();
491	// Blog Isotope reLayout
492	gt3_blog_isotope_update_js ();
493});
494
495jQuery(window).load(function() {
496	gt3_isotope_team ();
497	gt3_course_lessons_iframe();
498	// Blog Isotope reLayout
499	/*gt3_blog_isotope_update_js ();*/
500	gt3_blog_isotope_js ();
501	resize_visual ();
502	jQuery('#loading').fadeOut();
503});
504
505function resize_visual () {
506	if (jQuery('.vc_row-o-full-height').length) {
507		var w = window.innerWidth;
508		var leftPosition = jQuery('.vc_row-o-full-height')[0].style.left;
509		if (leftPosition.length) {
510			var re = /\d+/i;
511			var found = leftPosition.match(re);
512			var found = parseInt(found[0], 10) + 9;
513
514			jQuery('.vc_row-o-full-height')[0].style.width = w + "px";
515			jQuery('.vc_row-o-full-height')[0].style.left = -found + "px";
516		}		
517	}
518}
519
520// Slick Slider Arrows
521function gt3_slick_slider_arrows () {
522	var carousel_arrows_tag = jQuery('.gt3_module_featured_posts .carousel_arrows');
523	if (carousel_arrows_tag.length) {
524		carousel_arrows_tag.each(function() {
525			if (jQuery(this).parents('.gt3_module_carousel').find('.slick-arrow').length) {
526				jQuery(this).removeClass('hidden_block');
527			} else {
528				jQuery(this).addClass('hidden_block');
529			}
530		});
531	}
532}
533
534// -------------------- //
535// --- GT3 COMPOSER --- //
536// -------------------- //
537
538// GT3 Counter
539function gt3_initCounter() {
540	if (jQuery('.gt3_module_counter').length) {
541		if (jQuery(window).width() > 760) {       
542			var waypoint = new Waypoint({
543			  element: document.getElementsByClassName('gt3_module_counter'),
544			  handler: function(direction) {},
545			  offset: 'bottom-in-view'
546			});
547			waypoint.context.refresh();
548
549			jQuery('.gt3_module_counter').each(function(){
550				if (jQuery(this).offset().top < jQuery(window).height()) {
551						var cur_this = jQuery(this);
552					if (!jQuery(this).hasClass('done')) {
553						var stat_count = cur_this.find('.stat_count'),
554							set_count = stat_count.attr('data-value'),
555							counter_suffix = '<span class="count_suffix">' + stat_count.attr('data-suffix') + '</span>',
556							counter_prefix = '<span class="count_prefix">' + stat_count.attr('data-prefix') + '</span>';
557
558						jQuery(this).find('.stat_temp').stop().animate({width: set_count}, {duration: 3000, step: function(now) {
559								var data = '<span class="count_value">' + Math.floor(now) + '</span>';
560								stat_count.html(counter_prefix + data + counter_suffix);
561							}
562						}); 
563						jQuery(this).addClass('done');
564					}                           
565				} else {
566					var cur_this = jQuery(this);
567					jQuery(this).waypoint(function(){
568						if (!cur_this.hasClass('done')) {
569							var stat_count = cur_this.find('.stat_count'),
570								set_count = stat_count.attr('data-value'),
571								counter_suffix = '<span class="count_suffix">' + stat_count.attr('data-suffix') + '</span>',
572								counter_prefix = '<span class="count_prefix">' + stat_count.attr('data-prefix') + '</span>';
573							cur_this.find('.stat_temp').stop().animate({width: set_count}, {duration: 3000, step: function(now) {
574								    var data = '<span class="count_value">' + Math.floor(now) + '</span>';
575									stat_count.html(counter_prefix + data + counter_suffix);
576								}
577							}); 
578							cur_this.addClass('done');
579						}
580					},{offset: 'bottom-in-view'});                              
581				}                                                       
582			});
583		} else {
584			jQuery('.gt3_module_counter').each(function(){
585				var stat_count = jQuery(this).find('.stat_count'),
586					set_count = stat_count.attr('data-value'),
587					counter_suffix = '<span class="count_suffix">' + stat_count.attr('data-suffix') + '</span>',
588					counter_prefix = '<span class="count_prefix">' + stat_count.attr('data-prefix') + '</span>';
589				jQuery(this).find('.stat_temp').stop().animate({width: set_count}, {duration: 3000, step: function(now) {
590						var data = Math.floor(now);
591						stat_count.html(counter_prefix + data + counter_suffix);
592					}
593				}); 
594			},{offset: 'bottom-in-view'});  
595		}
596	}
597}
598
599function gt3_isotope_team () {
600	if (jQuery(".isotope").length) {
601		jQuery(".isotope").isotope({
602			itemSelector: ".item-team-member, .gt3_practice_list__item, .gt3_course_item.isotope-item"
603		});
604		setTimeout(function(){
605			jQuery(".isotope").addClass('isotope_loaded');
606		},100);
607		
608	}
609	jQuery(window).on('resize', function() {
610		jQuery(".isotope").each(function () {
611			jQuery(this).isotope({
612				itemSelector: ".item-team-member, .gt3_practice_list__item, .gt3_course_item.isotope-item"
613			})
614		})
615	})
616	jQuery(".isotope-filter a,.isotope-row .gt3_course_filter a").on("click", function (e){
617		e.preventDefault();
618		var data_filter = this.getAttribute("data-filter");
619		jQuery(this).siblings().removeClass("active");
620		jQuery(this).addClass("active");
621		var grid = this.parentNode.nextElementSibling;
622		jQuery(grid).isotope({ filter: data_filter });
623	});
624}
625function gt3_custom_price_button () {
626	jQuery(".shortcode_button").each(function(){
627		if (jQuery(this).attr('data-btn-color')) {
628			var curent_color = jQuery(this).attr('data-btn-color');
629			this.style.borderColor = curent_color;
630			this.style.backgroundColor = curent_color;
631			this.style.color = "#ffffff";
632			jQuery(this).on({
633				mouseenter: function() {
634				    this.style.backgroundColor = "#ffffff";
635				    this.style.color = curent_color;
636				}, mouseleave: function() {
637				    this.style.backgroundColor = curent_color;
638				    this.style.color = "#ffffff";
639				}
640			})
641		}
642	})
643
644	jQuery(".shortcode_button.alt").each(function(){
645		if (jQuery(this).attr('data-btn-color')) {
646			var curent_color = jQuery(this).attr('data-btn-color');
647			this.style.borderColor = curent_color;
648			this.style.backgroundColor = "#ffffff";
649			this.style.color = curent_color;
650			jQuery(this).on({
651				mouseenter: function() {
652				    this.style.backgroundColor = curent_color;
653				    this.style.color = "#ffffff";
654				}, mouseleave: function() {
655				    this.style.backgroundColor = "#ffffff";
656				    this.style.color = curent_color;
657				}
658			})
659		}
660	})
661}
662
663// Blog Isotope
664function gt3_blog_isotope_js () {
665	if (jQuery(".isotope_blog_items").length) {
666		jQuery('.isotope_blog_items').isotope({
667			itemSelector: '.element'
668		});
669	}
670}
671
672// Blog Isotope reLayout
673function gt3_blog_isotope_update_js () {
674	if (jQuery(".isotope_blog_items").length) {
675		jQuery('.isotope_blog_items').isotope('reLayout');
676	}
677}
678
679// Gt3 Carousel List
680function gt3_carousel_list () {
681	var carousel_tag = jQuery('.gt3_carousel_list');
682	if (carousel_tag.length) {
683		carousel_tag.each(function(){
684			jQuery(this).slick({
685			});
686		});
687	}
688}
689
690// Gt3 Testimonials
691function gt3_testimonials_list () {
692	if (jQuery('.module_testimonial.type4').length) {
693		jQuery('.module_testimonial.type4').each(function(){
694			var cur_img = jQuery(this).find('.testimonials_photo');
695			var wrapper_img = '<span class=\"testimonials-photo-wrapper\">';
696			for (var i=0; i < cur_img.length; i++) {
697				wrapper_img += cur_img[i].outerHTML;
698				console.log(cur_img[i].outerHTML)
699			}
700			wrapper_img += '</span>';
701			jQuery(this).prepend(wrapper_img);
702			console.log(wrapper_img);
703		})
704	}
705	if (jQuery('.module_testimonial.active-carousel').length) {
706		jQuery('.module_testimonial.active-carousel').each(function(){
707			var cur_slidesToShow = jQuery(this).attr('data-slides-per-line')*1;
708			var cur_sliderAutoplay = jQuery(this).attr('data-autoplay-time')*1;
709			var cur_fade = jQuery(this).attr('data-slider-fade') == 1;
710			jQuery(this).find('.testimonials_rotator').slick({
711				slidesToShow: cur_slidesToShow,
712				slidesToScroll: cur_slidesToShow,
713				autoplay: true,
714				autoplaySpeed: cur_sliderAutoplay,
715				speed: 500,
716				dots: true,
717				fade: cur_fade,
718				focusOnSelect: true,
719				arrows: false,
720				infinite: true,
721				asNavFor: jQuery(this).find('.testimonials-photo-wrapper')
722			});
723			jQuery(this).find('.testimonials-photo-wrapper').slick({
724				slidesToShow: 3,
725				slidesToScroll: 1,
726				asNavFor: jQuery(this).find('.testimonials_rotator'),
727				dots: false,
728				centerMode: true,
729				focusOnSelect: true
730			})
731		});
732	}
733}
734
735// GT3 Countdown
736function gt3_countdown_module () {
737	if (jQuery('.gt3-countdown').length) {
738		jQuery('.gt3-countdown').each(function () {
739			var year = jQuery(this).attr('data-year');
740			var month = jQuery(this).attr('data-month');
741			var day = jQuery(this).attr('data-day');
742			var hours = jQuery(this).attr('data-hours');
743			var min = jQuery(this).attr('data-min');
744
745			var austDay = new Date();
746			austDay = new Date(+year, +month-1, +day, +hours, +min);
747			jQuery(this).countdown({
748				until: austDay,
749				padZeroes: true,
750				labels: [jQuery(this).attr('data-label_years'),jQuery(this).attr('data-label_months'),jQuery(this).attr('data-label_weeks'),jQuery(this).attr('data-label_days'),jQuery(this).attr('data-label_hours'),jQuery(this).attr('data-label_minutes'),jQuery(this).attr('data-label_seconds')],
751				labels1:[jQuery(this).attr('data-label_year'),jQuery(this).attr('data-label_month'),jQuery(this).attr('data-label_week'),jQuery(this).attr('data-label_day'),jQuery(this).attr('data-label_hour'),jQuery(this).attr('data-label_minute'),jQuery(this).attr('data-label_second')]
752			});
753		});
754	}
755}
756
757// GT3 Flicker Widget
758function gt3_flickr_widget () {
759	if (jQuery('.flickr_widget_wrapper').length) {
760		jQuery('.flickr_widget_wrapper').each(function () {
761			var flickrid = jQuery(this).attr('data-flickrid');
762			var widget_id = jQuery(this).attr('data-widget_id');
763			var widget_number = jQuery(this).attr('data-widget_number');
764			jQuery(this).addClass('flickr_widget_wrapper_'+flickrid);
765
766			jQuery.getJSON("http://api.flickr.com/services/feeds/photos_public.gne?id="+widget_id+"&lang=en-us&format=json&jsoncallback=?", function(data){
767				jQuery.each(data.items, function(i,item){
768					if(i<widget_number){
769						jQuery("<img/>").attr("src", item.media.m).appendTo(".flickr_widget_wrapper_"+flickrid).wrap("<div class=\'flickr_badge_image\'><a href=\'" + item.link + "\' target=\'_blank\' title=\'Flickr\'></a></div>");
770					}
771				});
772			});
773		});
774	}
775}
776
777
778// Post Likes
779jQuery(document).on("click", ".post_likes_add", function(event) {
780	var post_likes_this = jQuery(this);
781	if (!jQuery.cookie(post_likes_this.attr('data-modify')+post_likes_this.attr('data-postid'))) {
782		jQuery.post(object_name.gt3_ajaxurl, {
783			action:'add_like_attachment',
784			attach_id:jQuery(this).attr('data-postid')
785		}, function (response) {
786			jQuery.cookie(post_likes_this.attr('data-modify')+post_likes_this.attr('data-postid'), 'true', { expires: 7, path: '/' });
787			post_likes_this.addClass('already_liked');
788			post_likes_this.find('span.like_count').text(response);
789		});
790	}
791});

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.