1// the semi-colon before the function invocation is a safety 2// net against concatenated scripts and/or other plugins 3// that are not closed properly. 4; 5(function($, window, document, undefined) { 6 'use strict'; 7 8 var DRAFGY = window.DRAFGY || {}; 9 10 DRAFGY.exists = function(selector) { 11 return ($(selector).length > 0); 12 }; 13 14 DRAFGY.isotope = function() { 15 if (DRAFGY.exists('.df-isotop')) { 16 $('.df-isotop').isotope({ 17 itemSelector: '.df-isotop-item', 18 transitionDuration: '0.60s', 19 percentPosition: true, 20 masonry: { 21 columnWidth: '.df-grid-sizer' 22 } 23 }); 24 $('.df-isotop-filter ul li').on('click', function(event) { 25 $(this).siblings('.active').removeClass('active'); 26 $(this).addClass('active'); 27 event.preventDefault(); 28 }); 29 $('.df-isotop-filter ul').on('click', 'a', function() { 30 var filterElement = $(this).attr('data-filter'); 31 $(this).parents('.df-isotop-filter').next().isotope({ 32 filter: filterElement 33 }); 34 }); 35 } 36 }; 37 38 DRAFGY.youtubePlaylist = function() { 39 if (DRAFGY.exists('.df-ytv-wrap')) { 40 $('.df-ytv-wrap').each(function() { 41 var thisPlayer = $(this).find('.yt-playlist'); 42 var channelId = thisPlayer.data('channel-id'); 43 $(thisPlayer).ytv({ 44 channelId: channelId, 45 playerTheme: 'dark', 46 responsive: true 47 }); 48 }); 49 } 50 }; 51 52 53 DRAFGY.slickSlider = function() { 54 $('.df-slider').each(function() { 55 56 // Slick Variable 57 var $ts = $(this).find('.slick-container'); 58 var $slickActive = $(this).find('.slick-wrapper'); 59 var $sliderNumber = $(this).siblings('.slider-number'); 60 61 // Auto Play 62 var autoPlayVar = parseInt($ts.attr('data-autoplay'), 10); 63 // Auto Play Time Out 64 var autoplaySpdVar = 3000; 65 if (autoPlayVar > 1) { 66 autoplaySpdVar = autoPlayVar; 67 autoPlayVar = 1; 68 } 69 // Slide Change Speed 70 var speedVar = parseInt($ts.attr('data-speed'), 10); 71 // Slider Loop 72 var loopVar = Boolean(parseInt($ts.attr('data-loop'), 10)); 73 // Slider Center 74 var centerVar = Boolean(parseInt($ts.attr('data-center'), 10)); 75 // Pagination 76 var paginaiton = $(this).children().hasClass('pagination'); 77 // Slide Per View 78 var slidesPerView = $ts.attr('data-slides-per-view'); 79 if (slidesPerView == 1) { 80 slidesPerView = 1; 81 } 82 if (slidesPerView == 'responsive') { 83 var slidesPerView = parseInt($ts.attr('data-add-slides'), 10); 84 var lgPoint = parseInt($ts.attr('data-lg-slides'), 10); 85 var mdPoint = parseInt($ts.attr('data-md-slides'), 10); 86 var smPoint = parseInt($ts.attr('data-sm-slides'), 10); 87 var xsPoing = parseInt($ts.attr('data-xs-slides'), 10); 88 } 89 90 // Fade Slider 91 var fadeVar = parseInt($($ts).attr('data-fade-slide')); 92 (fadeVar === 1) ? (fadeVar = true) : (fadeVar = false); 93 94 95 // Slick Active Code 96 $slickActive.slick({ 97 infinite: true, 98 autoplay: autoPlayVar, 99 dots: paginaiton, 100 centerPadding: '0', 101 speed: speedVar, 102 infinite: loopVar, 103 autoplaySpeed: autoplaySpdVar, 104 centerMode: centerVar, 105 prevArrow: $(this).find('.slick-arrow-left'), 106 nextArrow: $(this).find('.slick-arrow-right'), 107 appendDots: $(this).find('.pagination'), 108 fade: fadeVar, 109 slidesToShow: slidesPerView, 110 responsive: [{ 111 breakpoint: 1600, 112 settings: { 113 slidesToShow: lgPoint 114 } 115 }, 116 { 117 breakpoint: 1200, 118 settings: { 119 slidesToShow: mdPoint 120 } 121 }, 122 { 123 breakpoint: 992, 124 settings: { 125 slidesToShow: smPoint 126 } 127 }, 128 { 129 breakpoint: 768, 130 settings: { 131 slidesToShow: xsPoing 132 } 133 } 134 ] 135 }); 136 }) 137 }; 138 139 140 DRAFGY.accordion = function() { 141 var $this = $(this); 142 $('.df-accordian').children('.df-accordian-body').hide(); 143 $('.df-accordian.active').children('.df-accordian-body').show(); 144 $('.df-accordian-title').on('click', function() { 145 $(this).parent('.df-accordian').siblings().children('.df-accordian-body').slide
145Up(250); 146 $(this).siblings().slideDown(250); 147 $(this).parents('.df-accordian').addClass('active'); 148 $(this).parent('.df-accordian').siblings().removeClass('active'); 149 }); 150 // Gallery Accordian 151 $('.df-gallery-accordian').each(function() { 152 $(this).find('.df-gallery-accordian-in').hover( 153 function() { $(this).addClass('active').siblings().removeClass('active') } 154 ) 155 var activeWidth = $(this).children('.df-gallery-accordian-in.active').width() + 'px'; 156 var activeHeight = $(this).children('.df-gallery-accordian-in.active').height() + 'px'; 157 $(this).find('.df-gallery-accordian-img').css({ 158 'width': activeWidth, 159 'height': activeHeight 160 }) 161 }); 162 163 164 }; 165 166 DRAFGY.toggle = function() { 167 $('.df-accordian-title').on('click', function() { 168 $(this).parents('.df-accordian').toggleClass('df-active'); 169 $(this).siblings('.df-accordian-title-body').slideToggle(); 170 }) 171 } 172 173 174 DRAFGY.videoPopup = function() { 175 $(document).on('click', '.df-video-open', function(e) { 176 e.preventDefault(); 177 var video = $(this).attr('href'); 178 $('.df-video-popup-container iframe').attr('src', video); 179 $('.df-video-popup').addClass('active'); 180 }); 181 $('.df-video-popup-close, .df-video-popup-layer').on('click', function(e) { 182 $('.df-video-popup').removeClass('active'); 183 $('html').removeClass('overflow-hidden'); 184 $('.df-video-popup-container iframe').attr('src', 'about:blank') 185 e.preventDefault(); 186 }); 187 }; 188 189 DRAFGY.videoGallery = function() { 190 $(document).on('click', '.df-ydf-open', function(e) { 191 e.preventDefault(); 192 var video = $(this).attr('href'); 193 $(this).html('<div class="embed-responsive embed-responsive-16by9"><iframe class="embed-responsive-item" src="" allowfullscreen="1" allow="autoplay;encrypted-media;"></div>') 194 $(this).find('iframe').attr('src', video); 195 $(this).addClass('active'); 196 }); 197 }; 198 199 DRAFGY.tabs = function() { 200 $('.df-tabs.df-standard-tabs .df-tab-links a').on('click', function(e) { 201 var currentAttrValue = $(this).attr('href'); 202 $('.df-tabs ' + currentAttrValue).show().siblings().hide(); 203 $(this).parent('li').addClass('active').siblings().removeClass('active'); 204 e.preventDefault(); 205 }); 206 $('.df-tabs.df-fade-tabs .df-tab-links a').on('click', function(e) { 207 var currentAttrValue = $(this).attr('href'); 208 $('.df-tabs ' + currentAttrValue).fadeIn(400).siblings().hide(); 209 $(this).parents('li').addClass('active').siblings().removeClass('active'); 210 e.preventDefault(); 211 }); 212 }; 213 214 DRAFGY.modal = function() { 215 216 }; 217 218 DRAFGY.lightBox = function() { 219 $('.df-lightgallery').each(function() { 220 $(this).lightGallery({ 221 selector: '.df-lightbox-item' 222 }); 223 }); 224 }; 225 226 DRAFGY.lineChart = function() { 227 228 $('.df-line-chart').each(function() { 229 var eachLineChart = $(this).find('#df-chart2') 230 if (DRAFGY.exists(eachLineChart)) { 231 232 var selector = $(this), 233 el = selector.data('values'), 234 labels = $.parseJSON(el.view_labels), 235 data = $.parseJSON(el.view_data), 236 y_axis_label = selector.data('y-label'), 237 bg_color = selector.data('bg-color'), 238 border_width = selector.data('border-width'), 239 x_axis_color = selector.data('x-axis-color'), 240 x_axis_grid_color = selector.data('x-axis-grid-color'), 241 y_axis_color = selector.data('y-axis-color'), 242 y_axis_grid_color = selector.data('y-axis-grid-color'), 243 border_color = selector.data('border-color'); 244 245 var ctx = selector.find(eachLineChart); 246 247 var myChart = new Chart(ctx, { 248 type: 'line', 249 data: { 250 labels: labels, 251 datasets: [{ 252 label: y_axis_label, 253 data: data, 254 backgroundColor: bg_color, 255 borderColor: border_color, 256 borderWidth: border_width, 257 lineTension: 0,
258 pointBackgroundColor: '#fff' 259 }] 260 261 }, 262 options: { 263 responsive: true, 264 maintainAspectRatio: false, 265 legend: { 266 position: 'bottom', 267 display: false 268 }, 269 tooltips: { 270 displayColors: false, 271 mode: 'nearest', 272 intersect: false, 273 position: 'nearest', 274 xPadding: 8, 275 yPadding: 8, 276 caretPadding: 8, 277 backgroundColor: '#666666', 278 cornerRadius: 2, 279 titleFontSize: 13, 280 titleFontStyle: 'normal', 281 titleFontFamily: 'Open Sans', 282 bodyFontSize: 13, 283 footerFontFamily: 'Open Sans' 284 }, 285 scales: { 286 yAxes: [{ 287 ticks: { 288 fontSize: 14, 289 fontColor: y_axis_color, 290 fontFamily: 'Open Sans', 291 padding: 15, 292 beginAtZero: true, 293 autoSkip: false, 294 maxTicksLimit: 4 295 }, 296 gridLines: { 297 color: y_axis_grid_color, 298 borderDash: [1, 3], 299 zeroLineWidth: 1, 300 zeroLineColor: '#eaeaea', 301 drawBorder: false 302 } 303 }], 304 xAxes: [{ 305 ticks: { 306 fontSize: 14, 307 fontColor: x_axis_color, 308 fontFamily: 'Open Sans', 309 padding: 5, 310 beginAtZero: true, 311 autoSkip: false, 312 maxTicksLimit: 4 313 }, 314 gridLines: { 315 color: x_axis_grid_color, 316 borderDash: [1, 3], 317 zeroLineColor: '#b5b5b5', 318 } 319 }], 320 }, 321 elements: { 322 point: { 323 radius: 3, 324 hoverRadius: 3 325 } 326 } 327 } 328 }); 329 } 330 }); 331 }; 332 333 DRAFGY.roundChart = function() { 334 if (DRAFGY.exists('.df-round-chart')) { 335 336 $('.df-round-chart').each(function() { 337 var ctx = $(this).find('#df-chart1'), 338 el = $(this), 339 options = el.data('options'), 340 labels = {}, 341 values = [], 342 stroke_colors = []; 343 344 $.each(options, function(key, value) { 345 labels[key] = value['label']; 346 values[key] = parseInt(value['value']); 347 stroke_colors[key] = value['stroke_color']; 348 el.find('.df-circle-stroke .df-circle-label').eq(key).html(value['label']).siblings().css('background-color', value['stroke_color']); 349 }); 350 351 var myChart = new Chart(ctx, { 352 type: 'pie', 353 data: { 354 labels: labels, 355 datasets: [{ 356 backgroundColor: stroke_colors, 357 data: values, 358 borderWidth: 0 359 }] 360 }, 361 options: { 362 cutoutPercentage: 80, 363 legend: { 364 position: 'right', 365 display: false 366 }, 367 tooltips: { 368 displayColors: false, 369 mode: 'nearest', 370 intersect: false, 371 position: 'nearest', 372 xPadding: 8, 373 yPadding: 8, 374 caretPadding: 8, 375 backgroundColor: '#666666', 376 cornerRadius: 2, 377 titleFontSize: 13, 378 titleFontStyle: 'normal', 379 titleFontFamily: 'Open Sans', 380 bodyFontSize: 13, 381 footerFontFamily: 'Open Sans' 382 }, 383 } 384 }); 385 386 }); 387 } 388 }; 389 390 DRAFGY.countDown = function() { 391 if (DRAFGY.exists('#df-if-expired')) { 392 393 $('.df-countdown').each(function() { 394 var el = $(this); 395 var date = el.data('countdate'); 396 var expire_text = el.data('expire-text'); 397 var countDownDate = new Date(date).getTime(); 398 var x = setInterval(function() { 399 var now = new Date().getTime(); 400 var distance = countDownDate - now; 401 var days = Math.floor(distance / (1000 * 60 * 60 * 24)); 402 var hours = Math.floor((distance % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60)); 403 var minutes = Math.floor((distance % (1000 * 60 * 60)) / (1000 * 60)); 404 var seconds = Math.floor((distance % (1000 * 60)) / 1000); 405 406 if (DRAFGY.exists(el.find('#df-count-days'))) { 407 el.find('#df-count-days').html(days); 408 } 409 if (DRAFGY.exists(el.find('#df-count-hours'))) { 410 el.find('#df-count-hours').html(hours); 411 } 412 if (DRAFGY.exists(el.find('#df-count-minutes'))) { 413 el.find('#df-count-minutes').html(minutes); 414 } 415 if (DRAFGY.exists(el.find('#df-count-seconds'))) { 416 el.find('#df-count-seconds').html(seconds); 417 } 418 if (distance < 0) { 419 clearInterval(x); 420 el.html(expire_text); 421 } 422 }, 1000); 423 }); 424 425 } 426 }; 427 428 DRAFGY.progressBar = function() { 429 $('.df-single-bar').each(function() { 430 var progressPercentage = $(this).data('progress-percentage') + "%"; 431 $(this).find('.df-single-bar-in').css('width', progressPercentage); 432 }); 433 $('.df-single-bar').each(function() { 434 var windowScroll = $(document).scrollTop(), 435 windowHeight = $(window).height(), 436 barOffset = $(this).offset().top, 437 barHeight = $(this).height(), 438 barScrollUp = barOffset <= (windowScroll + windowHeight),
439 barSctollDown = barOffset + barHeight >= windowScroll; 440 441 if (barSctollDown && barScrollUp) { 442 $(this).addClass('df-active'); 443 } 444 445 }); 446 }; 447 448 DRAFGY.horizontalPrallax = function() { 449 $('.df-horizontal-parallax').each(function() { 450 var windowScroll = $(document).scrollTop(), 451 windowHeight = $(window).height(), 452 barOffset = $(this).offset().top, 453 barHeight = $(this).height(), 454 barScrollAtZero = windowScroll - barOffset + windowHeight, 455 barHeightWindowHeight = windowScroll + windowHeight, 456 barScrollUp = barOffset <= (windowScroll + windowHeight), 457 barSctollDown = barOffset + barHeight >= windowScroll; 458 459 if (barSctollDown && barScrollUp) { 460 var calculadedHeight = barHeightWindowHeight - barOffset; 461 var calcWindowScroll = ((calculadedHeight / 15)) + 'px'; 462 var calcWindowScroll2 = ((calculadedHeight / 5)) + 'px'; 463 $(this).find('.df-card-img-in').css('bottom', calcWindowScroll2); 464 $(this).find('.df-card-feature').css('right', calcWindowScroll2); 465 $(this).find('.df-layer-img.df-style2').css('right', calcWindowScroll); 466 $(this).find('.df-layer-img.df-style3').css('left', calcWindowScroll); 467 $(this).find('.df-timeline-bar-in').css('height', barScrollAtZero); 468 $(this).find('.df-image-animation').css('margin-left', calcWindowScroll); 469 $(this).find('.df-hero-mockup-img.df-style12').css('margin-left', calcWindowScroll); 470 $(this).find('.df-hero-mockup-img.df-style9').css('margin-left', calcWindowScroll); 471 $(this).find('.df-hero-mockup-img.df-style2').css({'margin-left': calcWindowScroll, 'margin-top': ("-" + calcWindowScroll)}); 472 $(this).find('.df-hero-mockup-img.df-style5').css('margin-left', ("-" + calcWindowScroll)); 473 $(this).find('.df-hero-mockup-img.df-style8').css({'margin-top': ("-" + calcWindowScroll), 'margin-left': calcWindowScroll}); 474 } 475 }); 476 } 477 478 DRAFGY.beforeAfterSlider = function() { 479 if ($('.df-image-comparison').length > 0) { 480 $(".df-image-comparison[data-orientation='horizontal']").twentytwenty({ 481 default_offset_pct: 0.5 482 }); 483 $(".df-image-comparison[data-orientation='vertical']").twentytwenty({ 484 default_offset_pct: 0.5, 485 orientation: 'vertical' 486 }); 487 } 488 }; 489 490 DRAFGY.googleMap = function() { 491 if ($('#map').length > 0) { 492 var el = $('.df-map-wrap'), 493 lat = el.data('lat'), 494 lng = el.data('lng'), 495 zoom = el.data('zoom'), 496 marker = el.data('marker'), 497 marker_url = (!marker || marker.length === 0) ? get.siteurl + '/assets/img/map-marker.png' : marker; 498 el.each(function() { 499 var contactmap = { 500 lat: lat, 501 lng: lng 502 }; 503 el.find('#map').gmap3({ 504 zoom: zoom, 505 center: contactmap, 506 scrollwheel: false, 507 }) 508 .marker({ 509 position: contactmap, 510 icon: marker_url 511 }) 512 }); 513 } 514 }; 515 516 DRAFGY.hobbleEffect = function() { 517 $(document).on('mousemove', '.df-hover-layer', function(event) { 518 var halfW = (this.clientWidth / 2); 519 var halfH = (this.clientHeight / 2); 520 var coorX = (halfW - (event.pageX - $(this).offset().left)); 521 var coorY = (halfH - (event.pageY - $(this).offset().top)); 522 var degX = ((coorY / halfH) * 6) + 'deg'; 523 var degY = ((coorX / halfW) * -6) + 'deg'; 524 var degX1 = ((coorY / halfH) * -50) + 'px'; 525 var degY1 = ((coorX / halfW) * 50) + 'px'; 526 var degX2 = ((coorY / halfH) * -25) + 'px'; 527 var degY2 = ((coorX / halfW) * 25) + 'px'; 528 var degX3 = ((coorY / halfH) * 15) + 'deg'; 529 var degY3 = ((coorX / halfW) * -15) + 'deg'; 530 531 $(this).find('.hover-container').css('transform', function() { 532 return 'perspective( 800px ) translate3d( 0, -2px, 0 ) rotateX(' + degX + ') rotateY(' + degY + ')'; 533 }); 534 $(this).find('.df-hover-layer1').css('transform', function() { 535 return 'perspective( 800px ) translate3d( 0, 0, 0 ) rotateX(' + degX + ') rotateY(' + degY + ')'; 536 }); 537 $(this).find('.df-hover-layer4').css('transform', function() { 538 return 'perspective( 800px ) translate3d( 0, 0, 0 ) rotateX(' + degX3 + ') rotateY(' + degY3 + ')'; 539 }); 540 $(this).find('.df-hover-layer2').css('transform', function() { 541 return 'perspective( 800px ) translateX(' + degX1 + ') translateY(' + degY1 + ')'; 542 }); 543 $(this).find('.df-hover-layer3').css('transform', function() { 544 return 'perspective( 800px ) translateX(' + degX2 + ') translateY(' + degY2 + ')'; 545 }); 546 }).on('mouseout', '.df-hover-layer', function() { 547 $(this).find('.hover-container').removeAttr('style'); 548 $(this).find('.df-hover-layer1').removeAttr('style'); 549 $(this).find('.df-hover-layer2').removeAttr('style'); 550 $(this).find('.df-hover-layer3').removeAttr('style'); 551 $(this).find('.df-hover-layer4').removeAttr('style'); 552 }); 553 554 }; 555 556 DRAFGY.ajaxPagination = function() { 557 $('.df-ajax-load-more').each(function() { 558 559 var $this = $(this), 560 $container = $this.parent().find('.df-post-outerwrapper'), 561 token = $this.data('token'), 562 settings = window['webify_load_more_' + token], 563 is_isotope = parseInt(settings.isotope), 564 paging = 1, 565 flood = false, 566 ajax_data; 567 568 $this.bind('click', function() { 569 570 if (flood === false) { 571 paging++; 572 flood = true; 573 574 ajax_data = $.extend({}, { action: 'ajax-pagination', paged: paging }, settings); 575 576 $.ajax({ 577 type: 'POST', 578 url: get.ajaxurl, 579 data: ajax_data, 580 dataType: 'html', 581 beforeSend: function() { 582 $this.addClass('more-loading'); 583 $this.html('Loading...'); 584 }, 585 success: function(html) { 586 587 var content = $(html).css('opacity', 0); 588 589 if (is_isotope) { 590 content.imagesLoaded(function() { 591 $container.append(content).isotope('appended', content); 592 $container.isotope('layout'); 593 }); 594 } else { 595 $(content).insertBefore($this.parent()); 596 } 597 content.animate({ 'opacity': 1 }, 250); 598 599 $this.removeClass('more-loading'); 600 $this.html('Load More'); 601 if (parseInt(settings.max_pages) == paging) { $this.hide(); } 602 603 flood = false;
604 } 605 606 }); 607 608 } 609 610 return false; 611 }); 612 613 }); 614 }; 615 616 DRAFGY.particleEffects = function() { 617 if (DRAFGY.exists('#df-ball-wrap')) { 618 var colors = ['#3CC157', '#2AA7FF', '#FCBC0F', '#F85F36']; 619 var numBalls = 20; 620 var balls = []; 621 622 for (var i = 0; i < numBalls; i++) { 623 var ball = document.createElement('div'); 624 ball.classList.add('df-ball'); 625 ball.style.background = colors[Math.floor(Math.random() * colors.length)]; 626 ball.style.left = (Math.floor(Math.random() * 100)) + "vw"; 627 ball.style.top = (Math.floor(Math.random() * 100)) + "vh"; 628 ball.style.transform = "scale(" + (Math.random()) + ")"; 629 ball.style.width = (Math.random()) + "em"; 630 ball.style.height = ball.style.width; 631 632 balls.push(ball); 633 document.getElementById('df-ball-wrap').append(ball); 634 } 635 636 // Keyframes 637 balls.forEach(function (el, i, ra) { 638 var to = { 639 x: Math.random() * (i % 2 === 0 ? -11 : 11), 640 y: Math.random() * 12 641 }; 642 643 var anim = el.animate( 644 [ 645 { transform: 'translate(0, 0)' }, 646 { transform: ("translate(" + (to.x) + "rem, " + (to.y) + "rem)") } 647 ], { 648 duration: (Math.random() + 1) * 2000, // random duration 649 direction: 'alternate', 650 fill: 'both', 651 iterations: Infinity, 652 easing: 'ease-in-out' 653 } 654 ); 655 }); 656 } 657 }; 658 659 DRAFGY.hotspot = function() { 660 if (DRAFGY.exists('.df-hotspot-btn')) { 661 $('.df-hotspot-btn').on('click', function() { 662 $(this).parents('.df-hotspot-wrap').toggleClass('active'); 663 }); 664 } 665 }; 666 667 DRAFGY.timeline = function() { 668 if (DRAFGY.exists('.df-timeline-wrap')) { 669 $('.df-timeline-wrap').each(function() { 670 var firstChildPosition = $(this).children('.df-timeline-post').first().find('.df-timeline-icon').position(); 671 var topPosition = firstChildPosition.top + 'px'; 672 var lastChildPosition = $(this).children('.df-timeline-post').last().find('.df-timeline-icon').position(); 673 var lastChildHeight = $(this).children('.df-timeline-post').last().height(); 674 var bottomPosition = (lastChildHeight - lastChildPosition.top) + 'px'; 675 $(this).find('.df-timeline-bar').css({ 676 top: topPosition, 677 bottom: bottomPosition 678 }) 679 }); 680 } 681 }; 682 683 DRAFGY.counter = function() { 684 if (DRAFGY.exists('.counter')) { 685 $('.counter').each(function() { 686 var windowScroll = $(document).scrollTop(), 687 windowHeight = $(window).height(), 688 barOffset = $(this).offset().top, 689 barHeight = $(this).height(), 690 barScrollAtZero = windowScroll - barOffset + windowHeight, 691 barHeightWindowHeight = windowScroll + windowHeight, 692 barScrollUp = barOffset <= (windowScroll + windowHeight), 693 barSctollDown = barOffset + barHeight >= windowScroll; 694 695 if (barSctollDown && barScrollUp) { 696 $(this).html($(this).data('count-to')); 697 } 698 }); 699 700 } 701 } 702 703 704 $(document).ready(function() { 705 DRAFGY.isotope(); 706 DRAFGY.slickSlider(); 707 DRAFGY.accordion(); 708 DRAFGY.videoPopup(); 709 DRAFGY.videoGallery(); 710 DRAFGY.tabs(); 711 DRAFGY.modal(); 712 DRAFGY.lightBox(); 713 DRAFGY.lineChart(); 714 DRAFGY.roundChart(); 715 DRAFGY.countDown(); 716 DRAFGY.progressBar(); 717 DRAFGY.beforeAfterSlider(); 718 DRAFGY.googleMap(); 719 DRAFGY.hobbleEffect(); 720 DRAFGY.ajaxPagination(); 721 DRAFGY.particleEffects(); 722 DRAFGY.horizontalPrallax(); 723 DRAFGY.hotspot(); 724 DRAFGY.timeline(); 725 DRAFGY.counter(); 726 }); 727 728 $(window).resize(function() { 729 DRAFGY.isotope(); 730 DRAFGY.slickSlider(); 731 DRAFGY.timeline(); 732 }); 733 734 $(window).scroll(function() { 735 DRAFGY.progressBar(); 736 DRAFGY.horizontalPrallax(); 737 DRAFGY.counter(); 738 }); 739 740 $(window).load(function() { 741 DRAFGY.isotope(); 742 DRAFGY.youtubePlaylist(); 743 }); 744 745 $(window).on('elementor/frontend/init', function() { 746 747 var triggerSlick = [ 748 'logo-carousel', 749 'interactive-slider', 750 'road-map', 751 'icon-box-slider', 752 'testimonial-slider', 753 'post-slider', 754 'team-member-slider', 755 'team-slider', 756 'image-box-slider', 757 'image-slider' 758 ]; 759 760 $.each(triggerSlick, function(index, item) { 761 elementorFrontend.hooks.addAction('frontend/element_ready/dragfy-addons-' + item + '.default', function($scope, $) { 762 DRAFGY.slickSlider(); 763 }); 764 }); 765 766 var triggerIsotope = [ 767 'image-gallery', 768 'filterable-gallery', 769 'filterable-video-gallery', 770 'post', 771 ]; 772 773 $.each(triggerIsotope, function(index, item) { 774 elementorFrontend.hooks.addAction('frontend/element_ready/dragfy-addons-' + item + '.default', function($scope, $) { 775 var selector = $scope.find('dragfy-addons-' + item); 776 selector.imagesLoaded(function() { 777 DRAFGY.isotope(); 778 }); 779 }); 780 }); 781 782 elementorFrontend.hooks.addAction('frontend/element_ready/dragfy-addons-accordion.default', function($scope, $) { 783 DRAFGY.accordion();
784 DRAFGY.toggle(); 785 }); 786 787 elementorFrontend.hooks.addAction('frontend/element_ready/dragfy-addons-image-comparison.default', function($scope, $) { 788 DRAFGY.beforeAfterSlider(); 789 }); 790 791 elementorFrontend.hooks.addAction('frontend/element_ready/dragfy-addons-filterable-video-gallery.default', function($scope, $) { 792 DRAFGY.videoGallery(); 793 DRAFGY.videoPopup(); 794 }); 795 796 elementorFrontend.hooks.addAction('frontend/element_ready/dragfy-addons-count-down.default', function($scope, $) { 797 DRAFGY.countDown(); 798 }); 799 800 elementorFrontend.hooks.addAction('frontend/element_ready/dragfy-addons-interactive-banner.default', function($scope, $) { 801 DRAFGY.particleEffects(); 802 }); 803 804 elementorFrontend.hooks.addAction('frontend/element_ready/dragfy-addons-progress-bar.default', function($scope, $) { 805 DRAFGY.progressBar(); 806 }); 807 808 elementorFrontend.hooks.addAction('frontend/element_ready/dragfy-addons-youtube-video-playlist.default', function($scope, $) { 809 DRAFGY.youtubePlaylist(); 810 }); 811 812 elementorFrontend.hooks.addAction('frontend/element_ready/dragfy-addons-line-chart.default', function($scope, $) { 813 DRAFGY.lineChart(); 814 }); 815 816 elementorFrontend.hooks.addAction('frontend/element_ready/dragfy-addons-round-chart.default', function($scope, $) { 817 DRAFGY.roundChart(); 818 }); 819 820 elementorFrontend.hooks.addAction('frontend/element_ready/dragfy-addons-tabs.default', function($scope, $) { 821 DRAFGY.tabs(); 822 }); 823 824 elementorFrontend.hooks.addAction('frontend/element_ready/dragfy-addons-content-toggle.default', function($scope, $) { 825 DRAFGY.tabs(); 826 }); 827 828 elementorFrontend.hooks.addAction('frontend/element_ready/dragfy-addons-counter.default', function($scope, $) { 829 DRAFGY.counter(); 830 }); 831 832 elementorFrontend.hooks.addAction('frontend/element_ready/dragfy-addons-timeline.default', function($scope, $) { 833 DRAFGY.horizontalPrallax(); 834 }); 835 836 }); 837 838 839})(jQuery, window, document);
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.