Skip to content

Instantly share code, notes, and snippets.

@anasnakawa
Created July 26, 2018 15:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anasnakawa/a2dc90c0bde03e5418dee4ac28fd6915 to your computer and use it in GitHub Desktop.
Save anasnakawa/a2dc90c0bde03e5418dee4ac28fd6915 to your computer and use it in GitHub Desktop.
<script type="text/javascript">
(function() {
'use strict';
/**
* configurations
*/
var tickersClass = 'my-paused-text-shows';
/**
* pause one or more tickers on the page
*/
function pauseTickers() {
var $ = shortpoint.$;
$( '.' + tickersClass ).each(function() {
clearInterval( $(this).data('bs.carousel').interval );
})
}
// shortpoint not yet available in the page
// wait for shortpoint ready dom event
setTimeout( pauseTickers, 200 );
})();
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment