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 { ...@@ -15749,7 +15749,7 @@ body.understrap-no-sidebar .wp-block-cover.alignwide {
15749 15749
15750 .by-the-numbers { 15750 .by-the-numbers {
15751 margin-top: -60px; 15751 margin-top: -60px;
15752 z-index: 999999; 15752 z-index: 99;
15753 position: relative; 15753 position: relative;
15754 margin-bottom: 24px; 15754 margin-bottom: 24px;
15755 } 15755 }
......
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' ); ...@@ -22,7 +22,7 @@ $navbar_type = get_theme_mod( 'understrap_navbar_type', 'collapse' );
22 <?php wp_head(); ?> 22 <?php wp_head(); ?>
23 </head> 23 </head>
24 24
25 <body <?php body_class(); ?> <?php understrap_body_attributes(); ?>> 25 <body id="body" <?php body_class(); ?> <?php understrap_body_attributes(); ?>>
26 <?php do_action( 'wp_body_open' ); ?> 26 <?php do_action( 'wp_body_open' ); ?>
27 <div class="site" id="page"> 27 <div class="site" id="page">
28 28
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
9 (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.understrap = {}, global.jQuery)); 9 (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.understrap = {}, global.jQuery));
10 })(this, (function (exports, jQuery) { 'use strict'; 10 })(this, (function (exports, jQuery) { 'use strict';
11 11
12 var commonjsGlobal$1 = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {}; 12 var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
13 13
14 function getDefaultExportFromCjs (x) { 14 function getDefaultExportFromCjs (x) {
15 return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; 15 return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
...@@ -60,7 +60,7 @@ ...@@ -60,7 +60,7 @@
60 (function (module, exports) { 60 (function (module, exports) {
61 (function (global, factory) { 61 (function (global, factory) {
62 factory(exports) ; 62 factory(exports) ;
63 })(commonjsGlobal$1, function (exports) { 63 })(commonjsGlobal, function (exports) {
64 64
65 /** 65 /**
66 * -------------------------------------------------------------------------- 66 * --------------------------------------------------------------------------
...@@ -368,7 +368,7 @@ ...@@ -368,7 +368,7 @@
368 (function (module, exports) { 368 (function (module, exports) {
369 (function (global, factory) { 369 (function (global, factory) {
370 module.exports = factory(requireUtil()) ; 370 module.exports = factory(requireUtil()) ;
371 })(commonjsGlobal$1, function (index) { 371 })(commonjsGlobal, function (index) {
372 372
373 /** 373 /**
374 * -------------------------------------------------------------------------- 374 * --------------------------------------------------------------------------
...@@ -614,7 +614,7 @@ ...@@ -614,7 +614,7 @@
614 (function (module, exports) { 614 (function (module, exports) {
615 (function (global, factory) { 615 (function (global, factory) {
616 module.exports = factory() ; 616 module.exports = factory() ;
617 })(commonjsGlobal$1, function () { 617 })(commonjsGlobal, function () {
618 618
619 /** 619 /**
620 * -------------------------------------------------------------------------- 620 * --------------------------------------------------------------------------
...@@ -684,7 +684,7 @@ ...@@ -684,7 +684,7 @@
684 (function (module, exports) { 684 (function (module, exports) {
685 (function (global, factory) { 685 (function (global, factory) {
686 module.exports = factory() ; 686 module.exports = factory() ;
687 })(commonjsGlobal$1, function () { 687 })(commonjsGlobal, function () {
688 688
689 /** 689 /**
690 * -------------------------------------------------------------------------- 690 * --------------------------------------------------------------------------
...@@ -761,7 +761,7 @@ ...@@ -761,7 +761,7 @@
761 (function (module, exports) { 761 (function (module, exports) {
762 (function (global, factory) { 762 (function (global, factory) {
763 module.exports = factory(requireUtil(), requireManipulator()) ; 763 module.exports = factory(requireUtil(), requireManipulator()) ;
764 })(commonjsGlobal$1, function (index, Manipulator) { 764 })(commonjsGlobal, function (index, Manipulator) {
765 765
766 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { 766 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
767 default: e 767 default: e
...@@ -839,7 +839,7 @@ ...@@ -839,7 +839,7 @@
839 (function (module, exports) { 839 (function (module, exports) {
840 (function (global, factory) { 840 (function (global, factory) {
841 module.exports = factory(requireData(), requireUtil(), requireEventHandler(), requireConfig()) ; 841 module.exports = factory(requireData(), requireUtil(), requireEventHandler(), requireConfig()) ;
842 })(commonjsGlobal$1, function (Data, index, EventHandler, Config) { 842 })(commonjsGlobal, function (Data, index, EventHandler, Config) {
843 843
844 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { 844 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
845 default: e 845 default: e
...@@ -933,7 +933,7 @@ ...@@ -933,7 +933,7 @@
933 (function (module, exports) { 933 (function (module, exports) {
934 (function (global, factory) { 934 (function (global, factory) {
935 factory(exports, requireEventHandler(), requireUtil()) ; 935 factory(exports, requireEventHandler(), requireUtil()) ;
936 })(commonjsGlobal$1, function (exports, EventHandler, index) { 936 })(commonjsGlobal, function (exports, EventHandler, index) {
937 937
938 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { 938 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
939 default: e 939 default: e
...@@ -986,7 +986,7 @@ ...@@ -986,7 +986,7 @@
986 (function (module, exports) { 986 (function (module, exports) {
987 (function (global, factory) { 987 (function (global, factory) {
988 module.exports = factory(requireUtil(), requireEventHandler(), requireBaseComponent(), requireComponentFunctions()) ; 988 module.exports = factory(requireUtil(), requireEventHandler(), requireBaseComponent(), requireComponentFunctions()) ;
989 })(commonjsGlobal$1, function (index, EventHandler, BaseComponent, componentFunctions) { 989 })(commonjsGlobal, function (index, EventHandler, BaseComponent, componentFunctions) {
990 990
991 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { 991 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
992 default: e 992 default: e
...@@ -1077,7 +1077,7 @@ ...@@ -1077,7 +1077,7 @@
1077 (function (module, exports) { 1077 (function (module, exports) {
1078 (function (global, factory) { 1078 (function (global, factory) {
1079 module.exports = factory(requireUtil(), requireEventHandler(), requireBaseComponent()) ; 1079 module.exports = factory(requireUtil(), requireEventHandler(), requireBaseComponent()) ;
1080 })(commonjsGlobal$1, function (index, EventHandler, BaseComponent) { 1080 })(commonjsGlobal, function (index, EventHandler, BaseComponent) {
1081 1081
1082 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { 1082 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
1083 default: e 1083 default: e
...@@ -1165,7 +1165,7 @@ ...@@ -1165,7 +1165,7 @@
1165 (function (module, exports) { 1165 (function (module, exports) {
1166 (function (global, factory) { 1166 (function (global, factory) {
1167 module.exports = factory(requireUtil()) ; 1167 module.exports = factory(requireUtil()) ;
1168 })(commonjsGlobal$1, function (index) { 1168 })(commonjsGlobal, function (index) {
1169 1169
1170 /** 1170 /**
1171 * -------------------------------------------------------------------------- 1171 * --------------------------------------------------------------------------
...@@ -1243,7 +1243,7 @@ ...@@ -1243,7 +1243,7 @@
1243 (function (module, exports) { 1243 (function (module, exports) {
1244 (function (global, factory) { 1244 (function (global, factory) {
1245 module.exports = factory(requireConfig(), requireEventHandler(), requireUtil()) ; 1245 module.exports = factory(requireConfig(), requireEventHandler(), requireUtil()) ;
1246 })(commonjsGlobal$1, function (Config, EventHandler, index) { 1246 })(commonjsGlobal, function (Config, EventHandler, index) {
1247 1247
1248 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { 1248 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
1249 default: e 1249 default: e
...@@ -1378,7 +1378,7 @@ ...@@ -1378,7 +1378,7 @@
1378 (function (module, exports) { 1378 (function (module, exports) {
1379 (function (global, factory) { 1379 (function (global, factory) {
1380 module.exports = factory(requireUtil(), requireEventHandler(), requireManipulator(), requireSelectorEngine(), requireSwipe(), requireBaseComponent()) ; 1380 module.exports = factory(requireUtil(), requireEventHandler(), requireManipulator(), requireSelectorEngine(), requireSwipe(), requireBaseComponent()) ;
1381 })(commonjsGlobal$1, function (index, EventHandler, Manipulator, SelectorEngine, Swipe, BaseComponent) { 1381 })(commonjsGlobal, function (index, EventHandler, Manipulator, SelectorEngine, Swipe, BaseComponent) {
1382 1382
1383 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { 1383 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
1384 default: e 1384 default: e
...@@ -1767,7 +1767,7 @@ ...@@ -1767,7 +1767,7 @@
1767 (function (module, exports) { 1767 (function (module, exports) {
1768 (function (global, factory) { 1768 (function (global, factory) {
1769 module.exports = factory(requireUtil(), requireEventHandler(), requireSelectorEngine(), requireBaseComponent()) ; 1769 module.exports = factory(requireUtil(), requireEventHandler(), requireSelectorEngine(), requireBaseComponent()) ;
1770 })(commonjsGlobal$1, function (index, EventHandler, SelectorEngine, BaseComponent) { 1770 })(commonjsGlobal, function (index, EventHandler, SelectorEngine, BaseComponent) {
1771 1771
1772 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { 1772 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
1773 default: e 1773 default: e
...@@ -3687,7 +3687,7 @@ ...@@ -3687,7 +3687,7 @@
3687 (function (module, exports) { 3687 (function (module, exports) {
3688 (function (global, factory) { 3688 (function (global, factory) {
3689 module.exports = factory(require$$0, requireUtil(), requireEventHandler(), requireManipulator(), requireSelectorEngine(), requireBaseComponent()) ; 3689 module.exports = factory(require$$0, requireUtil(), requireEventHandler(), requireManipulator(), requireSelectorEngine(), requireBaseComponent()) ;
3690 })(commonjsGlobal$1, function (Popper, index, EventHandler, Manipulator, SelectorEngine, BaseComponent) { 3690 })(commonjsGlobal, function (Popper, index, EventHandler, Manipulator, SelectorEngine, BaseComponent) {
3691 3691
3692 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { 3692 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
3693 default: e 3693 default: e
...@@ -4095,7 +4095,7 @@ ...@@ -4095,7 +4095,7 @@
4095 (function (module, exports) { 4095 (function (module, exports) {
4096 (function (global, factory) { 4096 (function (global, factory) {
4097 module.exports = factory(requireSelectorEngine(), requireManipulator(), requireUtil()) ; 4097 module.exports = factory(requireSelectorEngine(), requireManipulator(), requireUtil()) ;
4098 })(commonjsGlobal$1, function (SelectorEngine, Manipulator, index) { 4098 })(commonjsGlobal, function (SelectorEngine, Manipulator, index) {
4099 4099
4100 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { 4100 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
4101 default: e 4101 default: e
...@@ -4217,7 +4217,7 @@ ...@@ -4217,7 +4217,7 @@
4217 (function (module, exports) { 4217 (function (module, exports) {
4218 (function (global, factory) { 4218 (function (global, factory) {
4219 module.exports = factory(requireEventHandler(), requireUtil(), requireConfig()) ; 4219 module.exports = factory(requireEventHandler(), requireUtil(), requireConfig()) ;
4220 })(commonjsGlobal$1, function (EventHandler, index, Config) { 4220 })(commonjsGlobal, function (EventHandler, index, Config) {
4221 4221
4222 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { 4222 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
4223 default: e 4223 default: e
...@@ -4365,7 +4365,7 @@ ...@@ -4365,7 +4365,7 @@
4365 (function (module, exports) { 4365 (function (module, exports) {
4366 (function (global, factory) { 4366 (function (global, factory) {
4367 module.exports = factory(requireEventHandler(), requireSelectorEngine(), requireConfig()) ; 4367 module.exports = factory(requireEventHandler(), requireSelectorEngine(), requireConfig()) ;
4368 })(commonjsGlobal$1, function (EventHandler, SelectorEngine, Config) { 4368 })(commonjsGlobal, function (EventHandler, SelectorEngine, Config) {
4369 4369
4370 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { 4370 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
4371 default: e 4371 default: e
...@@ -4482,7 +4482,7 @@ ...@@ -4482,7 +4482,7 @@
4482 (function (module, exports) { 4482 (function (module, exports) {
4483 (function (global, factory) { 4483 (function (global, factory) {
4484 module.exports = factory(requireUtil(), requireEventHandler(), requireSelectorEngine(), requireScrollbar(), requireBaseComponent(), requireBackdrop(), requireFocustrap(), requireComponentFunctions()) ; 4484 module.exports = factory(requireUtil(), requireEventHandler(), requireSelectorEngine(), requireScrollbar(), requireBaseComponent(), requireBackdrop(), requireFocustrap(), requireComponentFunctions()) ;
4485 })(commonjsGlobal$1, function (index, EventHandler, SelectorEngine, ScrollBarHelper, BaseComponent, Backdrop, FocusTrap, componentFunctions) { 4485 })(commonjsGlobal, function (index, EventHandler, SelectorEngine, ScrollBarHelper, BaseComponent, Backdrop, FocusTrap, componentFunctions) {
4486 4486
4487 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { 4487 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
4488 default: e 4488 default: e
...@@ -4806,7 +4806,7 @@ ...@@ -4806,7 +4806,7 @@
4806 (function (module, exports) { 4806 (function (module, exports) {
4807 (function (global, factory) { 4807 (function (global, factory) {
4808 module.exports = factory(requireUtil(), requireScrollbar(), requireEventHandler(), requireBaseComponent(), requireSelectorEngine(), requireBackdrop(), requireFocustrap(), requireComponentFunctions()) ; 4808 module.exports = factory(requireUtil(), requireScrollbar(), requireEventHandler(), requireBaseComponent(), requireSelectorEngine(), requireBackdrop(), requireFocustrap(), requireComponentFunctions()) ;
4809 })(commonjsGlobal$1, function (index, ScrollBarHelper, EventHandler, BaseComponent, SelectorEngine, Backdrop, FocusTrap, componentFunctions) { 4809 })(commonjsGlobal, function (index, ScrollBarHelper, EventHandler, BaseComponent, SelectorEngine, Backdrop, FocusTrap, componentFunctions) {
4810 4810
4811 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { 4811 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
4812 default: e 4812 default: e
...@@ -5063,7 +5063,7 @@ ...@@ -5063,7 +5063,7 @@
5063 (function (module, exports) { 5063 (function (module, exports) {
5064 (function (global, factory) { 5064 (function (global, factory) {
5065 factory(exports) ; 5065 factory(exports) ;
5066 })(commonjsGlobal$1, function (exports) { 5066 })(commonjsGlobal, function (exports) {
5067 5067
5068 /** 5068 /**
5069 * -------------------------------------------------------------------------- 5069 * --------------------------------------------------------------------------
...@@ -5188,7 +5188,7 @@ ...@@ -5188,7 +5188,7 @@
5188 (function (module, exports) { 5188 (function (module, exports) {
5189 (function (global, factory) { 5189 (function (global, factory) {
5190 module.exports = factory(requireSanitizer(), requireUtil(), requireSelectorEngine(), requireConfig()) ; 5190 module.exports = factory(requireSanitizer(), requireUtil(), requireSelectorEngine(), requireConfig()) ;
5191 })(commonjsGlobal$1, function (sanitizer, index, SelectorEngine, Config) { 5191 })(commonjsGlobal, function (sanitizer, index, SelectorEngine, Config) {
5192 5192
5193 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { 5193 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
5194 default: e 5194 default: e
...@@ -5340,7 +5340,7 @@ ...@@ -5340,7 +5340,7 @@
5340 (function (module, exports) { 5340 (function (module, exports) {
5341 (function (global, factory) { 5341 (function (global, factory) {
5342 module.exports = factory(require$$0, requireUtil(), requireSanitizer(), requireEventHandler(), requireManipulator(), requireBaseComponent(), requireTemplateFactory()) ; 5342 module.exports = factory(require$$0, requireUtil(), requireSanitizer(), requireEventHandler(), requireManipulator(), requireBaseComponent(), requireTemplateFactory()) ;
5343 })(commonjsGlobal$1, function (Popper, index, sanitizer, EventHandler, Manipulator, BaseComponent, TemplateFactory) { 5343 })(commonjsGlobal, function (Popper, index, sanitizer, EventHandler, Manipulator, BaseComponent, TemplateFactory) {
5344 5344
5345 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { 5345 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
5346 default: e 5346 default: e
...@@ -5883,7 +5883,7 @@ ...@@ -5883,7 +5883,7 @@
5883 (function (module, exports) { 5883 (function (module, exports) {
5884 (function (global, factory) { 5884 (function (global, factory) {
5885 module.exports = factory(requireUtil(), tooltip$1.exports) ; 5885 module.exports = factory(requireUtil(), tooltip$1.exports) ;
5886 })(commonjsGlobal$1, function (index, Tooltip) { 5886 })(commonjsGlobal, function (index, Tooltip) {
5887 5887
5888 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { 5888 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
5889 default: e 5889 default: e
...@@ -5980,7 +5980,7 @@ ...@@ -5980,7 +5980,7 @@
5980 (function (module, exports) { 5980 (function (module, exports) {
5981 (function (global, factory) { 5981 (function (global, factory) {
5982 module.exports = factory(requireUtil(), requireEventHandler(), requireSelectorEngine(), requireBaseComponent()) ; 5982 module.exports = factory(requireUtil(), requireEventHandler(), requireSelectorEngine(), requireBaseComponent()) ;
5983 })(commonjsGlobal$1, function (index, EventHandler, SelectorEngine, BaseComponent) { 5983 })(commonjsGlobal, function (index, EventHandler, SelectorEngine, BaseComponent) {
5984 5984
5985 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { 5985 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
5986 default: e 5986 default: e
...@@ -6249,7 +6249,7 @@ ...@@ -6249,7 +6249,7 @@
6249 (function (module, exports) { 6249 (function (module, exports) {
6250 (function (global, factory) { 6250 (function (global, factory) {
6251 module.exports = factory(requireUtil(), requireEventHandler(), requireSelectorEngine(), requireBaseComponent()) ; 6251 module.exports = factory(requireUtil(), requireEventHandler(), requireSelectorEngine(), requireBaseComponent()) ;
6252 })(commonjsGlobal$1, function (index, EventHandler, SelectorEngine, BaseComponent) { 6252 })(commonjsGlobal, function (index, EventHandler, SelectorEngine, BaseComponent) {
6253 6253
6254 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { 6254 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
6255 default: e 6255 default: e
...@@ -6524,7 +6524,7 @@ ...@@ -6524,7 +6524,7 @@
6524 (function (module, exports) { 6524 (function (module, exports) {
6525 (function (global, factory) { 6525 (function (global, factory) {
6526 module.exports = factory(requireUtil(), requireEventHandler(), requireBaseComponent(), requireComponentFunctions()) ; 6526 module.exports = factory(requireUtil(), requireEventHandler(), requireBaseComponent(), requireComponentFunctions()) ;
6527 })(commonjsGlobal$1, function (index, EventHandler, BaseComponent, componentFunctions) { 6527 })(commonjsGlobal, function (index, EventHandler, BaseComponent, componentFunctions) {
6528 6528
6529 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : { 6529 const _interopDefaultLegacy = e => e && typeof e === 'object' && 'default' in e ? e : {
6530 default: e 6530 default: e
...@@ -6743,536 +6743,6 @@ ...@@ -6743,536 +6743,6 @@
6743 } 6743 }
6744 })(); 6744 })();
6745 6745
6746 /* locomotive-scroll v4.1.3 | MIT License | https://github.com/locomotivemtl/locomotive-scroll */
6747 var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
6748 function createCommonjsModule(fn, module) {
6749 return module = {
6750 exports: {}
6751 }, fn(module, module.exports), module.exports;
6752 }
6753 var smoothscroll = createCommonjsModule(function (module, exports) {
6754 /* smoothscroll v0.4.4 - 2019 - Dustan Kasten, Jeremias Menichelli - MIT License */
6755 (function () {
6756 // polyfill
6757 function polyfill() {
6758 // aliases
6759 var w = window;
6760 var d = document;
6761
6762 // return if scroll behavior is supported and polyfill is not forced
6763 if ('scrollBehavior' in d.documentElement.style && w.__forceSmoothScrollPolyfill__ !== true) {
6764 return;
6765 }
6766
6767 // globals
6768 var Element = w.HTMLElement || w.Element;
6769 var SCROLL_TIME = 468;
6770
6771 // object gathering original scroll methods
6772 var original = {
6773 scroll: w.scroll || w.scrollTo,
6774 scrollBy: w.scrollBy,
6775 elementScroll: Element.prototype.scroll || scrollElement,
6776 scrollIntoView: Element.prototype.scrollIntoView
6777 };
6778
6779 // define timing method
6780 var now = w.performance && w.performance.now ? w.performance.now.bind(w.performance) : Date.now;
6781
6782 /**
6783 * indicates if a the current browser is made by Microsoft
6784 * @method isMicrosoftBrowser
6785 * @param {String} userAgent
6786 * @returns {Boolean}
6787 */
6788 function isMicrosoftBrowser(userAgent) {
6789 var userAgentPatterns = ['MSIE ', 'Trident/', 'Edge/'];
6790 return new RegExp(userAgentPatterns.join('|')).test(userAgent);
6791 }
6792
6793 /*
6794 * IE has rounding bug rounding down clientHeight and clientWidth and
6795 * rounding up scrollHeight and scrollWidth causing false positives
6796 * on hasScrollableSpace
6797 */
6798 var ROUNDING_TOLERANCE = isMicrosoftBrowser(w.navigator.userAgent) ? 1 : 0;
6799
6800 /**
6801 * changes scroll position inside an element
6802 * @method scrollElement
6803 * @param {Number} x
6804 * @param {Number} y
6805 * @returns {undefined}
6806 */
6807 function scrollElement(x, y) {
6808 this.scrollLeft = x;
6809 this.scrollTop = y;
6810 }
6811
6812 /**
6813 * returns result of applying ease math function to a number
6814 * @method ease
6815 * @param {Number} k
6816 * @returns {Number}
6817 */
6818 function ease(k) {
6819 return 0.5 * (1 - Math.cos(Math.PI * k));
6820 }
6821
6822 /**
6823 * indicates if a smooth behavior should be applied
6824 * @method shouldBailOut
6825 * @param {Number|Object} firstArg
6826 * @returns {Boolean}
6827 */
6828 function shouldBailOut(firstArg) {
6829 if (firstArg === null || typeof firstArg !== 'object' || firstArg.behavior === undefined || firstArg.behavior === 'auto' || firstArg.behavior === 'instant') {
6830 // first argument is not an object/null
6831 // or behavior is auto, instant or undefined
6832 return true;
6833 }
6834 if (typeof firstArg === 'object' && firstArg.behavior === 'smooth') {
6835 // first argument is an object and behavior is smooth
6836 return false;
6837 }
6838
6839 // throw error when behavior is not supported
6840 throw new TypeError('behavior member of ScrollOptions ' + firstArg.behavior + ' is not a valid value for enumeration ScrollBehavior.');
6841 }
6842
6843 /**
6844 * indicates if an element has scrollable space in the provided axis
6845 * @method hasScrollableSpace
6846 * @param {Node} el
6847 * @param {String} axis
6848 * @returns {Boolean}
6849 */
6850 function hasScrollableSpace(el, axis) {
6851 if (axis === 'Y') {
6852 return el.clientHeight + ROUNDING_TOLERANCE < el.scrollHeight;
6853 }
6854 if (axis === 'X') {
6855 return el.clientWidth + ROUNDING_TOLERANCE < el.scrollWidth;
6856 }
6857 }
6858
6859 /**
6860 * indicates if an element has a scrollable overflow property in the axis
6861 * @method canOverflow
6862 * @param {Node} el
6863 * @param {String} axis
6864 * @returns {Boolean}
6865 */
6866 function canOverflow(el, axis) {
6867 var overflowValue = w.getComputedStyle(el, null)['overflow' + axis];
6868 return overflowValue === 'auto' || overflowValue === 'scroll';
6869 }
6870
6871 /**
6872 * indicates if an element can be scrolled in either axis
6873 * @method isScrollable
6874 * @param {Node} el
6875 * @param {String} axis
6876 * @returns {Boolean}
6877 */
6878 function isScrollable(el) {
6879 var isScrollableY = hasScrollableSpace(el, 'Y') && canOverflow(el, 'Y');
6880 var isScrollableX = hasScrollableSpace(el, 'X') && canOverflow(el, 'X');
6881 return isScrollableY || isScrollableX;
6882 }
6883
6884 /**
6885 * finds scrollable parent of an element
6886 * @method findScrollableParent
6887 * @param {Node} el
6888 * @returns {Node} el
6889 */
6890 function findScrollableParent(el) {
6891 while (el !== d.body && isScrollable(el) === false) {
6892 el = el.parentNode || el.host;
6893 }
6894 return el;
6895 }
6896
6897 /**
6898 * self invoked function that, given a context, steps through scrolling
6899 * @method step
6900 * @param {Object} context
6901 * @returns {undefined}
6902 */
6903 function step(context) {
6904 var time = now();
6905 var value;
6906 var currentX;
6907 var currentY;
6908 var elapsed = (time - context.startTime) / SCROLL_TIME;
6909
6910 // avoid elapsed times higher than one
6911 elapsed = elapsed > 1 ? 1 : elapsed;
6912
6913 // apply easing to elapsed time
6914 value = ease(elapsed);
6915 currentX = context.startX + (context.x - context.startX) * value;
6916 currentY = context.startY + (context.y - context.startY) * value;
6917 context.method.call(context.scrollable, currentX, currentY);
6918
6919 // scroll more if we have not reached our destination
6920 if (currentX !== context.x || currentY !== context.y) {
6921 w.requestAnimationFrame(step.bind(w, context));
6922 }
6923 }
6924
6925 /**
6926 * scrolls window or element with a smooth behavior
6927 * @method smoothScroll
6928 * @param {Object|Node} el
6929 * @param {Number} x
6930 * @param {Number} y
6931 * @returns {undefined}
6932 */
6933 function smoothScroll(el, x, y) {
6934 var scrollable;
6935 var startX;
6936 var startY;
6937 var method;
6938 var startTime = now();
6939
6940 // define scroll context
6941 if (el === d.body) {
6942 scrollable = w;
6943 startX = w.scrollX || w.pageXOffset;
6944 startY = w.scrollY || w.pageYOffset;
6945 method = original.scroll;
6946 } else {
6947 scrollable = el;
6948 startX = el.scrollLeft;
6949 startY = el.scrollTop;
6950 method = scrollElement;
6951 }
6952
6953 // scroll looping over a frame
6954 step({
6955 scrollable: scrollable,
6956 method: method,
6957 startTime: startTime,
6958 startX: startX,
6959 startY: startY,
6960 x: x,
6961 y: y
6962 });
6963 }
6964
6965 // ORIGINAL METHODS OVERRIDES
6966 // w.scroll and w.scrollTo
6967 w.scroll = w.scrollTo = function () {
6968 // avoid action when no arguments are passed
6969 if (arguments[0] === undefined) {
6970 return;
6971 }
6972
6973 // avoid smooth behavior if not required
6974 if (shouldBailOut(arguments[0]) === true) {
6975 original.scroll.call(w, arguments[0].left !== undefined ? arguments[0].left : typeof arguments[0] !== 'object' ? arguments[0] : w.scrollX || w.pageXOffset,
6976 // use top prop, second argument if present or fallback to scrollY
6977 arguments[0].top !== undefined ? arguments[0].top : arguments[1] !== undefined ? arguments[1] : w.scrollY || w.pageYOffset);
6978 return;
6979 }
6980
6981 // LET THE SMOOTHNESS BEGIN!
6982 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);
6983 };
6984
6985 // w.scrollBy
6986 w.scrollBy = function () {
6987 // avoid action when no arguments are passed
6988 if (arguments[0] === undefined) {
6989 return;
6990 }
6991
6992 // avoid smooth behavior if not required
6993 if (shouldBailOut(arguments[0])) {
6994 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);
6995 return;
6996 }
6997
6998 // LET THE SMOOTHNESS BEGIN!
6999 smoothScroll.call(w, d.body, ~~arguments[0].left + (w.scrollX || w.pageXOffset), ~~arguments[0].top + (w.scrollY || w.pageYOffset));
7000 };
7001
7002 // Element.prototype.scroll and Element.prototype.scrollTo
7003 Element.prototype.scroll = Element.prototype.scrollTo = function () {
7004 // avoid action when no arguments are passed
7005 if (arguments[0] === undefined) {
7006 return;
7007 }
7008
7009 // avoid smooth behavior if not required
7010 if (shouldBailOut(arguments[0]) === true) {
7011 // if one number is passed, throw error to match Firefox implementation
7012 if (typeof arguments[0] === 'number' && arguments[1] === undefined) {
7013 throw new SyntaxError('Value could not be converted');
7014 }
7015 original.elementScroll.call(this,
7016 // use left prop, first number argument or fallback to scrollLeft
7017 arguments[0].left !== undefined ? ~~arguments[0].left : typeof arguments[0] !== 'object' ? ~~arguments[0] : this.scrollLeft,
7018 // use top prop, second argument or fallback to scrollTop
7019 arguments[0].top !== undefined ? ~~arguments[0].top : arguments[1] !== undefined ? ~~arguments[1] : this.scrollTop);
7020 return;
7021 }
7022 var left = arguments[0].left;
7023 var top = arguments[0].top;
7024
7025 // LET THE SMOOTHNESS BEGIN!
7026 smoothScroll.call(this, this, typeof left === 'undefined' ? this.scrollLeft : ~~left, typeof top === 'undefined' ? this.scrollTop : ~~top);
7027 };
7028
7029 // Element.prototype.scrollBy
7030 Element.prototype.scrollBy = function () {
7031 // avoid action when no arguments are passed
7032 if (arguments[0] === undefined) {
7033 return;
7034 }
7035
7036 // avoid smooth behavior if not required
7037 if (shouldBailOut(arguments[0]) === true) {
7038 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);
7039 return;
7040 }
7041 this.scroll({
7042 left: ~~arguments[0].left + this.scrollLeft,
7043 top: ~~arguments[0].top + this.scrollTop,
7044 behavior: arguments[0].behavior
7045 });
7046 };
7047
7048 // Element.prototype.scrollIntoView
7049 Element.prototype.scrollIntoView = function () {
7050 // avoid smooth behavior if not required
7051 if (shouldBailOut(arguments[0]) === true) {
7052 original.scrollIntoView.call(this, arguments[0] === undefined ? true : arguments[0]);
7053 return;
7054 }
7055
7056 // LET THE SMOOTHNESS BEGIN!
7057 var scrollableParent = findScrollableParent(this);
7058 var parentRects = scrollableParent.getBoundingClientRect();
7059 var clientRects = this.getBoundingClientRect();
7060 if (scrollableParent !== d.body) {
7061 // reveal element inside parent
7062 smoothScroll.call(this, scrollableParent, scrollableParent.scrollLeft + clientRects.left - parentRects.left, scrollableParent.scrollTop + clientRects.top - parentRects.top);
7063
7064 // reveal parent in viewport unless is fixed
7065 if (w.getComputedStyle(scrollableParent).position !== 'fixed') {
7066 w.scrollBy({
7067 left: parentRects.left,
7068 top: parentRects.top,
7069 behavior: 'smooth'
7070 });
7071 }
7072 } else {
7073 // reveal element in viewport
7074 w.scrollBy({
7075 left: clientRects.left,
7076 top: clientRects.top,
7077 behavior: 'smooth'
7078 });
7079 }
7080 };
7081 }
7082 {
7083 // commonjs
7084 module.exports = {
7085 polyfill: polyfill
7086 };
7087 }
7088 })();
7089 });
7090 smoothscroll.polyfill;
7091
7092 /*
7093 object-assign
7094 (c) Sindre Sorhus
7095 @license MIT
7096 */
7097 /* eslint-disable no-unused-vars */
7098 var getOwnPropertySymbols = Object.getOwnPropertySymbols;
7099 var hasOwnProperty = Object.prototype.hasOwnProperty;
7100 var propIsEnumerable = Object.prototype.propertyIsEnumerable;
7101 function toObject(val) {
7102 if (val === null || val === undefined) {
7103 throw new TypeError('Object.assign cannot be called with null or undefined');
7104 }
7105 return Object(val);
7106 }
7107 function shouldUseNative() {
7108 try {
7109 if (!Object.assign) {
7110 return false;
7111 }
7112
7113 // Detect buggy property enumeration order in older V8 versions.
7114
7115 // https://bugs.chromium.org/p/v8/issues/detail?id=4118
7116 var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
7117 test1[5] = 'de';
7118 if (Object.getOwnPropertyNames(test1)[0] === '5') {
7119 return false;
7120 }
7121
7122 // https://bugs.chromium.org/p/v8/issues/detail?id=3056
7123 var test2 = {};
7124 for (var i = 0; i < 10; i++) {
7125 test2['_' + String.fromCharCode(i)] = i;
7126 }
7127 var order2 = Object.getOwnPropertyNames(test2).map(function (n) {
7128 return test2[n];
7129 });
7130 if (order2.join('') !== '0123456789') {
7131 return false;
7132 }
7133
7134 // https://bugs.chromium.org/p/v8/issues/detail?id=3056
7135 var test3 = {};
7136 'abcdefghijklmnopqrst'.split('').forEach(function (letter) {
7137 test3[letter] = letter;
7138 });
7139 if (Object.keys(Object.assign({}, test3)).join('') !== 'abcdefghijklmnopqrst') {
7140 return false;
7141 }
7142 return true;
7143 } catch (err) {
7144 // We don't expect any of the above to throw, but better to be safe.
7145 return false;
7146 }
7147 }
7148 shouldUseNative() ? Object.assign : function (target, source) {
7149 var from;
7150 var to = toObject(target);
7151 var symbols;
7152 for (var s = 1; s < arguments.length; s++) {
7153 from = Object(arguments[s]);
7154 for (var key in from) {
7155 if (hasOwnProperty.call(from, key)) {
7156 to[key] = from[key];
7157 }
7158 }
7159 if (getOwnPropertySymbols) {
7160 symbols = getOwnPropertySymbols(from);
7161 for (var i = 0; i < symbols.length; i++) {
7162 if (propIsEnumerable.call(from, symbols[i])) {
7163 to[symbols[i]] = from[symbols[i]];
7164 }
7165 }
7166 }
7167 }
7168 return to;
7169 };
7170 var lethargy = createCommonjsModule(function (module, exports) {
7171 // Generated by CoffeeScript 1.9.2
7172 (function () {
7173 var root;
7174 root = exports !== null ? exports : this;
7175 root.Lethargy = function () {
7176 function Lethargy(stability, sensitivity, tolerance, delay) {
7177 this.stability = stability != null ? Math.abs(stability) : 8;
7178 this.sensitivity = sensitivity != null ? 1 + Math.abs(sensitivity) : 100;
7179 this.tolerance = tolerance != null ? 1 + Math.abs(tolerance) : 1.1;
7180 this.delay = delay != null ? delay : 150;
7181 this.lastUpDeltas = function () {
7182 var i, ref, results;
7183 results = [];
7184 for (i = 1, ref = this.stability * 2; 1 <= ref ? i <= ref : i >= ref; 1 <= ref ? i++ : i--) {
7185 results.push(null);
7186 }
7187 return results;
7188 }.call(this);
7189 this.lastDownDeltas = function () {
7190 var i, ref, results;
7191 results = [];
7192 for (i = 1, ref = this.stability * 2; 1 <= ref ? i <= ref : i >= ref; 1 <= ref ? i++ : i--) {
7193 results.push(null);
7194 }
7195 return results;
7196 }.call(this);
7197 this.deltasTimestamp = function () {
7198 var i, ref, results;
7199 results = [];
7200 for (i = 1, ref = this.stability * 2; 1 <= ref ? i <= ref : i >= ref; 1 <= ref ? i++ : i--) {
7201 results.push(null);
7202 }
7203 return results;
7204 }.call(this);
7205 }
7206 Lethargy.prototype.check = function (e) {
7207 var lastDelta;
7208 e = e.originalEvent || e;
7209 if (e.wheelDelta != null) {
7210 lastDelta = e.wheelDelta;
7211 } else if (e.deltaY != null) {
7212 lastDelta = e.deltaY * -40;
7213 } else if (e.detail != null || e.detail === 0) {
7214 lastDelta = e.detail * -40;
7215 }
7216 this.deltasTimestamp.push(Date.now());
7217 this.deltasTimestamp.shift();
7218 if (lastDelta > 0) {
7219 this.lastUpDeltas.push(lastDelta);
7220 this.lastUpDeltas.shift();
7221 return this.isInertia(1);
7222 } else {
7223 this.lastDownDeltas.push(lastDelta);
7224 this.lastDownDeltas.shift();
7225 return this.isInertia(-1);
7226 }
7227 };
7228 Lethargy.prototype.isInertia = function (direction) {
7229 var lastDeltas, lastDeltasNew, lastDeltasOld, newAverage, newSum, oldAverage, oldSum;
7230 lastDeltas = direction === -1 ? this.lastDownDeltas : this.lastUpDeltas;
7231 if (lastDeltas[0] === null) {
7232 return direction;
7233 }
7234 if (this.deltasTimestamp[this.stability * 2 - 2] + this.delay > Date.now() && lastDeltas[0] === lastDeltas[this.stability * 2 - 1]) {
7235 return false;
7236 }
7237 lastDeltasOld = lastDeltas.slice(0, this.stability);
7238 lastDeltasNew = lastDeltas.slice(this.stability, this.stability * 2);
7239 oldSum = lastDeltasOld.reduce(function (t, s) {
7240 return t + s;
7241 });
7242 newSum = lastDeltasNew.reduce(function (t, s) {
7243 return t + s;
7244 });
7245 oldAverage = oldSum / lastDeltasOld.length;
7246 newAverage = newSum / lastDeltasNew.length;
7247 if (Math.abs(oldAverage) < Math.abs(newAverage * this.tolerance) && this.sensitivity < Math.abs(newAverage)) {
7248 return direction;
7249 } else {
7250 return false;
7251 }
7252 };
7253 Lethargy.prototype.showLastUpDeltas = function () {
7254 return this.lastUpDeltas;
7255 };
7256 Lethargy.prototype.showLastDownDeltas = function () {
7257 return this.lastDownDeltas;
7258 };
7259 return Lethargy;
7260 }();
7261 }).call(commonjsGlobal);
7262 });
7263 (function getSupport() {
7264 return {
7265 hasWheelEvent: 'onwheel' in document,
7266 hasMouseWheelEvent: 'onmousewheel' in document,
7267 hasTouch: 'ontouchstart' in window || window.TouchEvent || window.DocumentTouch && document instanceof DocumentTouch,
7268 hasTouchWin: navigator.msMaxTouchPoints && navigator.msMaxTouchPoints > 1,
7269 hasPointer: !!window.navigator.msPointerEnabled,
7270 hasKeyDown: 'onkeydown' in document,
7271 isFirefox: navigator.userAgent.indexOf('Firefox') > -1
7272 };
7273 })();
7274 lethargy.Lethargy;
7275
7276 function _assertThisInitialized(self) { 6746 function _assertThisInitialized(self) {
7277 if (self === void 0) { 6747 if (self === void 0) {
7278 throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); 6748 throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
...@@ -15192,28 +14662,6 @@ ...@@ -15192,28 +14662,6 @@
15192 $('.the-numbers .wp-block-columns .wp-block-column:last-of-type').css('margin-right', "-" + $('#content').css('margin-right')); 14662 $('.the-numbers .wp-block-columns .wp-block-column:last-of-type').css('margin-right', "-" + $('#content').css('margin-right'));
15193 }); 14663 });
15194 gsapWithCSS.registerPlugin(ScrollTrigger); 14664 gsapWithCSS.registerPlugin(ScrollTrigger);
15195
15196 // Using Locomotive Scroll from Locomotive https://github.com/locomotivemtl/locomotive-scroll
15197
15198 // const locoScroll = new LocomotiveScroll({
15199 // el: document.querySelector("#js-scroll"),
15200 // smooth: true
15201 // });
15202
15203 // each time Locomotive Scroll updates, tell ScrollTrigger to update too (sync positioning)
15204 //locoScroll.on("scroll", ScrollTrigger.update);
15205
15206 // tell ScrollTrigger to use these proxy methods for the "#js-scroll" element since Locomotive Scroll is hijacking things
15207 // ScrollTrigger.scrollerProxy("#js-scroll", {
15208 // scrollTop(value) {
15209 // return arguments.length ? locoScroll.scrollTo(value, 0, 0) : locoScroll.scroll.instance.scroll.y;
15210 // }, // we don't have to define a scrollLeft because we're only scrolling vertically.
15211 // getBoundingClientRect() {
15212 // return {top: 0, left: 0, width: window.innerWidth, height: window.innerHeight};
15213 // },
15214 // // 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).
15215 // pinType: document.querySelector("#js-scroll").style.transform ? "transform" : "fixed"
15216 // });
15217 var tl = gsapWithCSS.timeline(); 14665 var tl = gsapWithCSS.timeline();
15218 tl.from("h1 span", { 14666 tl.from("h1 span", {
15219 duration: 0.75, 14667 duration: 0.75,
...@@ -15308,83 +14756,30 @@ ...@@ -15308,83 +14756,30 @@
15308 // stagger: 0.05 14756 // stagger: 0.05
15309 // }); 14757 // });
15310 }); 14758 });
15311 // each time the window updates, we should refresh ScrollTrigger and then update LocomotiveScroll.
15312 //ScrollTrigger.addEventListener("refresh", () => locoScroll.update());
15313
15314 // after everything is set up, refresh() ScrollTrigger and update LocomotiveScroll because padding may have been added for pinning, etc.
15315 //ScrollTrigger.refresh();
15316
15317 // // select video element
15318 // var vid = document.getElementById('v2');
15319 // //var vid = $('#v0')[0]; // jquery option
15320
15321 // // pause video on load
15322 // vid.pause();
15323 14759
15324 // // pause video on document scroll (stops autoplay once scroll started) 14760 ScrollTrigger.refresh();
15325 // window.onscroll = function(){
15326 14761
15327 // vid.pause(); 14762 // var frameNumber = 400, // start video at frame 0
15328 // }; 14763 // // lower numbers = faster playback
15329 14764 // playbackConst = 10,
15330 // // refresh video frames on interval for smoother playback 14765 // // get page height from video duration
15331 // setInterval(function(){ 14766 // setHeight = document.getElementById("body"),
15332 // vid.currentTime = window.pageYOffset/300;
15333 // }, 40);
15334
15335 // jQuery(document).ready(function($) {
15336 // // select video element 14767 // // select video element
15337 // var vid = document.getElementById('v0'); 14768 // vid = document.getElementById('v2');
15338 // var time = $('#time');
15339 // var scroll2 = $('#scroll');
15340 // var body = $('.video-cont');
15341 // var windowheight = $(window).height() - 20;
15342
15343 // var scrollpos = window.pageYOffset / 400;
15344 // var targetscrollpos = scrollpos;
15345 // var accel = 0;
15346
15347 // // ---- Values you can tweak: ----
15348 // var accelamount = 0.01; //How fast the video will try to catch up with the target position. 1 = instantaneous, 0 = do nothing.
15349 // 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
15350
15351 // // pause video on load
15352 // vid.pause();
15353
15354 // window.onscroll = function() {
15355 // //Set the video position that we want to end up at:
15356 // targetscrollpos = ($(document).scrollTop() - $(vid).offset().top) / $(vid).height();
15357 // targetscrollpos = targetscrollpos > 0 ? targetscrollpos < $(vid).height() ? targetscrollpos : $(vid).height() : 0;
15358
15359 // targetscrollpos *= 13500/ $(vid).height();
15360 // //move the red dot to a position across the side of the screen
15361 // //that indicates how far we've scrolled.
15362 // scroll2.css('top', 10 + (targetscrollpos * windowheight));
15363 // };
15364
15365 // setInterval(function() {
15366
15367 // //Accelerate towards the target:
15368 // accel += (targetscrollpos - scrollpos) * accelamount;
15369 14769
15370 // //clamp the acceleration so that it doesnt go too fast 14770 // // dynamically set the page height according to video length
15371 // if (accel > 1) accel = 1; 14771 // vid.addEventListener('loadedmetadata', function() {
15372 // if (accel < -1) accel = -1; 14772 // setHeight.style.height = Math.floor(vid.duration) * playbackConst + "px";
15373 14773 // });
15374 // //move the video scroll position according to the acceleration and how much bouncing you selected:
15375 // scrollpos = (scrollpos + accel) * (bounceamount) + (targetscrollpos * (1 - bounceamount));
15376
15377 // //move the blue dot to a position across the side of the screen
15378 // //that indicates where the current video scroll pos is.
15379 // time.css('top', 10 + (scrollpos / targetscrollpos * 400 * windowheight));
15380
15381 // //update video playback
15382 // vid.currentTime = scrollpos;
15383 // vid.pause();
15384 14774
15385 // }, 40); 14775 // // Use requestAnimationFrame for smooth playback
14776 // function scrollPlay(){
14777 // var frameNumber = window.pageYOffset/playbackConst;
14778 // vid.currentTime = frameNumber;
14779 // window.requestAnimationFrame(scrollPlay);
14780 // }
15386 14781
15387 // }); 14782 // window.requestAnimationFrame(scrollPlay);
15388 14783
15389 exports.Alert = alert; 14784 exports.Alert = alert;
15390 exports.Button = button; 14785 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.
1 import jQuery from 'jquery'; 1 import jQuery from 'jquery';
2 import LocomotiveScroll from 'locomotive-scroll';
3 import { gsap, Power2 } from "gsap"; 2 import { gsap, Power2 } from "gsap";
4 import ScrollTrigger from "gsap/ScrollTrigger"; 3 import ScrollTrigger from "gsap/ScrollTrigger";
5 import ScrollToPlugin from "gsap/ScrollToPlugin"; 4 import ScrollToPlugin from "gsap/ScrollToPlugin";
...@@ -29,27 +28,6 @@ jQuery(document).ready(function($) { ...@@ -29,27 +28,6 @@ jQuery(document).ready(function($) {
29 28
30 gsap.registerPlugin(ScrollTrigger); 29 gsap.registerPlugin(ScrollTrigger);
31 30
32 // Using Locomotive Scroll from Locomotive https://github.com/locomotivemtl/locomotive-scroll
33
34 // const locoScroll = new LocomotiveScroll({
35 // el: document.querySelector("#js-scroll"),
36 // smooth: true
37 // });
38
39 // each time Locomotive Scroll updates, tell ScrollTrigger to update too (sync positioning)
40 //locoScroll.on("scroll", ScrollTrigger.update);
41
42 // tell ScrollTrigger to use these proxy methods for the "#js-scroll" element since Locomotive Scroll is hijacking things
43 // ScrollTrigger.scrollerProxy("#js-scroll", {
44 // scrollTop(value) {
45 // return arguments.length ? locoScroll.scrollTo(value, 0, 0) : locoScroll.scroll.instance.scroll.y;
46 // }, // we don't have to define a scrollLeft because we're only scrolling vertically.
47 // getBoundingClientRect() {
48 // return {top: 0, left: 0, width: window.innerWidth, height: window.innerHeight};
49 // },
50 // // 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).
51 // pinType: document.querySelector("#js-scroll").style.transform ? "transform" : "fixed"
52 // });
53 var tl = gsap.timeline(); 31 var tl = gsap.timeline();
54 32
55 tl.from("h1 span", { 33 tl.from("h1 span", {
...@@ -155,88 +133,31 @@ function numberWithCommas(x) { ...@@ -155,88 +133,31 @@ function numberWithCommas(x) {
155 133
156 134
157 }); 135 });
158 // each time the window updates, we should refresh ScrollTrigger and then update LocomotiveScroll.
159 //ScrollTrigger.addEventListener("refresh", () => locoScroll.update());
160
161 // after everything is set up, refresh() ScrollTrigger and update LocomotiveScroll because padding may have been added for pinning, etc.
162 //ScrollTrigger.refresh();
163
164
165
166
167
168 // // select video element
169 // var vid = document.getElementById('v2');
170 // //var vid = $('#v0')[0]; // jquery option
171
172 // // pause video on load
173 // vid.pause();
174
175 // // pause video on document scroll (stops autoplay once scroll started)
176 // window.onscroll = function(){
177 136
178 // vid.pause(); 137 ScrollTrigger.refresh();
179 // };
180 138
181 // // refresh video frames on interval for smoother playback
182 // setInterval(function(){
183 // vid.currentTime = window.pageYOffset/300;
184 // }, 40);
185 139
186 140 // var frameNumber = 400, // start video at frame 0
187 141 // // lower numbers = faster playback
188 // jQuery(document).ready(function($) { 142 // playbackConst = 10,
143 // // get page height from video duration
144 // setHeight = document.getElementById("body"),
189 // // select video element 145 // // select video element
190 // var vid = document.getElementById('v0'); 146 // vid = document.getElementById('v2');
191 // var time = $('#time');
192 // var scroll2 = $('#scroll');
193 // var body = $('.video-cont');
194 // var windowheight = $(window).height() - 20;
195
196 // var scrollpos = window.pageYOffset / 400;
197 // var targetscrollpos = scrollpos;
198 // var accel = 0;
199
200 // // ---- Values you can tweak: ----
201 // var accelamount = 0.01; //How fast the video will try to catch up with the target position. 1 = instantaneous, 0 = do nothing.
202 // 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
203
204 // // pause video on load
205 // vid.pause();
206
207 // window.onscroll = function() {
208 // //Set the video position that we want to end up at:
209 // targetscrollpos = ($(document).scrollTop() - $(vid).offset().top) / $(vid).height();
210 // targetscrollpos = targetscrollpos > 0 ? targetscrollpos < $(vid).height() ? targetscrollpos : $(vid).height() : 0;
211
212 // targetscrollpos *= 13500/ $(vid).height();
213 // //move the red dot to a position across the side of the screen
214 // //that indicates how far we've scrolled.
215 // scroll2.css('top', 10 + (targetscrollpos * windowheight));
216 // };
217 147
218 // setInterval(function() { 148 // // dynamically set the page height according to video length
219 149 // vid.addEventListener('loadedmetadata', function() {
220 // //Accelerate towards the target: 150 // setHeight.style.height = Math.floor(vid.duration) * playbackConst + "px";
221 // accel += (targetscrollpos - scrollpos) * accelamount; 151 // });
222
223 // //clamp the acceleration so that it doesnt go too fast
224 // if (accel > 1) accel = 1;
225 // if (accel < -1) accel = -1;
226
227 // //move the video scroll position according to the acceleration and how much bouncing you selected:
228 // scrollpos = (scrollpos + accel) * (bounceamount) + (targetscrollpos * (1 - bounceamount));
229
230 // //move the blue dot to a position across the side of the screen
231 // //that indicates where the current video scroll pos is.
232 // time.css('top', 10 + (scrollpos / targetscrollpos * 400 * windowheight));
233 152
234 // //update video playback 153 // // Use requestAnimationFrame for smooth playback
235 // vid.currentTime = scrollpos; 154 // function scrollPlay(){
236 // vid.pause(); 155 // var frameNumber = window.pageYOffset/playbackConst;
156 // vid.currentTime = frameNumber;
157 // window.requestAnimationFrame(scrollPlay);
158 // }
237 159
238 // }, 40); 160 // window.requestAnimationFrame(scrollPlay);
239 161
240 162
241 163
242 // });
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -222,7 +222,7 @@ ...@@ -222,7 +222,7 @@
222 222
223 .by-the-numbers{ 223 .by-the-numbers{
224 margin-top: -60px; 224 margin-top: -60px;
225 z-index: 999999; 225 z-index: 99;
226 position: relative; 226 position: relative;
227 margin-bottom: 24px; 227 margin-bottom: 24px;
228 h2{ 228 h2{
......