Created
March 31, 2023 12:31
-
-
Save panphora/a780c2c590b1dfc0a1e130aba1f4885c to your computer and use it in GitHub Desktop.
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
<style> | |
/* never show exit intent pop: */ | |
.polite-pop__pop--exit-intent { | |
display: none !important; | |
} | |
</style> | |
<script> | |
let politeScript = document.createElement("script"); | |
politeScript.src = "https://cdn.politepop.com/polite-pop-v1.5.0/polite-pop.min.js"; | |
politeScript.onload = () => { | |
PolitePop({ | |
styles: { | |
// turn off text shadow on modal text: | |
modalTextShadow: `none` | |
}, | |
// ... other options here ... | |
}); | |
} | |
document.head.append(politeScript); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment