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

Added Age of Project to Frontend #254

Merged
merged 6 commits into from
Oct 11, 2024
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
more linting
Signed-off-by: sachin-panayil <sachinpanayil01@gmail.com>
  • Loading branch information
sachin-panayil committed Oct 11, 2024
commit f3218254be030f844e5fc544a6d6b5a7198d2830
12 changes: 6 additions & 6 deletions app/site/_layouts/repo-report.liquid
Original file line number Diff line number Diff line change
@@ -3,16 +3,16 @@ layout: base
---
<script>
function toggleDateAge(element) {
const dateElements = element.querySelectorAll('.date');
const ageElements = element.querySelectorAll('.age');
const dateElements = element.querySelectorAll('.date')
const ageElements = element.querySelectorAll('.age')

dateElements.forEach((element) => {
element.style.display = element.style.display === 'none' ? 'inline' : 'none';
});
element.style.display = element.style.display === 'none' ? 'inline' : 'none'
})

ageElements.forEach((element) => {
element.style.display = element.style.display === 'none' ? 'inline' : 'none';
});
element.style.display = element.style.display === 'none' ? 'inline' : 'none'
})
}
</script>
<script src="{{ "/assets/js/graphs.js" | url }}"></script>