1;(function($) { 2 3 'use strict' 4 5 var portfolioCube = function() { 6 if ( $().cubeportfolio ) { 7 $('.vincent-project-grid').each(function() { 8 var 9 $this = $(this), 10 item = $this.data("column"), 11 item2 = $this.data("column2"), 12 item3 = $this.data("column3"), 13 item4 = $this.data("column4"), 14 gapH = Number($this.data("gaph")), 15 gapV = Number($this.data("gapv")), 16 filter = $this.data("filter"), 17 layout = $this.data("layout"); 18 19 if ( !filter ) { filter = '*'; } 20 else { filter = '.' + filter; } 21 22 $(this).find('#portfolio').cubeportfolio({ 23 filters: '#project-filter', 24 layoutMode: layout, 25 defaultFilter: filter, 26 animationType: 'quicksand', 27 gapHorizontal: gapH, 28 gapVertical: gapV, 29 showNavigation: true, 30 showPagination: true, 31 gridAdjustment: 'responsive', 32 rewindNav: false, 33 auto: false, 34 mediaQueries: [{ 35 width: 1500, 36 cols: item 37 }, { 38 width: 1100, 39 cols: item 40 }, { 41 width: 800, 42 cols: item2 43 }, { 44 width: 550, 45 cols: item3 46 }, { 47 width: 320, 48 cols: item4 49 }], 50 caption: 'overlayBottomAlong', 51 displayType: 'bottomToTop', 52 displayTypeSpeed: 100 53 }); 54 }); 55 } 56 }; 57 58 var imagesCube = function() { 59 $('.vincent-images-grid').each(function() { 60 var 61 $this = $(this), 62 layout = $this.data("layout"), 63 item = $this.data("column"), 64 item2 = $this.data("column2"), 65 item3 = $this.data("column3"), 66 item4 = $this.data("column4"), 67 layout = $this.data("layout"), 68 gapH = Number($this.data("gaph")), 69 gapV = Number($this.data("gapv")); 70 71 $(this).find('#images-wrap').cubeportfolio({ 72 layoutMode: layout, 73 defaultFilter: '*', 74 animationType: 'quicksand', 75 gapHorizontal: gapH, 76 gapVertical: gapV, 77 showNavigation: false, 78 showPagination: true, 79 gridAdjustment: 'responsive', 80 rewindNav: false, 81 auto: true, 82 mediaQueries: [{ 83 width: 1500, 84 cols: item 85 }, { 86 width: 1100, 87 cols: item 88 }, { 89 width: 800, 90 cols: item2 91 }, { 92 width: 550, 93 cols: item3 94 }, { 95 width: 320, 96 cols: item4 97 }], 98 caption: ' ', 99 displayType: 'bottomToTop', 100 displayTypeSpeed: 100 101 }); 102 }); 103 }; 104 105 var projectRelatedOwl = function() { 106 if ( $().owlCarousel ) { 107 $('.project-related').each(function(){ 108 var 109 $this = $(this), 110 gap = Number($this.data("gap")), 111 column = $this.data("column"); 112 113 $this.find('.owl-carousel').owlCarousel({ 114 loop: false, 115 margin: gap, 116 nav: true, 117 navigation : true, 118 pagination: true, 119 autoplay: true, 120 autoplayTimeout: 5000, 121 responsive: { 122 0:{ 123 items:1 124 }, 125 600:{ 126 items:2 127 }, 128 1000:{ 129 items:column 130 } 131 } 132 }); 133 }); 134 } 135 }; 136 137 var carouselBoxOwl = function() { 138 if ( $().owlCarousel ) {
139 $('.vincent-carousel-box').each(function(){ 140 var 141 $this = $(this), 142 auto = $this.data("auto"), 143 loop = $this.data("loop"), 144 item = $this.data("column"), 145 item2 = $this.data("column2"), 146 item3 = $this.data("column3"), 147 gap = Number($this.data("gap")); 148 149 $this.find('.owl-carousel').owlCarousel({ 150 loop: loop, 151 margin: gap, 152 nav: true, 153 navigation : true, 154 pagination: true, 155 autoplay: auto, 156 autoplayTimeout: 5000, 157 responsive: { 158 0:{ 159 items:item3 160 }, 161 600:{ 162 items:item2 163 }, 164 1000:{ 165 items:item 166 } 167 } 168 }); 169 }); 170 } 171 }; 172 173 var portfolioOwl = function() { 174 if ( $().owlCarousel ) { 175 $('.vincent-project').each(function(){ 176 var 177 $this = $(this), 178 auto = $this.data("auto"), 179 item = $this.data("column"), 180 item2 = $this.data("column2"), 181 item3 = $this.data("column3"), 182 gap = Number($this.data("gap")); 183 184 $this.find('.owl-carousel').owlCarousel({ 185 loop: false, 186 margin: gap, 187 nav: true, 188 navigation : true, 189 pagination: true, 190 autoplay: auto, 191 autoplayTimeout: 5000, 192 responsive: { 193 0:{ 194 items:item3 195 }, 196 600:{ 197 items:item2 198 }, 199 1000:{ 200 items:item 201 } 202 } 203 }); 204 }); 205 } 206 }; 207 208 var newsOwl = function() { 209 if ( $().owlCarousel ) { 210 $('.vincent-news').each(function(){ 211 var 212 $this = $(this), 213 auto = $this.data("auto"), 214 item = $this.data("column"), 215 item2 = $this.data("column2"), 216 item3 = $this.data("column3"), 217 gap = Number($this.data("gap")); 218 219 $this.find('.owl-carousel').owlCarousel({ 220 loop: false, 221 margin: gap, 222 nav: true, 223 navigation : true, 224 pagination: true, 225 autoplay: auto, 226 autoplayTimeout: 5000, 227 responsive: { 228 0:{ 229 items:item3 230 }, 231 600:{ 232 items:item2 233 }, 234 1000:{ 235 items:item 236 } 237 } 238 }); 239 }); 240 } 241 }; 242 243 var teamOwl = function() { 244 if ( $().owlCarousel ) { 245 $('.vincent-team').each(function(){ 246 var 247 $this = $(this), 248 auto = $this.data("auto"), 249 loop = $this.data("loop"), 250 item = $this.data("column"), 251 item2 = $this.data("column2"), 252 item3 = $this.data("column3"), 253 gap = Number($this.data("gap")); 254 255 $this.find('.owl-carousel').owlCarousel({ 256 loop: loop, 257 margin: gap, 258 nav: true, 259 navigation : true, 260 pagination: true, 261 autoplay: auto, 262 autoplayTimeout: 5000, 263 responsive: { 264 0:{ 265 items:item3 266 }, 267 600:{ 268 items:item2 269 }, 270 1000:{ 271 items:item 272 } 273 } 274 }); 275 }); 276 } 277 }; 278 279 var partnerOwl = function() { 280 if ( $().owlCarousel ) { 281 $('.vincent-partner').each(function(){ 282 var 283 $this = $(this), 284 auto = $this.data("auto"), 285 loop = $this.data("loop"),
286 item = $this.data("column"), 287 item2 = $this.data("column2"), 288 item3 = $this.data("column3"), 289 gap = Number($this.data("gap")); 290 291 $this.find('.owl-carousel').owlCarousel({ 292 loop: loop, 293 margin: gap, 294 nav: true, 295 navigation : true, 296 pagination: true, 297 autoplay: auto, 298 autoplayTimeout: 5000, 299 responsive: { 300 0:{ 301 items:item3 302 }, 303 600:{ 304 items:item2 305 }, 306 1000:{ 307 items:item 308 } 309 } 310 }); 311 }); 312 } 313 }; 314 315 var causeOwl = function() { 316 if ( $().owlCarousel ) { 317 $('.vincent-causes.carousel').each(function(){ 318 var 319 $this = $(this), 320 auto = $this.data("auto"), 321 item = $this.data("column"), 322 item2 = $this.data("column2"), 323 item3 = $this.data("column3"), 324 gap = Number($this.data("gap")); 325 326 $this.find('.owl-carousel').owlCarousel({ 327 loop: false, 328 margin: gap, 329 nav: true, 330 navigation : true, 331 pagination: true, 332 autoplay: auto, 333 autoplayTimeout: 5000, 334 responsive: { 335 0:{ 336 items:item3 337 }, 338 600:{ 339 items:item2 340 }, 341 1000:{ 342 items:item 343 } 344 } 345 }); 346 }); 347 } 348 }; 349 350 var wooOwl = function() { 351 if ( $().owlCarousel ) { 352 $('.vincent-products').each(function(){ 353 var 354 $this = $(this), 355 auto = $this.data("auto"), 356 item = $this.data("column"), 357 item2 = $this.data("column2"), 358 item3 = $this.data("column3"), 359 gap = Number($this.data("gap")); 360 361 $this.find('.owl-carousel').owlCarousel({ 362 loop: false, 363 margin: gap, 364 nav: true, 365 navigation : true, 366 pagination: true, 367 autoplay: auto, 368 autoplayTimeout: 5000, 369 responsive: { 370 0:{ 371 items:item3 372 }, 373 600:{ 374 items:item2 375 }, 376 1000:{ 377 items:item 378 } 379 } 380 }); 381 }); 382 } 383 }; 384 385 var accordions = function() { 386 $('.vincent-accordions').each(function() { 387 388 var args = {easing:'easeOutExpo', duration:300}; 389 390 $(this).find('.accordion-content').hide() 391 .parent().filter('.active') 392 .find('.accordion-content').show(); 393 394 if ( $(this).is('.toggles') ) { 395 $(this).find('.accordion-heading').on('click', function () { 396 if ( !$(this).parent().is('.active') ) { 397 $(this).parent().toggleClass('active') 398 .children('.accordion-content').slideDown(args); 399 } else { 400 $(this).parent().removeClass('active') 401 .children('.accordion-content').slideUp(args); 402 } 403 }); 404 } else if ( $(this).is('.accordions') ) { 405 $(this).find('.accordion-heading').on('click', function () { 406 if ( !$(this).parent().is('.active') ) { 407 $(this).parent().toggleClass('active') 408 .children('.accordion-content').slideToggle(args) 409 .parent().siblings('.active').removeClass('active') 410 .children('.accordion-content').slideToggle(args); 411 } else { 412 $(this).parent().toggleClass('active'); 413 $(this).next().slideToggle(args); 414 } 415 }); 416 } 417 }); 418 }; 419 420 var popupImages = function() { 421 if ( $().magnificPopup ) { 422 $('.vincent-project, .project-related, .vincent-images-grid').each(function () { 423 $(this).find('.zoom-popup').magnificPopup({ 424 disableOn: 700, 425 type: 'image', 426 gallery:{ 427 enabled: true 428 }, 429 mainClass: 'mfp-fade', 430 removalDelay: 160, 431 preloader: false, 432 fixedContentPos: true 433 }); 434 }); 435 }; 436 }; 437 438 var spacer = function() { 439 $(window).on('load resize', function() { 440 var mode = 'desktop'; 441 442 if ( matchMedia( 'only screen and (max-width: 991px)' ).matches ) 443 mode = 'mobile'; 444 445 if ( matchMedia( 'only screen and (max-width: 767px)' ).matches ) 446 mode = 'smobile'; 447 448 $('.vincent-spacer').each(function(){ 449 if ( mode == 'desktop' ) {
450 $(this).attr('style', 'height:' + $(this).data('desktop') + 'px') 451 } else if ( mode == 'mobile' ) { 452 $(this).attr('style', 'height:' + $(this).data('mobi') + 'px') 453 } else { 454 $(this).attr('style', 'height:' + $(this).data('smobi') + 'px') 455 } 456 }) 457 458 }); 459 }; 460 461 var counter = function(){ 462 function vincentInview(ele) { 463 var window_top = $(window).scrollTop(), 464 offset_top = $(ele).offset().top; 465 if ( $(ele).length > 0 ) { 466 if ( offset_top + $(ele).height() - 100 >= window_top && 467 offset_top <= ( window_top + 0.85 * $(window).height() ) ) { 468 return true; 469 } else { 470 return false; 471 } 472 } 473 } 474 475 function run_animations() { 476 var did_scroll = false; 477 $(window).on('scroll', function(){ 478 did_scroll = true; 479 }); 480 setInterval(function () { 481 if (did_scroll) { 482 did_scroll = false; 483 484 $('.vincent-counter').each(function() { 485 var $this = $(this); 486 487 if ( vincentInview($this) && !$this.data('complete') ) { 488 $this.data('complete',true); 489 var delay = parseInt($this.data('delay')); 490 setTimeout(function(){ 491 $this.find('.number').countTo(); 492 }, delay ); 493 } 494 }); 495 } 496 }, 200); 497 } 498 run_animations(); 499 }; 500 501 var progressBar = function() { 502 if ( $().appear ) { 503 var $section = $('.vincent-progress').appear(function() { 504 505 function runBars() { 506 var bar = $('.progress-animate'); 507 var bar_width = $(this); 508 $(function(){ 509 $(bar).each(function(){ 510 bar_width = $(this).attr('data-valuenow'); 511 $(this).width(bar_width + '%'); 512 513 $(this).parents('.vincent-progress').find('.perc').addClass('show').width(bar_width + '%'); 514 }); 515 }); 516 } 517 518 runBars(); 519 }); 520 } 521 }; 522 523 var popupVideo = function() { 524 if ( $().magnificPopup ) { 525 $('.popup-video').magnificPopup({ 526 disableOn: 700, 527 type: 'iframe', 528 mainClass: 'mfp-fade', 529 removalDelay: 160, 530 preloader: false, 531 fixedContentPos: true 532 }); 533 }; 534 }; 535 536 var elmentHover = function() { 537 $(".vincent-image-video .icon").hover(function(){ 538 $(this).css({ 539 "color": $(this).data('chover'), 540 "background-color": $(this).data('ghover'), 541 "border-color": $(this).data('bhover'), 542 "transition": "all 0.3s" 543 }); 544 },function(){ 545 $(this).css({ 546 "color": $(this).data('c'), 547 "background-color": $(this).data('g'), 548 "border-color": $(this).data('b'), 549 }); 550 }); 551 }; 552 553 var resizeHeading = function() { 554 $(window).on('load resize', function() { 555 $('.vincent-sheading, .vincent-headings').each(function() { 556 var 557 $this = $(this), 558 font = $this.data("font"), 559 fontMobi = $this.data("mfont"); 560 561 if ( fontMobi ) { 562 if ( $(window).width() < 960 ) { 563 $this.find('.heading').css('font-size', fontMobi + 'px'); 564 } else { 565 $this.find('.heading').css('font-size', font + 'px'); 566 } 567 } 568 }); 569 }); 570 }; 571 572 var hereSection = function() { 573 $(window).on('load resize', function(){ 574 var 575 adminBarHeight = 0, 576 topBarHeight = 0, 577 contentTopMargin = 0, 578 heroHeight = 0, 579 customHeight = 0, 580 adminBar = $('#wpadminbar'), 581 topBar = $('#top-bar'), 582 hero = $('.hero-section'), 583 windowHeight = $(window).height(), 584 headerHeight = $('#site-header').height(), 585 heroContent = hero.find('.hero-content'), 586 contentHeight = heroContent.height(), 587 spacing = hero.data('content'); 588 customHeight = hero.data('height'); 589 590 if (topBar.length) topBarHeight = topBar.height(); 591 if (adminBar.length) adminBarHeight = adminBar.height(); 592 593 heroHeight = windowHeight; 594 if ( customHeight ) 595 heroHeight = customHeight; 596 597 if ( $('body').hasClass('header-style-4') ) { 598 hero.css({ height: (heroHeight - adminBarHeight) + "px" }); 599 contentTopMargin = ((heroHeight - contentHeight) / 2) + topBarHeight + spacing; 600 601 heroContent.css("padding-top", (contentTopMargin) + "px"); 602 } else { 603 if ( ! customHeight ) 604 heroHeight = heroHeight - headerHeight - topBarHeight - adminBarHeight; 605 hero.css({ height: heroHeight + "px" }); 606 contentTopMargin = ((heroHeight - contentHeight) / 2) + spacing; 607 heroContent.css("padding-top", (contentTopMargin) + "px"); 608 } 609 }) 610 611 if ( $().vegas ) { 612 $(".hero-section.slideshow").each(function() { 613 var 614 $this = $(this), 615 count = $this.data('count'), 616 count = parseInt(count,10), 617 effect = $this.data('effect'), 618 images = $this.data('image'), 619 cOverlay = $this.data('overlay'), 620 pOverlay = $this.data('poverlay'), 621 i = 0, 622 slides = [], 623 imgs = images.split('|'); 624 625 while ( i < count ) { 626 slides.push( {src:imgs[i]} ); 627 i++; 628 } 629 630 $this.vegas({ 631 slides: slides, 632 overlay: true, 633 transition: effect 634 }); 635
636 var overlay = $('<div />', { 637 class: 'overlay', 638 style: 'background:' + cOverlay 639 }); 640 641 $(this).append(overlay) 642 .find('.vegas-overlay') 643 .addClass(pOverlay); 644 }); 645 } 646 647 648 $('.scroll-target').on('click',function() { 649 var anchor = $(this).attr('href').split('#')[1]; 650 651 if ( anchor ) { 652 if ( $('#'+anchor).length > 0 ) { 653 var headerHeight = 0; 654 655 if ( $('body').hasClass('header-sticky') ) 656 headerHeight = $('#site-header').height(); 657 658 var target = $('#' + anchor).offset().top - headerHeight; 659 660 $('html,body').animate({scrollTop: target}, 1000, 'easeInOutExpo'); 661 } 662 } 663 return false; 664 }) 665 666 667 if ( $('.vincent-fancy-text').is('.scroll') ) { 668 $('.vincent-fancy-text.scroll').each(function() { 669 var 670 $this = $(this), 671 current = 1, 672 height = $this.height(), 673 numberDivs = $this.children().length, 674 first = $this.children('.heading:nth-child(1)'); 675 676 setInterval(function() { 677 var number = current * -height; 678 679 first.css('margin-top', number + 'px'); 680 if ( current === numberDivs ) { 681 first.css('margin-top', '0px'); 682 current = 1; 683 } else current++; 684 }, 2500); 685 }); 686 } 687 688 if ( $('.vincent-fancy-text').is('.typed') ) { 689 if ( $().typed ) { 690 $('.vincent-fancy-text.typed').each(function() { 691 var 692 $this = $(this), 693 texts = $this.data('fancy').split(','); 694 695 $this.find('.text').typed({ 696 strings: texts, 697 typeSpeed: 30, 698 loop: true, 699 backDelay: 4000 700 }); 701 }); 702 } 703 } 704 }; 705 706 var fitText = function() { 707 if ( $().fitText ) { 708 $('.vincent-fancy-text').each(function(){ 709 var min = $(this).data("min"); 710 var max = $(this).data("max"); 711 712 $(this).children('.heading').fitText(1.8, { 713 minFontSize: min, 714 maxFontSize: max 715 }); 716 }); 717 } 718 }; 719 720 var bgVideo = function() { 721 if ( $().YTPlayer ) { 722 $(".hero-section.video").each(function() { 723 var 724 $this = $(this), 725 cOverlay = $this.data('overlay'), 726 overlay = $('<div />', { 727 class: 'overlay', 728 style: 'background:' + cOverlay 729 }); 730 731 $this.YTPlayer().append(overlay); 732 }); 733 } 734 }; 735 736 var tabs = function() { 737 $('.vincent-tabs').each(function(){ 738 var 739 list ="", 740 title = $(this).find('.item-title').remove(), 741 titleWrap = $(this).children('.tab-title') ; 742 743 title.each(function() { 744 list = list + "<li class= 'item-title'>" + $(this).html() + "</li>"; 745 }); 746 747 titleWrap.append(list); 748 749 $(this).find('.tab-title li').filter(':first').addClass('active'); 750 $(this).find('.tab-content-wrap').children().hide().filter(':first').show(); 751 752 $(this).find('.tab-title li').on('click', function(e) { 753 var 754 idx = $(this).index(), 755 content = $(this).closest('.vincent-tabs').find('.tab-content-wrap').children().eq(idx); 756 757 $(this).addClass('active').siblings().removeClass('active'); 758 content.fadeIn('slow').siblings().hide(); 759 760 e.preventDefault(); 761 }); 762 }); 763 }; 764 765 var srollTarget = function() { 766 $('.vincent-scroll-target').on('click',function() { 767 var anchor = $(this).children().attr('href').split('#')[1]; 768 769 if ( anchor ) { 770 if ( $('#'+anchor).length > 0 ) { 771 var headerHeight = 0; 772 773 if ( $('body').hasClass('header-fixed') ) 774 headerHeight = $('#site-header').height(); 775 776 var target = $('#' + anchor).offset().top - headerHeight; 777 778 $('html,body').animate({scrollTop: target}, 1000, 'easeInOutExpo'); 779 } 780 } 781 return false; 782 }) 783 }; 784 785 var countDown = function() { 786 var style = function(data) { 787 $(this.el).html( 788 "<div class='column days'>" + 789 "<div class='numb'>" + this.leadingZeros(data.days, 2) + "</div>" + 790 "<div class='text'>Days</div>" + 791 "</div>" + 792 "<div class='column hours'>" + 793 "<div class='numb'>" + this.leadingZeros(data.hours, 2) + "</div>" + 794 "<div class='text'>Hours</div>" + 795 "</div>" + 796 "<div class='column mins'>
796" + 797 "<div class='numb'>" + this.leadingZeros(data.min, 2) + "</div>" + 798 "<div class='text'>Minutes</div>" + 799 "</div>" + 800 "<div class='column secs'>" + 801 "<div class='numb'>" + this.leadingZeros(data.sec, 2) + "</div>" + 802 "<div class='text'>Seconds</div>" + 803 "</div>"); 804 } 805 806 $('.vincent-countdown').each(function() { 807 $(this).countdown({ 808 date: $(this).attr('data-date'), 809 render: style 810 }); 811 }); 812 }; 813 814 var equalizeHeight = function() { 815 $(window).on('load resize', function () { 816 setTimeout(function () { 817 $(document).imagesLoaded(function () { 818 if ( matchMedia( 'only screen and (max-width: 767px)' ).matches ) { 819 $('.equalize').equalize({equalize: 'outerHeight', reset: true}); 820 $('.equalize.sm-equalize-auto').children().css("height", ""); 821 return false; 822 } else if ( matchMedia( 'only screen and (max-width: 991px)' ).matches ) { 823 $('.equalize').equalize({equalize: 'outerHeight', reset: true}); 824 return false; 825 } else if ( matchMedia( 'only screen and (max-width: 1199px)' ).matches ) { 826 $('.equalize').equalize({equalize: 'outerHeight', reset: true}); 827 return false; 828 } else { 829 $('.equalize').equalize({equalize: 'outerHeight', reset: true}); 830 } 831 }); 832 }, 500); 833 }); 834 }; 835 836 var testimonials = function() { 837 if ( $().bxSlider ) { 838 $('.vincent-testimonials-g3 .content-wrap').bxSlider({ 839 mode: 'horizontal', 840 touchEnabled: true, 841 oneToOneTouch: true, 842 pagerCustom: '#bx-pager', 843 nextSelector: '#bx-next', 844 prevSelector: '#bx-prev', 845 nextText: 'Next', 846 prevText: 'Prev', 847 startSlide: '1', 848 easing: 'ease-in-out' 849 }); 850 } 851 }; 852 853 var priceSwitcher = function() { 854 $('.pricing').each(function(){ 855 $(this).find('.pricing-content') 856 .find('.pricing-item').filter(':first-child').addClass('big').next().addClass('small') 857 .parent(':first').addClass('active'); 858 859 $(this).find('.pricing-switcher').children(':first').addClass('active'); 860 861 $(this).find('.pricing-switcher .switch').on('click', function(e) { 862 var 863 idx = $(this).index(), 864 content = $(this).closest('.pricing').find('.pricing-content').children().eq(idx); 865 866 $(this).addClass('active').siblings().removeClass('active'); 867 content.addClass('active').siblings().removeClass('active'); 868 869 e.preventDefault(); 870 }); 871 }); 872 }; 873 874 var dynamicStyle = function() { 875 var 876 css = '', 877 bg = '', text = '', icon = '', border = '', bg_h = '', text_h = '', icon_h = '', border_h = '', rd = '', 878 rd_h = '', brc = '', brw = '', brc_h = '', brw_h = '', sdw = '', sdw_h = '', tx = '', ty = ''; 879 880 $('.vincent-icon').each( function() { 881 var 882 cn = $(this).attr('class').split(' '), 883 cl = ''; 884 885 $(cn).each(function(i,v){ 886 cl += '.'+v; 887 }); 888 889 icon = $(cl).data("icon"); 890 bg = $(cl).data("background"); 891 border = $(cl).data("border"); 892 893 icon_h = $(cl).data("icon-hover"); 894 bg_h = $(cl).data("background-hover"); 895 border_h = $(cl).data("border-hover"); 896 897 icon = ( 'undefined' !== typeof icon ) ? 'color:'+icon+' !important;' : ''; 898 bg = ( 'undefined' !== typeof bg ) ? 'background-color:'+bg+' !important;' : ''; 899 border = ( 'undefined' !== typeof border ) ? 'border-color:'+border+' !important;' : ''; 900 901 icon_h = ( 'undefined' !== typeof icon_h ) ? 'color:'+icon_h+' !important;' : ''; 902 bg_h = ( 'undefined' !== typeof bg_h ) ? 'background-color:'+bg_h+' !important;' : ''; 903 border_h = ( 'undefined' !== typeof border_h ) ? 'border-color:'+border_h+' !important;' : ''; 904 905 if ( icon || bg || border ) css += cl+' .icon {'+bg+icon+border+'}\n'; 906 if ( icon_h || bg_h || border_h ) css += cl+':hover .icon {'+bg_h+icon_h+border_h+'}\n'; 907 }); 908 909 $('.vincent-button.custom').each( function() { 910 var 911 cn = $(this).attr('class').split(' '), 912 cl = ''; 913 914 $(cn).each(function(i,v){ 915 cl += '.'+v; 916 }); 917 918 bg = $(cl).data("background"); 919 text = $(cl).data("text"); 920 icon = $(cl).data("icon"); 921 border = $(cl).data("border"); 922 923 bg_h = $(cl).data("background-hover"); 924 text_h = $(cl).data("text-hover"); 925 icon_h = $(cl).data("icon-hover"); 926 border_h = $(cl).data("border-hover"); 927 928 bg = ( 'undefined' !== typeof bg ) ? 'background-color:'+bg+' !important;' : ''; 929 text = ( 'undefined' !== typeof text ) ? 'color:'+text+' !important;' : ''; 930 icon = ( 'undefined' !== typeof icon ) ? 'color:'+icon+' !important;' : ''; 931 border = ( 'undefined' !== typeof border ) ? 'border-color:'+border+' !important;' : ''; 932 933 bg_h = ( 'undefined' !== typeof bg_h ) ? 'background-color:'+bg_h+' !important;' : ''; 934 text_h = ( 'undefined' !== typeof text_h ) ? 'color:'+text_h+' !important;' : ''; 935 icon_h = ( 'undefined' !== typeof icon_h ) ? 'color:'+icon_h+' !important;' : ''; 936 border_h = ( 'undefined' !== typeof border_h ) ? 'border-color:'+border_h+' !important;' : ''; 937 938 if ( bg || text || border ) css += cl+' {'+bg+text+border+'}\n'; 939 if ( bg_h || text_h || border_h ) css += cl+':hover {'+bg_h+text_h+border_h+'}\n'; 940 if ( icon ) css += cl+' .icon {'+icon+'}\n'; 941 if ( icon_h ) css += cl+':hover .icon {'+icon_h+'}\n'; 942 943 }); 944 945 $('.vincent-content-box > .inner').each( function() { 946 var 947 cn = $(this).attr('class').split(' '), 948 cl = ''; 949 950 $(cn).each(function( i,v ) { 951 cl += '.'+v; 952 }); 953 954 bg = $(cl).data("background");
955 rd = $(cl).data("rounded"); 956 brc = $(cl).data("border-color"); 957 brw = $(cl).data("border-width"); 958 sdw = $(cl).data("shadow"); 959 960 bg_h = $(cl).data("background-hover"); 961 rd_h = $(cl).data("rounded-hover"); 962 brc_h = $(cl).data("border-color-hover"); 963 brw_h = $(cl).data("border-width-hover"); 964 sdw_h = $(cl).data("shadow-hover"); 965 tx = $(cl).data("translatex"); 966 ty = $(cl).data("translatey"); 967 968 cl = '.vincent-content-box '+cl; 969 970 bg = ( 'undefined' !== typeof bg ) ? 'background-color:'+bg+' !important;' : ''; 971 rd = ( 'undefined' !== typeof rd ) ? 'border-radius:'+rd+' !important;' : ''; 972 brc = ( 'undefined' !== typeof brc ) ? 'border-color:'+brc+' !important;' : ''; 973 brw = ( 'undefined' !== typeof brw ) ? 'border-width:'+brw+' !important;' : ''; 974 sdw = ( 'undefined' !== typeof sdw ) ? 'box-shadow:'+sdw+' !important;' : ''; 975 976 bg_h = ( 'undefined' !== typeof bg_h ) ? 'background-color:'+bg_h+' !important;' : ''; 977 rd_h = ( 'undefined' !== typeof rd_h ) ? 'border-radius:'+rd_h+' !important;' : ''; 978 brc_h = ( 'undefined' !== typeof brc_h ) ? 'border-color:'+brc_h+' !important;' : ''; 979 brw_h = ( 'undefined' !== typeof brw_h ) ? 'border-width:'+brw_h+' !important;' : ''; 980 sdw_h = ( 'undefined' !== typeof sdw_h ) ? 'box-shadow:'+sdw_h+' !important;' : ''; 981 tx = ( 'undefined' !== typeof tx ) ? 'transform:translateX('+tx+'px) !important;' : ''; 982 ty = ( 'undefined' !== typeof ty ) ? 'transform:translateY('+ty+'px) !important;' : ''; 983 984 if ( bg || rd || brc || brw || sdw ) 985 css += cl+' {'+bg+rd+brc+brw+sdw+'}\n'; 986 987 if ( bg_h || rd_h || brc_h || brw_h || sdw_h || tx || ty ) 988 css += cl+':hover {'+bg_h+rd_h+brc_h+brw_h+sdw_h+tx+ty+'}\n'; 989 }); 990 991 if ( css ) $("head").append('<style type="text/css" id="vincent-dynamic-css">' + css + '</style>'); 992 }; 993 994 var contentBox = function() { 995 $(window).on('load resize', function() { 996 var mode = 'desktop'; 997 998 if ( matchMedia( 'only screen and (max-width: 991px)' ).matches ) 999 mode = 'mobile'; 1000 1001 $('.vincent-content-box').each(function(){ 1002 if ( mode == 'desktop' ) { 1003 $(this).css({'margin' : $(this).data('margin')}) 1004 .children('.inner').css({'padding' : $(this).data('padding'), 'max-width' : $(this).data('width')}); 1005 } else if ( mode == 'mobile' ) { 1006 $(this).css({'margin' : $(this).data('mobimargin')}) 1007 .children('.inner').css({'padding' : $(this).data('mobipadding'), 'max-width' : $(this).data('mobiwidth')}); 1008 } 1009 }) 1010 }); 1011 }; 1012 1013 // Dom Ready 1014 $(function() { 1015 testimonials(); 1016 equalizeHeight(); 1017 portfolioCube(); 1018 imagesCube(); 1019 projectRelatedOwl(); 1020 accordions(); 1021 popupImages(); 1022 spacer(); 1023 contentBox(); 1024 popupVideo(); 1025 elmentHover(); 1026 resizeHeading(); 1027 hereSection(); 1028 tabs(); 1029 countDown(); 1030 fitText(); 1031 bgVideo(); 1032 progressBar(); 1033 counter(); 1034 priceSwitcher(); 1035 dynamicStyle(); 1036 srollTarget(); 1037 $( window ).load(function() { 1038 carouselBoxOwl(); 1039 newsOwl(); 1040 portfolioOwl(); 1041 teamOwl(); 1042 partnerOwl(); 1043 causeOwl(); 1044 wooOwl(); 1045 }); 1046 }); 1047 1048})(jQuery); 1049
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.