@caweb/html-webpack-plugin 1.5.20 → 1.5.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/build/delta-rtl.css +0 -1
- package/build/delta-rtl.min.css +1 -1
- package/build/delta.asset.php +1 -1
- package/build/delta.css +0 -1
- package/build/delta.css.map +1 -1
- package/build/delta.js +33 -8
- package/build/delta.js.map +1 -1
- package/build/delta.min.asset.php +1 -1
- package/build/delta.min.css +1 -1
- package/build/delta.min.js +1 -1
- package/build/eureka-rtl.css +0 -1
- package/build/eureka-rtl.min.css +1 -1
- package/build/eureka.asset.php +1 -1
- package/build/eureka.css +0 -1
- package/build/eureka.css.map +1 -1
- package/build/eureka.js +33 -8
- package/build/eureka.js.map +1 -1
- package/build/eureka.min.asset.php +1 -1
- package/build/eureka.min.css +1 -1
- package/build/eureka.min.js +1 -1
- package/build/mono-rtl.css +0 -1
- package/build/mono-rtl.min.css +1 -1
- package/build/mono.asset.php +1 -1
- package/build/mono.css +0 -1
- package/build/mono.css.map +1 -1
- package/build/mono.js +33 -8
- package/build/mono.js.map +1 -1
- package/build/mono.min.asset.php +1 -1
- package/build/mono.min.css +1 -1
- package/build/mono.min.js +1 -1
- package/build/oceanside-rtl.css +0 -1
- package/build/oceanside-rtl.min.css +1 -1
- package/build/oceanside.asset.php +1 -1
- package/build/oceanside.css +0 -1
- package/build/oceanside.css.map +1 -1
- package/build/oceanside.js +33 -8
- package/build/oceanside.js.map +1 -1
- package/build/oceanside.min.asset.php +1 -1
- package/build/oceanside.min.css +1 -1
- package/build/oceanside.min.js +1 -1
- package/build/orangecounty-rtl.css +0 -1
- package/build/orangecounty-rtl.min.css +1 -1
- package/build/orangecounty.asset.php +1 -1
- package/build/orangecounty.css +0 -1
- package/build/orangecounty.css.map +1 -1
- package/build/orangecounty.js +33 -8
- package/build/orangecounty.js.map +1 -1
- package/build/orangecounty.min.asset.php +1 -1
- package/build/orangecounty.min.css +1 -1
- package/build/orangecounty.min.js +1 -1
- package/build/pasorobles-rtl.css +0 -1
- package/build/pasorobles-rtl.min.css +1 -1
- package/build/pasorobles.asset.php +1 -1
- package/build/pasorobles.css +0 -1
- package/build/pasorobles.css.map +1 -1
- package/build/pasorobles.js +33 -8
- package/build/pasorobles.js.map +1 -1
- package/build/pasorobles.min.asset.php +1 -1
- package/build/pasorobles.min.css +1 -1
- package/build/pasorobles.min.js +1 -1
- package/build/sacramento-rtl.css +0 -1
- package/build/sacramento-rtl.min.css +1 -1
- package/build/sacramento.asset.php +1 -1
- package/build/sacramento.css +0 -1
- package/build/sacramento.css.map +1 -1
- package/build/sacramento.js +33 -8
- package/build/sacramento.js.map +1 -1
- package/build/sacramento.min.asset.php +1 -1
- package/build/sacramento.min.css +1 -1
- package/build/sacramento.min.js +1 -1
- package/build/santabarbara-rtl.css +0 -1
- package/build/santabarbara-rtl.min.css +1 -1
- package/build/santabarbara.asset.php +1 -1
- package/build/santabarbara.css +0 -1
- package/build/santabarbara.css.map +1 -1
- package/build/santabarbara.js +33 -8
- package/build/santabarbara.js.map +1 -1
- package/build/santabarbara.min.asset.php +1 -1
- package/build/santabarbara.min.css +1 -1
- package/build/santabarbara.min.js +1 -1
- package/build/santacruz-rtl.css +0 -1
- package/build/santacruz-rtl.min.css +1 -1
- package/build/santacruz.asset.php +1 -1
- package/build/santacruz.css +0 -1
- package/build/santacruz.css.map +1 -1
- package/build/santacruz.js +33 -8
- package/build/santacruz.js.map +1 -1
- package/build/santacruz.min.asset.php +1 -1
- package/build/santacruz.min.css +1 -1
- package/build/santacruz.min.js +1 -1
- package/build/shasta-rtl.css +0 -1
- package/build/shasta-rtl.min.css +1 -1
- package/build/shasta.asset.php +1 -1
- package/build/shasta.css +0 -1
- package/build/shasta.css.map +1 -1
- package/build/shasta.js +33 -8
- package/build/shasta.js.map +1 -1
- package/build/shasta.min.asset.php +1 -1
- package/build/shasta.min.css +1 -1
- package/build/shasta.min.js +1 -1
- package/build/sierra-rtl.css +0 -1
- package/build/sierra-rtl.min.css +1 -1
- package/build/sierra.asset.php +1 -1
- package/build/sierra.css +0 -1
- package/build/sierra.css.map +1 -1
- package/build/sierra.js +33 -8
- package/build/sierra.js.map +1 -1
- package/build/sierra.min.asset.php +1 -1
- package/build/sierra.min.css +1 -1
- package/build/sierra.min.js +1 -1
- package/build/trinity-rtl.css +0 -1
- package/build/trinity-rtl.min.css +1 -1
- package/build/trinity.asset.php +1 -1
- package/build/trinity.css +0 -1
- package/build/trinity.css.map +1 -1
- package/build/trinity.js +33 -8
- package/build/trinity.js.map +1 -1
- package/build/trinity.min.asset.php +1 -1
- package/build/trinity.min.css +1 -1
- package/build/trinity.min.js +1 -1
- package/helpers/logic/endsWith.js +1 -1
- package/index.js +4 -2
- package/package.json +2 -7
package/build/orangecounty.js
CHANGED
|
@@ -6365,22 +6365,47 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6365
6365
|
//@ts-check
|
|
6366
6366
|
window.addEventListener('load', () => {
|
|
6367
6367
|
const header = document.querySelector('header');
|
|
6368
|
+
const pageContainer = document.querySelector('#page-container');
|
|
6368
6369
|
const alerts = document.querySelector('.alerts');
|
|
6369
6370
|
const utilityHeader = document.querySelector('.utility-header');
|
|
6370
|
-
|
|
6371
|
+
const resetPosition = () => {
|
|
6371
6372
|
if (!header) {
|
|
6372
6373
|
return;
|
|
6373
6374
|
}
|
|
6375
|
+
let scrollHeights = 0;
|
|
6376
|
+
|
|
6377
|
+
// lets collect the scroll height of any elements above the header.
|
|
6378
|
+
let current = header.previousElementSibling;
|
|
6379
|
+
let miscElementHeights = 0;
|
|
6380
|
+
while (current) {
|
|
6381
|
+
miscElementHeights += current.clientHeight;
|
|
6382
|
+
current = current.previousElementSibling;
|
|
6383
|
+
}
|
|
6384
|
+
|
|
6374
6385
|
// downscroll code passed the header height
|
|
6375
6386
|
if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {
|
|
6376
6387
|
var _alerts$scrollHeight, _utilityHeader$scroll;
|
|
6377
|
-
//
|
|
6378
|
-
|
|
6379
|
-
|
|
6388
|
+
// lets add the scroll heights of any alerts
|
|
6389
|
+
scrollHeights += (_alerts$scrollHeight = alerts?.scrollHeight) !== null && _alerts$scrollHeight !== void 0 ? _alerts$scrollHeight : 0;
|
|
6390
|
+
|
|
6391
|
+
// lets add the scroll heights of the utility header
|
|
6392
|
+
scrollHeights += (_utilityHeader$scroll = utilityHeader?.scrollHeight) !== null && _utilityHeader$scroll !== void 0 ? _utilityHeader$scroll : 0;
|
|
6393
|
+
|
|
6394
|
+
// move the header up to the scroll height, minus any elements above the header
|
|
6395
|
+
header.style.top = `-${scrollHeights - miscElementHeights}px`;
|
|
6380
6396
|
} else {
|
|
6381
|
-
header.style.top =
|
|
6397
|
+
header.style.top = `${miscElementHeights}px`; // reset header top position
|
|
6382
6398
|
}
|
|
6383
|
-
|
|
6399
|
+
|
|
6400
|
+
// we add the misc element heights to the page container as margin-top
|
|
6401
|
+
pageContainer?.setAttribute('style', `margin-top: ${miscElementHeights}px;`);
|
|
6402
|
+
};
|
|
6403
|
+
|
|
6404
|
+
// reset position on scroll
|
|
6405
|
+
window.addEventListener('scroll', resetPosition);
|
|
6406
|
+
|
|
6407
|
+
// reset position on load
|
|
6408
|
+
resetPosition();
|
|
6384
6409
|
});
|
|
6385
6410
|
|
|
6386
6411
|
/***/ }),
|
|
@@ -6657,8 +6682,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6657
6682
|
/* harmony import */ var _components_mobile_controls_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./components/mobile-controls.js */ "./src/scripts/components/mobile-controls.js");
|
|
6658
6683
|
/* harmony import */ var _components_return_top_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/return-top.js */ "./src/scripts/components/return-top.js");
|
|
6659
6684
|
/* harmony import */ var _components_external_link_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/external-link.js */ "./src/scripts/components/external-link.js");
|
|
6660
|
-
/* harmony import */ var
|
|
6661
|
-
/* harmony import */ var
|
|
6685
|
+
/* harmony import */ var _components_header_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/header.js */ "./src/scripts/components/header.js");
|
|
6686
|
+
/* harmony import */ var _components_scroll_margin_top_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./components/scroll-margin-top.js */ "./src/scripts/components/scroll-margin-top.js");
|
|
6662
6687
|
|
|
6663
6688
|
|
|
6664
6689
|
|