shorten period to popup further
This commit is contained in:
@@ -101,10 +101,10 @@
|
|||||||
<!-- Detection to open pop-up to tell users to head to new website after certain amount of interactions -->
|
<!-- Detection to open pop-up to tell users to head to new website after certain amount of interactions -->
|
||||||
<script>
|
<script>
|
||||||
let pageViewCount = parseInt( localStorage.getItem( 'pageViewCount' ) ?? '0' );
|
let pageViewCount = parseInt( localStorage.getItem( 'pageViewCount' ) ?? '0' );
|
||||||
|
pageViewCount += 1;
|
||||||
if ( pageViewCount > 2 ) {
|
if ( pageViewCount > 2 ) {
|
||||||
document.getElementById( 'go-to-new-page-popup' ).classList.add( 'popup-show' );
|
document.getElementById( 'go-to-new-page-popup' ).classList.add( 'popup-show' );
|
||||||
} else {
|
} else {
|
||||||
pageViewCount += 1;
|
|
||||||
localStorage.setItem( 'pageViewCount', pageViewCount );
|
localStorage.setItem( 'pageViewCount', pageViewCount );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user