1/* Retina JS */ 2!function (t, e) { "object" == typeof exports && "undefined" != typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define(e) : t.retinajs = e() }(this, function () { "use strict"; var t = "undefined" != typeof window, e = Math.round(t && window.devicePixelRatio || 1), n = /(\.[A-z]{3,4}\/?(\?.*)?)$/, i = /url\(('|")?([^)'"]+)('|")?\)/i, r = "[data-rjs]", o = "data-rjs-processed"; function u(t) { return Array.prototype.slice.call(t) } function a(t, e) { var n = t.nodeName.toLowerCase(), i = document.createElement("img"); i.addEventListener("load", function () { "img" === n ? function (t) { return t.hasAttribute("data-no-resize") || (0 === t.offsetWidth && 0 === t.offsetHeight ? (t.setAttribute("width", t.width), t.setAttribute("height", t.height)) : (t.setAttribute("width", t.offsetWidth), t.setAttribute("height", t.offsetHeight))), t }(t).setAttribute("src", e) : t.style.backgroundImage = "url(" + e + ")" }), i.setAttribute("src", e), t.setAttribute(o, !0) } function d(t, i) { var r = function (t) { var n = parseInt(t, 10); return e < n ? e : n }(arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 1); i && r > 1 && a(t, i.replace(n, "@" + r + "x$1")) } function f(t) { (function (t) { return t ? "function" == typeof t.forEach ? t : u(t) : "undefined" != typeof document ? u(document.querySelectorAll(r)) : [] })(t).forEach(function (t) { if (!t.getAttribute(o)) { var n = "img" === t.nodeName.toLowerCase() ? t.getAttribute("src") : function (t) { return t.style.backgroundImage.replace(i, "$2") }(t), r = t.getAttribute("data-rjs"), u = !isNaN(parseInt(r, 10)); if (null === r) return; u ? d(t, n, r) : (f = t, s = r, e > 1 && a(f, s)) } var f, s }) } return t && (window.addEventListener("load", function () { f() }), window.retinajs = f), f }); 3 4// window.load_js = function( src ) { 5// var js = document.createElement('script'); 6// js.type = 'text/javascript'; 7// js.src = src; 8// document.getElementsByTagName('body')[0].appendChild(js); 9// } 10 11// window.load_css = function( href, load_in_head ) { 12// load_in_head = ( typeof load_in_head == 'undefined' ) ? true : false; 13// var css = document.createElement('link'); 14// css.rel = 'stylesheet'; 15// css.type = 'text/css'; 16// css.href = href; 17// if( load_in_head ) { 18// // load in head 19// document.getElementsByTagName('head')[0].appendChild(css); 20// } else { 21// // load in body / footer 22// document.getElementsByTagName('body')[0].appendChild(css); 23// } 24// } 25 26(function ($) { 27 $(function () { 28 29 var $body = $('body'); 30 31 window.scroll_to = function (target, offset, animationSpeed) { 32 if (!target.length) return; 33 $('html,body').stop().animate({ 34 scrollTop: target.offset().top - offset 35 }, animationSpeed); 36 } 37 38 var ff_waypoints = { 39 init: function () { 40 if (typeof Waypoint === 'undefined') return; 41 //this.detect_in_view(); 42 var _ = this; 43 $body.on('on_page_load', function () { 44 _.sticky_header(); 45 _.sticky_footer_cta(); 46 }); 47 }, 48 sticky_header: function () { 49 var el = document.getElementById('sticky_header_waypoint'); 50 if (!el) return; 51 if ($body.hasClass('disable_sticky_header')) return; 52 53 var header_container = $('#site_header_container'); 54 // Set header container min height to fix jumping when sticky header is activated 55 header_container.css('min-height', header_container.outerHeight() + 'px'); 56 57 el.waypoint = new Waypoint({ 58 element: el, 59 handler: function (direction) { 60 if (direction == 'up') { 61 $body.addClass('header-unstick'); 62 setTimeout(function () { 63 $body.removeClass('header-stick header-unstick'); 64 }, 200); 65 } else if (direction == 'down') { 66 $body.addClass('header-stick'); 67 } 68 }, 69 offset: '-100%', 70 }); 71 }, 72 sticky_footer_cta: function () { 73 74 var el = document.getElementById('sticky_footer_cta_waypoint'); 75 if (!el) return; 76 77 if (typeof Cookies !== 'undefined' && typeof Cookies.get('footer_cta_closed') !== 'undefined') return; 78 79 var footer_cta = $('.footer-sticky-cta'); 80 // add body space/padding 81 $body.css('padding-bottom', footer_cta.outerHeight() + 'px'); 82 83 // close 84 footer_cta.find('.close-btn').on('click', function () { 85 $body.css('padding-bottom', '0').removeClass('footer-cta-stick footer-cta-unstick'); 86 el.waypoint.destroy(); 87 Cookies.set('footer_cta_closed', true, { expires: 1, path: '/' });
88 }); 89 90 el.waypoint = new Waypoint({ 91 element: el, 92 handler: function (direction) { 93 if (direction == 'up') { 94 $body.addClass('footer-cta-unstick'); 95 setTimeout(function () { 96 $body.removeClass('footer-cta-stick footer-cta-unstick'); 97 }, 200); 98 } else if (direction == 'down') { 99 $body.addClass('footer-cta-stick'); 100 } 101 }, 102 offset: '0', 103 }); 104 105 }, 106 detect_in_view: function () { 107 $('.detect-in-view').each(function () { 108 var el = this, 109 $el = $(this); 110 $el.addClass('init'); 111 this.waypoint = new Waypoint({ 112 element: el, 113 handler: function (direction) { 114 $el.addClass('in-view'); 115 w.destroy(); // remove once animated 116 }, 117 offset: '100%', 118 }); 119 }); 120 }, 121 } 122 123 // Advanced Search Form 124 var ff_advanced_search = { 125 trigger_btn: $('.asf-trigger'), 126 container: $('.advance-search'), 127 closing: false, 128 init: function () { 129 if (!this.trigger_btn.length) return; 130 131 this.form = this.container.find('form'); 132 this.close_btn = this.container.find('.close'); 133 this.input_field = this.form.find('input[type="search"]'); 134 135 var _ = this; 136 this.trigger_btn.on('click', function () { 137 _.open(); 138 }); 139 this.close_btn.on('click', function () { 140 _.close(); 141 }); 142 }, 143 open: function () { 144 if (this.closing) return; 145 this.container.addClass('show'); 146 this.input_field.focus(); 147 }, 148 close: function () { 149 //this.container.removeClass('active'); 150 this.container.addClass('close'); 151 this.closing = true; 152 var _ = this; 153 setTimeout(function () { 154 _.closing = false; 155 _.container.removeClass('close show'); 156 }, 400); 157 }, 158 } 159 160 // Mobile Menu 161 // function mobile_menu() { 162 // $('.mobile-menu a').attr('role', 'button'); 163 // $('.menu-burger-menu').attr('role', 'menu'); 164 // $('.mobile-menu').attr('role', 'menu'); 165 166 // // open menu 167 // $('.mobile-menu-trigger-button, .mobile-menu-mask').click(function() { 168 // $('.mobile-menu-trigger-button').toggleClass('active'); 169 // $('body').toggleClass('mobile-menu-open'); 170 // }); 171 // // // sub-menu toggle 172 // // $('.mobile-menu .menu-item-has-children .sub-menu').each(function(){ 173 // // var sub_menu_trigger = $('<span class="sub-menu-trigger fa fa-angle-down"></span>'); 174 // // $(this).before(sub_menu_trigger); 175 // // sub_menu_trigger.click(function(){ 176 // // $(this).closest('.menu-item').toggleClass('active'); 177 // // }); 178 // // }); 179 // // // On menu click open submenu, if has sub-menu 180 // // $('.mobile-menu .menu-item-has-children > a').on('click', function(e){ 181 // // e.preventDefault(); 182 // // $(this).next('.sub-menu-trigger').click(); 183 // // }); 184 // } 185 186 187 // Mobile Menu 188 function mobile_menu() { 189 $('.mobile-menu a').attr('role', 'button'); 190 $('.menu-burger-menu').attr('role', 'menu'); 191 $('.mobile-menu').attr('role', 'menu'); 192 193 // open menu 194 $('.mobile-menu-trigger-button, .mobile-menu-mask').click(function () { 195 $('.mobile-menu-trigger-button').toggleClass('active'); 196 $('body').toggleClass('mobile-menu-open'); 197 }); 198 199 $('body').on('click', '.mobile-menu .menu-burger-menu-container > ul > .menu-item.menu-item-has-children > a', function (e) { 200 if ($(this).attr('href') == undefined) { 201 $(this).closest('li').find('.sub-menu-trigger').trigger('click'); 202 } 203 }); 204 // sub-menu toggle 205 $('.mobile-menu .menu-item-has-children .sub-menu').each(function () {
206 var sub_menu_trigger = $('<span class="sub-menu-trigger fa fa-angle-down"></span>'); 207 $(this).before(sub_menu_trigger); 208 }); 209 $('body').on('click', '.mobile-menu .menu-burger-menu-container > ul > .menu-item.menu-item-has-children .sub-menu-trigger', function (e) { 210 e.preventDefault(); 211 $this = $(this); 212 if ($this.closest('li').hasClass('is-active')) { 213 $this.closest('li').removeClass('is-active'); 214 $this.closest('li').find('> ul').slideUp(150); 215 } else { 216 $this.parents('.menu-burger-menu-container').find('li.is-active > ul').slideUp(150); 217 $this.parents('.menu-burger-menu-container').find('li.is-active').removeClass('is-active'); 218 $this.closest('li').addClass('is-active'); 219 $this.closest('li').find('> ul').slideDown(150); 220 }; 221 }); 222 } 223 224 function share_popup_scripts() { 225 $('.elementor-widget-social-icons .elementor-social-icon-share-alt').on('click', function (e) { 226 e.preventDefault(); 227 if (typeof elementorFrontend === 'undefined') return; 228 elementorFrontend.documentsManager.documents[58].showModal(); 229 }); 230 } 231 232 // gravityforms customizations 233 var ff_gf = { 234 checkbox: function () { 235 $('.gfield_checkbox .gfield-choice-input, .ginput_container_consent input[type="checkbox"]').on('change', function () { 236 var container = $(this).parent(); 237 if (this.checked) { 238 container.addClass('selected'); 239 } else { 240 container.removeClass('selected'); 241 } 242 }); 243 }, 244 radio: function () { 245 $('.gfield_radio').each(function () { 246 var container = $(this); 247 var choices = container.find('.gfield-choice-input'); 248 choices.on('change', function () { 249 choices.each(function () { 250 var container = $(this).parent(); 251 if (this.checked) { 252 container.addClass('selected'); 253 } else { 254 container.removeClass('selected'); 255 } 256 }); 257 }); 258 }); 259 }, 260 disable_datepicker_autocomplete: function () { 261 $('.hasDatepicker, .datepicker').attr('autocomplete', 'off'); 262 }, 263 customizations: function () { 264 ff_gf.checkbox(); 265 ff_gf.radio(); 266 ff_gf.disable_datepicker_autocomplete(); 267 }, 268 init: function () { 269 270 // ff_gf.customizations(); 271 272 // form submit indicator 273 $(document).on('gform_confirmation_loaded', function (e, form_id) { 274 $('#gf_' + form_id).parent().addClass('form-submitted'); 275 }); 276 277 $(document).bind('gform_post_render', function () { 278 ff_gf.customizations(); 279 }); 280 }, 281 } 282 283 // slick carousel 284 var ff_slick = { 285 els: $('.ff-slick-carousel'), 286 init: function () { 287 if (typeof $().slick === 'undefined') return 288 if (!ff_slick.els.length) return; 289 290 ff_slick.els.each(function () { 291 var _ = $(this); 292 var _slickSettings = { 293 autoplay: false, 294 // autoplaySpeed: 6000, 295 speed: 1000, 296 infinite: true, 297 pauseOnHover: true, 298 slidesToShow: 3, 299 slidesToScroll: 3, 300 arrows: true, 301 dots: false, 302 useTransform: true, 303 cssEase: 'cubic-bezier(0.300, 0.440, 0.020, 1.000)', 304 }; 305 306 if (_.hasClass('dots')) { 307 _slickSettings.dots = true; 308 _slickSettings.arrows = false; 309 } 310 311 // custom navigation buttons 312 if (_.hasClass('custom-nav')) { 313 _slickSettings.appendArrows = $(this).closest('.carousel-parent-container').find('.slick-carousel-nav-container'); 314 } 315 316 //_slickSettings = Object.assign({}, _slickSettings,_.data()); 317 $.extend(_slickSettings, _.data()); // IE compatibility 318 319 var slick_responsive = [], 320 slides_md = null, 321 slides_sm = null, 322 slides_xs = null; 323 324 if (_slickSettings.slidesToShow == 3 || _slickSettings.slidesToShow == 4) { 325 slides_md = 3; 326 slides_sm = 2; 327 slides_xs = 1; 328 } 329 330 if (typeof _.data('slides-md') !== 'undefined') { 331 slides_md = _.data('slides-md'); 332 } 333 334 if (typeof _.data('slides-sm') !== 'undefined') { 335 slides_sm = _.data('slides-sm'); 336 } 337 338 if (typeof _.data('slides-xs') !== 'undefined') { 339 slides_xs = _.data('slides-xs'); 340 } 341 342 if (slides_md) { 343 slick_responsive.push({ 344 breakpoint: 1023, 345 settings: { 346 slidesToShow: slides_md, 347 slidesToScroll: slides_md, 348 } 349 }); 350 } 351 352 if (slides_sm) { 353 slick_responsive.push({ 354 breakpoint: 767, 355 settings: { 356 slidesToShow: slides_sm, 357 slidesToScroll: slides_sm, 358 } 359 }); 360 } 361 362 if (slides_xs) { 363 slick_responsive.push({ 364 breakpoint: 539, 365 settings: { 366 slidesToShow: slides_xs, 367 slidesToScroll: slides_xs, 368 } 369 }); 370 } 371 372 if (slick_responsive.length) { 373 _slickSettings.responsive = slick_responsive; 374 } 375 376 // tablet landscape number of slides 377 if (typeof _.data('slides-tablet-landscape') !== 'undefined') { 378 var slides_tablet_landscape = _.data('slides-tablet-landscape'); 379 _slickSettings.responsive.unshift({ 380 breakpoint: 1025, 381 settings: { 382 slidesToShow: slides_tablet_landscape, 383 slidesToScroll: slides_tablet_landscape, 384 } 385 }); 386 } 387 388 //console.log( _slickSettings ); 389 _.slick(_slickSettings); 390 }); 391 } 392 } 393 394 // only load iframes after page load is complete 395 function defer_iframes() { 396 $('iframe.defer-iframe').each(function () { 397 $(this).attr('src', $(this).data('src')); 398 }); 399 } 400 401 // cut long texts, add ellipsis 402 function truncate_text() { 403 if (typeof $().dotdotdot === 'undefined') return; 404 var els = $('.truncate-text, .truncate'); 405 if (!els.length) return; 406 els.dotdotdot(); 407 } 408 409 // scroll to section based on anchor/hashtag in the url 410 function hash_scroll() { 411 if (!window.location.hash) return; 412 var target = window.location.hash.split('#scroll-to-')[1]; 413 if (typeof target === 'undefined') return; 414 animate_scroll_to($('#' + target), 100, 400); 415 } 416 417 // replace images with @2x version for retina screens 418 function retina() { 419 if (typeof retinajs === 'undefined') return; 420 $('.retina').each(function () { 421 var img = (this.nodeName === 'IMG') ? $(this) : $(this).find('img'); 422 img.attr('data-rjs', '2'); 423 retinajs(); 424 }); 425 //webp_retina_support(); 426 } 427 428 function svg_customizations() { 429 // Animate SVG using vivus js 430 if (typeof Vivus === 'undefined') return; 431 $('.animate-svg').each(function () { 432 var $this = $(this); 433 var svg = $this.find('svg')[0]; 434 if (svg) { 435 var options = { 436 // Start Options: inViewport, autostart, manual 437 start: (typeof $this.data('start') !== 'undefined') ? $this.data('start')
437: 'inViewport', 438 // Type Options: delayed, sync, oneByOne, script, scenario or scenario-sync 439 type: (typeof $this.data('type') !== 'undefined') ? $this.data('type') : 'delayed', 440 duration: (typeof $this.data('duration') !== 'undefined') ? $this.data('duration') : 160, 441 } 442 this.vivus = new Vivus(svg, options, ''); 443 } 444 }); 445 } 446 447 function elementor_customizations() { 448 449 // Custom add to cart popup 450 $('.ff-cart-icon.show-popup').click(function (e) { 451 e.preventDefault(); 452 $('.custom-cart-popup .elementor-menu-cart__toggle a').click(); 453 }); 454 455 $('.custom-add-to-cart').each(function () { 456 var spinner = jQuery(this), 457 // input = spinner.find('input[type="number"]'), 458 input = spinner.find('.qty'), 459 btnUp = spinner.find('.inc'), 460 btnDown = spinner.find('.dec'), 461 min = input.attr('min'), 462 max = input.attr('max'); 463 464 btnUp.on('click', function () { 465 var oldValue = parseFloat(input.val()); 466 if (oldValue >= max) { 467 var newVal = oldValue; 468 } else { 469 var newVal = oldValue + 1; 470 } 471 spinner.find("input").val(newVal); 472 spinner.find("input").trigger("change"); 473 }); 474 475 btnDown.on('click', function () { 476 var oldValue = parseFloat(input.val()); 477 if (oldValue <= min) { 478 var newVal = oldValue; 479 } else { 480 var newVal = oldValue - 1; 481 } 482 spinner.find("input").val(newVal); 483 spinner.find("input").trigger("change"); 484 }); 485 }); 486 487 // Elementor tabs mobile dropdown support 488 // $('.tabs-mobile-dropdown').each(function(){ 489 // var $this = $(this); 490 // // Create tabs dropdown 491 // var o = ''; 492 // o += '<div class="tabs-dropdown">'; 493 // o += '<select>'; 494 // var i = 0; 495 // var $tab_titles = $this.find('>.elementor-widget-container > .elementor-tabs > .elementor-tabs-content-wrapper > .elementor-tab-title'); // fix for nested tabs 496 // $tab_titles.each(function () { 497 // i++; 498 // o += '<option value="' + i + '">' + $(this).text() + '</option>'; 499 // }); 500 // o += '</select>'; 501 // o += '</div>'; 502 // o = $(o); 503 // var $tabs = $this.find('>.elementor-widget-container > .elementor-tabs'); // fix for nested tabs 504 // $tabs.prepend(o); 505 // $('.tabs-mobile-dropdown .tabs-dropdown select').on('change', function () { 506 // // Simulate tab click 507 // var $tab = $(this).closest('.elementor-tabs').find('.elementor-tab-title[data-tab=' + $(this).val() + ']'); 508 // $tab.click(); 509 // }); 510 // }); 511 512 // Tabs Slick Refresh 513 // $('.elementor-tab-title').click(function(){ 514 // var $this = $(this); 515 // var tab = $this.data('tab'); 516 // $this.closest('.elementor-tabs').find('.elementor-tab-content[data-tab='+ tab +'] .slick-slider').each(function(){ 517 // this.slick.refresh(); 518 // }); 519 // }); 520 521 } // elementor_customizations 522 523 function hover_animate() { 524 $('.hover-animate').on('mouseenter', function () { 525 $(this).addClass('animating'); 526 }).on('animationend', function () { 527 $(this).removeClass('animating'); 528 }) 529 } 530 531 function admin_bar_hover_style() { 532 var admin_bar = $('#wpadminbar'); 533 var admin_bar_hover; 534 admin_bar.on('mouseenter', function () { 535 admin_bar.addClass('hover'); 536 clearTimeout(admin_bar_hover); 537 }).on('mouseleave', function () { 538 admin_bar_hover = setTimeout(function () { 539 admin_bar.removeClass('hover'); 540 }, 1000) 541 }) 542 } 543 544 function webp_retina_support() { 545 if (window.devicePixelRatio <= 1) return; 546 var img = document.getElementsByTagName("source"); 547 var imgp = []; 548 String.prototype.replaceAt = function (index, replacement) { 549 return this.substr(0, index) + replacement + this.substr(index + replacement.length - 3); 550 } 551 for (i = 0; i < img.length; i++) { 552 imgp = img[i].srcset; 553 if (img[i].srcset.indeOf('@2x') == -1) { 554 var new_src = imgp.replaceAt(img[i].srcset.indeOf('.') - 4, "@2x"); 555 $('.retina source[srcset="' + imgp + '"]').attr('srcset', new_src); 556 } 557 } 558 } 559 560 function browser_feature_detection() { 561 var not_supported = ''; 562 if (typeof IntersectionObserver === 'undefined') { 563 not_supported += ' NOIntersectionObserver'; 564 } 565 if (not_supported) { 566 $('body').addClass(not_supported); 567 } 568 // console.log( navigator.userAgent ); 569 } 570 571 function on_page_load() { 572 573 // cut long texts, add ellipsis 574 truncate_text(); 575 576 // only load iframes after page load is complete 577 defer_iframes(); 578 579 // scroll to section based on anchor/hashtag in the url 580 hash_scroll(); 581 } 582
583 function init() { 584 585 browser_feature_detection(); 586 587 // replace images with @2x version for retina screens 588 retina(); 589 590 // scroll related events / functionalities 591 ff_waypoints.init(); 592 ff_advanced_search.init(); 593 594 // share popup related scripts 595 share_popup_scripts(); 596 597 // menu for mobile screens 598 mobile_menu(); 599 600 // //webp_retina_support(); 601 602 // gravityforms customizations 603 ff_gf.init(); 604 605 // slick carousel 606 ff_slick.init(); 607 608 // map_customizations(); 609 610 svg_customizations(); 611 612 elementor_customizations(); 613 614 admin_bar_hover_style(); 615 616 hover_animate(); 617 618 // run only when the page has completely loaded 619 $body.on('on_page_load', on_page_load); 620 621 622 } 623 init(); 624 625 626 document.onreadystatechange = function () { 627 if (document.readyState === 'complete') { 628 $body.trigger('on_page_load'); 629 630 } 631 632 }; 633 634 // Opt Start: Test 1: Homepage Services & Banner 635 // var sussUsOutSwoosh = `<svg width="25" height="19" viewBox="0 0 25 19" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M8.4911 18.2766L0.366101 10.1516C-0.122034 9.66351 -0.122034 8.87206 0.366101 8.38387L2.13383 6.6161C2.62196 6.12792 3.41346 6.12792 3.9016 6.6161L9.37499 12.0894L21.0984 0.366101C21.5865 -0.122034 22.378 -0.122034 22.8662 0.366101L24.6339 2.13387C25.122 2.62201 25.122 3.41346 24.6339 3.90165L10.2589 18.2767C9.77069 18.7648 8.97924 18.7648 8.4911 18.2766Z" fill="#00CCBC"/></svg>`; 636 var sussUsOutSwoosh = `<i aria-hidden="true" class="fas fa-check"></i>`; 637 638 function defer(method, selector) { 639 if (window.jQuery) { 640 if (jQuery(selector).length > 0) { 641 method(); 642 } else { 643 setTimeout(function () { defer(method, selector); }, 50); 644 } 645 } else { 646 setTimeout(function () { defer(method, selector); }, 50); 647 } 648 } 649 650 function renderOurServices() { 651 var ourServicesElement = `<div class='our-services__wrapper'><h2 class='our-services__header'>Our Services</h2><div class='our-services__content'>We work with clients who want to better understand the numbers that grow their business. We have experience across industries such as healthcare, varruction, IT, Law, Retail and more.</div></div>`; 652 653 $(ourServicesElement).insertBefore('.elementor-element-f371e62'); 654 } 655
656 function renderSussUsOut() { 657 // Render SussUsOut header 658 $('.elementor-element-2ab9ce17 .elementor-container.elementor-column-gap-default').eq(1).empty(); 659 //var sussUsOutHeader = `<div class='suss-us-out__header-wrapper'><div class='suss-us-out__header-tag'>FREE</div><div class='suss-us-out__svg-wrapper'><img class='suss-us-out__svg' src='https://inspire.accountants/wp-content/themes/inspire-ca/images/binacu-15.webp'/></div><div class='suss-us-out__header-name'>Suss Us Out</div><div class='suss-us-out__header-des'>Discover more about Inspire</div><div class='suss-us-out__header-sign'>FREE</div></div>`; 660 var sussUsOutHeader = `<div class='suss-us-out__header-wrapper'><div class='suss-us-out__header-tag'>FREE</div><div class='suss-us-out__svg-wrapper'><img class='suss-us-out__svg' src='https://inspire.accountants/wp-content/themes/inspire-ca/images/binacu-15.webp'/></div><div class='suss-us-out__header-name'>Suss Us Out</div><div class='suss-us-out__header-des'>Discover more about Inspire</div></div>`; 661 $(sussUsOutHeader).appendTo($('.elementor-element-2ab9ce17 .elementor-container.elementor-column-gap-default').eq(1)); 662 // Render SussUsOut body 663 var freeResList = [ 664 { 665 name: 'Webinars', 666 link: 'https://inspire.accountants/workshops-and-webinars/', 667 }, 668 { 669 name: 'Workshops', 670 link: 'https://inspire.accountants/workshops-and-webinars/', 671 }, 672 { 673 name: 'PDF Book', 674 link: 'https://share.hsforms.com/1SsbHn6lySH-9FL6lHGNU6w4akhq?__hstc=61756915.448b6df5bc18adc26d1dbdb6a8b1aa96.1646023291508.1646023291508.1646088921440.2&__hssc=61756915.48.1646088921440&__hsfp=2772433255', 675 }, 676 { 677 name: 'Blogs', 678 link: 'https://inspire.accountants/blog/', 679 }, 680 { 681 name: 'Podcast', 682 link: 'https://inspire.accountants/podcasts/', 683 }, 684 { 685 name: 'Scorecard', 686 link: 'https://inspire.accountants/tax-saving-calculator/', 687 }, 688 ]; 689 690 var sussOutContent = `<div class='suss-us-out__content-wrapper'><div class='suss-us-out__content-name'>Free Resources</div><div class='suss-us-out__content-items'></div></div>`; 691 $(sussOutContent).appendTo($('.elementor-element-2ab9ce17 .elementor-container.elementor-column-gap-default').eq(1)); 692 freeResList.forEach(item => { 693 var element = ` 694 <div class='suss-us-out__content-item-wrapper'> 695 <div class='suss-us-out__content-item-svg'> 696 ${sussUsOutSwoosh} 697 </div> 698 <div class='suss-us-out__content-item-body'> 699 <a href='${item.link}'> 700 ${item.name} 701 </a> 702 </div> 703 </div> 704 ` 705 $(element).appendTo('.suss-us-out__content-items'); 706 }); 707 } 708 709 function renderAllSorted() { 710 // Render SussUsOut header 711 $('.elementor-element-2ab9ce17 .elementor-container.elementor-column-gap-default').eq(2).empty(); 712 //var allSortedHeader = `<div class='all-sorted__header-wrapper'><div class='all-sorted__header-tag'>START HERE</div><div class='all-sorted__svg-wrapper'><img class='all-sorted__svg' src='https://inspire.accountants/wp-content/themes/inspire-ca/images/like-16.webp'/></div><div class='all-sorted__header-name'>Itâs All Sorted</div><div class='all-sorted__header-des'>Proactive tax and accounting</div><div class='all-sorted__header-sign'><span class='all-sorted__header-dollar-from'>from</span><span class='all-sorted__header-dollar-sign'>$</span><span class='all-sorted__header-dollar-number'>600</span><span class='all-sorted__header-dollar-per-month'>/mo</span></div></div>`; 713 var allSortedHeader = `<div class='all-sorted__header-wrapper'><div class='all-sorted__header-tag'>START HERE</div><div class='all-sorted__svg-wrapper'><img class='all-sorted__svg' src='https://inspire.accountants/wp-content/themes/inspire-ca/images/like-16.webp'/></div><div class='all-sorted__header-name'>Itâs All Sorted</div><div class='all-sorted__header-des'>Proactive tax and accounting</div></div>`; 714 $(allSortedHeader).appendTo($('.elementor-element-2ab9ce17 .elementor-container.elementor-column-gap-default').eq(2)); 715 716 // Render SussUsOut body 717 var allSortedList = [ 718 { 719 name: 'Dedicated account team', 720 link: '', 721 }, 722 { 723 name: 'Intro to reliable Partners', 724 link: '', 725 }, 726 { 727 name: 'Documented business structure', 728 link: '', 729 }, 730 { 731 name: 'Tax planning', 732 link: '', 733 }, 734 { 735 name: 'Family wealth meeting', 736 link: '', 737 }, 738 { 739 name: 'Annual general meeting', 740 link: '', 741 }, 742 { 743 name: 'BAS, IAS, Annual tax returns', 744 link: '', 745 }, 746 { 747 name: 'ASIC compliance', 748 link: '', 749 }, 750 { 751 name: 'ATO correspondence', 752 link: '', 753 }, 754 ]; 755 var allSortedContent = `<div class='all-sorted__content-wrapper'><div class='all-sorted__content-body-container'><div class='all-sorted__content-name'>Inclusions</div><div class='all-sorted__content-items'></div></div></div>`; 756 $(allSortedContent).appendTo($('.elementor-element-2ab9ce17 .elementor-container.elementor-column-gap-default').eq(2)); 757 allSortedList.forEach(item => { 758 var element = ` 759 <div class='all-sorted__content-item-wrapper'> 760 <div class='all-sorted__content-item-svg'> 761 ${sussUsOutSwoosh} 762 </div> 763 <div class='all-sorted__content-item-body'> 764 ${item.name} 765 </div> 766 </div> 767 `; 768 $(element).appendTo('.all-sorted__content-items'); 769 }); 770 // Items subtitle 771 var allSortedSubtitles = [ 772 'Ongoing support', 773 '3 Proactive meetings p/year', 774 'Compliance', 775 ]; 776 for (i = 0; i < allSortedSubtitles.length; i++) { 777 var itemSubtitle = `<div class='all-sorted__content-subtitle'>${allSortedSubtitles[i]}</div>`; 778 $(itemSubtitle).insertBefore(`.all-sorted__content-item-wrapper:eq(${i * 3})`); 779 } 780 781 // Btn 782 var allSortedBtn = `<div class="all-sorted__content-button-wrapper"><a href="/chat/" class="elementor-button-link elementor-button elementor-size-sm" role="button"><span class="elementor-button-content-wrapper"><span class="elementor-button-text">Book an initial chat</span></span></a></div>`; 783 $(allSortedBtn).insertAfter('.all-sorted__content-body-container'); 784 } 785 786 function renderBusinessOptions() { 787 $('.elementor-element-2ab9ce17 .elementor-element-1b8ed5ea').empty(); 788 $('.elementor-element-2ab9ce17 .elementor-element-2a38024b').remove(); 789 // Business options layout 790 var businessOptions = `<div class='business-options__wrapper'><div class='business-options__container'><div class='business-options__header-wrapper'><h4 class='buisness-options__header-title'>Options to take your business to the next level</h4><div class='business-options__header-content'>Total Financial Control and Wealth For Life are additional services that we offer to our clients who are working with us on our 'It's All Sorted' tax and accounting subscription. You can have a conversation about what this might look like in the Strategy Call with an accountant.</div></div><div class='business-options__body-wrapper'><div class='business-options__body-financial-container'></div><div class='business-options__body-divider'></div><div class='business-options__body-wealth-container'></div></div></div></div>`; 791 $(businessOptions).appendTo('.elementor-element-2ab9ce17 .elementor-element-1b8ed5ea'); 792 } 793 794 function renderFinancial() { 795 // Financial
796 //var financialHeader = `<div class='financial__header-wrapper header-wrapper'><div class='financial__header-name header-name'>Total Financial Control*</div><div class='financial__header-des header-des'>CFO/Financial control</div><div class='financial__header-sign header-sign'><span class='financial__header-dollar-from header-dollar-from'>from</span><span class='financial__header-dollar-sign header-dollar-sign'>$</span><span class='financial__header-dollar-number header-dollor-number'>750</span><span class='financial__header-dollar-per-month header-dollar-per-month'>/mo</span></div></div>`; 797 var financialHeader = `<div class='financial__header-wrapper header-wrapper'><div class='financial__header-name header-name'>Total Financial Control*</div><div class='financial__header-des header-des'>CFO/Financial control</div></div>`; 798 $(financialHeader).appendTo($('.business-options__body-financial-container')); 799 var FinancialList = [ 800 { 801 name: 'Profit improvement', 802 link: '', 803 }, 804 { 805 name: 'Cashflow', 806 link: '', 807 }, 808 { 809 name: '12 month business budget', 810 link: '', 811 }, 812 { 813 name: 'Business cashflow cascade', 814 link: '', 815 }, 816 { 817 name: 'Debt destruction plan', 818 link: '', 819 }, 820 { 821 name: 'Profit and tax war chest', 822 link: '', 823 }, 824 { 825 name: 'Business valuation estimate', 826 link: '', 827 }, 828 ]; 829 830 var financialContent = ` 831 <div class='financial__content-wrapper content-wrapper'><div class='financial__content-body-container content-body-container'><div class='financial__content-items content-items'></div></div></div>`; 832 $(financialContent).appendTo($('.business-options__body-financial-container')); 833 FinancialList.forEach(item => { 834 var element = ` 835 <div class='financial__content-item-wrapper content-item-wrapper'> 836 <div class='financial__content-item-svg content-item-svg'> 837 ${sussUsOutSwoosh} 838 </div> 839 <div class='financial__content-item-body content-item-body'> 840 ${item.name} 841 </div> 842 </div> 843 `; 844 $(element).appendTo('.financial__content-items'); 845 }); 846 var financialBtn = ` 847 <div class="financial__content-button-wrapper content-button-wrapper"><div class="financial__content-botton-note content-botton-note">*You must be an Itâs All Sorted client before purchasing</div><div class='financial__content-button-container content-button-container'><a href="https://inspire.accountants/service/total-financial-control/" class="elementor-button-link elementor-button elementor-size-sm" role="button"><span class="elementor-button-content-wrapper"><span class="elementor-button-text">Find out more</span></span></a></div></div>`; 848 $(financialBtn).insertAfter('.financial__content-body-container'); 849 } 850 851 function renderWealth() { 852 // Wealth 853 //var wealthHeader = ` 854 //<div class='wealth__header-wrapper header-wrapper'><div class='wealth__header-name header-name'>Wealth for Life*</div><div class='wealth__header-des header-des'>Growing your family wealth</div><div class='wealth__header-sign header-sign'><span class='wealth__header-dollar-sign header-dollar-sign'>$</span><span class='wealth__header-dollar-number header-dollor-number'>Custom</span></div></div>`; 855 var wealthHeader = ` 856 <div class='wealth__header-wrapper header-wrapper'><div class='wealth__header-name header-name'>Wealth for Life*</div><div class='wealth__header-des header-des'>Growing your family wealth</div></div>`; 857 $(wealthHeader).appendTo($('.business-options__body-wealth-container')); 858 var wealthList = [ 859 { 860 name: 'Your family vision', 861 link: '', 862 }, 863 { 864 name: 'Financial freedom & vision', 865 link: '', 866 }, 867 { 868 name: 'Family budget', 869 link: '', 870 }, 871 { 872 name: 'Back up plan â insurances', 873 link: '', 874 }, 875 { 876 name: 'Wills & estate planning', 877 link: '', 878 }, 879 { 880 name: 'SMSF', 881 link: '', 882 }, 883 { 884 name: 'Grow your wealth', 885 link: '', 886 }, 887 { 888 name: 'Leveraging debt', 889 link: '', 890 }, 891 { 892 name: 'Your Property Plan', 893 link: '', 894 }, 895 ]; 896 897 var wealthContent = ` 898 <div class='wealth__content-wrapper content-wrapper'> 899 <div class='wealth__content-body-container content-body-container'> 900 <div class='wealth__content-items content-items'> 901 </div> 902 </div> 903 </div> 904 `; 905 $(wealthContent).appendTo($('.business-options__body-wealth-container')); 906 wealthList.forEach(item => { 907 var element = ` 908 <div class='wealth__content-item-wrapper content-item-wrapper'> 909 <div class='wealth__content-item-svg content-item-svg'> 910 ${sussUsOutSwoosh} 911 </div> 912 <div class='wealth__content-item-body content-item-body'> 913 ${item.name} 914 </div> 915 </div> 916 `; 917 $(element).appendTo('.wealth__content-items'); 918 }); 919 var wealthSubtitles = [ 920 'Foundations', 921 'Structures', 922 'Growth', 923 ]; 924 for (i = 0; i < wealthSubtitles.length; i++) { 925 var itemSubtitle = `<div class='wealth__content-subtitle'>${wealthSubtitles[i]}</div>`; 926 $(itemSubtitle).insertBefore(`.wealth__content-item-wrapper:eq(${i * 3})`); 927 } 928 var wealthBtn = ` 929 <div class="wealth__content-button-wrapper content-button-wrapper"> 930 <div class="wealth__content-botton-note content-botton-note"> 931 *You must be an Itâs All Sorted client before purchasing 932 </div> 933 <div class='wealth__content-button-container content-button-container'> 934 <a href="https://inspire.accountants/service/growing-your-wealth/%20" class="elementor-button-link elementor-button elementor-size-sm" role="button"> 935 <span class="elementor-button-content-wrapper"> 936 <span class="elementor-button-text">Find out more</span> 937 </span> 938 </a> 939 </div> 940 </div> 941 `; 942 $(wealthBtn).insertAfter('.wealth__content-body-container'); 943 } 944 945 function start() { 946 $ = jQuery.noConflict(); 947 console.clear(); 948 949 window.location.href !== 'https://inspire.accountants/services/' && renderOurServices(); 950 renderSussUsOut(); 951 renderAllSorted(); 952 renderBusinessOptions(); 953 renderFinancial(); 954 renderWealth(); 955 } 956 957 defer(start, '.elementor-element-2ab9ce17'); 958 // Opt End: Test 1: Homepage Services & Banner 959 960 }) 961})(jQuery)
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.