Commit 39ce3c7f authored by Traboulsi's avatar Traboulsi
Browse files

Update public/js/add_content.js

parent 30752b57
Pipeline #9015 passed with stage
in 10 seconds
Showing with 6 additions and 1 deletion
+6 -1
...@@ -226,5 +226,10 @@ function hoverEffect(element, color, textColor) { ...@@ -226,5 +226,10 @@ function hoverEffect(element, color, textColor) {
function changeColor(element, newColor) { function changeColor(element, newColor) {
element.style.backgroundColor = newColor; element.style.backgroundColor = newColor;
element.style.color = 'white'; if (newColor === 'white') {
element.style.color = 'lilac'; // Reset background color on image hide
} else {
element.style.color = 'white';
}
} }
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment