foundation.sticky.js 42 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105
  1. (function webpackUniversalModuleDefinition(root, factory) {
  2. if(typeof exports === 'object' && typeof module === 'object')
  3. module.exports = factory(require("./foundation.core"), require("./foundation.util.mediaQuery"), require("./foundation.util.motion"), require("jquery"));
  4. else if(typeof define === 'function' && define.amd)
  5. define(["./foundation.core", "./foundation.util.mediaQuery", "./foundation.util.motion", "jquery"], factory);
  6. else if(typeof exports === 'object')
  7. exports["foundation.sticky"] = factory(require("./foundation.core"), require("./foundation.util.mediaQuery"), require("./foundation.util.motion"), require("jquery"));
  8. else
  9. root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.sticky"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.mediaQuery"], root["__FOUNDATION_EXTERNAL__"]["foundation.util.motion"], root["jQuery"]);
  10. })(window, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__, __WEBPACK_EXTERNAL_MODULE__foundation_util_motion__, __WEBPACK_EXTERNAL_MODULE_jquery__) {
  11. return /******/ (function(modules) { // webpackBootstrap
  12. /******/ // The module cache
  13. /******/ var installedModules = {};
  14. /******/
  15. /******/ // The require function
  16. /******/ function __webpack_require__(moduleId) {
  17. /******/
  18. /******/ // Check if module is in cache
  19. /******/ if(installedModules[moduleId]) {
  20. /******/ return installedModules[moduleId].exports;
  21. /******/ }
  22. /******/ // Create a new module (and put it into the cache)
  23. /******/ var module = installedModules[moduleId] = {
  24. /******/ i: moduleId,
  25. /******/ l: false,
  26. /******/ exports: {}
  27. /******/ };
  28. /******/
  29. /******/ // Execute the module function
  30. /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
  31. /******/
  32. /******/ // Flag the module as loaded
  33. /******/ module.l = true;
  34. /******/
  35. /******/ // Return the exports of the module
  36. /******/ return module.exports;
  37. /******/ }
  38. /******/
  39. /******/
  40. /******/ // expose the modules object (__webpack_modules__)
  41. /******/ __webpack_require__.m = modules;
  42. /******/
  43. /******/ // expose the module cache
  44. /******/ __webpack_require__.c = installedModules;
  45. /******/
  46. /******/ // define getter function for harmony exports
  47. /******/ __webpack_require__.d = function(exports, name, getter) {
  48. /******/ if(!__webpack_require__.o(exports, name)) {
  49. /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
  50. /******/ }
  51. /******/ };
  52. /******/
  53. /******/ // define __esModule on exports
  54. /******/ __webpack_require__.r = function(exports) {
  55. /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
  56. /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
  57. /******/ }
  58. /******/ Object.defineProperty(exports, '__esModule', { value: true });
  59. /******/ };
  60. /******/
  61. /******/ // create a fake namespace object
  62. /******/ // mode & 1: value is a module id, require it
  63. /******/ // mode & 2: merge all properties of value into the ns
  64. /******/ // mode & 4: return value when already ns object
  65. /******/ // mode & 8|1: behave like require
  66. /******/ __webpack_require__.t = function(value, mode) {
  67. /******/ if(mode & 1) value = __webpack_require__(value);
  68. /******/ if(mode & 8) return value;
  69. /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
  70. /******/ var ns = Object.create(null);
  71. /******/ __webpack_require__.r(ns);
  72. /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
  73. /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
  74. /******/ return ns;
  75. /******/ };
  76. /******/
  77. /******/ // getDefaultExport function for compatibility with non-harmony modules
  78. /******/ __webpack_require__.n = function(module) {
  79. /******/ var getter = module && module.__esModule ?
  80. /******/ function getDefault() { return module['default']; } :
  81. /******/ function getModuleExports() { return module; };
  82. /******/ __webpack_require__.d(getter, 'a', getter);
  83. /******/ return getter;
  84. /******/ };
  85. /******/
  86. /******/ // Object.prototype.hasOwnProperty.call
  87. /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
  88. /******/
  89. /******/ // __webpack_public_path__
  90. /******/ __webpack_require__.p = "";
  91. /******/
  92. /******/
  93. /******/ // Load entry module and return exports
  94. /******/ return __webpack_require__(__webpack_require__.s = 17);
  95. /******/ })
  96. /************************************************************************/
  97. /******/ ({
  98. /***/ "./foundation.core":
  99. /*!****************************************************************************************************************************************************************!*\
  100. !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.core"],"amd":"./foundation.core","commonjs":"./foundation.core","commonjs2":"./foundation.core"} ***!
  101. \****************************************************************************************************************************************************************/
  102. /*! no static exports found */
  103. /***/ (function(module, exports) {
  104. module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__;
  105. /***/ }),
  106. /***/ "./foundation.util.mediaQuery":
  107. /*!************************************************************************************************************************************************************************************************************!*\
  108. !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.mediaQuery"],"amd":"./foundation.util.mediaQuery","commonjs":"./foundation.util.mediaQuery","commonjs2":"./foundation.util.mediaQuery"} ***!
  109. \************************************************************************************************************************************************************************************************************/
  110. /*! no static exports found */
  111. /***/ (function(module, exports) {
  112. module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_mediaQuery__;
  113. /***/ }),
  114. /***/ "./foundation.util.motion":
  115. /*!********************************************************************************************************************************************************************************************!*\
  116. !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.util.motion"],"amd":"./foundation.util.motion","commonjs":"./foundation.util.motion","commonjs2":"./foundation.util.motion"} ***!
  117. \********************************************************************************************************************************************************************************************/
  118. /*! no static exports found */
  119. /***/ (function(module, exports) {
  120. module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_util_motion__;
  121. /***/ }),
  122. /***/ "./js/entries/plugins/foundation.sticky.js":
  123. /*!*************************************************!*\
  124. !*** ./js/entries/plugins/foundation.sticky.js ***!
  125. \*************************************************/
  126. /*! exports provided: Foundation, Sticky */
  127. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  128. "use strict";
  129. __webpack_require__.r(__webpack_exports__);
  130. /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
  131. /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
  132. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Foundation", function() { return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"]; });
  133. /* harmony import */ var _foundation_sticky__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.sticky */ "./js/foundation.sticky.js");
  134. /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Sticky", function() { return _foundation_sticky__WEBPACK_IMPORTED_MODULE_1__["Sticky"]; });
  135. _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_sticky__WEBPACK_IMPORTED_MODULE_1__["Sticky"], 'Sticky');
  136. /***/ }),
  137. /***/ "./js/foundation.sticky.js":
  138. /*!*********************************!*\
  139. !*** ./js/foundation.sticky.js ***!
  140. \*********************************/
  141. /*! exports provided: Sticky */
  142. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  143. "use strict";
  144. __webpack_require__.r(__webpack_exports__);
  145. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Sticky", function() { return Sticky; });
  146. /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
  147. /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
  148. /* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.plugin */ "./foundation.core");
  149. /* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__);
  150. /* harmony import */ var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.util.mediaQuery */ "./foundation.util.mediaQuery");
  151. /* harmony import */ var _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__);
  152. /* harmony import */ var _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./foundation.util.triggers */ "./js/foundation.util.triggers.js");
  153. function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  154. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  155. function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
  156. function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
  157. function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
  158. function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
  159. function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
  160. function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
  161. function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
  162. /**
  163. * Sticky module.
  164. * @module foundation.sticky
  165. * @requires foundation.util.triggers
  166. * @requires foundation.util.mediaQuery
  167. */
  168. var Sticky =
  169. /*#__PURE__*/
  170. function (_Plugin) {
  171. _inherits(Sticky, _Plugin);
  172. function Sticky() {
  173. _classCallCheck(this, Sticky);
  174. return _possibleConstructorReturn(this, _getPrototypeOf(Sticky).apply(this, arguments));
  175. }
  176. _createClass(Sticky, [{
  177. key: "_setup",
  178. /**
  179. * Creates a new instance of a sticky thing.
  180. * @class
  181. * @name Sticky
  182. * @param {jQuery} element - jQuery object to make sticky.
  183. * @param {Object} options - options object passed when creating the element programmatically.
  184. */
  185. value: function _setup(element, options) {
  186. this.$element = element;
  187. this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend({}, Sticky.defaults, this.$element.data(), options);
  188. this.className = 'Sticky'; // ie9 back compat
  189. // Triggers init is idempotent, just need to make sure it is initialized
  190. _foundation_util_triggers__WEBPACK_IMPORTED_MODULE_3__["Triggers"].init(jquery__WEBPACK_IMPORTED_MODULE_0___default.a);
  191. this._init();
  192. }
  193. /**
  194. * Initializes the sticky element by adding classes, getting/setting dimensions, breakpoints and attributes
  195. * @function
  196. * @private
  197. */
  198. }, {
  199. key: "_init",
  200. value: function _init() {
  201. _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__["MediaQuery"]._init();
  202. var $parent = this.$element.parent('[data-sticky-container]'),
  203. id = this.$element[0].id || Object(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["GetYoDigits"])(6, 'sticky'),
  204. _this = this;
  205. if ($parent.length) {
  206. this.$container = $parent;
  207. } else {
  208. this.wasWrapped = true;
  209. this.$element.wrap(this.options.container);
  210. this.$container = this.$element.parent();
  211. }
  212. this.$container.addClass(this.options.containerClass);
  213. this.$element.addClass(this.options.stickyClass).attr({
  214. 'data-resize': id,
  215. 'data-mutate': id
  216. });
  217. if (this.options.anchor !== '') {
  218. jquery__WEBPACK_IMPORTED_MODULE_0___default()('#' + _this.options.anchor).attr({
  219. 'data-mutate': id
  220. });
  221. }
  222. this.scrollCount = this.options.checkEvery;
  223. this.isStuck = false;
  224. this.onLoadListener = Object(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["onLoad"])(jquery__WEBPACK_IMPORTED_MODULE_0___default()(window), function () {
  225. //We calculate the container height to have correct values for anchor points offset calculation.
  226. _this.containerHeight = _this.$element.css("display") == "none" ? 0 : _this.$element[0].getBoundingClientRect().height;
  227. _this.$container.css('height', _this.containerHeight);
  228. _this.elemHeight = _this.containerHeight;
  229. if (_this.options.anchor !== '') {
  230. _this.$anchor = jquery__WEBPACK_IMPORTED_MODULE_0___default()('#' + _this.options.anchor);
  231. } else {
  232. _this._parsePoints();
  233. }
  234. _this._setSizes(function () {
  235. var scroll = window.pageYOffset;
  236. _this._calc(false, scroll); //Unstick the element will ensure that proper classes are set.
  237. if (!_this.isStuck) {
  238. _this._removeSticky(scroll >= _this.topPoint ? false : true);
  239. }
  240. });
  241. _this._events(id.split('-').reverse().join('-'));
  242. });
  243. }
  244. /**
  245. * If using multiple elements as anchors, calculates the top and bottom pixel values the sticky thing should stick and unstick on.
  246. * @function
  247. * @private
  248. */
  249. }, {
  250. key: "_parsePoints",
  251. value: function _parsePoints() {
  252. var top = this.options.topAnchor == "" ? 1 : this.options.topAnchor,
  253. btm = this.options.btmAnchor == "" ? document.documentElement.scrollHeight : this.options.btmAnchor,
  254. pts = [top, btm],
  255. breaks = {};
  256. for (var i = 0, len = pts.length; i < len && pts[i]; i++) {
  257. var pt;
  258. if (typeof pts[i] === 'number') {
  259. pt = pts[i];
  260. } else {
  261. var place = pts[i].split(':'),
  262. anchor = jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(place[0]));
  263. pt = anchor.offset().top;
  264. if (place[1] && place[1].toLowerCase() === 'bottom') {
  265. pt += anchor[0].getBoundingClientRect().height;
  266. }
  267. }
  268. breaks[i] = pt;
  269. }
  270. this.points = breaks;
  271. return;
  272. }
  273. /**
  274. * Adds event handlers for the scrolling element.
  275. * @private
  276. * @param {String} id - pseudo-random id for unique scroll event listener.
  277. */
  278. }, {
  279. key: "_events",
  280. value: function _events(id) {
  281. var _this = this,
  282. scrollListener = this.scrollListener = "scroll.zf.".concat(id);
  283. if (this.isOn) {
  284. return;
  285. }
  286. if (this.canStick) {
  287. this.isOn = true;
  288. jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(scrollListener).on(scrollListener, function (e) {
  289. if (_this.scrollCount === 0) {
  290. _this.scrollCount = _this.options.checkEvery;
  291. _this._setSizes(function () {
  292. _this._calc(false, window.pageYOffset);
  293. });
  294. } else {
  295. _this.scrollCount--;
  296. _this._calc(false, window.pageYOffset);
  297. }
  298. });
  299. }
  300. this.$element.off('resizeme.zf.trigger').on('resizeme.zf.trigger', function (e, el) {
  301. _this._eventsHandler(id);
  302. });
  303. this.$element.on('mutateme.zf.trigger', function (e, el) {
  304. _this._eventsHandler(id);
  305. });
  306. if (this.$anchor) {
  307. this.$anchor.on('mutateme.zf.trigger', function (e, el) {
  308. _this._eventsHandler(id);
  309. });
  310. }
  311. }
  312. /**
  313. * Handler for events.
  314. * @private
  315. * @param {String} id - pseudo-random id for unique scroll event listener.
  316. */
  317. }, {
  318. key: "_eventsHandler",
  319. value: function _eventsHandler(id) {
  320. var _this = this,
  321. scrollListener = this.scrollListener = "scroll.zf.".concat(id);
  322. _this._setSizes(function () {
  323. _this._calc(false);
  324. if (_this.canStick) {
  325. if (!_this.isOn) {
  326. _this._events(id);
  327. }
  328. } else if (_this.isOn) {
  329. _this._pauseListeners(scrollListener);
  330. }
  331. });
  332. }
  333. /**
  334. * Removes event handlers for scroll and change events on anchor.
  335. * @fires Sticky#pause
  336. * @param {String} scrollListener - unique, namespaced scroll listener attached to `window`
  337. */
  338. }, {
  339. key: "_pauseListeners",
  340. value: function _pauseListeners(scrollListener) {
  341. this.isOn = false;
  342. jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(scrollListener);
  343. /**
  344. * Fires when the plugin is paused due to resize event shrinking the view.
  345. * @event Sticky#pause
  346. * @private
  347. */
  348. this.$element.trigger('pause.zf.sticky');
  349. }
  350. /**
  351. * Called on every `scroll` event and on `_init`
  352. * fires functions based on booleans and cached values
  353. * @param {Boolean} checkSizes - true if plugin should recalculate sizes and breakpoints.
  354. * @param {Number} scroll - current scroll position passed from scroll event cb function. If not passed, defaults to `window.pageYOffset`.
  355. */
  356. }, {
  357. key: "_calc",
  358. value: function _calc(checkSizes, scroll) {
  359. if (checkSizes) {
  360. this._setSizes();
  361. }
  362. if (!this.canStick) {
  363. if (this.isStuck) {
  364. this._removeSticky(true);
  365. }
  366. return false;
  367. }
  368. if (!scroll) {
  369. scroll = window.pageYOffset;
  370. }
  371. if (scroll >= this.topPoint) {
  372. if (scroll <= this.bottomPoint) {
  373. if (!this.isStuck) {
  374. this._setSticky();
  375. }
  376. } else {
  377. if (this.isStuck) {
  378. this._removeSticky(false);
  379. }
  380. }
  381. } else {
  382. if (this.isStuck) {
  383. this._removeSticky(true);
  384. }
  385. }
  386. }
  387. /**
  388. * Causes the $element to become stuck.
  389. * Adds `position: fixed;`, and helper classes.
  390. * @fires Sticky#stuckto
  391. * @function
  392. * @private
  393. */
  394. }, {
  395. key: "_setSticky",
  396. value: function _setSticky() {
  397. var _this = this,
  398. stickTo = this.options.stickTo,
  399. mrgn = stickTo === 'top' ? 'marginTop' : 'marginBottom',
  400. notStuckTo = stickTo === 'top' ? 'bottom' : 'top',
  401. css = {};
  402. css[mrgn] = "".concat(this.options[mrgn], "em");
  403. css[stickTo] = 0;
  404. css[notStuckTo] = 'auto';
  405. this.isStuck = true;
  406. this.$element.removeClass("is-anchored is-at-".concat(notStuckTo)).addClass("is-stuck is-at-".concat(stickTo)).css(css)
  407. /**
  408. * Fires when the $element has become `position: fixed;`
  409. * Namespaced to `top` or `bottom`, e.g. `sticky.zf.stuckto:top`
  410. * @event Sticky#stuckto
  411. */
  412. .trigger("sticky.zf.stuckto:".concat(stickTo));
  413. this.$element.on("transitionend webkitTransitionEnd oTransitionEnd otransitionend MSTransitionEnd", function () {
  414. _this._setSizes();
  415. });
  416. }
  417. /**
  418. * Causes the $element to become unstuck.
  419. * Removes `position: fixed;`, and helper classes.
  420. * Adds other helper classes.
  421. * @param {Boolean} isTop - tells the function if the $element should anchor to the top or bottom of its $anchor element.
  422. * @fires Sticky#unstuckfrom
  423. * @private
  424. */
  425. }, {
  426. key: "_removeSticky",
  427. value: function _removeSticky(isTop) {
  428. var stickTo = this.options.stickTo,
  429. stickToTop = stickTo === 'top',
  430. css = {},
  431. anchorPt = (this.points ? this.points[1] - this.points[0] : this.anchorHeight) - this.elemHeight,
  432. mrgn = stickToTop ? 'marginTop' : 'marginBottom',
  433. topOrBottom = isTop ? 'top' : 'bottom';
  434. css[mrgn] = 0;
  435. css['bottom'] = 'auto';
  436. if (isTop) {
  437. css['top'] = 0;
  438. } else {
  439. css['top'] = anchorPt;
  440. }
  441. this.isStuck = false;
  442. this.$element.removeClass("is-stuck is-at-".concat(stickTo)).addClass("is-anchored is-at-".concat(topOrBottom)).css(css)
  443. /**
  444. * Fires when the $element has become anchored.
  445. * Namespaced to `top` or `bottom`, e.g. `sticky.zf.unstuckfrom:bottom`
  446. * @event Sticky#unstuckfrom
  447. */
  448. .trigger("sticky.zf.unstuckfrom:".concat(topOrBottom));
  449. }
  450. /**
  451. * Sets the $element and $container sizes for plugin.
  452. * Calls `_setBreakPoints`.
  453. * @param {Function} cb - optional callback function to fire on completion of `_setBreakPoints`.
  454. * @private
  455. */
  456. }, {
  457. key: "_setSizes",
  458. value: function _setSizes(cb) {
  459. this.canStick = _foundation_util_mediaQuery__WEBPACK_IMPORTED_MODULE_2__["MediaQuery"].is(this.options.stickyOn);
  460. if (!this.canStick) {
  461. if (cb && typeof cb === 'function') {
  462. cb();
  463. }
  464. }
  465. var _this = this,
  466. newElemWidth = this.$container[0].getBoundingClientRect().width,
  467. comp = window.getComputedStyle(this.$container[0]),
  468. pdngl = parseInt(comp['padding-left'], 10),
  469. pdngr = parseInt(comp['padding-right'], 10);
  470. if (this.$anchor && this.$anchor.length) {
  471. this.anchorHeight = this.$anchor[0].getBoundingClientRect().height;
  472. } else {
  473. this._parsePoints();
  474. }
  475. this.$element.css({
  476. 'max-width': "".concat(newElemWidth - pdngl - pdngr, "px")
  477. }); // Recalculate the height only if it is "dynamic"
  478. if (this.options.dynamicHeight || !this.containerHeight) {
  479. // Get the sticked element height and apply it to the container to "hold the place"
  480. var newContainerHeight = this.$element[0].getBoundingClientRect().height || this.containerHeight;
  481. newContainerHeight = this.$element.css("display") == "none" ? 0 : newContainerHeight;
  482. this.$container.css('height', newContainerHeight);
  483. this.containerHeight = newContainerHeight;
  484. }
  485. this.elemHeight = this.containerHeight;
  486. if (!this.isStuck) {
  487. if (this.$element.hasClass('is-at-bottom')) {
  488. var anchorPt = (this.points ? this.points[1] - this.$container.offset().top : this.anchorHeight) - this.elemHeight;
  489. this.$element.css('top', anchorPt);
  490. }
  491. }
  492. this._setBreakPoints(this.containerHeight, function () {
  493. if (cb && typeof cb === 'function') {
  494. cb();
  495. }
  496. });
  497. }
  498. /**
  499. * Sets the upper and lower breakpoints for the element to become sticky/unsticky.
  500. * @param {Number} elemHeight - px value for sticky.$element height, calculated by `_setSizes`.
  501. * @param {Function} cb - optional callback function to be called on completion.
  502. * @private
  503. */
  504. }, {
  505. key: "_setBreakPoints",
  506. value: function _setBreakPoints(elemHeight, cb) {
  507. if (!this.canStick) {
  508. if (cb && typeof cb === 'function') {
  509. cb();
  510. } else {
  511. return false;
  512. }
  513. }
  514. var mTop = emCalc(this.options.marginTop),
  515. mBtm = emCalc(this.options.marginBottom),
  516. topPoint = this.points ? this.points[0] : this.$anchor.offset().top,
  517. bottomPoint = this.points ? this.points[1] : topPoint + this.anchorHeight,
  518. // topPoint = this.$anchor.offset().top || this.points[0],
  519. // bottomPoint = topPoint + this.anchorHeight || this.points[1],
  520. winHeight = window.innerHeight;
  521. if (this.options.stickTo === 'top') {
  522. topPoint -= mTop;
  523. bottomPoint -= elemHeight + mTop;
  524. } else if (this.options.stickTo === 'bottom') {
  525. topPoint -= winHeight - (elemHeight + mBtm);
  526. bottomPoint -= winHeight - mBtm;
  527. } else {//this would be the stickTo: both option... tricky
  528. }
  529. this.topPoint = topPoint;
  530. this.bottomPoint = bottomPoint;
  531. if (cb && typeof cb === 'function') {
  532. cb();
  533. }
  534. }
  535. /**
  536. * Destroys the current sticky element.
  537. * Resets the element to the top position first.
  538. * Removes event listeners, JS-added css properties and classes, and unwraps the $element if the JS added the $container.
  539. * @function
  540. */
  541. }, {
  542. key: "_destroy",
  543. value: function _destroy() {
  544. this._removeSticky(true);
  545. this.$element.removeClass("".concat(this.options.stickyClass, " is-anchored is-at-top")).css({
  546. height: '',
  547. top: '',
  548. bottom: '',
  549. 'max-width': ''
  550. }).off('resizeme.zf.trigger').off('mutateme.zf.trigger');
  551. if (this.$anchor && this.$anchor.length) {
  552. this.$anchor.off('change.zf.sticky');
  553. }
  554. if (this.scrollListener) jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(this.scrollListener);
  555. if (this.onLoadListener) jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(this.onLoadListener);
  556. if (this.wasWrapped) {
  557. this.$element.unwrap();
  558. } else {
  559. this.$container.removeClass(this.options.containerClass).css({
  560. height: ''
  561. });
  562. }
  563. }
  564. }]);
  565. return Sticky;
  566. }(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["Plugin"]);
  567. Sticky.defaults = {
  568. /**
  569. * Customizable container template. Add your own classes for styling and sizing.
  570. * @option
  571. * @type {string}
  572. * @default '&lt;div data-sticky-container&gt;&lt;/div&gt;'
  573. */
  574. container: '<div data-sticky-container></div>',
  575. /**
  576. * Location in the view the element sticks to. Can be `'top'` or `'bottom'`.
  577. * @option
  578. * @type {string}
  579. * @default 'top'
  580. */
  581. stickTo: 'top',
  582. /**
  583. * If anchored to a single element, the id of that element.
  584. * @option
  585. * @type {string}
  586. * @default ''
  587. */
  588. anchor: '',
  589. /**
  590. * If using more than one element as anchor points, the id of the top anchor.
  591. * @option
  592. * @type {string}
  593. * @default ''
  594. */
  595. topAnchor: '',
  596. /**
  597. * If using more than one element as anchor points, the id of the bottom anchor.
  598. * @option
  599. * @type {string}
  600. * @default ''
  601. */
  602. btmAnchor: '',
  603. /**
  604. * Margin, in `em`'s to apply to the top of the element when it becomes sticky.
  605. * @option
  606. * @type {number}
  607. * @default 1
  608. */
  609. marginTop: 1,
  610. /**
  611. * Margin, in `em`'s to apply to the bottom of the element when it becomes sticky.
  612. * @option
  613. * @type {number}
  614. * @default 1
  615. */
  616. marginBottom: 1,
  617. /**
  618. * Breakpoint string that is the minimum screen size an element should become sticky.
  619. * @option
  620. * @type {string}
  621. * @default 'medium'
  622. */
  623. stickyOn: 'medium',
  624. /**
  625. * Class applied to sticky element, and removed on destruction. Foundation defaults to `sticky`.
  626. * @option
  627. * @type {string}
  628. * @default 'sticky'
  629. */
  630. stickyClass: 'sticky',
  631. /**
  632. * Class applied to sticky container. Foundation defaults to `sticky-container`.
  633. * @option
  634. * @type {string}
  635. * @default 'sticky-container'
  636. */
  637. containerClass: 'sticky-container',
  638. /**
  639. * If true (by default), keep the sticky container the same height as the element. Otherwise, the container height is set once and does not change.
  640. * @option
  641. * @type {boolean}
  642. * @default true
  643. */
  644. dynamicHeight: true,
  645. /**
  646. * Number of scroll events between the plugin's recalculating sticky points. Setting it to `0` will cause it to recalc every scroll event, setting it to `-1` will prevent recalc on scroll.
  647. * @option
  648. * @type {number}
  649. * @default -1
  650. */
  651. checkEvery: -1
  652. };
  653. /**
  654. * Helper function to calculate em values
  655. * @param Number {em} - number of em's to calculate into pixels
  656. */
  657. function emCalc(em) {
  658. return parseInt(window.getComputedStyle(document.body, null).fontSize, 10) * em;
  659. }
  660. /***/ }),
  661. /***/ "./js/foundation.util.triggers.js":
  662. /*!****************************************!*\
  663. !*** ./js/foundation.util.triggers.js ***!
  664. \****************************************/
  665. /*! exports provided: Triggers */
  666. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  667. "use strict";
  668. __webpack_require__.r(__webpack_exports__);
  669. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Triggers", function() { return Triggers; });
  670. /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
  671. /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
  672. /* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.utils */ "./foundation.core");
  673. /* harmony import */ var _foundation_core_utils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__);
  674. /* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./foundation.util.motion */ "./foundation.util.motion");
  675. /* harmony import */ var _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__);
  676. function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
  677. var MutationObserver = function () {
  678. var prefixes = ['WebKit', 'Moz', 'O', 'Ms', ''];
  679. for (var i = 0; i < prefixes.length; i++) {
  680. if ("".concat(prefixes[i], "MutationObserver") in window) {
  681. return window["".concat(prefixes[i], "MutationObserver")];
  682. }
  683. }
  684. return false;
  685. }();
  686. var triggers = function triggers(el, type) {
  687. el.data(type).split(' ').forEach(function (id) {
  688. jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id))[type === 'close' ? 'trigger' : 'triggerHandler']("".concat(type, ".zf.trigger"), [el]);
  689. });
  690. };
  691. var Triggers = {
  692. Listeners: {
  693. Basic: {},
  694. Global: {}
  695. },
  696. Initializers: {}
  697. };
  698. Triggers.Listeners.Basic = {
  699. openListener: function openListener() {
  700. triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'open');
  701. },
  702. closeListener: function closeListener() {
  703. var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('close');
  704. if (id) {
  705. triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'close');
  706. } else {
  707. jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('close.zf.trigger');
  708. }
  709. },
  710. toggleListener: function toggleListener() {
  711. var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle');
  712. if (id) {
  713. triggers(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), 'toggle');
  714. } else {
  715. jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('toggle.zf.trigger');
  716. }
  717. },
  718. closeableListener: function closeableListener(e) {
  719. var animation = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('closable'); // Only close the first closable element. See https://git.io/zf-7833
  720. e.stopPropagation();
  721. if (animation !== '') {
  722. _foundation_util_motion__WEBPACK_IMPORTED_MODULE_2__["Motion"].animateOut(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this), animation, function () {
  723. jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).trigger('closed.zf');
  724. });
  725. } else {
  726. jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).fadeOut().trigger('closed.zf');
  727. }
  728. },
  729. toggleFocusListener: function toggleFocusListener() {
  730. var id = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).data('toggle-focus');
  731. jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(id)).triggerHandler('toggle.zf.trigger', [jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)]);
  732. }
  733. }; // Elements with [data-open] will reveal a plugin that supports it when clicked.
  734. Triggers.Initializers.addOpenListener = function ($elem) {
  735. $elem.off('click.zf.trigger', Triggers.Listeners.Basic.openListener);
  736. $elem.on('click.zf.trigger', '[data-open]', Triggers.Listeners.Basic.openListener);
  737. }; // Elements with [data-close] will close a plugin that supports it when clicked.
  738. // If used without a value on [data-close], the event will bubble, allowing it to close a parent component.
  739. Triggers.Initializers.addCloseListener = function ($elem) {
  740. $elem.off('click.zf.trigger', Triggers.Listeners.Basic.closeListener);
  741. $elem.on('click.zf.trigger', '[data-close]', Triggers.Listeners.Basic.closeListener);
  742. }; // Elements with [data-toggle] will toggle a plugin that supports it when clicked.
  743. Triggers.Initializers.addToggleListener = function ($elem) {
  744. $elem.off('click.zf.trigger', Triggers.Listeners.Basic.toggleListener);
  745. $elem.on('click.zf.trigger', '[data-toggle]', Triggers.Listeners.Basic.toggleListener);
  746. }; // Elements with [data-closable] will respond to close.zf.trigger events.
  747. Triggers.Initializers.addCloseableListener = function ($elem) {
  748. $elem.off('close.zf.trigger', Triggers.Listeners.Basic.closeableListener);
  749. $elem.on('close.zf.trigger', '[data-closeable], [data-closable]', Triggers.Listeners.Basic.closeableListener);
  750. }; // Elements with [data-toggle-focus] will respond to coming in and out of focus
  751. Triggers.Initializers.addToggleFocusListener = function ($elem) {
  752. $elem.off('focus.zf.trigger blur.zf.trigger', Triggers.Listeners.Basic.toggleFocusListener);
  753. $elem.on('focus.zf.trigger blur.zf.trigger', '[data-toggle-focus]', Triggers.Listeners.Basic.toggleFocusListener);
  754. }; // More Global/complex listeners and triggers
  755. Triggers.Listeners.Global = {
  756. resizeListener: function resizeListener($nodes) {
  757. if (!MutationObserver) {
  758. //fallback for IE 9
  759. $nodes.each(function () {
  760. jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('resizeme.zf.trigger');
  761. });
  762. } //trigger all listening elements and signal a resize event
  763. $nodes.attr('data-events', "resize");
  764. },
  765. scrollListener: function scrollListener($nodes) {
  766. if (!MutationObserver) {
  767. //fallback for IE 9
  768. $nodes.each(function () {
  769. jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).triggerHandler('scrollme.zf.trigger');
  770. });
  771. } //trigger all listening elements and signal a scroll event
  772. $nodes.attr('data-events', "scroll");
  773. },
  774. closeMeListener: function closeMeListener(e, pluginId) {
  775. var plugin = e.namespace.split('.')[0];
  776. var plugins = jquery__WEBPACK_IMPORTED_MODULE_0___default()("[data-".concat(plugin, "]")).not("[data-yeti-box=\"".concat(pluginId, "\"]"));
  777. plugins.each(function () {
  778. var _this = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this);
  779. _this.triggerHandler('close.zf.trigger', [_this]);
  780. });
  781. } // Global, parses whole document.
  782. };
  783. Triggers.Initializers.addClosemeListener = function (pluginName) {
  784. var yetiBoxes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-yeti-box]'),
  785. plugNames = ['dropdown', 'tooltip', 'reveal'];
  786. if (pluginName) {
  787. if (typeof pluginName === 'string') {
  788. plugNames.push(pluginName);
  789. } else if (_typeof(pluginName) === 'object' && typeof pluginName[0] === 'string') {
  790. plugNames = plugNames.concat(pluginName);
  791. } else {
  792. console.error('Plugin names must be strings');
  793. }
  794. }
  795. if (yetiBoxes.length) {
  796. var listeners = plugNames.map(function (name) {
  797. return "closeme.zf.".concat(name);
  798. }).join(' ');
  799. jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(listeners).on(listeners, Triggers.Listeners.Global.closeMeListener);
  800. }
  801. };
  802. function debounceGlobalListener(debounce, trigger, listener) {
  803. var timer,
  804. args = Array.prototype.slice.call(arguments, 3);
  805. jquery__WEBPACK_IMPORTED_MODULE_0___default()(window).off(trigger).on(trigger, function (e) {
  806. if (timer) {
  807. clearTimeout(timer);
  808. }
  809. timer = setTimeout(function () {
  810. listener.apply(null, args);
  811. }, debounce || 10); //default time to emit scroll event
  812. });
  813. }
  814. Triggers.Initializers.addResizeListener = function (debounce) {
  815. var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-resize]');
  816. if ($nodes.length) {
  817. debounceGlobalListener(debounce, 'resize.zf.trigger', Triggers.Listeners.Global.resizeListener, $nodes);
  818. }
  819. };
  820. Triggers.Initializers.addScrollListener = function (debounce) {
  821. var $nodes = jquery__WEBPACK_IMPORTED_MODULE_0___default()('[data-scroll]');
  822. if ($nodes.length) {
  823. debounceGlobalListener(debounce, 'scroll.zf.trigger', Triggers.Listeners.Global.scrollListener, $nodes);
  824. }
  825. };
  826. Triggers.Initializers.addMutationEventsListener = function ($elem) {
  827. if (!MutationObserver) {
  828. return false;
  829. }
  830. var $nodes = $elem.find('[data-resize], [data-scroll], [data-mutate]'); //element callback
  831. var listeningElementsMutation = function listeningElementsMutation(mutationRecordsList) {
  832. var $target = jquery__WEBPACK_IMPORTED_MODULE_0___default()(mutationRecordsList[0].target); //trigger the event handler for the element depending on type
  833. switch (mutationRecordsList[0].type) {
  834. case "attributes":
  835. if ($target.attr("data-events") === "scroll" && mutationRecordsList[0].attributeName === "data-events") {
  836. $target.triggerHandler('scrollme.zf.trigger', [$target, window.pageYOffset]);
  837. }
  838. if ($target.attr("data-events") === "resize" && mutationRecordsList[0].attributeName === "data-events") {
  839. $target.triggerHandler('resizeme.zf.trigger', [$target]);
  840. }
  841. if (mutationRecordsList[0].attributeName === "style") {
  842. $target.closest("[data-mutate]").attr("data-events", "mutate");
  843. $target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
  844. }
  845. break;
  846. case "childList":
  847. $target.closest("[data-mutate]").attr("data-events", "mutate");
  848. $target.closest("[data-mutate]").triggerHandler('mutateme.zf.trigger', [$target.closest("[data-mutate]")]);
  849. break;
  850. default:
  851. return false;
  852. //nothing
  853. }
  854. };
  855. if ($nodes.length) {
  856. //for each element that needs to listen for resizing, scrolling, or mutation add a single observer
  857. for (var i = 0; i <= $nodes.length - 1; i++) {
  858. var elementObserver = new MutationObserver(listeningElementsMutation);
  859. elementObserver.observe($nodes[i], {
  860. attributes: true,
  861. childList: true,
  862. characterData: false,
  863. subtree: true,
  864. attributeFilter: ["data-events", "style"]
  865. });
  866. }
  867. }
  868. };
  869. Triggers.Initializers.addSimpleListeners = function () {
  870. var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
  871. Triggers.Initializers.addOpenListener($document);
  872. Triggers.Initializers.addCloseListener($document);
  873. Triggers.Initializers.addToggleListener($document);
  874. Triggers.Initializers.addCloseableListener($document);
  875. Triggers.Initializers.addToggleFocusListener($document);
  876. };
  877. Triggers.Initializers.addGlobalListeners = function () {
  878. var $document = jquery__WEBPACK_IMPORTED_MODULE_0___default()(document);
  879. Triggers.Initializers.addMutationEventsListener($document);
  880. Triggers.Initializers.addResizeListener();
  881. Triggers.Initializers.addScrollListener();
  882. Triggers.Initializers.addClosemeListener();
  883. };
  884. Triggers.init = function ($, Foundation) {
  885. Object(_foundation_core_utils__WEBPACK_IMPORTED_MODULE_1__["onLoad"])($(window), function () {
  886. if ($.triggersInitialized !== true) {
  887. Triggers.Initializers.addSimpleListeners();
  888. Triggers.Initializers.addGlobalListeners();
  889. $.triggersInitialized = true;
  890. }
  891. });
  892. if (Foundation) {
  893. Foundation.Triggers = Triggers; // Legacy included to be backwards compatible for now.
  894. Foundation.IHearYou = Triggers.Initializers.addGlobalListeners;
  895. }
  896. };
  897. /***/ }),
  898. /***/ 17:
  899. /*!*******************************************************!*\
  900. !*** multi ./js/entries/plugins/foundation.sticky.js ***!
  901. \*******************************************************/
  902. /*! no static exports found */
  903. /***/ (function(module, exports, __webpack_require__) {
  904. module.exports = __webpack_require__(/*! /Users/joeworkman/Development/foundation-sites/js/entries/plugins/foundation.sticky.js */"./js/entries/plugins/foundation.sticky.js");
  905. /***/ }),
  906. /***/ "jquery":
  907. /*!********************************************************************************************!*\
  908. !*** external {"root":["jQuery"],"amd":"jquery","commonjs":"jquery","commonjs2":"jquery"} ***!
  909. \********************************************************************************************/
  910. /*! no static exports found */
  911. /***/ (function(module, exports) {
  912. module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__;
  913. /***/ })
  914. /******/ });
  915. });
  916. //# sourceMappingURL=foundation.sticky.js.map