Skip to content

Commit

Permalink
Merge branch 'dev' into stg
Browse files Browse the repository at this point in the history
  • Loading branch information
ZoomREI committed Nov 24, 2024
2 parents 46382c8 + b97748e commit cad8197
Show file tree
Hide file tree
Showing 234 changed files with 11,794 additions and 7,494 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
.wp-block-chris-buys-cw-hero {
.wp-block-chris-buys-cw-hero-v2 {
padding-block: 1.5rem !important;
background-color: #004c8d;
width: 100%;
Expand Down
12 changes: 10 additions & 2 deletions wp-content/plugins/chris-buys-blocks/src/s2-form-cw/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,16 @@ function loadCallback() {
})

jQuery(document).bind('gform_confirmation_loaded', function(event, formId){
pagesInstance.show('thanks')
console.log('success')
// Initialize dataLayer if it doesn't exist
window.dataLayer = window.dataLayer || [];

// Push the event
window.dataLayer.push({
'event': 'Lead_Step_2'
});

// Show thank you page
pagesInstance.show('thanks');
});
}

Expand Down
71 changes: 47 additions & 24 deletions wp-content/plugins/chris-buys-blocks/src/s2-form-nhp/view.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
// import gsap from "gsap";


function loadCallback() {
function fadingPages(context, opts) {
let pages = Array.from(context.querySelectorAll(opts.pageSelector));
let activePageName = 'main';
let activePageName = "main";
let activePage = null;

function dynamicListener(events, selector, handler, context) {
events.split(' ').forEach(function (event) {
events.split(" ").forEach(function (event) {
(document || context).addEventListener(event, function (e) {
if (e.target.matches(selector) || e.target.closest(selector)) {
handler.call(e.target.closest(selector), e);
Expand All @@ -22,34 +21,47 @@ function loadCallback() {
let thisEventName = eventName;
let thisParams = params;

if (typeof el === 'string') {
if (typeof el === "string") {
thisEventName = el;
thisEl = document;
if (typeof eventName === 'object') {
if (typeof eventName === "object") {
thisParams = eventName;
}
}

let newEvent = new CustomEvent(thisEventName, { bubbles: bubbles, detail: thisParams });
let newEvent = new CustomEvent(thisEventName, {
bubbles: bubbles,
detail: thisParams,
});
thisEl.dispatchEvent(newEvent);
}

function fadeIn(el, duration, display = 'block', afterFunc = false) {
function fadeIn(el, duration, display = "block", afterFunc = false) {
gsap.set(el, { display: display, opacity: 0, x: 100 });
gsap.to(el, { opacity: 1, x: 0, duration: duration / 1000, onComplete: afterFunc });
gsap.to(el, {
opacity: 1,
x: 0,
duration: duration / 1000,
onComplete: afterFunc,
});
}

function fadeOut(el, duration, afterFunc = false) {
gsap.to(el, { opacity: 0, x: -100, duration: duration / 1000, onComplete: function () {
gsap.set(el, { display: 'none' });
gsap.to(el, {
opacity: 0,
x: -100,
duration: duration / 1000,
onComplete: function () {
gsap.set(el, { display: "none" });
if (afterFunc) afterFunc();
} });
},
});
}

function showPage(pageName) {
let newPage = pages.find(item => item.dataset.page === pageName);
let newPage = pages.find((item) => item.dataset.page === pageName);
if (!newPage) {
console.warn('No page found by name: ' + pageName);
console.warn("No page found by name: " + pageName);
return;
}
if (activePage) {
Expand All @@ -59,15 +71,15 @@ function loadCallback() {
activePage = newPage;
} else {
activePage = newPage;
gsap.set(newPage, { display: 'block', opacity: 1, x: 0 });
gsap.set(newPage, { display: "block", opacity: 1, x: 0 });
}

jQuery('html, body').animate({ scrollTop: 0 }, 300);
trigger(activePage, 'show');
jQuery("html, body").animate({ scrollTop: 0 }, 300);
trigger(activePage, "show");
}

showPage(activePageName);
dynamicListener('click', '[data-page-link]', function (e) {
dynamicListener("click", "[data-page-link]", function (e) {
e.preventDefault();
showPage(this.dataset.pageLink);
});
Expand All @@ -77,17 +89,28 @@ function loadCallback() {
};
}


let pagesInstance = fadingPages(document.body, {
pageSelector: '.s2-form-small__step',
timing: 500
})
pageSelector: ".s2-form-small__step",
timing: 500,
});

jQuery(document).bind("gform_confirmation_loaded", function (event, formId) {
// Initialize dataLayer if it doesn't exist
window.dataLayer = window.dataLayer || [];

// Push the event
window.dataLayer.push({
event: "Lead_Step_2",
});

jQuery(document).bind('gform_confirmation_loaded', function(event, formId){
pagesInstance.show('thanks')
// Show thank you page
pagesInstance.show("thanks");
});
}

document.addEventListener("DOMContentLoaded", function () {
loadScript('https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js', loadCallback)
loadScript(
"https://cdnjs.cloudflare.com/ajax/libs/gsap/3.12.5/gsap.min.js",
loadCallback,
);
});

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

This file was deleted.

This file was deleted.

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion wp-content/plugins/gravityforms/assets/css/dist/assets.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('hash_map' => array('admin-components.min.css' => array('version' => 'f78e5368d8b599a78b9709de2178cf97', 'file' => 'admin-components.min.css'), 'admin-css-utilities.min.css' => array('version' => '047c723392c56ed67effb778811f50ea', 'file' => 'admin-css-utilities.min.css'), 'admin-icons.min.css' => array('version' => '520e7dcc452befec5f1c95e51400ec2d', 'file' => 'admin-icons.min.css'), 'admin-ie11.min.css' => array('version' => 'b1f15b2772b378a5549ac45eefe2fcb7', 'file' => 'admin-ie11.min.css'), 'admin-theme.min.css' => array('version' => '181487c53e25a62e81e1db77d7c504e3', 'file' => 'admin-theme.min.css'), 'admin.min.css' => array('version' => 'b2310dbe070b29d27f9e4c1df0b39ed7', 'file' => 'admin.min.css'), 'basic.min.css' => array('version' => '4bedfdb9cf94d64f854157dffba8b66f', 'file' => 'basic.min.css'), 'blocks.min.css' => array('version' => 'f7b147e3138419bb9db86d7e0b0bd5e5', 'file' => 'blocks.min.css'), 'common-css-utilities.min.css' => array('version' => '2633df3a029b0d34687e2d197707e947', 'file' => 'common-css-utilities.min.css'), 'editor.min.css' => array('version' => '6a4bdd86191cb74f53524474d2ee78a8', 'file' => 'editor.min.css'), 'font-awesome.min.css' => array('version' => 'ab928ca9bd3a308082b143be8a422524', 'file' => 'font-awesome.min.css'), 'gravity-forms-common-icons.min.css' => array('version' => '7144d998edb50d92c9bd4e51d89e1248', 'file' => 'gravity-forms-common-icons.min.css'), 'gravity-forms-orbital-theme.min.css' => array('version' => 'd41d8cd98f00b204e9800998ecf8427e', 'file' => 'gravity-forms-orbital-theme.min.css'), 'gravity-forms-theme-foundation.min.css' => array('version' => '24e1aab73d398b04bedb185ac75f540d', 'file' => 'gravity-forms-theme-foundation.min.css'), 'gravity-forms-theme-framework.min.css' => array('version' => '7ed359ef17010b5a486e83c0767de750', 'file' => 'gravity-forms-theme-framework.min.css'), 'gravity-forms-theme-reset.min.css' => array('version' => '590d763581c57d55da02972ac0f387d2', 'file' => 'gravity-forms-theme-reset.min.css'), 'settings.min.css' => array('version' => '01a4be7adf61c7203e43116c49b01e78', 'file' => 'settings.min.css'), 'setup-wizard.min.css' => array('version' => '7c1011a25f000c4eb8f1bcb85fa4dfa2', 'file' => 'setup-wizard.min.css'), 'template-library.min.css' => array('version' => '560c6c8266f8a6c5cf81077ad29c13a9', 'file' => 'template-library.min.css'), 'theme-components.min.css' => array('version' => 'd41d8cd98f00b204e9800998ecf8427e', 'file' => 'theme-components.min.css'), 'theme-ie11.min.css' => array('version' => '67ea51dbc2856d10c83352871408a6da', 'file' => 'theme-ie11.min.css'), 'theme.min.css' => array('version' => '6a7e3f08eafa3f4cd82cb28dfa574bfa', 'file' => 'theme.min.css')));
<?php return array('hash_map' => array('admin-components.min.css' => array('version' => '11221bc8268d928a0e792f62b2701a25', 'file' => 'admin-components.min.css'), 'admin-css-utilities.min.css' => array('version' => 'b847827d17990a5efc819600af9fe8ef', 'file' => 'admin-css-utilities.min.css'), 'admin-icons.min.css' => array('version' => 'c02f544edeefb1405b8c69e2891ac7b8', 'file' => 'admin-icons.min.css'), 'admin.min.css' => array('version' => '917c75270abd768d8d37bb132f900d1b', 'file' => 'admin.min.css'), 'basic.min.css' => array('version' => '18e7051caa2566bce6ea939a0608016c', 'file' => 'basic.min.css'), 'blocks.min.css' => array('version' => '4613ddf06494914aa67f274ab1266503', 'file' => 'blocks.min.css'), 'common-css-utilities.min.css' => array('version' => '2633df3a029b0d34687e2d197707e947', 'file' => 'common-css-utilities.min.css'), 'editor.min.css' => array('version' => '23138b5ff383a728b1287328efaf9d4e', 'file' => 'editor.min.css'), 'font-awesome.min.css' => array('version' => 'ab928ca9bd3a308082b143be8a422524', 'file' => 'font-awesome.min.css'), 'gravity-forms-common-icons.min.css' => array('version' => '7662fd51355695d09569c21e36bd8780', 'file' => 'gravity-forms-common-icons.min.css'), 'gravity-forms-orbital-theme.min.css' => array('version' => 'd41d8cd98f00b204e9800998ecf8427e', 'file' => 'gravity-forms-orbital-theme.min.css'), 'gravity-forms-theme-foundation-admin.min.css' => array('version' => '6eb1952ff6fa10e13ef353db8aba13b6', 'file' => 'gravity-forms-theme-foundation-admin.min.css'), 'gravity-forms-theme-foundation.min.css' => array('version' => '1e7028e88382cde9d3ddfd64eb6248b7', 'file' => 'gravity-forms-theme-foundation.min.css'), 'gravity-forms-theme-framework-admin.min.css' => array('version' => '8e16f30ddaf6af7663c7cb1b73139b64', 'file' => 'gravity-forms-theme-framework-admin.min.css'), 'gravity-forms-theme-framework.min.css' => array('version' => '156ee2bb64818a93ffc580fa15b3139b', 'file' => 'gravity-forms-theme-framework.min.css'), 'gravity-forms-theme-reset.min.css' => array('version' => 'f412a4321308aaa79c259b8cea16bae2', 'file' => 'gravity-forms-theme-reset.min.css'), 'settings.min.css' => array('version' => 'c8b5c324abfb5aca2b6f6a171a4e620f', 'file' => 'settings.min.css'), 'setup-wizard.min.css' => array('version' => '7c1011a25f000c4eb8f1bcb85fa4dfa2', 'file' => 'setup-wizard.min.css'), 'template-library.min.css' => array('version' => '560c6c8266f8a6c5cf81077ad29c13a9', 'file' => 'template-library.min.css'), 'theme-admin.min.css' => array('version' => '8111327060e0058fa503788198285cbd', 'file' => 'theme-admin.min.css'), 'theme-components.min.css' => array('version' => 'd41d8cd98f00b204e9800998ecf8427e', 'file' => 'theme-components.min.css'), 'theme.min.css' => array('version' => 'fdc4ff0ce6e976b2511d6f27f7832daf', 'file' => 'theme.min.css')));

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Large diffs are not rendered by default.

Loading

0 comments on commit cad8197

Please sign in to comment.