make interval shorter
This commit is contained in:
@@ -101,7 +101,7 @@
|
|||||||
<!-- 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' );
|
||||||
if ( pageViewCount > 4 ) {
|
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;
|
pageViewCount += 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user