first commit

This commit is contained in:
Tomas Dvorak
2025-07-04 13:30:04 +02:00
commit 8b9494beb8
24 changed files with 4891 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
document.addEventListener('DOMContentLoaded', function() {
// Get the elements
const highlightText = document.querySelector('.highlight-text');
const reklikElement = document.querySelector('.fs-300');
// Check if elements exist
if (!highlightText || !reklikElement) return;
// Function to check if elements are overlapping
function isOverlapping(element1, element2) {
const rect1 = element1.getBoundingClientRect();
const rect2 = element2.getBoundingClientRect();
return !(
rect1.right < rect2.left ||
rect1.left > rect2.right ||
rect1.bottom < rect2.top ||
rect1.top > rect2.bottom
);
}
// Function to handle scroll and resize events
function checkOverlap() {
if (isOverlapping(highlightText, reklikElement)) {
highlightText.classList.add('overlapping');
} else {
highlightText.classList.remove('overlapping');
}
}
// Initial check
checkOverlap();
// Add event listeners
window.addEventListener('scroll', checkOverlap);
window.addEventListener('resize', checkOverlap);
});
+8
View File
File diff suppressed because one or more lines are too long
+3772
View File
File diff suppressed because one or more lines are too long
+198
View File
File diff suppressed because one or more lines are too long