Skip to content

Commit

Permalink
update comments in serviceslist.astro -- update readme.md !noci
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandzors committed Dec 11, 2024
1 parent ee81fbc commit 99ac1aa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ The old website (wordpress :vomiting_face:) died at the beginning of 2024. So re
### TO-DO
- [ ] Re-do build process to properly support SSR
- [ ] Disable contact api for dev site.
- [x] ~~Contact Form + Cloudflare Turnstile.~~
- [ ] Remove SCSS in favor of tailwind :muscle:
- [ ] Update License?
- [ ] Update build process to support SSR.

- [x] ~~Contact Form + Cloudflare Turnstile.~~
- [x] ~~Add NFP page (Not all info but good enough for v3 push)~~

## Development Info

Clone this theme locally and run any of the following commands in your terminal:
Expand Down
9 changes: 4 additions & 5 deletions src/components/ServicesList.astro
Original file line number Diff line number Diff line change
Expand Up @@ -118,17 +118,16 @@ const { services = [], Column1title, Column2title } = Astro.props;
<script type="text/javascript">
const divs = document.querySelectorAll('[target-highlight]');

// Check if the current element is the one targeted by the hash
// Remove highlight after delay
function ClearHighlight(e) {
// Check if the current element is the one targeted by the hash
if ("#" + e.currentTarget.id === document.location.hash) {
e.preventDefault();

// Introduce a delay before removing the highlight
setTimeout(() => {
document.location.hash = '';
}, 2000); // Delay for 2 seconds (adjust to your preference)
}, 2000);
}
}
};

divs.forEach((div) => {
div.addEventListener('mouseover', ClearHighlight);
Expand Down

0 comments on commit 99ac1aa

Please sign in to comment.