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