Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
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
11 changes: 7 additions & 4 deletions static/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -238,17 +238,20 @@ if (clearFiltersBtn) {
// Prevent the input blur handler from closing the menu before click runs.
item.addEventListener("mousedown", function (evt) {
evt.preventDefault();
selectSuggestion(skill);
});

// Handle touch devices to select immediately on touchstart without blur delay
item.addEventListener("touchstart", function (evt) {
evt.preventDefault();
selectSuggestion(skill);
});

item.addEventListener("mouseenter", function () {
activeSuggestionIndex = index;
renderActiveSuggestion();
});

item.addEventListener("click", function () {
selectSuggestion(skill);
});

suggestionsDiv.appendChild(item);
});
suggestionsDiv.style.display = "block";
Expand Down
16 changes: 16 additions & 0 deletions static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,22 @@ ol {
flex-shrink: 0;
}

.skill-strip-marquee {
overflow: hidden;
width: 100%;
position: relative;
display: flex;
mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
-webkit-mask-image: linear-gradient(to right, transparent, white 15%, white 85%, transparent);
}

.skill-strip-track {
display: flex;
width: max-content;
animation: skill-strip-marquee 30s linear infinite;
gap: 0;
}

@keyframes skill-strip-marquee {
from { transform: translateX(0); }
to { transform: translateX(-50%); }
Expand Down
5 changes: 4 additions & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,10 @@ <h4 class="footer-col-title">About Us</h4>



<script src="/static/data/skills.js"></script>
<!-- Scroll-to-top button -->
<button id="scroll-top-btn" aria-label="Back to top" title="Back to top">↑</button>

<script src="/static/data/skills.js"></script>
<script src="/static/script.js"></script>
</body>

Expand Down
Loading