generated from SAP/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
slight changes to myapp, to support more decoy examples
- Loading branch information
Cedric HEBERT
committed
Jun 28, 2024
1 parent
bacea9f
commit 6fbb058
Showing
4 changed files
with
33 additions
and
7 deletions.
There are no files selected for viewing
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
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
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,22 @@ | ||
document.addEventListener('DOMContentLoaded', function() { | ||
const welcomeText = document.querySelector('.full-width'); | ||
|
||
welcomeText.addEventListener('mouseover', function(event) { | ||
const target = event.target; | ||
if (target.classList.contains('letter')) { | ||
target.style.color = 'red'; // Change the color of the letter hovered over | ||
} else { | ||
welcomeText.style.color = 'red'; // Change the color of the whole text | ||
} | ||
}); | ||
|
||
welcomeText.addEventListener('mouseout', function(event) { | ||
const target = event.target; | ||
if (target.classList.contains('letter')) { | ||
target.style.color = ''; // Reset the color of the letter | ||
} else { | ||
welcomeText.style.color = ''; // Reset the color of the whole text | ||
} | ||
}); | ||
}); | ||
|
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