@widelab-nc/widelab 1.1.15 → 1.1.16
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/package.json +1 -1
- package/src/index.js +12 -0
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1032,6 +1032,15 @@ window.closeContactModal = function() {
|
|
|
1032
1032
|
contactFormOpen.timeScale(1).reverse();;
|
|
1033
1033
|
}
|
|
1034
1034
|
|
|
1035
|
+
// Close contact modal on ESC click
|
|
1036
|
+
window.closeContactModalOnEsc = function(e) {
|
|
1037
|
+
document.addEventListener('keydown', function(event) {
|
|
1038
|
+
if (event.key === "Escape") {
|
|
1039
|
+
window.closeContactModal();
|
|
1040
|
+
}
|
|
1041
|
+
});
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1035
1044
|
// Form animation
|
|
1036
1045
|
// Hero animation on load
|
|
1037
1046
|
window.successMsgAnimation = function(e) {
|
|
@@ -1108,6 +1117,7 @@ window.contactUsHide = function(e) {
|
|
|
1108
1117
|
}));
|
|
1109
1118
|
}
|
|
1110
1119
|
|
|
1120
|
+
// Refresh Gsap scrollTriggers
|
|
1111
1121
|
window.scrollTriggerRefresh = function() {
|
|
1112
1122
|
function refreshScrollTrigger() {
|
|
1113
1123
|
ScrollTrigger.refresh();
|
|
@@ -1118,6 +1128,8 @@ window.scrollTriggerRefresh = function() {
|
|
|
1118
1128
|
observer.observe(targetNode, config);
|
|
1119
1129
|
}
|
|
1120
1130
|
|
|
1131
|
+
|
|
1132
|
+
|
|
1121
1133
|
// !!!!!!!!! Keep this Alpine init at the end !!!!!!!!!
|
|
1122
1134
|
window.Webflow ||= [];
|
|
1123
1135
|
window.Webflow.push(() => {
|