Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh2k2 committed Feb 10, 2023
1 parent 8245258 commit bf96b06
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions script.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
let gooIndex = document.getElementById('goo-index');
let hoverEnter = index =>{
gooIndex.style.top = 100*index+'px';
let hoverEnter = index => {
gooIndex.style.top = 100 * index + 'px';
let allScreens = document.querySelectorAll('.screen');
allScreens.forEach(e=>{
allScreens.forEach(e => {
e.classList.remove('visible')
})
let nowVisible = document.getElementById('screen_'+index);
let nowVisible = document.getElementById('screen_' + index);
nowVisible.classList.add('visible');
}

0 comments on commit bf96b06

Please sign in to comment.