1var j$ = jQuery; 2j$.noConflict(); 3"use strict"; 4 5j$(document).ready(function() { 6 zt_elements_animation(); 7 zt_vc_column_equal_heights(); 8 zt_progress_bar(); 9 apress_spacer(); 10 if(j$('#apress_fullscreen_rows').length > 0 && j$(window).width() > 1000){ 11 zt_full_screen_rows(); 12 }else{ 13 j$('#apress_fullscreen_rows').css('opacity', 1); 14 } 15 apcore_verticalSplitSliderInit(); 16 apcore_animated_svg(); 17 apcore_slick_slider(); 18 apcore_imagebox_auto_height(); 19 apcore_testimonial_carousel(); 20}); 21 22j$(window).on('load',function () { 23 apcore_blogpostslider3(); 24 apcore_owl_slider(); 25 apcore_posttype_equal_heights(); 26 apcore_particles_custom(); 27 apcore_photo_gallery_justified(); 28 apcore_photo_gallery_masonry_grid(); 29 apcore_morphing_img(); 30 apcore_video_lightbox(); 31 32}); 33 34 35// Blog Post Slider Start 36function apcore_blogpostslider3(){ 37 if(j$("body").hasClass("rtl")){ var rtlvar = true }else{ var rtlvar = false } 38 j$(".postsliderstyle3").owlCarousel({ 39 stagePadding:200, 40 autoplay:true, 41 items:1, 42 loop:true, 43 rtl:rtlvar, 44 margin:8, 45 nav:true, 46 navText:["<i class=\"fa fa-angle-left\"></i>","<i class=\"fa fa-angle-right\"></i>"], 47 responsive:{ 48 0:{items:1,stagePadding:0,}, 49 500:{items:1,stagePadding:0,}, 50 800:{items:1,stagePadding:0,}, 51 1300:{items:1,stagePadding:300,} 52 } 53 54 }); 55}; 56function apcore_owl_slider(){ 57 if(j$("body").hasClass("rtl")){ var rtlvar = true }else{ var rtlvar = false } 58 j$('body').find('.zolo_owl_slider').each(function () { 59 60 var _this = j$(this); 61 62 var stagePadding = parseInt(_this.data('stage-padding')); 63 stagePadding = stagePadding > 0 ? stagePadding : 0; 64 _this.owlCarousel({ 65 66 margin: _this.data('margin'), 67 slideBy: _this.data('slide-by'), 68 loop: _this.data('loop'), 69 lazyLoad: _this.data('lazy-load'), 70 stagePadding: stagePadding, 71 autoHeight:_this.data('auto-height'), 72 autoWidth: _this.data('auto-width'), 73 center: _this.data('center'), 74 nav: _this.data('nav'), 75 dots: _this.data('dots'), 76 navContainer: 0, 77 dotsContainer: 0, 78 79 autoplay: _this.data('autoplay'), 80 autoplayTimeout: _this.data('autoplay-timeout'), 81 autoplaySpeed: _this.data('autoplay-speed'), 82 autoplayHoverPause: _this.data('autoplay-hover-pause'), 83 84 animateOut: _this.data('animate-out'), 85 animateIn: _this.data('animate-in'), 86 87 rtl:rtlvar, 88 navText: ["<span><i class=\"fa fa-angle-left\"></i></span>","<span><i class=\"fa fa-angle-right\"></i></span>"], 89 responsive: { 90 0: {items: _this.data('colums-mobile')}, 91 800: {items: _this.data('colums-tablet')}, 92 1050: {items: _this.data('colums-desktop')}, 93 } 94 }); 95 96 97 }); 98} 99 100//Testimonial Carousel Start 101function apcore_testimonial_carousel(){ 102 j$('body').find('.feedback-slider').each(function () { 103 var feedbackSlider = j$(this); 104 feedbackSlider.owlCarousel({ 105 items: 1, 106 nav: true, 107 dots: false, 108 autoplay: feedbackSlider.data('autoplay'), 109 autoHeight:true, 110 loop: feedbackSlider.data('loop'), 111 mouseDrag: true, 112 touchDrag: true, 113 navText: ["<i class='fa fa-long-arrow-left'></i>", "<i class='fa fa-long-arrow-right'></i>"], 114 responsive:{ 115 116 // breakpoint from 767 up 117 767:{ 118 nav: true, 119 dots: false 120 } 121 } 122 }); 123 124 feedbackSlider.on("translate.owl.carousel", function(){ 125 //j$(".zolo_testimonial_carousel_box .zolo_author_name, .zolo_author_designation, .zolo_author_text").removeClass("animated fadeIn").css("opacity", "0"); 126 j$(".zolo_testimonial_carousel_box img, .feedback-slider-thumb img, .customer-rating").removeClass("animated zoomIn").css("opacity", "0"); 127 }); 128 129 feedbackSlider.on("translated.owl.carousel", function(){ 130 //j$(".zolo_testimonial_carousel_box .zolo_author_name, .zolo_author_designation, .zolo_author_text").addClass("animated fadeIn").css("opacity", "1"); 131 j$(".zolo_testimonial_carousel_box img, .feedback-slider-thumb img, .customer-rating").addClass("animated zoomIn").css("opacity", "1"); 132 }); 133 feedbackSlider.on('changed.owl.carousel', function(property) { 134 var current = property.item.index; 135 var prevThumb = j$(property.target).find(".owl-item").eq(current).prev().find("img").attr('src'); 136 var nextThumb = j$(property.target).find(".owl-item").eq(current).next().find("img").attr('src'); 137 j$('.thumb-prev').find('img').attr('src', prevThumb); 138 j$('.thumb-next').find('img').attr('src', nextThumb); 139 }); 140 j$('.thumb-next').on('click', function() { 141 feedbackSlider.trigger('next.owl.carousel', [300]); 142 return false; 143 }); 144 j$('.thumb-prev').on('click', function() { 145 feedbackSlider.trigger('prev.owl.carousel', [300]); 146 return false; 147 }); 148 149 }); 150 151} //Testimonial Carousel end 152 153// Elements animation 154function zt_elements_animation(){ 155 j$('.animated').appear(function() { 156 var element = j$(this); 157 var animation = element.data('animation'); 158 var animationDelay = element.data('delay'); 159 if (animationDelay) { 160 setTimeout(function() { 161 element.addClass(animation + " visible"); 162 element.removeClass('hiding'); 163 if (element.hasClass('counter')) { 164 element.children('.value').countTo(); 165 } 166 }, animationDelay); 167 } else { 168 element.addClass(animation + " visible"); 169 element.removeClass('hiding'); 170 if (element.hasClass('counter')) { 171 element.children('.value').countTo(); 172 } 173 } 174 }, { 175 accY: -150 176 }); 177 178 // Clipping effect 179 180 var $element = j$('.apcore-clipping-animation'), 181 wrapper = '<div class="apcore-clipping-wrapper"><div class="apcore-clipping-content"></div></div>'; 182 183 $element.wrapInner( wrapper ); 184 185 $element.each(function(){ 186 var $that = j$(this), 187 $wrapper = $that.find('.apcore-clipping-wrapper'),
188 overlay = '<div class="apcore-clipping-overlay"></div>'; 189 190 j$(overlay).appendTo( $wrapper ); 191 }); 192 $element.appear(function() { 193 var $that = j$(this), 194 animation = $that.attr('data-animation'), 195 animationDelay = $that.attr('data-delay'); 196 if (animationDelay) { 197 setTimeout(function () { 198 $that.addClass(animation + " visible"); 199 $that.removeClass('clipping-hide'); 200 setTimeout(function(){ 201 $that.addClass('apcore-clipping-show-content'); 202 },700) 203 setTimeout(function(){ 204 $that.removeClass('apcore-clipping-animation'); 205 },1400) 206 }, animationDelay); 207 } else { 208 $that.addClass(animation + " visible"); 209 $that.removeClass('clipping-hide'); 210 setTimeout(function(){ 211 $that.addClass('apcore-clipping-show-content'); 212 },500) 213 } 214 }, { 215 accY: -150 216 }); 217 218} 219 220/* column Height */ 221function zt_vc_column_equal_heights(){ 222 223 j$('.vc_row-fluid').each(function() { 224 225 var highestBox = 0; 226 j$('.equal_height', this).each(function() { 227 228 if (j$(this).height() > highestBox) 229 highestBox = j$(this).height(); 230 }); 231 232 j$('.equal_height', this).height(highestBox); 233 }); 234} 235 236/* progress bar */ 237function zt_progress_bar(){ 238 239 j$(".z_pb_holder").appear(function(){ 240 j$(this).find(".progress_bar_sc").each(function (index) { 241 var j$this = j$(this), 242 bar = j$this.find(".pb_bg"), 243 bar_stripe = j$this.find(".pb_stripe"), 244 val = bar.data("percentage-value"); 245 246 setTimeout(function () { 247 bar.css({"width": val + "%"}); 248 bar_stripe.css({"width": val + "%"}); 249 }, index * 200); 250 }); 251 252 }); 253} 254//function for resize spacer 255function apress_spacer() { 256 var css = ''; 257 j$('.apress-spacer').each(function(i,spacer){ 258 var uid = j$(spacer).data('id'); 259 var body_width = j$("body").width(); 260 var height_on_mob = j$(spacer).data('height-mobile'); 261 var height_on_mob_landscape = j$(spacer).data('height-mobile-landscape'); 262 var height_on_tabs = j$(spacer).data('height-tab'); 263 var height_on_tabs_portrait = j$(spacer).data('height-tab-portrait'); 264 var height = j$(spacer).data('height'); 265 266 if(height != '') 267 { 268 css += ' .spacer-'+uid+' { height:'+height+'px } '; 269 } 270 if(height_on_tabs != '' || height_on_tabs == '0' || height_on_tabs == 0) 271 { 272 css += ' @media (max-width: 1199px) { .spacer-'+uid+' { height:'+height_on_tabs+'px } } '; 273 } 274 if(typeof height_on_tabs_portrait != 'undefined' && (height_on_tabs_portrait != '' || height_on_tabs_portrait == '0' || height_on_tabs_portrait == 0)) 275 { 276 css += ' @media (max-width: 991px) { .spacer-'+uid+' { height:'+height_on_tabs_portrait+'px } } '; 277 } 278 if(typeof height_on_mob_landscape != 'undefined' && (height_on_mob_landscape != '' || height_on_mob_landscape == '0' || height_on_mob_landscape == 0)) 279 { 280 css += ' @media (max-width: 767px) { .spacer-'+uid+' { height:'+height_on_mob_landscape+'px } } '; 281 } 282 if(height_on_mob != '' || height_on_mob == '0' || height_on_mob == 0) 283 { 284 css += ' @media (max-width: 479px) { .spacer-'+uid+' { height:'+height_on_mob+'px } } '; 285 } 286 }); 287 if(css != '') 288 { 289 css = '<style>'+css+'</style>'; 290 j$('head').append(css); 291 } 292} 293/* Full Screen Rows */ 294var fullpage_animation = j$('#apress_fullscreen_rows').data('fullpage-animation'); 295var $anchors = []; 296var $names = []; 297var $navigation; 298 299function setFPNames() { 300 $anchors = []; 301 $names = []; 302 j$('#apress_fullscreen_rows > .wpb_row').each(function(i){ 303 $id = (j$(this).is('[data-fullscreen-anchor-id]')) ? j$(this).attr('data-fullscreen-anchor-id') : ''; 304 //anchor checks 305 if(j$('#apress_fullscreen_rows[data-anchors="on"]').length > 0) { 306 $anchors.push($id); 307 } 308 309 $tooltip = (j$(this).is('[data-tooltip-name]')) ? j$(this).attr('data-tooltip-name') : ''; 310 311 if(j$('#apress_fullscreen_rows[data-dotnavigation="tooltip"]').length > 0 || j$('#apress_fullscreen_rows[data-dotnavigation="tooltip_alt"]').length > 0) { 312 //name checks 313 if($tooltip.indexOf('fp_') == -1) $names.push($tooltip); 314 else $names.push(); 315 } 316 if(j$('#apress_fullscreen_rows[data-dotnavigation="hidden"]').length > 0 ) { 317 $navigation = false; 318 }else{ 319 $navigation = true; 320 } 321 322 }); 323} 324setFPNames(); 325 326function zt_full_screen_rows(){ 327
328 j$('#apress_fullscreen_rows').fullpage({ 329 sectionSelector: '.zolo_wpb_row', 330 navigation: $navigation, 331 css3: true, 332 anchors: $anchors, 333 scrollOverflow: true, 334 navigationPosition: 'right', 335 navigationTooltips: $names, 336 337 afterLoad: function(anchorLink, index, slideAnchor, slideIndex){ 338 var pageNavs = j$('.zolo-header-area, body'); 339 var rowBrightness = j$(this).data('row-text-color'); 340 pageNavs.removeClass('header_show_with_dark_row header_show_with_light_row fp-moving fp-moving-down').addClass('header_show_with_' + rowBrightness + '_row'); 341 //pageNavs.removeClass('header-over-dark-row header-over-light-row').addClass('fp-moving-down header-over-' + nextRowBrightness + '-row'); 342 if(fullpage_animation == 'zoom_out' ){ 343 //reset animation attrs 344 j$('#apress_fullscreen_rows > .wpb_row:not(.active)').css({'transform':'translateY(0)','left':'-9999px', 'transition': 'none', 'opacity':'1', 'will-change':'auto'}); 345 j$('#apress_fullscreen_rows > .wpb_row').css({'transition': 'none', 'transform':'none', 'will-change':'auto'}); 346 } 347 }, 348 349 onLeave: function(index, nextIndex, direction){ 350 351 if(fullpage_animation == 'zoom_out' ){ 352 var $row_id = j$('#apress_fullscreen_rows > .wpb_row:nth-child('+nextIndex+')').attr('id'); 353 var $indexRow = j$('#apress_fullscreen_rows > .wpb_row:nth-child('+index+')'); 354 var $nextIndexRow = j$('#apress_fullscreen_rows > .wpb_row:nth-child('+nextIndex+')'); 355 var pageNavs = j$('.main-header, body'),nextRowBrightness = $nextIndexRow.data('row-text-color'); 356 357 var $fpAnimationSpeed; 358 $fpAnimationSpeed = 1050; 359 360 //scrolling down 361 if(direction == 'down') { 362 pageNavs.removeClass('header_show_with_dark_row header_show_with_light_row').addClass('fp-moving-down header_show_with_' + nextRowBrightness + '_row'); 363 364 $indexRow.css({'transition': 'opacity '+$fpAnimationSpeed+'ms cubic-bezier(0.37, 0.91, 0.90, 0.85), transform '+$fpAnimationSpeed+'ms cubic-bezier(0.37, 0.91, 0.90, 0.85)', 'z-index': '100', 'will-change':'transform'}); 365 setTimeout(function() { 366 $indexRow.css({'transform': 'scale(0.62) translateZ(0)', 'opacity': '0'}); 367 }, 60); 368 369 $nextIndexRow.css({'z-index':'1000','top':'0','left':'0'}); 370 371 } 372 //scrolling up 373 else { 374 pageNavs.removeClass('header_show_with_dark_row header_show_with_light_row').addClass('header_show_with_' + nextRowBrightness + '_row'); 375 376 $indexRow.css({'transition': 'opacity '+$fpAnimationSpeed+'ms cubic-bezier(0.37, 0.91, 0.90, 0.85), transform '+$fpAnimationSpeed+'ms cubic-bezier(0.37, 0.91, 0.90, 0.85)', 'z-index': '100', 'will-change':'transform'}); 377 setTimeout(function() { 378 $indexRow.css({'transform': 'scale(0.62) translateZ(0)', 'opacity': '0'}); 379 }, 60); 380 381 $nextIndexRow.css({'z-index':'1000','top':'0','left':'0'}); 382 383 } 384 } 385 }, 386 387 }); 388 j$('#apress_fullscreen_rows').css('opacity', 1); 389} 390 391/* 392 ** Vertical Split Slider 393 */ 394function apcore_verticalSplitSliderInit(){ 395 if(j$('.vertical_split_slider').length) { 396 j$( ".zolo_footer_area" ).remove(); 397 j$( ".pagetitle_parallax_section" ).remove(); 398 var $vertical_tt_names = []; 399 var $tooltips = []; 400 j$('.ms-left .ms_tool_tips').each(function(i){ 401 var $tooltips = j$(this).data("tool-tip"); 402 $vertical_tt_names.push($tooltips); 403 }); 404 405 j$('.vertical_split_slider').multiscroll({ 406 scrollingSpeed: 500, 407 navigation: true, 408 navigationTooltips: $vertical_tt_names, 409 410 //Events 411 afterLoad: function(anchorLink, index){ 412 413 if(j$('.vertical_split_slider').find('.ms-section.active').hasClass('dark')) { 414 j$('.zolo-header-area').removeClass('apress_splitpage_header_light').addClass('apress_splitpage_header_dark'); 415 j$('body').removeClass('apress_splitpage_light').addClass('apress_splitpage_dark'); 416 } else { 417 j$('.zolo-header-area').removeClass('apress_splitpage_header_dark').addClass('apress_splitpage_header_light'); 418 j$('body').removeClass('apress_splitpage_dark').addClass('apress_splitpage_light'); 419 } 420 }, 421 afterRender: function(){ 422 423 if(j$('.vertical_split_slider').find('.ms-section.active').hasClass('dark')) { 424 j$('.zolo-header-area').removeClass('apress_splitpage_header_light').addClass('apress_splitpage_header_dark'); 425 j$('body').removeClass('apress_splitpage_light').addClass('apress_splitpage_dark'); 426 } else { 427 j$('.zolo-header-area').removeClass('apress_splitpage_header_dark').addClass('apress_splitpage_header_light'); 428 j$('body').removeClass('apress_splitpage_dark').addClass('apress_splitpage_light'); 429 } 430 }, 431 afterResize: function(){}, 432 onLeave: function(index, nextIndex, direction){}, 433 }); 434 435 j$('html').addClass('apress_split_slider_enable'); 436 } 437} 438 439/* Column Height */ 440function apcore_posttype_equal_heights(){ 441 442 j$('.zolo_custom_posttype_style2').each(function() { 443 444 var highestBox3 = 0; 445 j$('.zolo_posttype_title_des', this).each(function() { 446 447 if (j$(this).height() > highestBox3) 448 highestBox3 = j$(this).height(); 449 }); 450 451 j$('.zolo_posttype_title_des', this).height(highestBox3); 452 }); 453} 454 455/* Animated SVG */ 456function apcore_animated_svg(){ 457 var $svg = j$('.zolo_gradient_svg_icon'); 458 $svg.each(function(){ 459 var $icon = j$(this), 460 duration = $icon.data('duration'), 461 id = $icon.attr('id'), 462 file = $icon.data('file'), 463 color = $icon.data('color'), 464 myVivus; 465 466 myVivus = new Vivus( id, { 467 duration : duration, 468 file : file, 469 type: 'async', 470 start : 'inViewport', 471 onReady: function (event) { 472 var strokegradients, strokeHoverGradients = document.createElementNS('http://www.w3.org/2000/svg', 'style'), 473 linearGradientEl = document.createElementNS('http://www.w3.org/2000/svg', 'linearGradient'), 474 gradientValues = typeof color !== typeof undefined && color !== null ? color.split(',') : '#000', 475 gid = Math.round(Math.random() * 1e6); 476 if (undefined === gradientValues[1]) { 477 gradientValues[1] = gradientValues[0]; 478 } 479 strokegradients = '<defs xmlns="http://www.w3.org/2000/svg"><linearGradient gradientUnits="userSpaceOnUse" id="grad' + gid + '" x1="0%" y1="0%" x2="0%" y2="
479100%">' + '<stop offset="0%" stop-color="' + gradientValues[0] + '" />' + '<stop offset="100%" stop-color="' + gradientValues[1] + '" />' + "</linearGradient></defs>"; 480 var xmlStrokegradients = new DOMParser().parseFromString(strokegradients, "text/xml"); 481 $icon.children('svg').prepend(xmlStrokegradients.documentElement); 482 $icon.children('svg').find('path').attr('stroke', 'url(#grad' + gid + ')'); 483 } 484 }); 485 }); 486} 487 488function apcore_slick_slider(){ 489 if(j$("body").hasClass("rtl")){ var rtlvar = true }else{ var rtlvar = false } 490 j$('body').find('.zolo_slick_slider').each(function () { 491 492 var _this = j$(this); 493 494 if(j$("body").hasClass("rtl")){ var rtlvar = true }else{ var rtlvar = false } 495 _this.find('.zolo_slick_slider_holder').slick({ 496 497 dots: _this.data('dots'), 498 infinite: _this.data('infinite'), 499 speed: _this.data('speed'), 500 rtl:rtlvar, 501 autoplay: _this.data('autoplay'), 502 autoplaySpeed:_this.data('autoplay-speed'), 503 arrows: _this.data('arrows'), 504 focusOnSelect:_this.data('focusonselect'), 505 506 fade:_this.data('fade'), 507 centerMode:_this.data('center-mode'), 508 lazyLoad:_this.data('lazy-load'), 509 510 centerPadding:_this.data('desktop-center-padding'), 511 variableWidth: _this.data('variable-width'), 512 slidesToShow:_this.data('desktop-show'), 513 slidesToScroll: 1, 514 responsive: [ 515 { 516 breakpoint: 1050, 517 settings: { 518 slidesToShow:_this.data('small-desktop-show'), 519 slidesToScroll: 1, 520 centerPadding:_this.data('small-desktop-padding'), 521 522 } 523 }, 524 { 525 breakpoint: 800, 526 settings: { 527 slidesToShow:_this.data('tablet-show'), 528 slidesToScroll: 1, 529 centerPadding:_this.data('tablet-padding'), 530 531 } 532 }, 533 ] 534 }); 535 if(_this.data('mouse-wheel') == 'yes'){ 536 537 _this.find('.zolo_slick_slider_holder').on("wheel", (function(e) { 538 e.preventDefault(); 539 540 if (e.originalEvent.deltaY < 0) { 541 j$(this).slick("slickPrev"); 542 } else {
543 j$(this).slick("slickNext"); 544 } 545 })); 546 547 } 548 549 }); 550} 551 552// Particle js 553function apcore_particles_custom () { 554 jQuery('.particles-js').each(function () { 555 var id = jQuery(this).attr('id'); 556 var type = jQuery(this).data('particles-type'); 557 var color_type = jQuery(this).data('particles-colors-type'); 558 var color = jQuery(this).data('particles-color'); 559 var color_line = jQuery(this).data('particles-color'); 560 var number = jQuery(this).data('particles-number'); 561 var lines = jQuery(this).data('particles-line'); 562 var size = jQuery(this).data('particles-size'); 563 var speed = jQuery(this).data('particles-speed'); 564 var hover = jQuery(this).data('particles-hover'); 565 var hover_mode = jQuery(this).data('particles-hover-mode'); 566 switch (type) { 567 case 'particles': 568 type = 'circle'; 569 break; 570 case 'hexagons': 571 type = 'polygon'; 572 break; 573 default: 574 type = 'circle'; 575 break; 576 } 577 if (color_type == 'random_colors') { 578 color = color.split(','); 579 color_line = color[0] 580 } 581 582 particlesJS( 583 id, { 584 "particles":{ 585 "number":{ 586 "value":number, 587 "density":{ 588 "enable":true, 589 "value_area":800 590 } 591 }, 592 "color":{ 593 "value": color 594 }, 595 "shape":{ 596 "type":type, 597 "polygon":{ 598 "nb_sides":6 599 }, 600 }, 601 "opacity":{ 602 "value":1, 603 "random":true, 604 "anim":{ 605 "enable":false, 606 "speed":1, 607 "opacity_min":0.1, 608 "sync":false 609 } 610 }, 611 "size":{ 612 "value":size, 613 "random":true, 614 "anim":{ 615 "enable":false, 616 "speed":30, 617 "size_min": 1, 618 "sync":false 619 } 620 }, 621 "line_linked":{ 622 "enable":lines, 623 "distance":150, 624 "color":color_line, 625 "opacity":0.4, 626 "width":1 627 }, 628 "move":{ 629 "enable":true, 630 "speed":speed, 631 "direction":"none", 632 "random":false, 633 "straight":false, 634 "out_mode":"out", 635 "bounce":false, 636 "attract":{ 637 "enable":false, 638 "rotateX":600, 639 "rotateY":1200 640 } 641 } 642 }, 643 "interactivity":{ 644 "detect_on":"canvas", 645 "events":{ 646 "onhover":{ 647 "enable":hover, 648 "mode":hover_mode 649 }, 650 "onclick":{ 651 "enable":true, 652 "mode":"push" 653 }, 654 "resize":true 655 }, 656 "modes":{ 657 "grab":{ 658 "distance":150, 659 "line_linked":{ 660 "opacity":1 661 } 662 }, 663 "bubble":{ 664 "distance":200, 665 "size":size*1.6, 666 "duration":20, 667 "opacity":1, 668 "speed":30 669 }, 670 "repulse":{ 671 "distance":80, 672 "duration":0.4 673 }, 674 "push":{"particles_nb":4}, 675 "remove":{"particles_nb":2} 676 } 677 }, 678 "retina_detect":true 679 }); 680 var update; 681 update = function() { 682 requestAnimationFrame(update); 683 }; 684 requestAnimationFrame(update); 685 }) 686} 687 688// Photo Gallery Justified 689function apcore_photo_gallery_justified(){ 690 j$('body').find('.layout_justify_wrap').each(function () { 691 var _this = j$(this); 692 var wrapper_class = _this.data('class'); 693 j$(wrapper_class).justifiedGallery({ 694 rowHeight : _this.data('rowheight'), 695 lastRow : _this.data('lastrow'), 696 margins : _this.data('margins'), 697 captions: false, 698 selector: 'a, li', 699 waitThumbnailsLoad: true, 700 imagesAnimationDuration: 300, 701 sizeRangeSuffixes: { 702 'lt100':'_t', 703 'lt240':'_m', 704 'lt320':'_n', 705 'lt500':'', 706 'lt640':'_z', 707 'lt1024':'_b' 708 } 709 }); 710 j$(this).addClass('loaded'); 711 }); 712}; 713 714// Photo Gallery Masonry and Grid 715function apcore_photo_gallery_masonry_grid(){ 716 717 j$('body').find('.photo_layout_wrap').each(function () { 718 719 var _this = j$(this); 720 var wrapper_class = _this.data('class'); 721 722 var $container2 = j$(wrapper_class); 723 $container2.imagesLoaded(function() { 724 $container2.animate({opacity:1}); 725 $container2.isotope({ 726 // options 727 layoutMode: _this.data('layoutmode'), 728 itemSelector: "."+_this.data('itemselector'), 729 }) 730 }); 731 732 }); 733}; 734//Morphing Image 735function apcore_morphing_img(){ 736 j$('.apress_morphing_wrap').each(function() { 737 var _this = j$(this); 738 var morphingduration = _this.data('morphingduration'); 739 var uniqid = _this.data('uniqid'); 740 var morphing = anime({ 741 targets: "#apress_morphing_path"+uniqid, 742 d: [ 743 { value: "M1009.6,511.6c0,218.7-263.4,380.6-500.5,380.6S52.6,623.8,52.6,405.1S370.3,18.5,607.4,18.5S1009.6,292.9,1009.6,511.6z" }, 744 { value: "M1062.1,502.6c0,218.7-239.9,355.5-477,355.5S43.6,637.3,43.6,418.6S480.2,39,717.3,39S1062.1,283.9,1062.1,502.6z" }, 745 { value: "M1022.4,500.3c0,218.7-243.7,379.6-480.8,379.6S19,633.1,19,414.5S238.5,45.1,475.6,45.1S1022.4,281.6,1022.4,500.3z" }, 746 { value: "M1009.6,511.6c0,218.7-263.4,380.6-500.5,380.6S26.7,626.5,26.7,407.8S370.3,18.5,607.4,18.5S1009.6,292.9,1009.6,511.6z" }, 747 ], 748 easing: "easeOutQuad", 749 duration: morphingduration, 750 loop: true, 751 autoplay: true 752 }); 753 }); 754}; 755//Video Lightbox 756function apcore_video_lightbox(){ 757 j$('.lightbox_type_video').each(function() { 758 var _this = j$(this); 759 var id = _this.data('id'); 760 j$("."+id).ApVideoPopUp({ autoplay: 1 }); 761 //j$("."+id).ApVideoPopUp({ autoplay: 0 }); // Disable autoplay 762 }); 763}; 764// Image Box New 765function apcore_imagebox_auto_height(){ 766 j$('.zolo_imagebox_new_wrapper').each(function() { 767 var id = j$(this).attr('id'); 768 var $height = j$('#'+id+".zolo_imagebox_new_wrapper.new_imagebox_style12 .zolo_imagebox_new_des_wrap").outerHeight(); 769 j$('#'+id+".zolo_imagebox_new_wrapper.new_imagebox_style12 .zolo_imagebox_new_content").css({bottom: -$height+'px'}); 770 771 }); 772}
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.