7f7cb64f by Jeff Balicki

sss

Signed-off-by: Jeff <jeff@gotenzing.com>
1 parent 33caaba6
......@@ -15749,7 +15749,7 @@ body.understrap-no-sidebar .wp-block-cover.alignwide {
.by-the-numbers {
margin-top: -60px;
z-index: 999999;
z-index: 99;
position: relative;
margin-bottom: 24px;
}
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
......@@ -22,7 +22,7 @@ $navbar_type = get_theme_mod( 'understrap_navbar_type', 'collapse' );
<?php wp_head(); ?>
</head>
<body <?php body_class(); ?> <?php understrap_body_attributes(); ?>>
<body id="body" <?php body_class(); ?> <?php understrap_body_attributes(); ?>>
<?php do_action( 'wp_body_open' ); ?>
<div class="site" id="page">
......
......@@ -9,7 +9,7 @@
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.understrap = {}, global.jQuery));
})(this, (function (exports, jQuery) { 'use strict';
var commonjsGlobal$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
function getDefaultExportFromCjs (x) {
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
......@@ -60,7 +60,7 @@
(function (module, exports) {
(function (global, factory) {
factory(exports) ;
})(commonjsGlobal$1, function (exports) {
})(commonjsGlobal, function (exports) {
/**
* --------------------------------------------------------------------------
......@@ -368,7 +368,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory(requireUtil()) ;
})(commonjsGlobal$1, function (index) {
})(commonjsGlobal, function (index) {
/**
* --------------------------------------------------------------------------
......@@ -614,7 +614,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory() ;
})(commonjsGlobal$1, function () {
})(commonjsGlobal, function () {
/**
* --------------------------------------------------------------------------
......@@ -684,7 +684,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory() ;
})(commonjsGlobal$1, function () {
})(commonjsGlobal, function () {
/**
* --------------------------------------------------------------------------
......@@ -761,7 +761,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory(requireUtil(), requireManipulator()) ;
})(commonjsGlobal$1, function (index, Manipulator) {
})(commonjsGlobal, function (index, Manipulator) {
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
default: e
......@@ -839,7 +839,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory(requireData(), requireUtil(), requireEventHandler(), requireConfig()) ;
})(commonjsGlobal$1, function (Data, index, EventHandler, Config) {
})(commonjsGlobal, function (Data, index, EventHandler, Config) {
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
default: e
......@@ -933,7 +933,7 @@
(function (module, exports) {
(function (global, factory) {
factory(exports, requireEventHandler(), requireUtil()) ;
})(commonjsGlobal$1, function (exports, EventHandler, index) {
})(commonjsGlobal, function (exports, EventHandler, index) {
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
default: e
......@@ -986,7 +986,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory(requireUtil(), requireEventHandler(), requireBaseComponent(), requireComponentFunctions()) ;
})(commonjsGlobal$1, function (index, EventHandler, BaseComponent, componentFunctions) {
})(commonjsGlobal, function (index, EventHandler, BaseComponent, componentFunctions) {
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
default: e
......@@ -1077,7 +1077,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory(requireUtil(), requireEventHandler(), requireBaseComponent()) ;
})(commonjsGlobal$1, function (index, EventHandler, BaseComponent) {
})(commonjsGlobal, function (index, EventHandler, BaseComponent) {
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
default: e
......@@ -1165,7 +1165,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory(requireUtil()) ;
})(commonjsGlobal$1, function (index) {
})(commonjsGlobal, function (index) {
/**
* --------------------------------------------------------------------------
......@@ -1243,7 +1243,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory(requireConfig(), requireEventHandler(), requireUtil()) ;
})(commonjsGlobal$1, function (Config, EventHandler, index) {
})(commonjsGlobal, function (Config, EventHandler, index) {
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
default: e
......@@ -1378,7 +1378,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory(requireUtil(), requireEventHandler(), requireManipulator(), requireSelectorEngine(), requireSwipe(), requireBaseComponent()) ;
})(commonjsGlobal$1, function (index, EventHandler, Manipulator, SelectorEngine, Swipe, BaseComponent) {
})(commonjsGlobal, function (index, EventHandler, Manipulator, SelectorEngine, Swipe, BaseComponent) {
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
default: e
......@@ -1767,7 +1767,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory(requireUtil(), requireEventHandler(), requireSelectorEngine(), requireBaseComponent()) ;
})(commonjsGlobal$1, function (index, EventHandler, SelectorEngine, BaseComponent) {
})(commonjsGlobal, function (index, EventHandler, SelectorEngine, BaseComponent) {
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
default: e
......@@ -3687,7 +3687,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory(require$$0, requireUtil(), requireEventHandler(), requireManipulator(), requireSelectorEngine(), requireBaseComponent()) ;
})(commonjsGlobal$1, function (Popper, index, EventHandler, Manipulator, SelectorEngine, BaseComponent) {
})(commonjsGlobal, function (Popper, index, EventHandler, Manipulator, SelectorEngine, BaseComponent) {
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
default: e
......@@ -4095,7 +4095,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory(requireSelectorEngine(), requireManipulator(), requireUtil()) ;
})(commonjsGlobal$1, function (SelectorEngine, Manipulator, index) {
})(commonjsGlobal, function (SelectorEngine, Manipulator, index) {
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
default: e
......@@ -4217,7 +4217,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory(requireEventHandler(), requireUtil(), requireConfig()) ;
})(commonjsGlobal$1, function (EventHandler, index, Config) {
})(commonjsGlobal, function (EventHandler, index, Config) {
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
default: e
......@@ -4365,7 +4365,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory(requireEventHandler(), requireSelectorEngine(), requireConfig()) ;
})(commonjsGlobal$1, function (EventHandler, SelectorEngine, Config) {
})(commonjsGlobal, function (EventHandler, SelectorEngine, Config) {
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
default: e
......@@ -4482,7 +4482,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory(requireUtil(), requireEventHandler(), requireSelectorEngine(), requireScrollbar(), requireBaseComponent(), requireBackdrop(), requireFocustrap(), requireComponentFunctions()) ;
})(commonjsGlobal$1, function (index, EventHandler, SelectorEngine, ScrollBarHelper, BaseComponent, Backdrop, FocusTrap, componentFunctions) {
})(commonjsGlobal, function (index, EventHandler, SelectorEngine, ScrollBarHelper, BaseComponent, Backdrop, FocusTrap, componentFunctions) {
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
default: e
......@@ -4806,7 +4806,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory(requireUtil(), requireScrollbar(), requireEventHandler(), requireBaseComponent(), requireSelectorEngine(), requireBackdrop(), requireFocustrap(), requireComponentFunctions()) ;
})(commonjsGlobal$1, function (index, ScrollBarHelper, EventHandler, BaseComponent, SelectorEngine, Backdrop, FocusTrap, componentFunctions) {
})(commonjsGlobal, function (index, ScrollBarHelper, EventHandler, BaseComponent, SelectorEngine, Backdrop, FocusTrap, componentFunctions) {
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
default: e
......@@ -5063,7 +5063,7 @@
(function (module, exports) {
(function (global, factory) {
factory(exports) ;
})(commonjsGlobal$1, function (exports) {
})(commonjsGlobal, function (exports) {
/**
* --------------------------------------------------------------------------
......@@ -5188,7 +5188,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory(requireSanitizer(), requireUtil(), requireSelectorEngine(), requireConfig()) ;
})(commonjsGlobal$1, function (sanitizer, index, SelectorEngine, Config) {
})(commonjsGlobal, function (sanitizer, index, SelectorEngine, Config) {
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
default: e
......@@ -5340,7 +5340,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory(require$$0, requireUtil(), requireSanitizer(), requireEventHandler(), requireManipulator(), requireBaseComponent(), requireTemplateFactory()) ;
})(commonjsGlobal$1, function (Popper, index, sanitizer, EventHandler, Manipulator, BaseComponent, TemplateFactory) {
})(commonjsGlobal, function (Popper, index, sanitizer, EventHandler, Manipulator, BaseComponent, TemplateFactory) {
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
default: e
......@@ -5883,7 +5883,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory(requireUtil(), tooltip$1.exports) ;
})(commonjsGlobal$1, function (index, Tooltip) {
})(commonjsGlobal, function (index, Tooltip) {
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
default: e
......@@ -5980,7 +5980,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory(requireUtil(), requireEventHandler(), requireSelectorEngine(), requireBaseComponent()) ;
})(commonjsGlobal$1, function (index, EventHandler, SelectorEngine, BaseComponent) {
})(commonjsGlobal, function (index, EventHandler, SelectorEngine, BaseComponent) {
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
default: e
......@@ -6249,7 +6249,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory(requireUtil(), requireEventHandler(), requireSelectorEngine(), requireBaseComponent()) ;
})(commonjsGlobal$1, function (index, EventHandler, SelectorEngine, BaseComponent) {
})(commonjsGlobal, function (index, EventHandler, SelectorEngine, BaseComponent) {
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
default: e
......@@ -6524,7 +6524,7 @@
(function (module, exports) {
(function (global, factory) {
module.exports = factory(requireUtil(), requireEventHandler(), requireBaseComponent(), requireComponentFunctions()) ;
})(commonjsGlobal$1, function (index, EventHandler, BaseComponent, componentFunctions) {
})(commonjsGlobal, function (index, EventHandler, BaseComponent, componentFunctions) {
const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
default: e
......@@ -6743,536 +6743,6 @@
}
})();
/* locomotive-scroll v4.1.3 | MIT License | https://github.com/locomotivemtl/locomotive-scroll */
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
function createCommonjsModule(fn, module) {
return module = {
exports: {}
}, fn(module, module.exports), module.exports;
}
var smoothscroll = createCommonjsModule(function (module, exports) {
/* smoothscroll v0.4.4 - 2019 - Dustan Kasten, Jeremias Menichelli - MIT License */
(function () {
// polyfill
function polyfill() {
// aliases
var w = window;
var d = document;
// return if scroll behavior is supported and polyfill is not forced
if ('scrollBehavior' in d.documentElement.style && w.__forceSmoothScrollPolyfill__ !== true) {
return;
}
// globals
var Element = w.HTMLElement || w.Element;
var SCROLL_TIME = 468;
// object gathering original scroll methods
var original = {
scroll: w.scroll || w.scrollTo,
scrollBy: w.scrollBy,
elementScroll: Element.prototype.scroll || scrollElement,
scrollIntoView: Element.prototype.scrollIntoView
};
// define timing method
var now = w.performance && w.performance.now ? w.performance.now.bind(w.performance) : Date.now;
/**
* indicates if a the current browser is made by Microsoft
* @method isMicrosoftBrowser
* @param {String} userAgent
* @returns {Boolean}
*/
function isMicrosoftBrowser(userAgent) {
var userAgentPatterns = ['MSIE ', 'Trident/', 'Edge/'];
return new RegExp(userAgentPatterns.join('|')).test(userAgent);
}
/*
* IE has rounding bug rounding down clientHeight and clientWidth and
* rounding up scrollHeight and scrollWidth causing false positives
* on hasScrollableSpace
*/
var ROUNDING_TOLERANCE = isMicrosoftBrowser(w.navigator.userAgent) ? 1 : 0;
/**
* changes scroll position inside an element
* @method scrollElement
* @param {Number} x
* @param {Number} y
* @returns {undefined}
*/
function scrollElement(x, y) {
this.scrollLeft = x;
this.scrollTop = y;
}
/**
* returns result of applying ease math function to a number
* @method ease
* @param {Number} k
* @returns {Number}
*/
function ease(k) {
return 0.5 * (1 - Math.cos(Math.PI * k));
}
/**
* indicates if a smooth behavior should be applied
* @method shouldBailOut
* @param {Number|Object} firstArg
* @returns {Boolean}
*/
function shouldBailOut(firstArg) {
if (firstArg === null || typeof firstArg !== 'object' || firstArg.behavior === undefined || firstArg.behavior === 'auto' || firstArg.behavior === 'instant') {
// first argument is not an object/null
// or behavior is auto, instant or undefined
return true;
}
if (typeof firstArg === 'object' && firstArg.behavior === 'smooth') {
// first argument is an object and behavior is smooth
return false;
}
// throw error when behavior is not supported
throw new TypeError('behavior member of ScrollOptions ' + firstArg.behavior + ' is not a valid value for enumeration ScrollBehavior.');
}
/**
* indicates if an element has scrollable space in the provided axis
* @method hasScrollableSpace
* @param {Node} el
* @param {String} axis
* @returns {Boolean}
*/
function hasScrollableSpace(el, axis) {
if (axis === 'Y') {
return el.clientHeight + ROUNDING_TOLERANCE < el.scrollHeight;
}
if (axis === 'X') {
return el.clientWidth + ROUNDING_TOLERANCE < el.scrollWidth;
}
}
/**
* indicates if an element has a scrollable overflow property in the axis
* @method canOverflow
* @param {Node} el
* @param {String} axis
* @returns {Boolean}
*/
function canOverflow(el, axis) {
var overflowValue = w.getComputedStyle(el, null)['overflow' + axis];
return overflowValue === 'auto' || overflowValue === 'scroll';
}
/**
* indicates if an element can be scrolled in either axis
* @method isScrollable
* @param {Node} el
* @param {String} axis
* @returns {Boolean}
*/
function isScrollable(el) {
var isScrollableY = hasScrollableSpace(el, 'Y') && canOverflow(el, 'Y');
var isScrollableX = hasScrollableSpace(el, 'X') && canOverflow(el, 'X');
return isScrollableY || isScrollableX;
}
/**
* finds scrollable parent of an element
* @method findScrollableParent
* @param {Node} el
* @returns {Node} el
*/
function findScrollableParent(el) {
while (el !== d.body && isScrollable(el) === false) {
el = el.parentNode || el.host;
}
return el;
}
/**
* self invoked function that, given a context, steps through scrolling
* @method step
* @param {Object} context
* @returns {undefined}
*/
function step(context) {
var time = now();
var value;
var currentX;
var currentY;
var elapsed = (time - context.startTime) / SCROLL_TIME;
// avoid elapsed times higher than one
elapsed = elapsed > 1 ? 1 : elapsed;
// apply easing to elapsed time
value = ease(elapsed);
currentX = context.startX + (context.x - context.startX) * value;
currentY = context.startY + (context.y - context.startY) * value;
context.method.call(context.scrollable, currentX, currentY);
// scroll more if we have not reached our destination
if (currentX !== context.x || currentY !== context.y) {
w.requestAnimationFrame(step.bind(w, context));
}
}
/**
* scrolls window or element with a smooth behavior
* @method smoothScroll
* @param {Object|Node} el
* @param {Number} x
* @param {Number} y
* @returns {undefined}
*/
function smoothScroll(el, x, y) {
var scrollable;
var startX;
var startY;
var method;
var startTime = now();
// define scroll context
if (el === d.body) {
scrollable = w;
startX = w.scrollX || w.pageXOffset;
startY = w.scrollY || w.pageYOffset;
method = original.scroll;
} else {
scrollable = el;
startX = el.scrollLeft;
startY = el.scrollTop;
method = scrollElement;
}
// scroll looping over a frame
step({
scrollable: scrollable,
method: method,
startTime: startTime,
startX: startX,
startY: startY,
x: x,
y: y
});
}
// ORIGINAL METHODS OVERRIDES
// w.scroll and w.scrollTo
w.scroll = w.scrollTo = function () {
// avoid action when no arguments are passed
if (arguments[0] === undefined) {
return;
}
// avoid smooth behavior if not required
if (shouldBailOut(arguments[0]) === true) {
original.scroll.call(w, arguments[0].left !== undefined ? arguments[0].left : typeof arguments[0] !== 'object' ? arguments[0] : w.scrollX || w.pageXOffset,
// use top prop, second argument if present or fallback to scrollY
arguments[0].top !== undefined ? arguments[0].top : arguments[1] !== undefined ? arguments[1] : w.scrollY || w.pageYOffset);
return;
}
// LET THE SMOOTHNESS BEGIN!
smoothScroll.call(w, d.body, arguments[0].left !== undefined ? ~~arguments[0].left : w.scrollX || w.pageXOffset, arguments[0].top !== undefined ? ~~arguments[0].top : w.scrollY || w.pageYOffset);
};
// w.scrollBy
w.scrollBy = function () {
// avoid action when no arguments are passed
if (arguments[0] === undefined) {
return;
}
// avoid smooth behavior if not required
if (shouldBailOut(arguments[0])) {
original.scrollBy.call(w, arguments[0].left !== undefined ? arguments[0].left : typeof arguments[0] !== 'object' ? arguments[0] : 0, arguments[0].top !== undefined ? arguments[0].top : arguments[1] !== undefined ? arguments[1] : 0);
return;
}
// LET THE SMOOTHNESS BEGIN!
smoothScroll.call(w, d.body, ~~arguments[0].left + (w.scrollX || w.pageXOffset), ~~arguments[0].top + (w.scrollY || w.pageYOffset));
};
// Element.prototype.scroll and Element.prototype.scrollTo
Element.prototype.scroll = Element.prototype.scrollTo = function () {
// avoid action when no arguments are passed
if (arguments[0] === undefined) {
return;
}
// avoid smooth behavior if not required
if (shouldBailOut(arguments[0]) === true) {
// if one number is passed, throw error to match Firefox implementation
if (typeof arguments[0] === 'number' && arguments[1] === undefined) {
throw new SyntaxError('Value could not be converted');
}
original.elementScroll.call(this,
// use left prop, first number argument or fallback to scrollLeft
arguments[0].left !== undefined ? ~~arguments[0].left : typeof arguments[0] !== 'object' ? ~~arguments[0] : this.scrollLeft,
// use top prop, second argument or fallback to scrollTop
arguments[0].top !== undefined ? ~~arguments[0].top : arguments[1] !== undefined ? ~~arguments[1] : this.scrollTop);
return;
}
var left = arguments[0].left;
var top = arguments[0].top;
// LET THE SMOOTHNESS BEGIN!
smoothScroll.call(this, this, typeof left === 'undefined' ? this.scrollLeft : ~~left, typeof top === 'undefined' ? this.scrollTop : ~~top);
};
// Element.prototype.scrollBy
Element.prototype.scrollBy = function () {
// avoid action when no arguments are passed
if (arguments[0] === undefined) {
return;
}
// avoid smooth behavior if not required
if (shouldBailOut(arguments[0]) === true) {
original.elementScroll.call(this, arguments[0].left !== undefined ? ~~arguments[0].left + this.scrollLeft : ~~arguments[0] + this.scrollLeft, arguments[0].top !== undefined ? ~~arguments[0].top + this.scrollTop : ~~arguments[1] + this.scrollTop);
return;
}
this.scroll({
left: ~~arguments[0].left + this.scrollLeft,
top: ~~arguments[0].top + this.scrollTop,
behavior: arguments[0].behavior
});
};
// Element.prototype.scrollIntoView
Element.prototype.scrollIntoView = function () {
// avoid smooth behavior if not required
if (shouldBailOut(arguments[0]) === true) {
original.scrollIntoView.call(this, arguments[0] === undefined ? true : arguments[0]);
return;
}
// LET THE SMOOTHNESS BEGIN!
var scrollableParent = findScrollableParent(this);
var parentRects = scrollableParent.getBoundingClientRect();
var clientRects = this.getBoundingClientRect();
if (scrollableParent !== d.body) {
// reveal element inside parent
smoothScroll.call(this, scrollableParent, scrollableParent.scrollLeft + clientRects.left - parentRects.left, scrollableParent.scrollTop + clientRects.top - parentRects.top);
// reveal parent in viewport unless is fixed
if (w.getComputedStyle(scrollableParent).position !== 'fixed') {
w.scrollBy({
left: parentRects.left,
top: parentRects.top,
behavior: 'smooth'
});
}
} else {
// reveal element in viewport
w.scrollBy({
left: clientRects.left,
top: clientRects.top,
behavior: 'smooth'
});
}
};
}
{
// commonjs
module.exports = {
polyfill: polyfill
};
}
})();
});
smoothscroll.polyfill;
/*
object-assign
(c) Sindre Sorhus
@license MIT
*/
/* eslint-disable no-unused-vars */
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
var hasOwnProperty = Object.prototype.hasOwnProperty;
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
function toObject(val) {
if (val === null || val === undefined) {
throw new TypeError('Object.assign cannot be called with null or undefined');
}
return Object(val);
}
function shouldUseNative() {
try {
if (!Object.assign) {
return false;
}
// Detect buggy property enumeration order in older V8 versions.
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
test1[5] = 'de';
if (Object.getOwnPropertyNames(test1)[0] === '5') {
return false;
}
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
var test2 = {};
for (var i = 0; i < 10; i++) {
test2['_' + String.fromCharCode(i)] = i;
}
var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
return test2[n];
});
if (order2.join('') !== '0123456789') {
return false;
}
// https://bugs.chromium.org/p/v8/issues/detail?id=3056
var test3 = {};
'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
test3[letter] = letter;
});
if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
return false;
}
return true;
} catch (err) {
// We don't expect any of the above to throw, but better to be safe.
return false;
}
}
shouldUseNative() ? Object.assign : function (target, source) {
var from;
var to = toObject(target);
var symbols;
for (var s = 1; s < arguments.length; s++) {
from = Object(arguments[s]);
for (var key in from) {
if (hasOwnProperty.call(from, key)) {
to[key] = from[key];
}
}
if (getOwnPropertySymbols) {
symbols = getOwnPropertySymbols(from);
for (var i = 0; i < symbols.length; i++) {
if (propIsEnumerable.call(from, symbols[i])) {
to[symbols[i]] = from[symbols[i]];
}
}
}
}
return to;
};
var lethargy = createCommonjsModule(function (module, exports) {
// Generated by CoffeeScript 1.9.2
(function () {
var root;
root = exports !== null ? exports : this;
root.Lethargy = function () {
function Lethargy(stability, sensitivity, tolerance, delay) {
this.stability = stability != null ? Math.abs(stability) : 8;
this.sensitivity = sensitivity != null ? 1 + Math.abs(sensitivity) : 100;
this.tolerance = tolerance != null ? 1 + Math.abs(tolerance) : 1.1;
this.delay = delay != null ? delay : 150;
this.lastUpDeltas = function () {
var i, ref, results;
results = [];
for (i = 1, ref = this.stability * 2; 1 <= ref ? i <= ref : i >= ref; 1 <= ref ? i++ : i--) {
results.push(null);
}
return results;
}.call(this);
this.lastDownDeltas = function () {
var i, ref, results;
results = [];
for (i = 1, ref = this.stability * 2; 1 <= ref ? i <= ref : i >= ref; 1 <= ref ? i++ : i--) {
results.push(null);
}
return results;
}.call(this);
this.deltasTimestamp = function () {
var i, ref, results;
results = [];
for (i = 1, ref = this.stability * 2; 1 <= ref ? i <= ref : i >= ref; 1 <= ref ? i++ : i--) {
results.push(null);
}
return results;
}.call(this);
}
Lethargy.prototype.check = function (e) {
var lastDelta;
e = e.originalEvent || e;
if (e.wheelDelta != null) {
lastDelta = e.wheelDelta;
} else if (e.deltaY != null) {
lastDelta = e.deltaY * -40;
} else if (e.detail != null || e.detail === 0) {
lastDelta = e.detail * -40;
}
this.deltasTimestamp.push(Date.now());
this.deltasTimestamp.shift();
if (lastDelta > 0) {
this.lastUpDeltas.push(lastDelta);
this.lastUpDeltas.shift();
return this.isInertia(1);
} else {
this.lastDownDeltas.push(lastDelta);
this.lastDownDeltas.shift();
return this.isInertia(-1);
}
};
Lethargy.prototype.isInertia = function (direction) {
var lastDeltas, lastDeltasNew, lastDeltasOld, newAverage, newSum, oldAverage, oldSum;
lastDeltas = direction === -1 ? this.lastDownDeltas : this.lastUpDeltas;
if (lastDeltas[0] === null) {
return direction;
}
if (this.deltasTimestamp[this.stability * 2 - 2] + this.delay > Date.now() && lastDeltas[0] === lastDeltas[this.stability * 2 - 1]) {
return false;
}
lastDeltasOld = lastDeltas.slice(0, this.stability);
lastDeltasNew = lastDeltas.slice(this.stability, this.stability * 2);
oldSum = lastDeltasOld.reduce(function (t, s) {
return t + s;
});
newSum = lastDeltasNew.reduce(function (t, s) {
return t + s;
});
oldAverage = oldSum / lastDeltasOld.length;
newAverage = newSum / lastDeltasNew.length;
if (Math.abs(oldAverage) < Math.abs(newAverage * this.tolerance) && this.sensitivity < Math.abs(newAverage)) {
return direction;
} else {
return false;
}
};
Lethargy.prototype.showLastUpDeltas = function () {
return this.lastUpDeltas;
};
Lethargy.prototype.showLastDownDeltas = function () {
return this.lastDownDeltas;
};
return Lethargy;
}();
}).call(commonjsGlobal);
});
(function getSupport() {
return {
hasWheelEvent: 'onwheel' in document,
hasMouseWheelEvent: 'onmousewheel' in document,
hasTouch: 'ontouchstart' in window || window.TouchEvent || window.DocumentTouch && document instanceof DocumentTouch,
hasTouchWin: navigator.msMaxTouchPoints && navigator.msMaxTouchPoints > 1,
hasPointer: !!window.navigator.msPointerEnabled,
hasKeyDown: 'onkeydown' in document,
isFirefox: navigator.userAgent.indexOf('Firefox') > -1
};
})();
lethargy.Lethargy;
function _assertThisInitialized(self) {
if (self === void 0) {
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
......@@ -15192,28 +14662,6 @@
$('.the-numbers .wp-block-columns .wp-block-column:last-of-type').css('margin-right', "-" + $('#content').css('margin-right'));
});
gsapWithCSS.registerPlugin(ScrollTrigger);
// Using Locomotive Scroll from Locomotive https://github.com/locomotivemtl/locomotive-scroll
// const locoScroll = new LocomotiveScroll({
// el: document.querySelector("#js-scroll"),
// smooth: true
// });
// each time Locomotive Scroll updates, tell ScrollTrigger to update too (sync positioning)
//locoScroll.on("scroll", ScrollTrigger.update);
// tell ScrollTrigger to use these proxy methods for the "#js-scroll" element since Locomotive Scroll is hijacking things
// ScrollTrigger.scrollerProxy("#js-scroll", {
// scrollTop(value) {
// return arguments.length ? locoScroll.scrollTo(value, 0, 0) : locoScroll.scroll.instance.scroll.y;
// }, // we don't have to define a scrollLeft because we're only scrolling vertically.
// getBoundingClientRect() {
// return {top: 0, left: 0, width: window.innerWidth, height: window.innerHeight};
// },
// // LocomotiveScroll handles things completely differently on mobile devices - it doesn't even transform the container at all! So to get the correct behavior and avoid jitters, we should pin things with position: fixed on mobile. We sense it by checking to see if there's a transform applied to the container (the LocomotiveScroll-controlled element).
// pinType: document.querySelector("#js-scroll").style.transform ? "transform" : "fixed"
// });
var tl = gsapWithCSS.timeline();
tl.from("h1 span", {
duration: 0.75,
......@@ -15308,83 +14756,30 @@
// stagger: 0.05
// });
});
// each time the window updates, we should refresh ScrollTrigger and then update LocomotiveScroll.
//ScrollTrigger.addEventListener("refresh", () => locoScroll.update());
// after everything is set up, refresh() ScrollTrigger and update LocomotiveScroll because padding may have been added for pinning, etc.
//ScrollTrigger.refresh();
// // select video element
// var vid = document.getElementById('v2');
// //var vid = $('#v0')[0]; // jquery option
// // pause video on load
// vid.pause();
// // pause video on document scroll (stops autoplay once scroll started)
// window.onscroll = function(){
// vid.pause();
// };
// // refresh video frames on interval for smoother playback
// setInterval(function(){
// vid.currentTime = window.pageYOffset/300;
// }, 40);
// jQuery(document).ready(function($) {
// // select video element
// var vid = document.getElementById('v0');
// var time = $('#time');
// var scroll2 = $('#scroll');
// var body = $('.video-cont');
// var windowheight = $(window).height() - 20;
// var scrollpos = window.pageYOffset / 400;
// var targetscrollpos = scrollpos;
// var accel = 0;
// // ---- Values you can tweak: ----
// var accelamount = 0.01; //How fast the video will try to catch up with the target position. 1 = instantaneous, 0 = do nothing.
// var bounceamount = 0.91; //value from 0 to 1 for how much backlash back and forth you want in the easing. 0 = no bounce whatsoever, 1 = lots and lots of bounce
// // pause video on load
// vid.pause();
// window.onscroll = function() {
// //Set the video position that we want to end up at:
// targetscrollpos = ($(document).scrollTop() - $(vid).offset().top) / $(vid).height();
// targetscrollpos = targetscrollpos > 0 ? targetscrollpos < $(vid).height() ? targetscrollpos : $(vid).height() : 0;
// targetscrollpos *= 13500/ $(vid).height();
// //move the red dot to a position across the side of the screen
// //that indicates how far we've scrolled.
// scroll2.css('top', 10 + (targetscrollpos * windowheight));
// };
// setInterval(function() {
// //Accelerate towards the target:
// accel += (targetscrollpos - scrollpos) * accelamount;
// //clamp the acceleration so that it doesnt go too fast
// if (accel > 1) accel = 1;
// if (accel < -1) accel = -1;
// //move the video scroll position according to the acceleration and how much bouncing you selected:
// scrollpos = (scrollpos + accel) * (bounceamount) + (targetscrollpos * (1 - bounceamount));
// //move the blue dot to a position across the side of the screen
// //that indicates where the current video scroll pos is.
// time.css('top', 10 + (scrollpos / targetscrollpos * 400 * windowheight));
// //update video playback
// vid.currentTime = scrollpos;
// vid.pause();
// }, 40);
// });
ScrollTrigger.refresh();
// var frameNumber = 400, // start video at frame 0
// // lower numbers = faster playback
// playbackConst = 10,
// // get page height from video duration
// setHeight = document.getElementById("body"),
// // select video element
// vid = document.getElementById('v2');
// // dynamically set the page height according to video length
// vid.addEventListener('loadedmetadata', function() {
// setHeight.style.height = Math.floor(vid.duration) * playbackConst + "px";
// });
// // Use requestAnimationFrame for smooth playback
// function scrollPlay(){
// var frameNumber = window.pageYOffset/playbackConst;
// vid.currentTime = frameNumber;
// window.requestAnimationFrame(scrollPlay);
// }
// window.requestAnimationFrame(scrollPlay);
exports.Alert = alert;
exports.Button = button;
......
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
This diff could not be displayed because it is too large.
import jQuery from 'jquery';
import LocomotiveScroll from 'locomotive-scroll';
import { gsap, Power2 } from "gsap";
import ScrollTrigger from "gsap/ScrollTrigger";
import ScrollToPlugin from "gsap/ScrollToPlugin";
......@@ -29,27 +28,6 @@ jQuery(document).ready(function($) {
gsap.registerPlugin(ScrollTrigger);
// Using Locomotive Scroll from Locomotive https://github.com/locomotivemtl/locomotive-scroll
// const locoScroll = new LocomotiveScroll({
// el: document.querySelector("#js-scroll"),
// smooth: true
// });
// each time Locomotive Scroll updates, tell ScrollTrigger to update too (sync positioning)
//locoScroll.on("scroll", ScrollTrigger.update);
// tell ScrollTrigger to use these proxy methods for the "#js-scroll" element since Locomotive Scroll is hijacking things
// ScrollTrigger.scrollerProxy("#js-scroll", {
// scrollTop(value) {
// return arguments.length ? locoScroll.scrollTo(value, 0, 0) : locoScroll.scroll.instance.scroll.y;
// }, // we don't have to define a scrollLeft because we're only scrolling vertically.
// getBoundingClientRect() {
// return {top: 0, left: 0, width: window.innerWidth, height: window.innerHeight};
// },
// // LocomotiveScroll handles things completely differently on mobile devices - it doesn't even transform the container at all! So to get the correct behavior and avoid jitters, we should pin things with position: fixed on mobile. We sense it by checking to see if there's a transform applied to the container (the LocomotiveScroll-controlled element).
// pinType: document.querySelector("#js-scroll").style.transform ? "transform" : "fixed"
// });
var tl = gsap.timeline();
tl.from("h1 span", {
......@@ -155,88 +133,31 @@ function numberWithCommas(x) {
});
// each time the window updates, we should refresh ScrollTrigger and then update LocomotiveScroll.
//ScrollTrigger.addEventListener("refresh", () => locoScroll.update());
// after everything is set up, refresh() ScrollTrigger and update LocomotiveScroll because padding may have been added for pinning, etc.
//ScrollTrigger.refresh();
ScrollTrigger.refresh();
// var frameNumber = 400, // start video at frame 0
// // lower numbers = faster playback
// playbackConst = 10,
// // get page height from video duration
// setHeight = document.getElementById("body"),
// // select video element
// vid = document.getElementById('v2');
// // dynamically set the page height according to video length
// vid.addEventListener('loadedmetadata', function() {
// setHeight.style.height = Math.floor(vid.duration) * playbackConst + "px";
// });
// // Use requestAnimationFrame for smooth playback
// function scrollPlay(){
// var frameNumber = window.pageYOffset/playbackConst;
// vid.currentTime = frameNumber;
// window.requestAnimationFrame(scrollPlay);
// }
// // select video element
// var vid = document.getElementById('v2');
// //var vid = $('#v0')[0]; // jquery option
// // pause video on load
// vid.pause();
// // pause video on document scroll (stops autoplay once scroll started)
// window.onscroll = function(){
// vid.pause();
// };
// // refresh video frames on interval for smoother playback
// setInterval(function(){
// vid.currentTime = window.pageYOffset/300;
// }, 40);
// jQuery(document).ready(function($) {
// // select video element
// var vid = document.getElementById('v0');
// var time = $('#time');
// var scroll2 = $('#scroll');
// var body = $('.video-cont');
// var windowheight = $(window).height() - 20;
// var scrollpos = window.pageYOffset / 400;
// var targetscrollpos = scrollpos;
// var accel = 0;
// // ---- Values you can tweak: ----
// var accelamount = 0.01; //How fast the video will try to catch up with the target position. 1 = instantaneous, 0 = do nothing.
// var bounceamount = 0.91; //value from 0 to 1 for how much backlash back and forth you want in the easing. 0 = no bounce whatsoever, 1 = lots and lots of bounce
// // pause video on load
// vid.pause();
// window.onscroll = function() {
// //Set the video position that we want to end up at:
// targetscrollpos = ($(document).scrollTop() - $(vid).offset().top) / $(vid).height();
// targetscrollpos = targetscrollpos > 0 ? targetscrollpos < $(vid).height() ? targetscrollpos : $(vid).height() : 0;
// targetscrollpos *= 13500/ $(vid).height();
// //move the red dot to a position across the side of the screen
// //that indicates how far we've scrolled.
// scroll2.css('top', 10 + (targetscrollpos * windowheight));
// };
// setInterval(function() {
// //Accelerate towards the target:
// accel += (targetscrollpos - scrollpos) * accelamount;
// //clamp the acceleration so that it doesnt go too fast
// if (accel > 1) accel = 1;
// if (accel < -1) accel = -1;
// //move the video scroll position according to the acceleration and how much bouncing you selected:
// scrollpos = (scrollpos + accel) * (bounceamount) + (targetscrollpos * (1 - bounceamount));
// //move the blue dot to a position across the side of the screen
// //that indicates where the current video scroll pos is.
// time.css('top', 10 + (scrollpos / targetscrollpos * 400 * windowheight));
// //update video playback
// vid.currentTime = scrollpos;
// vid.pause();
// }, 40);
// window.requestAnimationFrame(scrollPlay);
// });
\ No newline at end of file
......
......@@ -222,7 +222,7 @@
.by-the-numbers{
margin-top: -60px;
z-index: 999999;
z-index: 99;
position: relative;
margin-bottom: 24px;
h2{
......