Skip to content

Instantly share code, notes, and snippets.

@kulterryan
Created January 23, 2024 07:32
Show Gist options
  • Save kulterryan/c63962249c79356d3f82fa3ca456b32d to your computer and use it in GitHub Desktop.
Save kulterryan/c63962249c79356d3f82fa3ca456b32d to your computer and use it in GitHub Desktop.
Elementor Timer Reset
<script>
jQuery( document ).ready( function ( $ ) {
$(document).on( 'countdown_expire', function() {
Object.keys(localStorage)
.filter(key => key.endsWith('evergreen_interval'))
.forEach(key => localStorage
.removeItem((key)))
Object.keys(localStorage)
.filter(key => key.endsWith('evergreen_due_date'))
.forEach(key => localStorage
.removeItem((key)))
} );
} );
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment