This file contains hidden or 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
const params = props.location.pathname.toLowerCase(); | |
if (params.includes('womens')) { | |
setNav('#ed0070c9'); | |
} else if (params.includes('mens')) { | |
setNav('#e12626c9'); | |
} else if (params.includes('device')) { | |
setNav('rgba(28, 228, 248, 0.79)'); | |
} else if (params.includes('pipe')) { | |
setNav('#c7d1d9b0'); | |
} else if (params.includes('smoke')) { |
This file contains hidden or 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
if ( | |
typeof localStorage !== 'undefined' && | |
localStorage.getItem('FreeShippingSiteWide') === null | |
) { | |
// Your code here | |
this.notify(); | |
localStorage.setItem('FreeShippingSiteWide', true); | |
} |
This file contains hidden or 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
// OnScroll Hide (Mobile) | |
var prevScrollpos = window.pageYOffset; | |
window.onscroll = function() { | |
var currentScrollPos = window.pageYOffset; | |
if (prevScrollpos > currentScrollPos || document.body.scrollTop <= 10) { | |
document.getElementById('navbar').style.top = '0'; | |
// document.getElementById('navbar').style.opacity = '1'; | |
} else { | |
document.getElementById('navbar').style.top = '-500px'; | |
} |
This file contains hidden or 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
let likesGiven = 0; | |
setInterval(() => { | |
let heart = document.getElementsByClassName('glyphsSpriteHeart__outline__24__grey_9'), | |
arrow = document.querySelector('.coreSpriteRightPaginationArrow'); | |
if (heart[1]) { | |
heart = heart[1].parentElement; | |
likesGiven++, heart.click(); | |
} | |
arrow.click(); | |
console.log(`You've liked ${likesGiven} post(s)!`); |
NewerOlder