@caweb/html-webpack-plugin 1.5.25 → 1.5.27
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/build/delta-rtl.css +5 -5
- package/build/delta-rtl.min.css +1 -1
- package/build/delta.asset.php +1 -1
- package/build/delta.css +4 -4
- package/build/delta.css.map +1 -1
- package/build/delta.js +16 -21
- 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 +5 -5
- package/build/eureka-rtl.min.css +1 -1
- package/build/eureka.asset.php +1 -1
- package/build/eureka.css +4 -4
- package/build/eureka.css.map +1 -1
- package/build/eureka.js +16 -21
- 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 +5 -5
- package/build/mono-rtl.min.css +1 -1
- package/build/mono.asset.php +1 -1
- package/build/mono.css +4 -4
- package/build/mono.css.map +1 -1
- package/build/mono.js +16 -21
- 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 +5 -5
- package/build/oceanside-rtl.min.css +1 -1
- package/build/oceanside.asset.php +1 -1
- package/build/oceanside.css +4 -4
- package/build/oceanside.css.map +1 -1
- package/build/oceanside.js +16 -21
- 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 +5 -5
- package/build/orangecounty-rtl.min.css +1 -1
- package/build/orangecounty.asset.php +1 -1
- package/build/orangecounty.css +4 -4
- package/build/orangecounty.css.map +1 -1
- package/build/orangecounty.js +16 -21
- 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 +5 -5
- package/build/pasorobles-rtl.min.css +1 -1
- package/build/pasorobles.asset.php +1 -1
- package/build/pasorobles.css +4 -4
- package/build/pasorobles.css.map +1 -1
- package/build/pasorobles.js +16 -21
- 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 +5 -5
- package/build/sacramento-rtl.min.css +1 -1
- package/build/sacramento.asset.php +1 -1
- package/build/sacramento.css +4 -4
- package/build/sacramento.css.map +1 -1
- package/build/sacramento.js +16 -21
- 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 +5 -5
- package/build/santabarbara-rtl.min.css +1 -1
- package/build/santabarbara.asset.php +1 -1
- package/build/santabarbara.css +4 -4
- package/build/santabarbara.css.map +1 -1
- package/build/santabarbara.js +16 -21
- 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 +5 -5
- package/build/santacruz-rtl.min.css +1 -1
- package/build/santacruz.asset.php +1 -1
- package/build/santacruz.css +4 -4
- package/build/santacruz.css.map +1 -1
- package/build/santacruz.js +16 -21
- 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 +5 -5
- package/build/shasta-rtl.min.css +1 -1
- package/build/shasta.asset.php +1 -1
- package/build/shasta.css +4 -4
- package/build/shasta.css.map +1 -1
- package/build/shasta.js +16 -21
- 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 +5 -5
- package/build/sierra-rtl.min.css +1 -1
- package/build/sierra.asset.php +1 -1
- package/build/sierra.css +4 -4
- package/build/sierra.css.map +1 -1
- package/build/sierra.js +16 -21
- 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 +5 -5
- package/build/trinity-rtl.min.css +1 -1
- package/build/trinity.asset.php +1 -1
- package/build/trinity.css +4 -4
- package/build/trinity.css.map +1 -1
- package/build/trinity.js +16 -21
- 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/package.json +2 -2
package/build/sacramento.js
CHANGED
|
@@ -6364,19 +6364,17 @@ window.addEventListener('DOMContentLoaded', () => {
|
|
|
6364
6364
|
__webpack_require__.r(__webpack_exports__);
|
|
6365
6365
|
//@ts-check
|
|
6366
6366
|
window.addEventListener('DOMContentLoaded', () => {
|
|
6367
|
-
let location_hash = window.location.hash.replace(/(\|)/g, "\\$1");
|
|
6368
|
-
let target = document.querySelector(location_hash);
|
|
6369
6367
|
const header = document.querySelector('header');
|
|
6370
6368
|
const pageContainer = document.querySelector('#page-container');
|
|
6371
6369
|
const alerts = document.querySelector('.alerts');
|
|
6372
6370
|
const utilityHeader = document.querySelector('.utility-header');
|
|
6371
|
+
if (!header) {
|
|
6372
|
+
return;
|
|
6373
|
+
}
|
|
6373
6374
|
const compactHeader = () => {
|
|
6374
|
-
if (!header) {
|
|
6375
|
-
return;
|
|
6376
|
-
}
|
|
6377
6375
|
let scrollHeights = 0;
|
|
6378
6376
|
|
|
6379
|
-
// lets collect the
|
|
6377
|
+
// lets collect the height of any elements above the header.
|
|
6380
6378
|
let current = header.previousElementSibling;
|
|
6381
6379
|
let miscElementHeights = 0;
|
|
6382
6380
|
while (current) {
|
|
@@ -6391,37 +6389,34 @@ window.addEventListener('DOMContentLoaded', () => {
|
|
|
6391
6389
|
if (document.body.scrollTop >= header.offsetHeight || document.documentElement.scrollTop >= header.offsetHeight) {
|
|
6392
6390
|
// lets add the scroll heights of any alerts
|
|
6393
6391
|
if (alerts) {
|
|
6394
|
-
scrollHeights += alerts.
|
|
6392
|
+
scrollHeights += alerts.clientHeight;
|
|
6395
6393
|
}
|
|
6396
6394
|
|
|
6397
6395
|
// lets add the scroll heights of the utility header
|
|
6398
6396
|
if (utilityHeader) {
|
|
6399
|
-
scrollHeights += utilityHeader.
|
|
6397
|
+
scrollHeights += utilityHeader.clientHeight;
|
|
6400
6398
|
}
|
|
6401
6399
|
|
|
6402
6400
|
// move the header up to the scroll height, minus any elements above the header
|
|
6403
6401
|
header.style.top = `-${scrollHeights - miscElementHeights}px`;
|
|
6404
6402
|
|
|
6405
6403
|
// we add the header height + misc element heights to the page container as margin-top, minus the scroll heights since those get hidden
|
|
6406
|
-
pageContainer?.setAttribute('style', `margin-top: ${header.
|
|
6404
|
+
pageContainer?.setAttribute('style', `margin-top: ${header.clientHeight + miscElementHeights - scrollHeights}px;`);
|
|
6407
6405
|
} else {
|
|
6408
|
-
|
|
6409
|
-
|
|
6410
|
-
pageContainer?.setAttribute('style', `margin-top: ${miscElementHeights}px;`);
|
|
6406
|
+
// reset header to initial position
|
|
6407
|
+
header.style.top = `${miscElementHeights}px`;
|
|
6408
|
+
pageContainer?.setAttribute('style', `margin-top: ${header.clientHeight + miscElementHeights}px;`);
|
|
6411
6409
|
}
|
|
6410
|
+
|
|
6411
|
+
// for each element with an id we add the scroll-margin-top
|
|
6412
|
+
document.querySelectorAll('#page-container [id]').forEach(element => {
|
|
6413
|
+
element?.setAttribute('style', `scroll-margin-top: ${header.clientHeight + miscElementHeights - scrollHeights}px;`);
|
|
6414
|
+
});
|
|
6412
6415
|
};
|
|
6413
6416
|
|
|
6414
6417
|
// reset position on scroll
|
|
6415
6418
|
window.addEventListener('scroll', compactHeader);
|
|
6416
|
-
|
|
6417
|
-
// scroll to target
|
|
6418
|
-
if (target) {
|
|
6419
|
-
setTimeout(() => {
|
|
6420
|
-
target.scrollIntoView({
|
|
6421
|
-
behavior: 'smooth'
|
|
6422
|
-
});
|
|
6423
|
-
}, 1000);
|
|
6424
|
-
}
|
|
6419
|
+
compactHeader();
|
|
6425
6420
|
});
|
|
6426
6421
|
|
|
6427
6422
|
/***/ }),
|