@caweb/html-webpack-plugin 1.5.22 → 1.5.23
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.asset.php +1 -1
- package/build/delta.js +16 -9
- package/build/delta.js.map +1 -1
- package/build/delta.min.asset.php +1 -1
- package/build/delta.min.js +1 -1
- package/build/eureka.asset.php +1 -1
- package/build/eureka.js +16 -9
- package/build/eureka.js.map +1 -1
- package/build/eureka.min.asset.php +1 -1
- package/build/eureka.min.js +1 -1
- package/build/mono.asset.php +1 -1
- package/build/mono.js +16 -9
- package/build/mono.js.map +1 -1
- package/build/mono.min.asset.php +1 -1
- package/build/mono.min.js +1 -1
- package/build/oceanside.asset.php +1 -1
- package/build/oceanside.js +16 -9
- package/build/oceanside.js.map +1 -1
- package/build/oceanside.min.asset.php +1 -1
- package/build/oceanside.min.js +1 -1
- package/build/orangecounty.asset.php +1 -1
- package/build/orangecounty.js +16 -9
- package/build/orangecounty.js.map +1 -1
- package/build/orangecounty.min.asset.php +1 -1
- package/build/orangecounty.min.js +1 -1
- package/build/pasorobles.asset.php +1 -1
- package/build/pasorobles.js +16 -9
- package/build/pasorobles.js.map +1 -1
- package/build/pasorobles.min.asset.php +1 -1
- package/build/pasorobles.min.js +1 -1
- package/build/sacramento.asset.php +1 -1
- package/build/sacramento.js +16 -9
- package/build/sacramento.js.map +1 -1
- package/build/sacramento.min.asset.php +1 -1
- package/build/sacramento.min.js +1 -1
- package/build/santabarbara.asset.php +1 -1
- package/build/santabarbara.js +16 -9
- package/build/santabarbara.js.map +1 -1
- package/build/santabarbara.min.asset.php +1 -1
- package/build/santabarbara.min.js +1 -1
- package/build/santacruz.asset.php +1 -1
- package/build/santacruz.js +16 -9
- package/build/santacruz.js.map +1 -1
- package/build/santacruz.min.asset.php +1 -1
- package/build/santacruz.min.js +1 -1
- package/build/shasta.asset.php +1 -1
- package/build/shasta.js +16 -9
- package/build/shasta.js.map +1 -1
- package/build/shasta.min.asset.php +1 -1
- package/build/shasta.min.js +1 -1
- package/build/sierra.asset.php +1 -1
- package/build/sierra.js +16 -9
- package/build/sierra.js.map +1 -1
- package/build/sierra.min.asset.php +1 -1
- package/build/sierra.min.js +1 -1
- package/build/trinity.asset.php +1 -1
- package/build/trinity.js +16 -9
- package/build/trinity.js.map +1 -1
- package/build/trinity.min.asset.php +1 -1
- package/build/trinity.min.js +1 -1
- package/package.json +5 -5
- package/sample/default.html +1 -0
package/build/delta.asset.php
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<?php return array('dependencies' => array(), 'version' => '
|
|
1
|
+
<?php return array('dependencies' => array(), 'version' => '817c0e0bbe5b801aa4bf');
|
package/build/delta.js
CHANGED
|
@@ -6378,7 +6378,10 @@ window.addEventListener('load', () => {
|
|
|
6378
6378
|
let current = header.previousElementSibling;
|
|
6379
6379
|
let miscElementHeights = 0;
|
|
6380
6380
|
while (current) {
|
|
6381
|
-
|
|
6381
|
+
// if current is a div, add its height to the miscElementHeights.
|
|
6382
|
+
if ('DIV' === current.tagName) {
|
|
6383
|
+
miscElementHeights += current.clientHeight;
|
|
6384
|
+
}
|
|
6382
6385
|
current = current.previousElementSibling;
|
|
6383
6386
|
}
|
|
6384
6387
|
|
|
@@ -6425,12 +6428,12 @@ window.addEventListener('load', () => {
|
|
|
6425
6428
|
const isDesktopWidth = () => window.innerWidth > 992; //Maximum px for mobile width
|
|
6426
6429
|
|
|
6427
6430
|
const mainHeader = document.querySelector('header');
|
|
6428
|
-
const mobileOverlay = mainHeader
|
|
6429
|
-
const searchContainer = mainHeader
|
|
6430
|
-
const mainNav = mainHeader
|
|
6431
|
+
const mobileOverlay = mainHeader?.querySelector('.mobile-controlled.overlay');
|
|
6432
|
+
const searchContainer = mainHeader?.querySelector('.search-container');
|
|
6433
|
+
const mainNav = mainHeader?.querySelector('.navigation');
|
|
6431
6434
|
const mainNavUl = mainNav?.querySelector('.nav');
|
|
6432
|
-
const toggleMenuOpenButton = mainHeader
|
|
6433
|
-
const toggleMenuCloseButton = mainHeader
|
|
6435
|
+
const toggleMenuOpenButton = mainHeader?.querySelector('.mobile-control.ca-gov-icon-menu');
|
|
6436
|
+
const toggleMenuCloseButton = mainHeader?.querySelector('.mobile-control.ca-gov-icon-close-mark');
|
|
6434
6437
|
const mobileCheck = () => {
|
|
6435
6438
|
if (isDesktopWidth()) {
|
|
6436
6439
|
/**
|
|
@@ -6500,7 +6503,7 @@ window.addEventListener('load', () => {
|
|
|
6500
6503
|
});
|
|
6501
6504
|
|
|
6502
6505
|
// Mobile Overlay is being shown
|
|
6503
|
-
mobileOverlay
|
|
6506
|
+
mobileOverlay?.addEventListener('shown.bs.collapse', () => {
|
|
6504
6507
|
toggleMenuCloseButton.focus();
|
|
6505
6508
|
mainHeader.classList.add('overlay');
|
|
6506
6509
|
mainNav?.classList.add('visible');
|
|
@@ -6509,7 +6512,7 @@ window.addEventListener('load', () => {
|
|
|
6509
6512
|
});
|
|
6510
6513
|
|
|
6511
6514
|
// Mobile Overlay is hidden
|
|
6512
|
-
mobileOverlay
|
|
6515
|
+
mobileOverlay?.addEventListener('hide.bs.collapse', () => {
|
|
6513
6516
|
toggleMenuOpenButton.focus();
|
|
6514
6517
|
mainHeader.classList.remove('overlay');
|
|
6515
6518
|
document.body.classList.remove('overflow-hidden');
|
|
@@ -6594,9 +6597,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
6594
6597
|
* This is used to ensure that the element is not hidden behind the header
|
|
6595
6598
|
*/
|
|
6596
6599
|
window.addEventListener('load', () => {
|
|
6600
|
+
let mainHeader = document.querySelector('header');
|
|
6601
|
+
if (!mainHeader) {
|
|
6602
|
+
return;
|
|
6603
|
+
}
|
|
6604
|
+
|
|
6597
6605
|
// Function to update the scroll-margin-top for each element with an id
|
|
6598
6606
|
const updateScrollMarginTop = () => {
|
|
6599
|
-
let mainHeader = document.querySelector('header');
|
|
6600
6607
|
// for each element with an id we add the scroll-margin-top
|
|
6601
6608
|
document.querySelectorAll('#page-container [id]').forEach(element => element.style.scrollMarginTop = `${mainHeader.offsetHeight}px`);
|
|
6602
6609
|
};
|