Skip to content

Commit

Permalink
Update index.js
Browse files Browse the repository at this point in the history
  • Loading branch information
reflecthub authored Nov 19, 2024
1 parent f03db26 commit 1170db8
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -376,7 +376,7 @@ function renderVerse(data) {
const verseContainer = document.querySelector('.verse-style');

// Clear existing content
verseContainer.innerHTML = '';
// verseContainer.innerHTML = '';

// Loop through the JSON data and create an h2 element for each verse
data.forEach((item) => {
Expand Down Expand Up @@ -488,6 +488,8 @@ tableBody.appendChild(row);
btnElement.style.color = 'black';
btnElement.style.position = 'relative';
btnElement.style.overflow = 'hidden';
btnElement.style.outline = 'none';


// Remove any existing swipe effect
const existingHighlight = btnElement.querySelector('.swipe-highlight');
Expand All @@ -509,7 +511,7 @@ tableBody.appendChild(row);
swipeHighlight.style.height = '100%';
//onhover effect to swipehighlight
btnElement.classList.remove('pop-up-animate1');
void btnElement.offsetWidth;
// void btnElement.offsetWidth;
btnElement.classList.add('pop-up-animate1');
swipeHighlight.style.backgroundColor = 'rgba(46, 170, 5, 0.5)';
swipeHighlight.style.transition = 'left 0.4s ease';
Expand Down Expand Up @@ -572,5 +574,3 @@ window.onclick = function(event) {
}
}



0 comments on commit 1170db8

Please sign in to comment.