@caweb/html-webpack-plugin 1.5.24 → 1.5.26
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 +1 -0
- package/build/delta-rtl.min.css +1 -1
- package/build/delta.asset.php +1 -1
- package/build/delta.css +1 -0
- package/build/delta.css.map +1 -1
- package/build/delta.js +21 -46
- 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 +1 -0
- package/build/eureka-rtl.min.css +1 -1
- package/build/eureka.asset.php +1 -1
- package/build/eureka.css +1 -0
- package/build/eureka.css.map +1 -1
- package/build/eureka.js +21 -46
- 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 +1 -0
- package/build/mono-rtl.min.css +1 -1
- package/build/mono.asset.php +1 -1
- package/build/mono.css +1 -0
- package/build/mono.css.map +1 -1
- package/build/mono.js +21 -46
- 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 +1 -0
- package/build/oceanside-rtl.min.css +1 -1
- package/build/oceanside.asset.php +1 -1
- package/build/oceanside.css +1 -0
- package/build/oceanside.css.map +1 -1
- package/build/oceanside.js +21 -46
- 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 +1 -0
- package/build/orangecounty-rtl.min.css +1 -1
- package/build/orangecounty.asset.php +1 -1
- package/build/orangecounty.css +1 -0
- package/build/orangecounty.css.map +1 -1
- package/build/orangecounty.js +21 -46
- 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 +1 -0
- package/build/pasorobles-rtl.min.css +1 -1
- package/build/pasorobles.asset.php +1 -1
- package/build/pasorobles.css +1 -0
- package/build/pasorobles.css.map +1 -1
- package/build/pasorobles.js +21 -46
- 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 +1 -0
- package/build/sacramento-rtl.min.css +1 -1
- package/build/sacramento.asset.php +1 -1
- package/build/sacramento.css +1 -0
- package/build/sacramento.css.map +1 -1
- package/build/sacramento.js +21 -46
- 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 +1 -0
- package/build/santabarbara-rtl.min.css +1 -1
- package/build/santabarbara.asset.php +1 -1
- package/build/santabarbara.css +1 -0
- package/build/santabarbara.css.map +1 -1
- package/build/santabarbara.js +21 -46
- 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 +1 -0
- package/build/santacruz-rtl.min.css +1 -1
- package/build/santacruz.asset.php +1 -1
- package/build/santacruz.css +1 -0
- package/build/santacruz.css.map +1 -1
- package/build/santacruz.js +21 -46
- 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 +1 -0
- package/build/shasta-rtl.min.css +1 -1
- package/build/shasta.asset.php +1 -1
- package/build/shasta.css +1 -0
- package/build/shasta.css.map +1 -1
- package/build/shasta.js +21 -46
- 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 +1 -0
- package/build/sierra-rtl.min.css +1 -1
- package/build/sierra.asset.php +1 -1
- package/build/sierra.css +1 -0
- package/build/sierra.css.map +1 -1
- package/build/sierra.js +21 -46
- 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 +1 -0
- package/build/trinity-rtl.min.css +1 -1
- package/build/trinity.asset.php +1 -1
- package/build/trinity.css +1 -0
- package/build/trinity.css.map +1 -1
- package/build/trinity.js +21 -46
- 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 +1 -1
package/build/sacramento.js
CHANGED
|
@@ -6335,7 +6335,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6335
6335
|
//@ts-check
|
|
6336
6336
|
|
|
6337
6337
|
/* EXTERNAL LINK ICON */
|
|
6338
|
-
window.addEventListener('
|
|
6338
|
+
window.addEventListener('DOMContentLoaded', () => {
|
|
6339
6339
|
const ext = '<span class="ca-gov-icon-external-link" aria-hidden="true"></span><span class="sr-only">opens in a new window</span>';
|
|
6340
6340
|
|
|
6341
6341
|
// Add any exceptions to not render here
|
|
@@ -6363,12 +6363,13 @@ window.addEventListener('load', () => {
|
|
|
6363
6363
|
"use strict";
|
|
6364
6364
|
__webpack_require__.r(__webpack_exports__);
|
|
6365
6365
|
//@ts-check
|
|
6366
|
-
window.addEventListener('
|
|
6366
|
+
window.addEventListener('DOMContentLoaded', () => {
|
|
6367
|
+
let location_hash = window.location.hash.replace(/(\|)/g, "\\$1");
|
|
6367
6368
|
const header = document.querySelector('header');
|
|
6368
6369
|
const pageContainer = document.querySelector('#page-container');
|
|
6369
6370
|
const alerts = document.querySelector('.alerts');
|
|
6370
6371
|
const utilityHeader = document.querySelector('.utility-header');
|
|
6371
|
-
const
|
|
6372
|
+
const compactHeader = () => {
|
|
6372
6373
|
if (!header) {
|
|
6373
6374
|
return;
|
|
6374
6375
|
}
|
|
@@ -6399,19 +6400,28 @@ window.addEventListener('load', () => {
|
|
|
6399
6400
|
|
|
6400
6401
|
// move the header up to the scroll height, minus any elements above the header
|
|
6401
6402
|
header.style.top = `-${scrollHeights - miscElementHeights}px`;
|
|
6403
|
+
|
|
6404
|
+
// we add the header height + misc element heights to the page container as margin-top, minus the scroll heights since those get hidden
|
|
6405
|
+
pageContainer?.setAttribute('style', `margin-top: ${header.offsetHeight + miscElementHeights - scrollHeights}px;`);
|
|
6402
6406
|
} else {
|
|
6403
6407
|
header.style.top = `${miscElementHeights}px`; // reset header top position
|
|
6404
|
-
}
|
|
6405
6408
|
|
|
6406
|
-
|
|
6407
|
-
|
|
6409
|
+
pageContainer?.setAttribute('style', `margin-top: ${miscElementHeights}px;`);
|
|
6410
|
+
}
|
|
6408
6411
|
};
|
|
6409
6412
|
|
|
6410
6413
|
// reset position on scroll
|
|
6411
|
-
window.addEventListener('scroll',
|
|
6414
|
+
window.addEventListener('scroll', compactHeader);
|
|
6412
6415
|
|
|
6413
|
-
//
|
|
6414
|
-
|
|
6416
|
+
// scroll to target
|
|
6417
|
+
if (location_hash) {
|
|
6418
|
+
let target = document.querySelector(location_hash);
|
|
6419
|
+
setTimeout(() => {
|
|
6420
|
+
target?.scrollIntoView({
|
|
6421
|
+
behavior: 'smooth'
|
|
6422
|
+
});
|
|
6423
|
+
}, 1000);
|
|
6424
|
+
}
|
|
6415
6425
|
});
|
|
6416
6426
|
|
|
6417
6427
|
/***/ }),
|
|
@@ -6424,7 +6434,7 @@ window.addEventListener('load', () => {
|
|
|
6424
6434
|
|
|
6425
6435
|
"use strict";
|
|
6426
6436
|
__webpack_require__.r(__webpack_exports__);
|
|
6427
|
-
window.addEventListener('
|
|
6437
|
+
window.addEventListener('DOMContentLoaded', () => {
|
|
6428
6438
|
const isDesktopWidth = () => window.innerWidth > 992; //Maximum px for mobile width
|
|
6429
6439
|
|
|
6430
6440
|
const mainHeader = document.querySelector('header');
|
|
@@ -6534,7 +6544,7 @@ window.addEventListener('load', () => {
|
|
|
6534
6544
|
"use strict";
|
|
6535
6545
|
__webpack_require__.r(__webpack_exports__);
|
|
6536
6546
|
//@ts-check
|
|
6537
|
-
window.addEventListener('
|
|
6547
|
+
window.addEventListener('DOMContentLoaded', () => {
|
|
6538
6548
|
document.querySelectorAll('.return-top').forEach(returnTop => returnTop.addEventListener('click', () => {
|
|
6539
6549
|
document.body.scrollTop = 0; // For Safari
|
|
6540
6550
|
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera
|
|
@@ -6582,39 +6592,6 @@ window.addEventListener('load', () => {
|
|
|
6582
6592
|
});
|
|
6583
6593
|
});
|
|
6584
6594
|
|
|
6585
|
-
/***/ }),
|
|
6586
|
-
|
|
6587
|
-
/***/ "./src/scripts/components/scroll-margin-top.js":
|
|
6588
|
-
/*!*****************************************************!*\
|
|
6589
|
-
!*** ./src/scripts/components/scroll-margin-top.js ***!
|
|
6590
|
-
\*****************************************************/
|
|
6591
|
-
/***/ ((__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) => {
|
|
6592
|
-
|
|
6593
|
-
"use strict";
|
|
6594
|
-
__webpack_require__.r(__webpack_exports__);
|
|
6595
|
-
/**
|
|
6596
|
-
* This script is used to add the scroll-margin-top to each element with an id
|
|
6597
|
-
* This is used to ensure that the element is not hidden behind the header
|
|
6598
|
-
*/
|
|
6599
|
-
window.addEventListener('load', () => {
|
|
6600
|
-
let mainHeader = document.querySelector('header');
|
|
6601
|
-
if (!mainHeader) {
|
|
6602
|
-
return;
|
|
6603
|
-
}
|
|
6604
|
-
|
|
6605
|
-
// Function to update the scroll-margin-top for each element with an id
|
|
6606
|
-
const updateScrollMarginTop = () => {
|
|
6607
|
-
// for each element with an id we add the scroll-margin-top
|
|
6608
|
-
document.querySelectorAll('#page-container [id]').forEach(element => element.style.scrollMarginTop = `${mainHeader.offsetHeight}px`);
|
|
6609
|
-
};
|
|
6610
|
-
|
|
6611
|
-
// on resize function (recalculate margin-top)
|
|
6612
|
-
window.addEventListener('resize', updateScrollMarginTop);
|
|
6613
|
-
|
|
6614
|
-
// on load function (recalculate margin-top)
|
|
6615
|
-
updateScrollMarginTop();
|
|
6616
|
-
});
|
|
6617
|
-
|
|
6618
6595
|
/***/ })
|
|
6619
6596
|
|
|
6620
6597
|
/******/ });
|
|
@@ -6693,8 +6670,6 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6693
6670
|
/* harmony import */ var _components_return_top_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./components/return-top.js */ "./src/scripts/components/return-top.js");
|
|
6694
6671
|
/* harmony import */ var _components_external_link_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./components/external-link.js */ "./src/scripts/components/external-link.js");
|
|
6695
6672
|
/* harmony import */ var _components_header_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./components/header.js */ "./src/scripts/components/header.js");
|
|
6696
|
-
/* 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");
|
|
6697
|
-
|
|
6698
6673
|
|
|
6699
6674
|
|
|
6700
6675
|
|