Skip to content

Commit

Permalink
Merge pull request #1305 from GSA/staging
Browse files Browse the repository at this point in the history
Staging
  • Loading branch information
arnayv-47 authored Feb 6, 2025
2 parents 8c06965 + 6338afc commit 40f6f5b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
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

0 comments on commit 40f6f5b

Please sign in to comment.