PageSourceSearch

https://unfollow.com.gr/wp-content/plugins/js_composer/assets/js/js_composer_front.js?ver=3.6.14.1

js unfollow.com.gr collected 2026-10-02 10:54:43 UTC 23,025 bytes, 628 lines download raw bytes

1document.documentElement.className += ' js_active ';
2document.documentElement.className += 'ontouchstart' in document.documentElement ? ' vc_mobile ' : ' vc_desktop ';
3(function(){
4    var prefix = ['-webkit-','-o-','-moz-','-ms-',""];
5    for (var i in prefix) { if(prefix[i]+'transform' in document.documentElement.style) document.documentElement.className += " vc_transform "; }
6})();
7/*
8   On document ready jQuery will fire set of functions.
9   If you want to override function behavior then copy it to your theme js file
10   with the same name.
11*/
12
13jQuery(window).load(function() {
14    jQuery('.wpb_flexslider').each(function() {
15        var this_element = jQuery(this);
16        var sliderSpeed = 800,
17            sliderTimeout = parseInt(this_element.attr('data-interval'))*1000,
18            sliderFx = this_element.attr('data-flex_fx'),
19            slideshow = true;
20        if ( sliderTimeout == 0 ) slideshow = false;
21
22        this_element.flexslider({
23            animation: sliderFx,
24            slideshow: slideshow,
25            slideshowSpeed: sliderTimeout,
26            sliderSpeed: sliderSpeed,
27            smoothHeight: true
28        });
29    });
30
31});
32jQuery(document).ready(function($) {
33	vc_twitterBehaviour();
34	vc_toggleBehaviour();
35	vc_tabsBehaviour();
36	vc_accordionBehaviour();
37	vc_teaserGrid();
38	vc_carouselBehaviour();
39	vc_slidersBehaviour();
40	vc_prettyPhoto();
41	vc_googleplus();
42	vc_pinterest();
43	vc_progress_bar();
44	vc_waypoints();
45}); // END jQuery(document).ready
46
47/* Twitter
48---------------------------------------------------------- */
49if ( typeof window['vc_twitterBehaviour'] !== 'function' ) {
50	function vc_twitterBehaviour() {
51		jQuery('.wpb_twitter_widget .tweets').each(function(index) {
52			var this_element = jQuery(this),
53				tw_name = this_element.attr('data-tw_name');
54				tw_count = this_element.attr('data-tw_count');
55
56			this_element.tweet({
57				username: tw_name,
58				join_text: "auto",
59				avatar_size: 0,
60				count: tw_count,
61				template: "{avatar}{join}{text}{time}",
62				auto_join_text_default: "",
63				auto_join_text_ed: "",
64				auto_join_text_ing: "",
65				auto_join_text_reply: "",
66				auto_join_text_url: "",
67				loading_text: '<span class="loading_tweets">loading tweets...</span>'
68	        });
69		});
70	}
71}
72
73/* Google plus
74---------------------------------------------------------- */
75if ( typeof window['vc_googleplus'] !== 'function' ) {
76	function vc_googleplus() {
77		if ( jQuery('.wpb_googleplus').length > 0 ) {
78			(function() {
79				var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
80				po.src = 'https://apis.google.com/js/plusone.js';
81				var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
82			})();
83		}
84	}
85}
86
87/* Pinterest
88---------------------------------------------------------- */
89if ( typeof window['vc_pinterest'] !== 'function' ) {
90	function vc_pinterest() {
91		if ( jQuery('.wpb_pinterest').length > 0 ) {
92			(function() {
93				var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
94				po.src = 'http://assets.pinterest.com/js/pinit.js';
95				var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(po, s);
96				//<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
97			})();
98		}
99	}
100}
101
102/* Progress bar
103---------------------------------------------------------- */
104if ( typeof window['vc_progress_bar'] !== 'function' ) {
105  function vc_progress_bar() { 
106    if (typeof jQuery.fn.waypoint !== 'undefined') {
107
108    	jQuery('.vc_progress_bar').waypoint(function() {
109	  		jQuery(this).find('.vc_single_bar').each(function(index) {
110	        var $this = jQuery(this),
111	            bar = $this.find('.vc_bar'),
112	            val = bar.data('percentage-value');
113
114	  		  setTimeout(function(){ bar.css({"width" : val+'%'}); }, index*200);
115	    	});
116		}, { offset: '85%' });
117    }
118  }
119}
120
121/* Waypoints magic
122---------------------------------------------------------- */
123if ( typeof window['vc_waypoints'] !== 'function' ) {
124  function vc_waypoints() {
125	if (typeof jQuery.fn.waypoint !== 'undefined') {
126	    jQuery('.wpb_animate_when_almost_visible').waypoint(function() {
127			jQuery(this).addClass('wpb_start_animation');
128		}, { offset: '85%' });
129	}
130  }
131}
132
133/* Toggle
134---------------------------------------------------------- */
135if ( typeof window['vc_toggleBehaviour'] !== 'function' ) {
136	function vc_toggleBehaviour() {
137		jQuery(".wpb_toggle").click(function(e) {
138			if ( jQuery(this).hasClass('wpb_toggle_title_active') ) {
139				jQuery(this).removeClass('wpb_toggle_title_active').next().slideUp(500);
140			} else {
141				jQuery(this).addClass('wpb_toggle_title_active').next().slideDown(500);
142			}
143		});
144		jQuery('.wpb_toggle_content').each(function(index) {
145			if ( jQuery(this).next().is('h4.wpb_toggle') == false ) {
146				jQuery('<div class="last_toggle_el_margin"></div>').insertAfter(this);
147			}
148		});
149	}
150}
151
152/* Tabs + Tours
153---------------------------------------------------------- */
154if ( typeof window['vc_tabsBehaviour'] !== 'function' ) {
155	function vc_tabsBehaviour() {
156            jQuery(function($){$(document.body).off('click.preview', 'a')});
157            jQuery('.wpb_tabs, .wpb_tour').each(function(index) {
158                var $tabs,
159                    interval = jQuery(this).attr("data-interval"),
160                    tabs_array = [];
161                //
162                $tabs = jQuery(this).find('.wpb_tour_tabs_wrapper').tabs({
163                    show: function(event, ui) {wpb_prepare_tab_content(event, ui);},
164                    activate: function(event, ui) {wpb_prepare_tab_content(event, ui);}
165                    }).tabs('rotate', interval*1000);
166
167                jQuery(this).find('.wpb_tab').each(function(){ tabs_array.push(this.id); });
168
169                jQuery(this).find('.wpb_tab a[href^="#"]').click(function(e) {
170                    e.preventDefault();
171                    if ( jQuery.inArray( jQuery(this).attr('href'), tabs_array) ) {
172                        $tabs.tabs("select", jQuery(this).attr('href'));
173                        return false;
174                    }
175                });
176
177                jQuery(this).find('.wpb_prev_slide a, .wpb_next_slide a').click(function(e) {
178                    e.preventDefault();
179                    var ver = jQuery.ui.version.split('.');
180                    if(parseInt(ver[0])==1 &&  parseInt(ver[1]) < 9) {
181                        var index = $tabs.tabs('option', 'selected');
182                        if ( jQuery(this).parent().hasClass('wpb_next_slide') ) { index++; }
183                        else { index--; }
184                        if ( index < 0 ) { index = $tabs.tabs("length") - 1; }
185                        else if ( index >= $tabs.tabs("length") ) { index = 0; }
186                        $tabs.tabs("select", index);
187                    } else {
188                        var index = $tabs.tabs( "option", "active"),
189                            length = $tabs.find('.wpb_tab').length;
190
191                        if ( jQuery(this).parent().hasClass('wpb_next_slide') ) {
192                            index = (index+1) >=length ? 0 : index+1;
193                        } else {
194                            index = index-1 < 0 ? length -1 : index-1;
195                        }
196
197                        $tabs.tabs( "option", "active", index );
198                    }
199
200                });
201
202            });
203	}
204}
205
206/* Tabs + Tours
207---------------------------------------------------------- */
208if ( typeof window['vc_accordionBehaviour'] !== 'function' ) {
209	function vc_accordionBehaviour() {
210		jQuery('.wpb_accordion').each(function(index) {
211			var $tabs,
212				interval = jQuery(this).attr("data-interval"),
213                active_tab = !isNaN(jQuery(this).data('active-tab')) && parseInt(j
213Query(this).data('active-tab')) >  0 ? parseInt(jQuery(this).data('active-tab'))-1 : false,
214                collapsible =  active_tab === false || jQuery(this).data('collapsible') === 'yes';
215			//
216			$tabs = jQuery(this).find('.wpb_accordion_wrapper').accordion({
217				header: "> div > h3",
218				autoHeight: false,
219                heightStyle: "content",
220                active: active_tab,
221                collapsible: collapsible,
222                navigation: true,
223                change: function(event, ui){
224                    if(jQuery.fn.isotope!=undefined) {
225                        ui.newContent.find('.isotope').isotope("reLayout");
226                    }
227                    vc_carouselBehaviour();
228                }
229			});
230			//.tabs().tabs('rotate', interval*1000, true);
231		});
232	}
233}
234
235/* Teaser grid: isotope
236---------------------------------------------------------- */
237if ( typeof window['vc_teaserGrid'] !== 'function' ) {
238	function vc_teaserGrid() {
239        var layout_modes = {
240            fitrows: 'fitRows',
241            masonry: 'masonry'
242        }
243        jQuery('.wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)').each(function(){
244            var $container = jQuery(this);
245            var $thumbs = $container.find('.wpb_thumbnails');
246            var layout_mode = $thumbs.attr('data-layout-mode');
247            $thumbs.isotope({
248                // options
249                itemSelector : '.isotope-item',
250                layoutMode : (layout_modes[layout_mode]==undefined ? 'fitRows' : layout_modes[layout_mode])
251            });
252            $container.find('.categories_filter a').data('isotope', $thumbs).click(function(e){
253                e.preventDefault();
254                var $thumbs = jQuery(this).data('isotope');
255                jQuery(this).parent().parent().find('.active').removeClass('active');
256                jQuery(this).parent().addClass('active');
257                $thumbs.isotope({filter: jQuery(this).attr('data-filter')});
258            });
259            jQuery(window).load(function() {
260                $thumbs.isotope("reLayout");
261            });
262        });
263
264        /*
265		var isotope = jQuery('.wpb_grid ul.thumbnails');
266		if ( isotope.length > 0 ) {
267			isotope.isotope({
268				// options
269				itemSelector : '.isotope-item',
270				layoutMode : 'fitRows'
271			});
272			jQuery(window).load(function() {
273				isotope.isotope("reLayout");
274			});
275		}
276		*/
277	}
278}
279
280if ( typeof window['vc_carouselBehaviour'] !== 'function' ) {
281	function vc_carouselBehaviour() {
282		jQuery(".wpb_carousel").each(function() {
283            var $this = jQuery(this);
284            if($this.data('carousel_enabled') !== true && $this.is(':visible')) {
285                $this.data('carousel_enabled', true);
286                var carousel_width = jQuery(this).width(),
287                    visible_count = getColumnsCount(jQuery(this)),
288                    carousel_speed = 500;
289                if ( jQuery(this).hasClass('columns_count_1') ) {
290                    carousel_speed = 900;
291                }
292                /* Get margin-left value from the css grid and apply it to the carousele li items (margin-right), before carousele initialization */
293                var carousele_li = jQuery(this).find('.wpb_thumbnails-fluid li');
294                carousele_li.css({"margin-right": carousele_li.css("margin-left"), "margin-left" : 0 });
295
296                jQuery(this).find('.wpb_wrapper:eq(0)').jCarouselLite({
297                    btnNext: jQuery(this).find('.next'),
298                    btnPrev: jQuery(this).find('.prev'),
299                    visible: visible_count,
300                    speed: carousel_speed
301                })
302                    .width('100%');//carousel_width
303
304                var fluid_ul = jQuery(this).find('ul.wpb_thumbnails-fluid');
305                fluid_ul.width(fluid_ul.width()+300);
306
307                jQuery(window).resize(function() {
308                    var before_resize = screen_size;
309                    screen_size = getSizeName();
310                    if ( before_resize != screen_size ) {
311                        window.setTimeout('location.reload()', 20);
312                    }
313                });
314            }
315
316		});
317        /*
318        if(jQuery.fn.bxSlider !== undefined ) {
319            jQuery('.bxslider').each(function(){
320               var $slider = jQuery(this);
321               $slider.bxSlider($slider.data('settings'));
322            });
323        }
324        */
325        if(window.Swiper !== undefined) {
326
327            jQuery('.swiper-container').each(function(){
328                var $this = jQuery(this),
329                    my_swiper,
330                    max_slide_size = 0,
331                    options = jQuery(this).data('settings');
332
333                    if(options.mode === 'vertical') {
334                        $this.find('.swiper-slide').each(function(){
335                            var height = jQuery(this).outerHeight(true);
336                            if(height > max_slide_size) max_slide_size = height;
337                        });
338                        $this.height(max_slide_size);
339                        $this.css('overflow', 'hidden');
340                    }
341                    jQuery(window).resize(function(){
342                        $this.find('.swiper-slide').each(function(){
343                            var height = jQuery(this).outerHeight(true);
344                            if(height > max_slide_size) max_slide_size = height;
345                        });
346                        $this.height(max_slide_size);
347                    });
348                    my_swiper = jQuery(this).swiper(jQuery.extend(options, {
349                    onFirstInit: function(swiper) {
350                        if(swiper.slides.length < 2) {
351                            $this.find('.vc-arrow-left,.vc-arrow-right').hide();
352                        }
352 else if(swiper.activeIndex === 0  && swiper.params.loop !== true) {
353                            $this.find('.vc-arrow-left').hide();
354                        } else {
355                            $this.find('.vc-arrow-left').show();
356                        }
357                    },
358                    onSlideChangeStart: function(swiper) {
359                        if(swiper.slides.length > 1 && swiper.params.loop !== true) {
360                            if(swiper.activeIndex === 0) {
361                                $this.find('.vc-arrow-left').hide();
362                            } else {
363                                $this.find('.vc-arrow-left').show();
364                            }
365                            if(swiper.slides.length-1 === swiper.activeIndex) {
366                                $this.find('.vc-arrow-right').hide();
367                            } else {
368                                $this.find('.vc-arrow-right').show();
369                            }
370                        }
371                    }
372                }));
373                $this.find('.vc-arrow-left').click(function(e){
374                    e.preventDefault();
375                    my_swiper.swipePrev();
376                });
377                $this.find('.vc-arrow-right').click(function(e){
378                    e.preventDefault();
379                    my_swiper.swipeNext();
380                });
381                my_swiper.reInit();
382            });
383
384        }
385
386	}
387}
388
389if ( typeof window['vc_slidersBehaviour'] !== 'function' ) {
390	function vc_slidersBehaviour() {
391		//var sliders_count = 0;
392		jQuery('.wpb_gallery_slides').each(function(index) {
393			var this_element = jQuery(this);
394			var ss_count = 0;
395
396			/*if ( this_element.hasClass('wpb_slider_fading') ) {
397				var sliderSpeed = 500, sliderTimeout = this_element.attr('data-interval')*1000, slider_fx = 'fade';
398				var current_ss;
399
400				function slideshowOnBefore(currSlideElement, nextSlideElement, options) {
401					jQuery(nextSlideElement).css({"position" : "absolute" });
402					jQuery(nextSlideElement).find("div.description").animate({"opacity": 0}, 0);
403				}
404
405				function slideshowOnAfter(currSlideElement, nextSlideElement, options) {
406					jQuery(nextSlideElement).find("div.description").animate({"opacity": 1}, 2000);
407
408					jQuery(nextSlideElement).css({"position" : "static" });
409					var new_h = jQuery(nextSlideElement).find('img').height();
410					if ( jQuery.isNumeric(new_h) ) {
411						//this_element.animate({ "height" : new_h }, sliderSpeed );
412					}
413				}
414
415				this_element.find('ul')
416				.before('<div class="ss_nav ss_nav_'+ss_count+'"></div><div class="wpb_fading_nav"><a id="next_'+ss_count+'" href="#next"></a> <a id="prev_'+ss_count+'" href="#prev"></a></div>')
417				.cycle({
418					fx: slider_fx, // choose your transition type, ex: fade, scrollUp, shuffle, etc...
419					pause: 1,
420					speed: sliderSpeed,
421					timeout: sliderTimeout,
422					delay: -ss_count * 1000,
423					before: slideshowOnBefore,
424					after:slideshowOnAfter,
425					pager:  '.ss_nav_'+ss_count
426				});
427				//.find('.description').width(jQuery(this).width() - 20);
428				ss_count++;
429			}
430			else*/
431			if ( this_element.hasClass('wpb_slider_nivo') ) {
432				var sliderSpeed = 800,
433					sliderTimeout = this_element.attr('data-interval')*1000;
434
435				if ( sliderTimeout == 0 ) sliderTimeout = 9999999999;
436
437				this_element.find('.nivoSlider').nivoSlider({
438					effect: 'boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse', // Specify sets like: 'fold,fade,sliceDown'
439					slices: 15, // For slice animations
440					boxCols: 8, // For box animations
441					boxRows: 4, // For box animations
442					animSpeed: sliderSpeed, // Slide transition speed
443					pauseTime: sliderTimeout, // How long each slide will show
444					startSlide: 0, // Set starting Slide (0 index)
445					directionNav: true, // Next & Prev navigation
446					directionNavHide: true, // Only show on hover
447					controlNav: true, // 1,2,3... navigation
448					keyboardNav: false, // Use left & right arrows
449					pauseOnHover: true, // Stop animation while hovering
450					manualAdvance: false, // Force manual transitions
451					prevText: 'Prev', // Prev directionNav text
452					nextText: 'Next' // Next directionNav text
453				});
454			}
455			else if ( this_element.hasClass('wpb_flexslider') && 1==2) { /* TODO: remove this */
456                /*
457				var sliderSpeed = 800,
458					sliderTimeout = this_element.attr('data-interval')*1000,
459					sliderFx = this_element.attr('data-flex_fx'),
460					slideshow = true;
461				if ( sliderTimeout == 0 ) slideshow = false;
462
463				this_element.flexslider({
464					animation: sliderFx,
465					slideshow: slideshow,
466					slideshowSpeed: sliderTimeout,
467					sliderSpeed: sliderSpeed,
468					smoothHeight: true
469
470				});
471                */
472
473                /*
474                var $first_object = this_element.find('li:first').show().find('*:not(a)');
475
476                $first_object.bind('load', function() {
477                    if(!this_element.find('.flex-control-nav').is('ol')) {
478                        this_element.flexslider({
479                            animation: sliderFx,
480                            slideshow: slideshow,
481                            slideshowSpeed: sliderTimeout,
482                            sliderSpeed: sliderSpeed,
483                            smoothHeight: true
484                        });
485                    }
486                });
487
488                window.setTimeout(function(){
489                    if(!this_element.find('.flex-control-nav').is('ol')) {
490                        this_element.flexslider({
491                            animation: sliderFx,
492                            slideshow: slideshow,
493                            slideshowSpeed: sliderTimeout,
494                            sliderSpeed: sliderSpeed,
495                            smoothHeight: true
496                        });
497                    }
498                }, 5000);
499                */
500			}
501			else if ( this_element.hasClass('wpb_image_grid') ) {
502				var isotope = this_element.find('.wpb_image_grid_ul');
503				isotope.isotope({
504					// options
505					itemSelector : '.isotope-item',
506					layoutMode : 'fitRows'
507				});
508				jQuery(window).load(function() {
509					isotope.isotope("reLayout");
510				});
511			}
512		});
513	}
514}
515
516if ( typeof window['vc_prettyPhoto'] !== 'function' ) {
517	function vc_prettyPhoto() {
518		try {
519			// just in case. maybe prettyphoto isnt loaded on this site
520			jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({
521				animationSpeed: 'normal', /* fast/slow/normal */
522				padding: 15, /* padding for each side of the picture */
523				opacity: 0.7, /* Value betwee 0 and 1 */
524				showTitle: true, /* true/false */
525				allowresize: true, /* true/false */
526				counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
527				//theme: 'light_square', /* light_rounded / dark_rounded / light_square / dark_square */
528				hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
529                deeplinking: false, /* Allow prettyPhoto to update the url to enable deeplinking. */
530				modal: false, /* If set to true, only the close button will close the window */
531				callback: function() {
532					var url = location.href;
533					var hashtag = (url.indexOf('#!prettyPhoto')) ? true : false;
534					if (hashtag) location.hash = "!";
535				} /* Called when prettyPhoto is closed */,
536				social_tools : ''
537			});
538		} catch (err) { }
539	}
540}
541/* Helper
542---------------------------------------------------------- */
543function getColumnsCount(el) {
544	var find = false,
545		i = 1;
546
547	while ( find == false ) {
548		if ( el.hasClass('columns_count_'+i) ) {
549			find = true;
550			return i;
551		}
552		i++;
553	}
554}
555
556var screen_size = getSizeName();
557function getSizeName() {
558	var screen_size = '',
559		screen_w = jQuery(window).width();
560
561	if ( screen_w > 1170 ) {
562		screen_size = "desktop_wide";
563	}
564	else if ( screen_w > 960 && screen_w < 1169 ) {
565		screen_size = "desktop";
566	}
567	else if ( screen_w > 768 && screen_w < 959 ) {
568		screen_size = "tablet";
569	}
570	else if ( screen_w > 300 && screen_w < 767 ) {
571		screen_size = "mobile";
572	}
573	else if ( screen_w < 300 ) {
574		screen_size = "mobile_portrait";
575	}
576	return screen_size;
577}
578
579
580function loadScript(url, $obj, callback){
581
582    var script = document.createElement("script")
583    script.type = "text/javascript";
584
585    if (script.readyState){  //IE
586        script.onreadystatechange = function(){
587            if (script.readyState == "loaded" ||
588                script.readyState == "complete"){
589                script.onreadystatechange = null;
590                callback();
591            }
592        };
593    } else {  //Others
594        /*
595        script.onload = function(){
596
597            callback();
598        };
599         */
600    }
601
602    script.src = url;
603    $obj.get(0).appendChild(script);
604}
605
606/**
607 * Prepare html to correctly display inside tab container
608 *
609 * @param event - ui tab event 'show'
610 * @param ui - jquery ui tabs object
611 */
612
613function wpb_prepare_tab_content(event, ui) {
614    var panel = ui.panel || ui.newPanel;
615    vc_carouselBehaviour();
616    var $ui_panel = jQuery(panel).find('.isotope'),
617        $google_maps = jQuery(panel).find('.wpb_gmaps_widget');
618    if ($ui_panel.length > 0) {
619	    $ui_panel.isotope("reLayout");
620    }
621
622    if($google_maps.length && !$google_maps.is('.map_ready')) {
623        var $frame = $google_maps.find('iframe');
624        $frame.attr('src', $frame.attr('src'));
625        $google_maps.addClass('map_ready');
626    }
627}
628

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.