PageSourceSearch

https://www.fhi360.org/wp-content/themes/gesso/build/js/homepage-hero.es6.js?ver=eb4f200c518fcd2f942c

js fhi360.org collected 2026-09-24 08:48:36 UTC 5,171 bytes, 131 lines download raw bytes

vendor: 4,140 bytes, lines 1-96
1/******/ (function() { // webpackBootstrap
2/******/ 	"use strict";
3/******/ 	var __webpack_modules__ = ({
4
5/***/ "@wordpress/dom-ready":
6/*!**********************************!*\
7  !*** external ["wp","domReady"] ***!
8  \**********************************/
9/***/ (function(module) {
10
11module.exports = window["wp"]["domReady"];
12
13/***/ })
14
15/******/ 	});
16/************************************************************************/
17/******/ 	// The module cache
18/******/ 	var __webpack_module_cache__ = {};
19/******/ 	
20/******/ 	// The require function
21/******/ 	function __webpack_require__(moduleId) {
22/******/ 		// Check if module is in cache
23/******/ 		var cachedModule = __webpack_module_cache__[moduleId];
24/******/ 		if (cachedModule !== undefined) {
25/******/ 			return cachedModule.exports;
26/******/ 		}
27/******/ 		// Create a new module (and put it into the cache)
28/******/ 		var module = __webpack_module_cache__[moduleId] = {
29/******/ 			// no module.id needed
30/******/ 			// no module.loaded needed
31/******/ 			exports: {}
32/******/ 		};
33/******/ 	
34/******/ 		// Execute the module function
35/******/ 		__webpack_modules__[moduleId](module, module.exports, __webpack_require__);
36/******/ 	
37/******/ 		// Return the exports of the module
38/******/ 		return module.exports;
39/******/ 	}
40/******/ 	
41/************************************************************************/
42/******/ 	/* webpack/runtime/compat get default export */
43/******/ 	!function() {
44/******/ 		// getDefaultExport function for compatibility with non-harmony modules
45/******/ 		__webpack_require__.n = function(module) {
46/******/ 			var getter = module && module.__esModule ?
47/******/ 				function() { return module['default']; } :
48/******/ 				function() { return module; };
49/******/ 			__webpack_require__.d(getter, { a: getter });
50/******/ 			return getter;
51/******/ 		};
52/******/ 	}();
53/******/ 	
54/******/ 	/* webpack/runtime/define property getters */
55/******/ 	!function() {
56/******/ 		// define getter functions for harmony exports
57/******/ 		__webpack_require__.d = function(exports, definition) {
58/******/ 			for(var key in definition) {
59/******/ 				if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
60/******/ 					Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
61/******/ 				}
62/******/ 			}
63/******/ 		};
64/******/ 	}();
65/******/ 	
66/******/ 	/* webpack/runtime/hasOwnProperty shorthand */
67/******/ 	!function() {
68/******/ 		__webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
69/******/ 	}();
70/******/ 	
71/******/ 	/* webpack/runtime/make namespace object */
72/******/ 	!function() {
73/******/ 		// define __esModule on exports
74/******/ 		__webpack_require__.r = function(exports) {
75/******/ 			if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
76/******/ 				Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
77/******/ 			}
78/******/ 			Object.defineProperty(exports, '__esModule', { value: true });
79/******/ 		};
80/******/ 	}();
81/******/ 	
82/************************************************************************/
83var __webpack_exports__ = {};
84// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
85!function() {
86/*!*******************************************************!*\
87  !*** ./source/05-block-patterns/homepage-hero.es6.js ***!
88  \*******************************************************/
89__webpack_require__.r(__webpack_exports__);
90/* harmony import */ var _wordpress_dom_ready__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @wordpress/dom-ready */ "@wordpress/dom-ready");
91/* harmony import */ var _wordpress_dom_ready__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_wordpress_dom_ready__WEBPACK_IMPORTED_MODULE_0__);
92
93_wordpress_dom_ready__WEBPACK_IMPORTED_MODULE_0___default()(() => {
94  const animatedElements = document.querySelectorAll('.homepage-hero__title, .homepage-hero__intro, .homepage-hero__buttons .wp-block-button__link, .homepage-hero__image, .homepage-hero__circles');
95
96  // First, we pause everything.
97  animatedElements.forEach(animatedElem => {
98    animatedElem.classList.add('u-animate-paused');
99  });
100
101  // manage threshhold
102  let animationThreshold = 0.5;
103  if (window.outerHeight >= 600) {
104    animationThreshold = 0;
105  }
106
107  // Then, we create the IntersectionObserver.
108  const animObserver = new IntersectionObserver((entries, observer) => {
109    entries.forEach(entry => {
110      // If the element is in the viewport, we remove the u-animate-paused class to animate it.
111      if (entry.intersectionRatio >= animationThreshold) {
112        entry.target.classList.remove('u-animate-paused');
113        observer.unobserve(entry.target);
114      } else {
115        entry.target.classList.add('u-animate-paused');
116        entry.target.classList.add('u-animate-no-delay');
117      }
118    });
119  }, {
120    threshold: [0, 0.5]
121  });
122
123  // Then, we observe each of the animated elements.
124  animatedElements.forEach(animatedElem => {
125    animObserver.observe(animatedElem);
126  });
127});
128}();
129/******/ })()
130;
131//# sourceMappingURL=homepage-hero.es6.js.map

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.