Uncaught TypeError: nab.trigger is not a function
-
Hi
after adding the below js code for one page, and started testing It is not working and getting the below error
Error: Uncaught TypeError: nab.trigger is not a function
JS Code:
<script type="text/javascript"> setTimeout( function() { nab.trigger( 'time-10s' ); }, 10000 ); setTimeout( function() { nab.trigger( 'time-30s' ); }, 30000 ); setTimeout( function() { nab.trigger( 'time-60s' ); }, 60000 ); setTimeout( function() { nab.trigger( 'time-90s' ); }, 90000 ); ( function() { [ 30, 50, 75, 100 ].forEach( ( threshold ) => document.addEventListener( 'scroll', () => { const bottom = window.pageYOffset + window.innerHeight; const scroll = 100 * bottom / document.body.clientHeight; if ( scroll >= threshold ) { nab.trigger(
scroll-${ threshold }
); } } ) ); } )(); </script>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Uncaught TypeError: nab.trigger is not a function’ is closed to new replies.