PageSourceSearch

https://doglegnews.com/wp-content/plugins/js_composer/assets/js/js_composer_front.js?ver=4.4.3

js doglegnews.com collected 2026-10-02 19:19:16 UTC 27,318 bytes, 803 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) {
6    if (prefix[i] + 'transform' in document.documentElement.style) document.documentElement.className += " vc_transform ";
7  }
8})();
9/*
10 On document ready jQuery will fire set of functions.
11 If you want to override function behavior then copy it to your theme js file
12 with the same name.
13 */
14
15jQuery(window).load(function () {
16
17
18});
19var vc_js = function () {
20  vc_twitterBehaviour();
21  vc_toggleBehaviour();
22  vc_toggleBehaviourOld(); // todo remove on next release
23  vc_tabsBehaviour();
24  vc_accordionBehaviour();
25  vc_teaserGrid();
26  vc_carouselBehaviour();
27  vc_slidersBehaviour();
28  vc_prettyPhoto();
29  vc_googleplus();
30  vc_pinterest();
31  vc_progress_bar();
32  vc_plugin_flexslider();
33  vc_google_fonts();
34  vc_gridBehaviour();
35  vc_rowBehaviour();
36  jQuery(document).trigger('vc_js');
37  window.setTimeout(vc_waypoints, 1500);
38};
39jQuery(document).ready(function ($) {
40  window.vc_js();
41}); // END jQuery(document).ready
42
43if (typeof window['vc_plugin_flexslider'] !== 'function') {
44  window.vc_plugin_flexslider = function($parent) {
45    var $slider = $parent ? $parent.find('.wpb_flexslider') : jQuery('.wpb_flexslider');
46    $slider.each(function () {
47      var this_element = jQuery(this);
48      var sliderSpeed = 800,
49        sliderTimeout = parseInt(this_element.attr('data-interval')) * 1000,
50        sliderFx = this_element.attr('data-flex_fx'),
51        slideshow = true;
52      if (sliderTimeout == 0) slideshow = false;
53
54      this_element.is(':visible') && this_element.flexslider({
55        animation:sliderFx,
56        slideshow:slideshow,
57        slideshowSpeed:sliderTimeout,
58        sliderSpeed:sliderSpeed,
59        smoothHeight:true
60      });
61    });
62  }
63}
64
65/* Twitter
66 ---------------------------------------------------------- */
67if (typeof window['vc_twitterBehaviour'] !== 'function') {
68  window.vc_twitterBehaviour = function() {
69    jQuery('.wpb_twitter_widget .tweets').each(function (index) {
70      var this_element = jQuery(this),
71        tw_name = this_element.attr('data-tw_name'),
72        tw_count = this_element.attr('data-tw_count');
73
74      this_element.tweet({
75        username:tw_name,
76        join_text:"auto",
77        avatar_size:0,
78        count:tw_count,
79        template:"{avatar}{join}{text}{time}",
80        auto_join_text_default:"",
81        auto_join_text_ed:"",
82        auto_join_text_ing:"",
83        auto_join_text_reply:"",
84        auto_join_text_url:"",
85        loading_text:'<span class="loading_tweets">loading tweets...</span>'
86      });
87    });
88  }
89}
90
91/* Google plus
92 ---------------------------------------------------------- */
93if (typeof window['vc_googleplus'] !== 'function') {
94  window.vc_googleplus = function() {
95    if (jQuery('.wpb_googleplus').length > 0) {
96      (function () {
97        var po = document.createElement('script');
98        po.type = 'text/javascript';
99        po.async = true;
100        po.src = 'https://apis.google.com/js/plusone.js';
101        var s = document.getElementsByTagName('script')[0];
102        s.parentNode.insertBefore(po, s);
103      })();
104    }
105  }
106}
107
108/* Pinterest
109 ---------------------------------------------------------- */
110if (typeof window['vc_pinterest'] !== 'function') {
111  window.vc_pinterest = function() {
112    if (jQuery('.wpb_pinterest').length > 0) {
113      (function () {
114        var po = document.createElement('script');
115        po.type = 'text/javascript';
116        po.async = true;
117        po.src = 'http://assets.pinterest.com/js/pinit.js';
118        var s = document.getElementsByTagName('script')[0];
119        s.parentNode.insertBefore(po, s);
120        //<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
121      })();
122    }
123  }
124}
125
126/* Progress bar
127 ---------------------------------------------------------- */
128if (typeof window['vc_progress_bar'] !== 'function') {
129  window.vc_progress_bar = function() {
130    if (typeof jQuery.fn.waypoint !== 'undefined') {
131
132      jQuery('.vc_progress_bar').waypoint(function () {
133        jQuery(this).find('.vc_single_bar').each(function (index) {
134          var $this = jQuery(this),
135            bar = $this.find('.vc_bar'),
136            val = bar.data('percentage-value');
137
138          setTimeout(function () {
139            bar.css({"width":val + '%'});
140          }, index * 200);
141        });
142      }, { offset:'85%' });
143    }
144  }
145}
146
147/* Waypoints magic
148 ---------------------------------------------------------- */
149if (typeof window['vc_waypoints'] !== 'function') {
150  window.vc_waypoints = function() {
151    if (typeof jQuery.fn.waypoint !== 'undefined') {
152      jQuery('.wpb_animate_when_almost_visible:not(.wpb_start_animation)').waypoint(function () {
153        jQuery(this).addClass('wpb_start_animation');
154      }, { offset:'85%' });
155    }
156  }
157}
158
159/* Toggle
160 * @deprecated since 4.4
161 ---------------------------------------------------------- */
162// @todo remove on next release
163if (typeof window['vc_toggleBehaviourOld'] !== 'function') {
164	/**
165	 * @deprecated will be removed in next release
166	 */
167  window.vc_toggleBehaviourOld = function() {
168    jQuery(".wpb_toggle").unbind('click').click(function (e) {
169      if (jQuery(this).next().is(':animated')) {
170        return false;
171      }
172      if (jQuery(this).hasClass('wpb_toggle_title_active')) {
173        jQuery(this).removeClass('wpb_toggle_title_active').next().slideUp(500);
174      } else {
175        jQuery(this).addClass('wpb_toggle_title_active').next().slideDown(500);
176      }
177    });
178    jQuery('.wpb_toggle_content').each(function (index) {
179      if (jQuery(this).next().is('h4.wpb_toggle') == false) {
180        jQuery('<div class="last_toggle_el_margin"></div>').insertAfter(this);
181      }
182    });
183  }
184}
185
186/* Toggle/FAQ
187 ---------------------------------------------------------- */
188if (typeof window['vc_toggleBehaviour'] !== 'function') {
189    window.vc_toggleBehaviour = function($el) {
190	    var event = function(e) {
191		    e && e.preventDefault && e.preventDefault();
192		    var title = jQuery(this);
193		    var element = title.closest('.vc_toggle');
194		    var content = element.find('.vc_toggle_content');
195		    if (element.hasClass('vc_toggle_active')) {
196			    content.slideUp({
197				    duration: 300,
198				    complete: function () {
199					    element.removeClass('vc_toggle_active');
200				    }
201			    });
202		    } else {
203			    content.slideDown({
204				    duration: 300,
205				    complete: function () {
206					    element.addClass('vc_toggle_active');
207				    }
208			    });
209		    }
210	    };
211	    if($el) {
212		    if($el.hasClass('vc_toggle_title')) {
213			    $el.unbind('click').click(event);
214		    } else {
215			    $el.find(".vc_toggle_title").unbind('click').click(event);
216		    }
217	    } else {
218		    jQuery(".vc_toggle_title").unbind('click').on('click', event);
219	    }
220    }
221}
222
223/* Tabs + Tours
224 ---------------------------------------------------------- */
225if (typeof window['vc_tabsBehaviour'] !== 'function') {
226  window.vc_tabsBehaviour = function($tab) {
227	  if (jQuery.ui) {
228		  /* jQuery(function ($) {
229		   $(document.body).off('click.preview', 'a')
230		   }); */ // this causes wp-customizer bug
231		  var $call = $tab || jQuery('.wpb_tabs, .wpb_tour'),
232			  ver = jQuery.ui && jQuery.ui.version ? jQuery.ui.version.split('.') : '1.10',
233			  old_version = parseInt(ver[0]) == 1 && parseInt(ver[1]) < 9;
234		  // if($call.hasClass('ui-widget')) $call.tabs('destroy');
235		  $call.each(function (index) {
236			  var $tabs,
237				  interval = jQuery(this).attr("data-interval"),
238				  tabs_array = [];
239			  //
240			  $tabs = jQuery(this).find('.wpb_tour_tabs_wrapper').tabs({
241				  show: function (event, ui) {
242					  wpb_prepare_tab_content(event, ui);
243				  },
244				  beforeActivate: function (event, ui) {
245					  ui.newPanel.index() !== 1 && ui.newPanel.find('.vc_pie_chart:not(.vc_ready)');
246				  },
247				  activate: function (event, ui) {
248					  wpb_prepare_tab_content(event, ui);
249				  }
250			  });
251			  if(interval && interval > 0) {
252				  try {
253					  $tabs.tabs('rotate', interval * 1000);
254				  } catch(e){
255					  // nothing.
256					  window.console && window.console.log && console.log(e);
257				  }
258			  }
259
260			  jQuery(this).find('.wpb_tab').each(function () {
261				  tabs_array.push(this.id);
262			  });
263
264			  jQuery(this).find('.wpb_tabs_nav li').click(function (e) {
265				  e.preventDefault();
266				  /*if (jQuery.inArray(jQuery(this).attr('href'), tabs_array)) {
267				   if (old_version) {
268				   $tabs.tabs("select", jQuery(this).attr('href'));
269				   } else {
270				   $tabs.tabs("option", "active", jQuery(jQuery(this).attr('href')).index() - 1);
271				   }
272				   return false;
273				   }*/
274				  if (old_version) {
275					  $tabs.tabs("select", jQuery('a', this).attr('href'));
276				  } else {
277					  $tabs.tabs("option", "active", jQuery(this).index());
278				  }
279				  return false;
280			  });
281
282			  jQuery(this).find('.wpb_prev_slide a, .wpb_next_slide a').click(function (e) {
283				  e.preventDefault();
284				  if (old_version) {
285					  var index = $tabs.tabs('option', 'selected');
286					  if (jQuery(this).parent().hasClass('wpb_next_slide')) {
287						  index++;
288					  }
289					  else {
290						  index--;
291					  }
292					  if (index < 0) {
293						  index = $tabs.tabs("length") - 1;
294					  }
295					  else if (index >= $tabs.tabs("length")) {
296						  index = 0;
297					  }
298					  $tabs.tabs("select", index);
299				  } else {
300					  var index = $tabs.tabs("option", "active"),
301						  length = $tabs.find('.wpb_tab').length;
302
303					  if (jQuery(this).parent().hasClass('wpb_next_slide')) {
304						  index = (index + 1) >= length ? 0 : index + 1;
305					  } else {
306						  index = index - 1 < 0 ? length - 1 : index - 1;
307					  }
308
309					  $tabs.tabs("option", "active", index);
310				  }
311
312			  });
313
314		  });
315	  }
316  }
317};
318
319/* Tabs + Tours
320 ---------------------------------------------------------- */
321if (typeof window['vc_accordionBehaviour'] !== 'function') {
322  window.vc_accordionBehaviour = function() {
323    jQuery('.wpb_accordion').each(function (index) {
324      var $this = jQuery(this);
325      var $tabs,
326        interval = $this.attr("data-interval"),
327        active_tab = !isNaN(jQuery(this).data('active-tab')) && parseInt($this.data('active-tab')) > 0 ? parseInt($this.data('active-tab')) - 1 : false,
328        collapsible = active_tab === false || $this.data('collapsible') === 'yes';
329      //
330      $tabs = $this.find('.wpb_accordion_wrapper').accordion({
331        header:"> div > h3",
332        autoHeight:false,
333        heightStyle:"content",
334        active:active_tab,
335        collapsible:collapsible,
336        navigation:true,
337
338        activate: vc_accordionActivate,
339        change:function (event, ui) {
340          if (jQuery.fn.isotope != undefined) {
341            ui.newContent.find('.isotope').isotope("layout");
342          }
343          vc_carouselBehaviour(ui.newPanel);
344        }
345      });
346		if(true === $this.data('vcDisableKeydown')) {
347			$tabs.data('uiAccordion')._keydown = function() {};
348		}
349      //.tabs().tabs('rotate', interval*1000, true);
350    });
351  }
352}
353
354/* Teaser grid: isotope
355 ---------------------------------------------------------- */
356if (typeof window['vc_teaserGrid'] !== 'function') {
357  window.vc_teaserGrid = function() {
358    var layout_modes = {
359      fitrows:'fitRows',
360      masonry:'masonry'
361    };
362    jQuery('.wpb_grid .teaser_grid_container:not(.wpb_carousel), .wpb_filtered_grid .teaser_grid_container:not(.wpb_carousel)').each(function () {
363      var $container = jQuery(this);
364      var $thumbs = $container.find('.wpb_thumbnails');
365      var layout_mode = $thumbs.attr('data-layout-mode');
366      $thumbs.isotope({
367        // options
368        itemSelector:'.isotope-item',
369        layoutMode:(layout_modes[layout_mode] == undefined ? 'fitRows' : layout_modes[layout_mode])
370      });
371      $container.find('.categories_filter a').data('isotope', $thumbs).click(function (e) {
372        e.preventDefault();
373        var $thumbs = jQuery(this).data('isotope');
374        jQuery(this).parent().parent().find('.active').removeClass('active');
375        jQuery(this).parent().addClass('active');
376        $thumbs.isotope({filter:jQuery(this).attr('data-filter')});
377      });
378      jQuery(window).bind('load resize', function () {
379        $thumbs.isotope("layout");
380      });
381    });
382
383    /*
384     var isotope = jQuery('.wpb_grid ul.thumbnails');
385     if ( isotope.length > 0 ) {
386     isotope.isotope({
387     // options
388     itemSelector : '.isotope-item',
389     layoutMode : 'fitRows'
390     });
391     jQuery(window).load(function() {
392     isotope.isotope("layout");
393     });
394     }
395     */
396  }
397}
398
399if (typeof window['vc_carouselBehaviour'] !== 'function') {
400  window.vc_carouselBehaviour = function($parent) {
401    var $carousel = $parent ? $parent.find(".wpb_carousel") : jQuery(".wpb_carousel");
402    $carousel.each(function () {
403      var $this = jQuery(this);
404      if ($this.data('carousel_enabled') !== true && $this.is(':visible')) {
405        $this.data('carousel_enabled', true);
406        var carousel_width = jQuery(this).width(),
407          visible_count = getColumnsCount(jQuery(this)),
408          carousel_speed = 500;
409        if (jQuery(this).hasClass('columns_count_1')) {
410          carousel_speed = 900;
411        }
412        /* Get margin-left value from the css grid and apply it to the carousele li items (margin-right), before carousele initialization */
413        var carousele_li = jQuery(this).find('.wpb_thumbnails-fluid li');
414        carousele_li.css({"margin-right":carousele_li.css("margin-left"), "margin-left":0 });
415
416        jQuery(this).find('.wpb_wrapper:eq(0)').jCarouselLite({
417          btnNext:jQuery(this).find('.next'),
418          btnPrev:jQuery(this).find('.prev'),
419          visible:visible_count,
420          speed:carousel_speed
421        })
422          .width('100%');
422//carousel_width
423
424        var fluid_ul = jQuery(this).find('ul.wpb_thumbnails-fluid');
425        fluid_ul.width(fluid_ul.width() + 300);
426
427        jQuery(window).resize(function () {
428          var before_resize = screen_size;
429          screen_size = getSizeName();
430          if (before_resize != screen_size) {
431            window.setTimeout('location.reload()', 20);
432          }
433        });
434      }
435
436    });
437    /*
438     if(jQuery.fn.bxSlider !== undefined ) {
439     jQuery('.bxslider').each(function(){
440     var $slider = jQuery(this);
441     $slider.bxSlider($slider.data('settings'));
442     });
443     }
444     */
445    if (window.Swiper !== undefined) {
446
447      jQuery('.swiper-container').each(function () {
448        var $this = jQuery(this),
449          my_swiper,
450          max_slide_size = 0,
451          options = jQuery(this).data('settings');
452
453        if (options.mode === 'vertical') {
454          $this.find('.swiper-slide').each(function () {
455            var height = jQuery(this).outerHeight(true);
456            if (height > max_slide_size) max_slide_size = height;
457          });
458          $this.height(max_slide_size);
459          $this.css('overflow', 'hidden');
460        }
461        jQuery(window).resize(function () {
462          $this.find('.swiper-slide').each(function () {
463            var height = jQuery(this).outerHeight(true);
464            if (height > max_slide_size) max_slide_size = height;
465          });
466          $this.height(max_slide_size);
467        });
468        my_swiper = jQuery(this).swiper(jQuery.extend(options, {
469          onFirstInit:function (swiper) {
470            if (swiper.slides.length < 2) {
471              $this.find('.vc_arrow-left,.vc_arrow-right').hide();
472            } else if (swiper.activeIndex === 0 && swiper.params.loop !== true) {
473              $this.find('.vc_arrow-left').hide();
474            } else {
475              $this.find('.vc_arrow-left').show();
476            }
477          },
478          onSlideChangeStart:function (swiper) {
479            if (swiper.slides.length > 1 && swiper.params.loop !== true) {
480              if (swiper.activeIndex === 0) {
481                $this.find('.vc_arrow-left').hide();
482              } else {
483                $this.find('.vc_arrow-left').show();
484              }
485              if (swiper.slides.length - 1 === swiper.activeIndex) {
486                $this.find('.vc_arrow-right').hide();
487              } else {
488                $this.find('.vc_arrow-right').show();
489              }
490            }
491          }
492        }));
493        $this.find('.vc_arrow-left').click(function (e) {
494          e.preventDefault();
495          my_swiper.swipePrev();
496        });
497        $this.find('.vc_arrow-right').click(function (e) {
498          e.preventDefault();
499          my_swiper.swipeNext();
500        });
501        my_swiper.reInit();
502      });
503
504    }
505
506  }
507}
508
509if (typeof window['vc_slidersBehaviour'] !== 'function') {
510  window.vc_slidersBehaviour = function() {
511    //var sliders_count = 0;
512    jQuery('.wpb_gallery_slides').each(function (index) {
513      var this_element = jQuery(this);
514      var ss_count = 0, $imagesGrid;
515
516      /*if ( this_element.hasClass('wpb_slider_fading') ) {
517       var sliderSpeed = 500, sliderTimeout = this_element.attr('data-interval')*1000, slider_fx = 'fade';
518       var current_ss;
519
520       function slideshowOnBefore(currSlideElement, nextSlideElement, options) {
521       jQuery(nextSlideElement).css({"position" : "absolute" });
522       jQuery(nextSlideElement).find("div.description").animate({"opacity": 0}, 0);
523       }
524
525       function slideshowOnAfter(currSlideElement, nextSlideElement, options) {
526       jQuery(nextSlideElement).find("div.description").animate({"opacity": 1}, 2000);
527
528       jQuery(nextSlideElement).css({"position" : "static" });
529       var new_h = jQuery(nextSlideElement).find('img').height();
530       if ( jQuery.isNumeric(new_h) ) {
531       //this_element.animate({ "height" : new_h }, sliderSpeed );
532       }
533       }
534
535       this_element.find('ul')
536       .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>')
537       .cycle({
538       fx: slider_fx, // choose your transition type, ex: fade, scrollUp, shuffle, etc...
539       pause: 1,
540       speed: sliderSpeed,
541       timeout: sliderTimeout,
542       delay: -ss_count * 1000,
543       before: slideshowOnBefore,
544       after:slideshowOnAfter,
545       pager:  '.ss_nav_'+ss_count
546       });
547       //.find('.description').width(jQuery(this).width() - 20);
548       ss_count++;
549       }
550       else*/
551      if (this_element.hasClass('wpb_slider_nivo')) {
552        var sliderSpeed = 800,
553          sliderTimeout = this_element.attr('data-interval') * 1000;
554
555        if (sliderTimeout == 0) sliderTimeout = 9999999999;
556
557        this_element.find('.nivoSlider').nivoSlider({
558          effect:'boxRainGrow,boxRain,boxRainReverse,boxRainGrowReverse', // Specify sets like: 'fold,fade,sliceDown'
559          slices:15, // For slice animations
560          boxCols:8, // For box animations
561          boxRows:4, // For box animations
562          animSpeed:sliderSpeed, // Slide transition speed
563          pauseTime:sliderTimeout, // How long each slide will show
564          startSlide:0, // Set starting Slide (0 index)
565          directionNav:true, // Next & Prev navigation
566          directionNavHide:true, // Only show on hover
567          controlNav:true, // 1,2,3... navigation
568          keyboardNav:false, // Use left & right arrows
569          pauseOnHover:true, // Stop animation while hovering
570          manualAdvance:false, // Force manual transitions
571          prevText:'Prev', // Prev directionNav text
572          nextText:'Next' // Next directionNav text
573        });
574      }
575      else if (this_element.hasClass('wpb_image_grid')) {
576        if(jQuery.fn.imagesLoaded) {
577          $imagesGrid = this_element.find('.wpb_image_grid_ul').imagesLoaded(function(){
578            $imagesGrid.isotope({
579              // options
580              itemSelector:'.isotope-item',
581              layoutMode:'fitRows'
582            });
583          });
584        } else {
585          this_element.find('.wpb_image_grid_ul').isotope({
586            // options
587            itemSelector:'.isotope-item',
588            layoutMode:'fitRows'
589          });
590        }
591
592      }
593    });
594  }
595}
596
597if (typeof window['vc_prettyPhoto'] !== 'function') {
598  window.vc_prettyPhoto = function() {
599    try {
600      // just in case. maybe prettyphoto isnt loaded on this site
601	  if(jQuery && jQuery.fn && jQuery.fn.prettyPhoto) {
602		  jQuery('a.prettyphoto, .gallery-icon a[href*=".jpg"]').prettyPhoto({
603			  animationSpeed: 'normal', /* fast/slow/normal */
604			  padding: 15, /* padding for each side of the picture */
605			  opacity: 0.7, /* Value betwee 0 and 1 */
606			  showTitle: true, /* true/false */
607			  allowresize: true, /* true/false */
608			  counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
609			  //theme: 'light_square', /* light_rounded / dark_rounded / light_square / dark_square */
610			  hideflash: false, /* Hides all the flash object on a page, set to TRUE if flash appears over prettyPhoto */
611			  deeplinking: false, /* Allow prettyPhoto to update the url to enable deeplinking. */
612			  modal: false, /* If set to true, only the close button will close the window */
613			  callback: function () {
614				  var url = location.href;
615				  var hashtag = (url.indexOf('#!prettyPhoto')) ? true : false;
616				  if (hashtag) location.hash = "!";
617			  } /* Called when prettyPhoto is closed */,
618			  social_tools: ''
619		  });
620	  }
621    } catch (err) {
622	    window.console && window.console.log && console.log(err);
623    }
624  }
625}
626
627if ( typeof window['vc_google_fonts'] !== 'function' ) {
628    window.vc_google_fonts = function() {
629        return false; // @todo check this for what this is needed
630    }
631}
632
633if (typeof window['vc_rowBehaviour'] !== 'function') {
634  window.vc_rowBehaviour = function () {
635    var $ = window.jQuery;
636    var local_function = function () {
637      var $elements = $('[data-vc-full-width="true"]');
638      $.each($elements, function (key, item) {
639        var $el = $(this);
640        var $el_full = $el.next('.vc_row-full-width');
641        var offset = 0 - $el_full.offset().left - parseInt($el.css('margin-left'));
642        $el.css({
643          'position': 'relative',
644          'left': offset,
645          'box-sizing': 'border-box',
646          'width': $(window).width()
647        });
648        if (!$el.data('vcStretchContent')) {
649	        var padding = (-1 * offset);
650	        if(padding < 0) { padding = 0; }
651          $el.css({'padding-left': padding+'px', 'padding-right': padding+'px'});
652        }
653      });
654    };
655    $(window).unbind('resize.vcRowBehaviour').bind('resize.vcRowBehaviour',local_function);
656    local_function();
657  }
658}
659
660if ( typeof window['vc_gridBehaviour'] !== 'function' ) {
661	window.vc_gridBehaviour = function() {
662		jQuery.fn.vcGrid && jQuery('[data-vc-grid]').vcGrid();
663	}
664}
665/* Helper
666 ---------------------------------------------------------- */
667if (typeof window['getColumnsCount'] !== 'function') {
668  window.getColumnsCount = function(el) {
669    var find = false,
670        i = 1;
671
672    while (find == false) {
673      if (el.hasClass('columns_count_' + i)) {
674        find = true;
675        return i;
676      }
677      i++;
678    }
679  }
680}
681
682var screen_size = getSizeName();
683function getSizeName() {
684  var screen_size = '',
685    screen_w = jQuery(window).width();
686
687  if (screen_w > 1170) {
688    screen_size = "desktop_wide";
689  }
690  else if (screen_w > 960 && screen_w < 1169) {
691    screen_size = "desktop";
692  }
693  else if (screen_w > 768 && screen_w < 959) {
694    screen_size = "tablet";
695  }
696  else if (screen_w > 300 && screen_w < 767) {
697    screen_size = "mobile";
698  }
699  else if (screen_w < 300) {
700    screen_size = "mobile_portrait";
701  }
702  return screen_size;
703}
704
705
706function loadScript(url, $obj, callback) {
707
708  var script = document.createElement("script")
709  script.type = "text/javascript";
710
711  if (script.readyState) {  //IE
712    script.onreadystatechange = function () {
713      if (script.readyState == "loaded" ||
714        script.readyState == "complete") {
715        script.onreadystatechange = null;
716        callback();
717      }
718    };
719  } else {  //Others
720    /*
721     script.onload = function(){
722
723     callback();
724     };
725     */
726  }
727
728  script.src = url;
729  $obj.get(0).appendChild(script);
730}
731
732
733if (typeof window['wpb_prepare_tab_content'] !== 'function') {
734  /**
735   * Prepare html to correctly display inside tab container
736   *
737   * @param event - ui tab event 'show'
738   * @param ui - jquery ui tabs object
739   */
740  window.wpb_prepare_tab_content = function(event, ui) {
741    var panel = ui.panel || ui.newPanel,
742        $pie_charts = panel.find('.vc_pie_chart:not(.vc_ready)'),
743        $carousel = panel.find('[data-ride="vc_carousel"]'),
744        $ui_panel, $google_maps;
745    vc_carouselBehaviour();
746    vc_plugin_flexslider(panel);
747    if(ui.newPanel.find('.vc_masonry_media_grid, .vc_masonry_grid').length) {
748      ui.newPanel.find('.vc_masonry_media_grid, .vc_masonry_grid').each(function(){
749        var grid = jQuery(this).data('vcGrid');
750        grid && grid.gridBuilder && grid.gridBuilder.setMasonry && grid.gridBuilder.setMasonry();
751      });
752    }
753    if(panel.find('.vc_masonry_media_grid, .vc_masonry_grid').length) {
754      panel.find('.vc_masonry_media_grid, .vc_masonry_grid').each(function(){
755        var grid = jQuery(this).data('vcGrid');
756        grid && grid.gridBuilder && grid.gridBuilder.setMasonry && grid.gridBuilder.setMasonry();
757      });
758    }
759    $pie_charts.length && jQuery.fn.vcChat && $pie_charts.vcChat();
760    $carousel.length && jQuery.fn.carousel && $carousel.carousel('resizeAction');
761    $ui_panel = panel.find('.isotope, .wpb_image_grid_ul'); // why var name '$ui_panel'?
762    $google_maps = panel.find('.wpb_gmaps_widget');
763    if ($ui_panel.length > 0) {
764      $ui_panel.isotope("layout");
765    }
766    if ($google_maps.length && !$google_maps.is('.map_ready')) {
767      var $frame = $google_maps.find('iframe');
768      $frame.attr('src', $frame.attr('src'));
769      $google_maps.addClass('map_ready');
770    }
771    if (panel.parents('.isotope').length) {
772      panel.parents('.isotope').each(function () {
773        jQuery(this).isotope("layout");
774      });
775    }
776  }
777}
778
779var vc_accordionActivate = function (event, ui) {
780  if (ui.newPanel.length && ui.newHeader.length) {
781    var $pie_charts = ui.newPanel.find('.vc_pie_chart:not(.vc_ready)'),
782        $carousel = ui.newPanel.find('[data-ride="vc_carousel"]');
783    if (jQuery.fn.isotope != undefined) {
784      ui.newPanel.find('.isotope, .wpb_image_grid_ul').isotope("layout");
785    }
786    if(ui.newPanel.find('.vc_masonry_media_grid, .vc_masonry_grid').length) {
787      ui.newPanel.find('.vc_masonry_media_grid, .vc_masonry_grid').each(function(){
788        var grid = jQuery(this).data('vcGrid');
789        grid && grid.gridBuilder && grid.gridBuilder.setMasonry && grid.gridBuilder.setMasonry();
790      });
791    }
792    //jQuery('html, body').animate({scrollTop: ui.newHeader.offset().top - 100}, 1000); // #1370 enhancement, #1762 issue.
793    vc_carouselBehaviour(ui.newPanel);
794    vc_plugin_flexslider(ui.newPanel);
795    $pie_charts.length && jQuery.fn.vcChat && $pie_charts.vcChat();
796    $carousel.length && jQuery.fn.carousel && $carousel.carousel('resizeAction');
797    if (ui.newPanel.parents('.isotope').length) {
798      ui.newPanel.parents('.isotope').each(function () {
799        jQuery(this).isotope("layout");
800      });
801    }
802  }
803};

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.