Skip to content

Commit

Permalink
banner image test
Browse files Browse the repository at this point in the history
  • Loading branch information
Sudipta Kar committed Sep 20, 2024
1 parent af4be1a commit 75b6714
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
Binary file added iterations/2024/april/banner.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 5 additions & 4 deletions iterations/2024/april/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -273,10 +273,11 @@ <h5> (Updated on: <span id="field-update-date"></span>)</h5>
var month_year = d3.select("#field-iteration").attr("data-target").split(' ')
var iteration = month_year[1] + '/' + month_year[0].toLowerCase();

d3.json('/months.json').then(function(data) {
var image = 'url("' + data[iteration] + '")';
document.documentElement.style.setProperty("--selection-background", image);
});
// d3.json('/months.json').then(function(data) {
// var image = 'url("' + data[iteration] + '")';
var image = 'banner.png';
document.documentElement.style.setProperty("--selection-background", image);
// });

const counters = document.querySelectorAll('.counter');
const speed = 20;
Expand Down

0 comments on commit 75b6714

Please sign in to comment.