Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Staging #1305

Merged
merged 4 commits into from
Feb 6, 2025
Merged

Staging #1305

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ layout: resources-landing
title: "Enhancing Transparency Through Use of the Building a Better America Emblem on Construction Signs (Superseded by CA-23-06)"
subtitle: "Enhancing Transparency Through Use of the Building a Better America Emblem on Construction Signs (Superseded by CA-23-06)"
doc-link: ../assets/files/Controller Alert EnhancingTransparencyBipartisanInfrastructureLaw.pdf
filters: major-legislation controller-alert omb 2022
filters: major-legislation controller-alert omb 2022 archived
fiscal_year: 2022
---
9 changes: 5 additions & 4 deletions assets/js/isotope.settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,16 @@ jQuery(document).ready(function ($) {
let currentYear = new Date().getFullYear();
const archivedYears = 7;
const endYear = (currentYear - archivedYears);
let years = [];
let notArchivedYears = [];
for (let i = currentYear; i >= endYear; i--) {
years.push(`.${i}`);
notArchivedYears.push(`.${i}:not(.archived)`);
}

let notArchivedFilter = notArchivedYears.join(", ");

// Add the years to the data-filter attribute of the filter-list-not-archived
$("#filter-list-not-archived").attr("data-filter", years.join(", "));
var initialFilter = years.join(", ");
$("#filter-list-not-archived").attr("data-filter", notArchivedFilter);
var initialFilter = notArchivedFilter;

// Create initial hash
var initHash = "archive_area=" + encodeURIComponent(initialFilter);
Expand Down