-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dce9a19
commit 7b36da0
Showing
28 changed files
with
780 additions
and
114 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
let activeFilters = new Set(); | ||
|
||
function toggleTag(tagElement, tag) { | ||
tagElement.classList.toggle('active'); | ||
if (activeFilters.has(tag)) { | ||
activeFilters.delete(tag); | ||
} else { | ||
activeFilters.add(tag); | ||
} | ||
filterItems(); | ||
} | ||
|
||
function filterItems() { | ||
const items = document.querySelectorAll('.item'); | ||
items.forEach(item => { | ||
const tags = item.querySelectorAll('.tag'); | ||
const itemTags = Array.from(tags).map(tag => tag.textContent.toLowerCase()); | ||
const shouldShow = activeFilters.size === 0 || itemTags.some(tag => activeFilters.has(tag)); | ||
item.style.display = shouldShow ? 'block' : 'none'; | ||
}); | ||
} | ||
|
||
// Back to Top button functionality | ||
const backToTopButton = document.getElementById("back-to-top"); | ||
|
||
window.onscroll = function() { | ||
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) { | ||
backToTopButton.style.display = "block"; | ||
} else { | ||
backToTopButton.style.display = "none"; | ||
} | ||
}; | ||
|
||
backToTopButton.onclick = function() { | ||
document.body.scrollTop = 0; // For Safari | ||
document.documentElement.scrollTop = 0; // For Chrome, Firefox, IE and Opera | ||
}; | ||
|
||
// Mobile menu toggle | ||
const menuToggle = document.getElementById('menu-toggle'); | ||
const nav = document.querySelector('nav'); | ||
|
||
menuToggle.addEventListener('click', () => { | ||
nav.classList.toggle('show'); | ||
}); | ||
|
||
// Close menu when clicking outside | ||
document.addEventListener('click', (event) => { | ||
if (!nav.contains(event.target) && !menuToggle.contains(event.target)) { | ||
nav.classList.remove('show'); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
function checkOverflow() { | ||
const grid = document.querySelector('.grid'); | ||
const gridWidth = grid.offsetWidth; | ||
const contentWidth = Array.from(grid.children).reduce((total, child) => total + child.offsetWidth, 0); | ||
const gapWidth = (grid.children.length - 1) * 30; // 30px gap between items | ||
|
||
if (contentWidth + gapWidth > gridWidth) { | ||
grid.classList.add('overflow'); | ||
} else { | ||
grid.classList.remove('overflow'); | ||
} | ||
} | ||
|
||
// Run on page load | ||
window.addEventListener('load', checkOverflow); | ||
|
||
// Run on window resize | ||
window.addEventListener('resize', checkOverflow); |
Oops, something went wrong.