foundation-rails 6.4.1.0 → 6.4.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +2 -1
- data/Rakefile +5 -6
- data/lib/foundation/rails/version.rb +1 -1
- data/vendor/assets/js/foundation.abide.js +781 -0
- data/vendor/assets/js/foundation.accordion.js +511 -0
- data/vendor/assets/js/foundation.accordionMenu.js +527 -0
- data/vendor/assets/js/foundation.core.js +860 -0
- data/vendor/assets/js/foundation.drilldown.js +759 -0
- data/vendor/assets/js/foundation.dropdown.js +1131 -0
- data/vendor/assets/js/foundation.dropdownMenu.js +678 -0
- data/vendor/assets/js/foundation.equalizer.js +542 -0
- data/vendor/assets/js/foundation.interchange.js +399 -0
- data/vendor/assets/js/{foundation.js.es6 → foundation.js} +11 -12
- data/vendor/assets/js/foundation.magellan.js +449 -0
- data/vendor/assets/js/foundation.offcanvas.js +1052 -0
- data/vendor/assets/js/foundation.orbit.js +767 -0
- data/vendor/assets/js/foundation.responsiveAccordionTabs.js +440 -0
- data/vendor/assets/js/foundation.responsiveMenu.js +362 -0
- data/vendor/assets/js/foundation.responsiveToggle.js +336 -0
- data/vendor/assets/js/foundation.reveal.js +1066 -0
- data/vendor/assets/js/foundation.slider.js +1236 -0
- data/vendor/assets/js/foundation.smoothScroll.js +303 -0
- data/vendor/assets/js/foundation.sticky.js +1001 -0
- data/vendor/assets/js/foundation.tabs.js +678 -0
- data/vendor/assets/js/foundation.toggler.js +602 -0
- data/vendor/assets/js/foundation.tooltip.js +1195 -0
- data/vendor/assets/js/{foundation.util.box.js.es6 → foundation.util.box.js} +154 -41
- data/vendor/assets/js/foundation.util.imageLoader.js +163 -0
- data/vendor/assets/js/foundation.util.keyboard.js +298 -0
- data/vendor/assets/js/foundation.util.mediaQuery.js +353 -0
- data/vendor/assets/js/foundation.util.motion.js +231 -0
- data/vendor/assets/js/foundation.util.nest.js +181 -0
- data/vendor/assets/js/foundation.util.timer.js +170 -0
- data/vendor/assets/js/foundation.util.timerAndImageLoader.js +90 -0
- data/vendor/assets/js/foundation.util.touch.js +275 -0
- data/vendor/assets/js/foundation.util.triggers.js +399 -0
- data/vendor/assets/js/foundation.zf.responsiveAccordionTabs.js +262 -0
- metadata +37 -71
- data/vendor/assets/js/entries/foundation-plugins.js +0 -25
- data/vendor/assets/js/entries/foundation.js +0 -101
- data/vendor/assets/js/entries/plugins/foundation.abide.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.accordion.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.accordionMenu.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.core.js +0 -21
- data/vendor/assets/js/entries/plugins/foundation.drilldown.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.dropdown.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.dropdownMenu.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.equalizer.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.interchange.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.magellan.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.offcanvas.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.orbit.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.responsiveAccordionTabs.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.responsiveMenu.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.responsiveToggle.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.reveal.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.slider.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.smoothScroll.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.sticky.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.tabs.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.toggler.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.tooltip.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.util.box.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.util.imageLoader.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.util.keyboard.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.util.mediaQuery.js +0 -4
- data/vendor/assets/js/entries/plugins/foundation.util.motion.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.util.nest.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.util.timer.js +0 -5
- data/vendor/assets/js/entries/plugins/foundation.util.touch.js +0 -7
- data/vendor/assets/js/entries/plugins/foundation.util.triggers.js +0 -5
- data/vendor/assets/js/foundation.abide.js.es6 +0 -587
- data/vendor/assets/js/foundation.accordion.js.es6 +0 -329
- data/vendor/assets/js/foundation.accordionMenu.js.es6 +0 -328
- data/vendor/assets/js/foundation.core.js.es6 +0 -337
- data/vendor/assets/js/foundation.drilldown.js.es6 +0 -536
- data/vendor/assets/js/foundation.dropdown.js.es6 +0 -394
- data/vendor/assets/js/foundation.dropdownMenu.js.es6 +0 -458
- data/vendor/assets/js/foundation.equalizer.js.es6 +0 -318
- data/vendor/assets/js/foundation.interchange.js.es6 +0 -210
- data/vendor/assets/js/foundation.magellan.js.es6 +0 -257
- data/vendor/assets/js/foundation.offcanvas.js.es6 +0 -546
- data/vendor/assets/js/foundation.orbit.js.es6 +0 -531
- data/vendor/assets/js/foundation.plugin.js.es6 +0 -54
- data/vendor/assets/js/foundation.positionable.js.es6 +0 -206
- data/vendor/assets/js/foundation.responsiveAccordionTabs.js.es6 +0 -243
- data/vendor/assets/js/foundation.responsiveMenu.js.es6 +0 -155
- data/vendor/assets/js/foundation.responsiveToggle.js.es6 +0 -156
- data/vendor/assets/js/foundation.reveal.js.es6 +0 -585
- data/vendor/assets/js/foundation.slider.js.es6 +0 -712
- data/vendor/assets/js/foundation.smoothScroll.js.es6 +0 -135
- data/vendor/assets/js/foundation.sticky.js.es6 +0 -507
- data/vendor/assets/js/foundation.tabs.js.es6 +0 -498
- data/vendor/assets/js/foundation.toggler.js.es6 +0 -150
- data/vendor/assets/js/foundation.tooltip.js.es6 +0 -462
- data/vendor/assets/js/foundation.util.core.js.es6 +0 -52
- data/vendor/assets/js/foundation.util.imageLoader.js.es6 +0 -45
- data/vendor/assets/js/foundation.util.keyboard.js.es6 +0 -162
- data/vendor/assets/js/foundation.util.mediaQuery.js.es6 +0 -234
- data/vendor/assets/js/foundation.util.motion.js.es6 +0 -104
- data/vendor/assets/js/foundation.util.nest.js.es6 +0 -67
- data/vendor/assets/js/foundation.util.timer.js.es6 +0 -48
- data/vendor/assets/js/foundation.util.touch.js.es6 +0 -149
- data/vendor/assets/js/foundation.util.triggers.js.es6 +0 -268
@@ -1,7 +1,120 @@
|
|
1
|
-
|
1
|
+
/******/ (function(modules) { // webpackBootstrap
|
2
|
+
/******/ // The module cache
|
3
|
+
/******/ var installedModules = {};
|
4
|
+
/******/
|
5
|
+
/******/ // The require function
|
6
|
+
/******/ function __webpack_require__(moduleId) {
|
7
|
+
/******/
|
8
|
+
/******/ // Check if module is in cache
|
9
|
+
/******/ if(installedModules[moduleId]) {
|
10
|
+
/******/ return installedModules[moduleId].exports;
|
11
|
+
/******/ }
|
12
|
+
/******/ // Create a new module (and put it into the cache)
|
13
|
+
/******/ var module = installedModules[moduleId] = {
|
14
|
+
/******/ i: moduleId,
|
15
|
+
/******/ l: false,
|
16
|
+
/******/ exports: {}
|
17
|
+
/******/ };
|
18
|
+
/******/
|
19
|
+
/******/ // Execute the module function
|
20
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
21
|
+
/******/
|
22
|
+
/******/ // Flag the module as loaded
|
23
|
+
/******/ module.l = true;
|
24
|
+
/******/
|
25
|
+
/******/ // Return the exports of the module
|
26
|
+
/******/ return module.exports;
|
27
|
+
/******/ }
|
28
|
+
/******/
|
29
|
+
/******/
|
30
|
+
/******/ // expose the modules object (__webpack_modules__)
|
31
|
+
/******/ __webpack_require__.m = modules;
|
32
|
+
/******/
|
33
|
+
/******/ // expose the module cache
|
34
|
+
/******/ __webpack_require__.c = installedModules;
|
35
|
+
/******/
|
36
|
+
/******/ // identity function for calling harmony imports with the correct context
|
37
|
+
/******/ __webpack_require__.i = function(value) { return value; };
|
38
|
+
/******/
|
39
|
+
/******/ // define getter function for harmony exports
|
40
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
41
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
42
|
+
/******/ Object.defineProperty(exports, name, {
|
43
|
+
/******/ configurable: false,
|
44
|
+
/******/ enumerable: true,
|
45
|
+
/******/ get: getter
|
46
|
+
/******/ });
|
47
|
+
/******/ }
|
48
|
+
/******/ };
|
49
|
+
/******/
|
50
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
51
|
+
/******/ __webpack_require__.n = function(module) {
|
52
|
+
/******/ var getter = module && module.__esModule ?
|
53
|
+
/******/ function getDefault() { return module['default']; } :
|
54
|
+
/******/ function getModuleExports() { return module; };
|
55
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
56
|
+
/******/ return getter;
|
57
|
+
/******/ };
|
58
|
+
/******/
|
59
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
60
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
61
|
+
/******/
|
62
|
+
/******/ // __webpack_public_path__
|
63
|
+
/******/ __webpack_require__.p = "";
|
64
|
+
/******/
|
65
|
+
/******/ // Load entry module and return exports
|
66
|
+
/******/ return __webpack_require__(__webpack_require__.s = 100);
|
67
|
+
/******/ })
|
68
|
+
/************************************************************************/
|
69
|
+
/******/ ({
|
70
|
+
|
71
|
+
/***/ 1:
|
72
|
+
/***/ (function(module, exports) {
|
73
|
+
|
74
|
+
module.exports = {Foundation: window.Foundation};
|
75
|
+
|
76
|
+
/***/ }),
|
77
|
+
|
78
|
+
/***/ 100:
|
79
|
+
/***/ (function(module, exports, __webpack_require__) {
|
80
|
+
|
81
|
+
module.exports = __webpack_require__(34);
|
82
|
+
|
83
|
+
|
84
|
+
/***/ }),
|
85
|
+
|
86
|
+
/***/ 3:
|
87
|
+
/***/ (function(module, exports) {
|
88
|
+
|
89
|
+
module.exports = {rtl: window.Foundation.rtl, GetYoDigits: window.Foundation.GetYoDigits, transitionend: window.Foundation.transitionend};
|
90
|
+
|
91
|
+
/***/ }),
|
92
|
+
|
93
|
+
/***/ 34:
|
94
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
95
|
+
|
96
|
+
"use strict";
|
97
|
+
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
98
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foundation_core__ = __webpack_require__(1);
|
99
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foundation_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__foundation_core__);
|
100
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation_util_box__ = __webpack_require__(64);
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
__WEBPACK_IMPORTED_MODULE_0__foundation_core__["Foundation"].Box = __WEBPACK_IMPORTED_MODULE_1__foundation_util_box__["a" /* Box */];
|
105
|
+
|
106
|
+
/***/ }),
|
107
|
+
|
108
|
+
/***/ 64:
|
109
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
110
|
+
|
111
|
+
"use strict";
|
112
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Box; });
|
113
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foundation_util_core__ = __webpack_require__(3);
|
114
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foundation_util_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__foundation_util_core__);
|
115
|
+
|
2
116
|
|
3
117
|
|
4
|
-
import { rtl as Rtl } from "./foundation.util.core";
|
5
118
|
|
6
119
|
var Box = {
|
7
120
|
ImNotTouchingYou: ImNotTouchingYou,
|
@@ -9,7 +122,7 @@ var Box = {
|
|
9
122
|
GetDimensions: GetDimensions,
|
10
123
|
GetOffsets: GetOffsets,
|
11
124
|
GetExplicitOffsets: GetExplicitOffsets
|
12
|
-
}
|
125
|
+
};
|
13
126
|
|
14
127
|
/**
|
15
128
|
* Compares the dimensions of an element to a container and determines collision events with container.
|
@@ -27,26 +140,28 @@ function ImNotTouchingYou(element, parent, lrOnly, tbOnly, ignoreBottom) {
|
|
27
140
|
|
28
141
|
function OverlapArea(element, parent, lrOnly, tbOnly, ignoreBottom) {
|
29
142
|
var eleDims = GetDimensions(element),
|
30
|
-
|
143
|
+
topOver,
|
144
|
+
bottomOver,
|
145
|
+
leftOver,
|
146
|
+
rightOver;
|
31
147
|
if (parent) {
|
32
148
|
var parDims = GetDimensions(parent);
|
33
149
|
|
34
|
-
bottomOver =
|
35
|
-
topOver
|
36
|
-
leftOver
|
37
|
-
rightOver
|
38
|
-
}
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
rightOver = eleDims.windowDims.width - (eleDims.offset.left + eleDims.width);
|
150
|
+
bottomOver = parDims.height + parDims.offset.top - (eleDims.offset.top + eleDims.height);
|
151
|
+
topOver = eleDims.offset.top - parDims.offset.top;
|
152
|
+
leftOver = eleDims.offset.left - parDims.offset.left;
|
153
|
+
rightOver = parDims.width + parDims.offset.left - (eleDims.offset.left + eleDims.width);
|
154
|
+
} else {
|
155
|
+
bottomOver = eleDims.windowDims.height + eleDims.windowDims.offset.top - (eleDims.offset.top + eleDims.height);
|
156
|
+
topOver = eleDims.offset.top - eleDims.windowDims.offset.top;
|
157
|
+
leftOver = eleDims.offset.left - eleDims.windowDims.offset.left;
|
158
|
+
rightOver = eleDims.windowDims.width - (eleDims.offset.left + eleDims.width);
|
44
159
|
}
|
45
160
|
|
46
161
|
bottomOver = ignoreBottom ? 0 : Math.min(bottomOver, 0);
|
47
|
-
topOver
|
48
|
-
leftOver
|
49
|
-
rightOver
|
162
|
+
topOver = Math.min(topOver, 0);
|
163
|
+
leftOver = Math.min(leftOver, 0);
|
164
|
+
rightOver = Math.min(rightOver, 0);
|
50
165
|
|
51
166
|
if (lrOnly) {
|
52
167
|
return leftOver + rightOver;
|
@@ -56,7 +171,7 @@ function OverlapArea(element, parent, lrOnly, tbOnly, ignoreBottom) {
|
|
56
171
|
}
|
57
172
|
|
58
173
|
// use sum of squares b/c we care about overlap area.
|
59
|
-
return Math.sqrt(
|
174
|
+
return Math.sqrt(topOver * topOver + bottomOver * bottomOver + leftOver * leftOver + rightOver * rightOver);
|
60
175
|
}
|
61
176
|
|
62
177
|
/**
|
@@ -66,7 +181,7 @@ function OverlapArea(element, parent, lrOnly, tbOnly, ignoreBottom) {
|
|
66
181
|
* @returns {Object} - nested object of integer pixel values
|
67
182
|
* TODO - if element is window, return only those values.
|
68
183
|
*/
|
69
|
-
function GetDimensions(elem, test){
|
184
|
+
function GetDimensions(elem, test) {
|
70
185
|
elem = elem.length ? elem[0] : elem;
|
71
186
|
|
72
187
|
if (elem === window || elem === document) {
|
@@ -102,7 +217,7 @@ function GetDimensions(elem, test){
|
|
102
217
|
left: winX
|
103
218
|
}
|
104
219
|
}
|
105
|
-
}
|
220
|
+
};
|
106
221
|
}
|
107
222
|
|
108
223
|
/**
|
@@ -123,13 +238,9 @@ function GetOffsets(element, anchor, position, vOffset, hOffset, isOverflow) {
|
|
123
238
|
console.log("NOTE: GetOffsets is deprecated in favor of GetExplicitOffsets and will be removed in 6.5");
|
124
239
|
switch (position) {
|
125
240
|
case 'top':
|
126
|
-
return
|
127
|
-
GetExplicitOffsets(element, anchor, 'top', 'left', vOffset, hOffset, isOverflow) :
|
128
|
-
GetExplicitOffsets(element, anchor, 'top', 'right', vOffset, hOffset, isOverflow);
|
241
|
+
return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__foundation_util_core__["rtl"])() ? GetExplicitOffsets(element, anchor, 'top', 'left', vOffset, hOffset, isOverflow) : GetExplicitOffsets(element, anchor, 'top', 'right', vOffset, hOffset, isOverflow);
|
129
242
|
case 'bottom':
|
130
|
-
return
|
131
|
-
GetExplicitOffsets(element, anchor, 'bottom', 'left', vOffset, hOffset, isOverflow) :
|
132
|
-
GetExplicitOffsets(element, anchor, 'bottom', 'right', vOffset, hOffset, isOverflow);
|
243
|
+
return __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__foundation_util_core__["rtl"])() ? GetExplicitOffsets(element, anchor, 'bottom', 'left', vOffset, hOffset, isOverflow) : GetExplicitOffsets(element, anchor, 'bottom', 'right', vOffset, hOffset, isOverflow);
|
133
244
|
case 'center top':
|
134
245
|
return GetExplicitOffsets(element, anchor, 'top', 'center', vOffset, hOffset, isOverflow);
|
135
246
|
case 'center bottom':
|
@@ -146,35 +257,34 @@ function GetOffsets(element, anchor, position, vOffset, hOffset, isOverflow) {
|
|
146
257
|
// classes are the only ones that didn't reference anchor
|
147
258
|
case 'center':
|
148
259
|
return {
|
149
|
-
left:
|
150
|
-
top:
|
151
|
-
}
|
260
|
+
left: $eleDims.windowDims.offset.left + $eleDims.windowDims.width / 2 - $eleDims.width / 2 + hOffset,
|
261
|
+
top: $eleDims.windowDims.offset.top + $eleDims.windowDims.height / 2 - ($eleDims.height / 2 + vOffset)
|
262
|
+
};
|
152
263
|
case 'reveal':
|
153
264
|
return {
|
154
265
|
left: ($eleDims.windowDims.width - $eleDims.width) / 2 + hOffset,
|
155
266
|
top: $eleDims.windowDims.offset.top + vOffset
|
156
|
-
}
|
267
|
+
};
|
157
268
|
case 'reveal full':
|
158
269
|
return {
|
159
270
|
left: $eleDims.windowDims.offset.left,
|
160
271
|
top: $eleDims.windowDims.offset.top
|
161
|
-
}
|
272
|
+
};
|
162
273
|
break;
|
163
274
|
default:
|
164
275
|
return {
|
165
|
-
left: (
|
276
|
+
left: __webpack_require__.i(__WEBPACK_IMPORTED_MODULE_0__foundation_util_core__["rtl"])() ? $anchorDims.offset.left - $eleDims.width + $anchorDims.width - hOffset : $anchorDims.offset.left + hOffset,
|
166
277
|
top: $anchorDims.offset.top + $anchorDims.height + vOffset
|
167
|
-
}
|
278
|
+
};
|
168
279
|
|
169
280
|
}
|
170
|
-
|
171
281
|
}
|
172
282
|
|
173
283
|
function GetExplicitOffsets(element, anchor, position, alignment, vOffset, hOffset, isOverflow) {
|
174
284
|
var $eleDims = GetDimensions(element),
|
175
285
|
$anchorDims = anchor ? GetDimensions(anchor) : null;
|
176
286
|
|
177
|
-
|
287
|
+
var topVal, leftVal;
|
178
288
|
|
179
289
|
// set position related attribute
|
180
290
|
|
@@ -193,7 +303,6 @@ function GetExplicitOffsets(element, anchor, position, alignment, vOffset, hOffs
|
|
193
303
|
break;
|
194
304
|
}
|
195
305
|
|
196
|
-
|
197
306
|
// set alignment related attribute
|
198
307
|
switch (position) {
|
199
308
|
case 'top':
|
@@ -206,7 +315,7 @@ function GetExplicitOffsets(element, anchor, position, alignment, vOffset, hOffs
|
|
206
315
|
leftVal = $anchorDims.offset.left - $eleDims.width + $anchorDims.width - hOffset;
|
207
316
|
break;
|
208
317
|
case 'center':
|
209
|
-
leftVal = isOverflow ? hOffset :
|
318
|
+
leftVal = isOverflow ? hOffset : $anchorDims.offset.left + $anchorDims.width / 2 - $eleDims.width / 2 + hOffset;
|
210
319
|
break;
|
211
320
|
}
|
212
321
|
break;
|
@@ -217,15 +326,19 @@ function GetExplicitOffsets(element, anchor, position, alignment, vOffset, hOffs
|
|
217
326
|
topVal = $anchorDims.offset.top - vOffset + $anchorDims.height - $eleDims.height;
|
218
327
|
break;
|
219
328
|
case 'top':
|
220
|
-
topVal = $anchorDims.offset.top + vOffset
|
329
|
+
topVal = $anchorDims.offset.top + vOffset;
|
221
330
|
break;
|
222
331
|
case 'center':
|
223
|
-
topVal =
|
332
|
+
topVal = $anchorDims.offset.top + vOffset + $anchorDims.height / 2 - $eleDims.height / 2;
|
224
333
|
break;
|
225
334
|
}
|
226
335
|
break;
|
227
336
|
}
|
228
|
-
return {top: topVal, left: leftVal};
|
337
|
+
return { top: topVal, left: leftVal };
|
229
338
|
}
|
230
339
|
|
231
|
-
|
340
|
+
|
341
|
+
|
342
|
+
/***/ })
|
343
|
+
|
344
|
+
/******/ });
|
@@ -0,0 +1,163 @@
|
|
1
|
+
/******/ (function(modules) { // webpackBootstrap
|
2
|
+
/******/ // The module cache
|
3
|
+
/******/ var installedModules = {};
|
4
|
+
/******/
|
5
|
+
/******/ // The require function
|
6
|
+
/******/ function __webpack_require__(moduleId) {
|
7
|
+
/******/
|
8
|
+
/******/ // Check if module is in cache
|
9
|
+
/******/ if(installedModules[moduleId]) {
|
10
|
+
/******/ return installedModules[moduleId].exports;
|
11
|
+
/******/ }
|
12
|
+
/******/ // Create a new module (and put it into the cache)
|
13
|
+
/******/ var module = installedModules[moduleId] = {
|
14
|
+
/******/ i: moduleId,
|
15
|
+
/******/ l: false,
|
16
|
+
/******/ exports: {}
|
17
|
+
/******/ };
|
18
|
+
/******/
|
19
|
+
/******/ // Execute the module function
|
20
|
+
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
21
|
+
/******/
|
22
|
+
/******/ // Flag the module as loaded
|
23
|
+
/******/ module.l = true;
|
24
|
+
/******/
|
25
|
+
/******/ // Return the exports of the module
|
26
|
+
/******/ return module.exports;
|
27
|
+
/******/ }
|
28
|
+
/******/
|
29
|
+
/******/
|
30
|
+
/******/ // expose the modules object (__webpack_modules__)
|
31
|
+
/******/ __webpack_require__.m = modules;
|
32
|
+
/******/
|
33
|
+
/******/ // expose the module cache
|
34
|
+
/******/ __webpack_require__.c = installedModules;
|
35
|
+
/******/
|
36
|
+
/******/ // identity function for calling harmony imports with the correct context
|
37
|
+
/******/ __webpack_require__.i = function(value) { return value; };
|
38
|
+
/******/
|
39
|
+
/******/ // define getter function for harmony exports
|
40
|
+
/******/ __webpack_require__.d = function(exports, name, getter) {
|
41
|
+
/******/ if(!__webpack_require__.o(exports, name)) {
|
42
|
+
/******/ Object.defineProperty(exports, name, {
|
43
|
+
/******/ configurable: false,
|
44
|
+
/******/ enumerable: true,
|
45
|
+
/******/ get: getter
|
46
|
+
/******/ });
|
47
|
+
/******/ }
|
48
|
+
/******/ };
|
49
|
+
/******/
|
50
|
+
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
51
|
+
/******/ __webpack_require__.n = function(module) {
|
52
|
+
/******/ var getter = module && module.__esModule ?
|
53
|
+
/******/ function getDefault() { return module['default']; } :
|
54
|
+
/******/ function getModuleExports() { return module; };
|
55
|
+
/******/ __webpack_require__.d(getter, 'a', getter);
|
56
|
+
/******/ return getter;
|
57
|
+
/******/ };
|
58
|
+
/******/
|
59
|
+
/******/ // Object.prototype.hasOwnProperty.call
|
60
|
+
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
61
|
+
/******/
|
62
|
+
/******/ // __webpack_public_path__
|
63
|
+
/******/ __webpack_require__.p = "";
|
64
|
+
/******/
|
65
|
+
/******/ // Load entry module and return exports
|
66
|
+
/******/ return __webpack_require__(__webpack_require__.s = 101);
|
67
|
+
/******/ })
|
68
|
+
/************************************************************************/
|
69
|
+
/******/ ({
|
70
|
+
|
71
|
+
/***/ 0:
|
72
|
+
/***/ (function(module, exports) {
|
73
|
+
|
74
|
+
module.exports = jQuery;
|
75
|
+
|
76
|
+
/***/ }),
|
77
|
+
|
78
|
+
/***/ 1:
|
79
|
+
/***/ (function(module, exports) {
|
80
|
+
|
81
|
+
module.exports = {Foundation: window.Foundation};
|
82
|
+
|
83
|
+
/***/ }),
|
84
|
+
|
85
|
+
/***/ 101:
|
86
|
+
/***/ (function(module, exports, __webpack_require__) {
|
87
|
+
|
88
|
+
module.exports = __webpack_require__(35);
|
89
|
+
|
90
|
+
|
91
|
+
/***/ }),
|
92
|
+
|
93
|
+
/***/ 35:
|
94
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
95
|
+
|
96
|
+
"use strict";
|
97
|
+
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
|
98
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foundation_core__ = __webpack_require__(1);
|
99
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__foundation_core___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__foundation_core__);
|
100
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__foundation_util_imageLoader__ = __webpack_require__(65);
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
__WEBPACK_IMPORTED_MODULE_0__foundation_core__["Foundation"].onImagesLoaded = __WEBPACK_IMPORTED_MODULE_1__foundation_util_imageLoader__["a" /* onImagesLoaded */];
|
106
|
+
|
107
|
+
/***/ }),
|
108
|
+
|
109
|
+
/***/ 65:
|
110
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
111
|
+
|
112
|
+
"use strict";
|
113
|
+
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return onImagesLoaded; });
|
114
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery__ = __webpack_require__(0);
|
115
|
+
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_jquery___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_jquery__);
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
/**
|
121
|
+
* Runs a callback function when images are fully loaded.
|
122
|
+
* @param {Object} images - Image(s) to check if loaded.
|
123
|
+
* @param {Func} callback - Function to execute when image is fully loaded.
|
124
|
+
*/
|
125
|
+
function onImagesLoaded(images, callback) {
|
126
|
+
var self = this,
|
127
|
+
unloaded = images.length;
|
128
|
+
|
129
|
+
if (unloaded === 0) {
|
130
|
+
callback();
|
131
|
+
}
|
132
|
+
|
133
|
+
images.each(function () {
|
134
|
+
// Check if image is loaded
|
135
|
+
if (this.complete && this.naturalWidth !== undefined) {
|
136
|
+
singleImageLoaded();
|
137
|
+
} else {
|
138
|
+
// If the above check failed, simulate loading on detached element.
|
139
|
+
var image = new Image();
|
140
|
+
// Still count image as loaded if it finalizes with an error.
|
141
|
+
var events = "load.zf.images error.zf.images";
|
142
|
+
__WEBPACK_IMPORTED_MODULE_0_jquery___default()(image).one(events, function me(event) {
|
143
|
+
// Unbind the event listeners. We're using 'one' but only one of the two events will have fired.
|
144
|
+
__WEBPACK_IMPORTED_MODULE_0_jquery___default()(this).off(events, me);
|
145
|
+
singleImageLoaded();
|
146
|
+
});
|
147
|
+
image.src = __WEBPACK_IMPORTED_MODULE_0_jquery___default()(this).attr('src');
|
148
|
+
}
|
149
|
+
});
|
150
|
+
|
151
|
+
function singleImageLoaded() {
|
152
|
+
unloaded--;
|
153
|
+
if (unloaded === 0) {
|
154
|
+
callback();
|
155
|
+
}
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
/***/ })
|
162
|
+
|
163
|
+
/******/ });
|