function addEventListeners() {
    // Track the changing of slides
    Reveal.addEventListener('slidechanged', function(ev) {
      addEvent('changeslide', {
        eventLabel: 'Change current slide ' + getSlideLabel(ev)
      });
      // We need to "wait" so URL is changed
      setTimeout(function() {
        var title = ev.currentSlide.querySelector('h1,h2,h3').innerText || '';
        var page = location.pathname + location.hash;
        addPageView(title, page);
      }, 0);
    });

    // Reveal overview mode
    Reveal.addEventListener('overviewshown', function(ev) {
      addEvent('overviewshown', {
        eventLabel: 'Slide overview shown ' + getSlideLabel(ev)
      });
    });

    Reveal.addEventListener('overviewhidden', function(ev) {
      addEvent('overviewhidden', {
        eventLabel: 'Slide overview hidden ' + getSlideLabel(ev)
      });
    });
  }
/**
   * Register the appropriate event listeners for Reveal.js.
   */
Register the appropriate event listeners for Reveal.js.
Register the appropriate event listeners for Reveal . js .
function addEventListeners() {
    Reveal.addEventListener('slidechanged', function(ev) {
      addEvent('changeslide', {
        eventLabel: 'Change current slide ' + getSlideLabel(ev)
      });
      setTimeout(function() {
        var title = ev.currentSlide.querySelector('h1,h2,h3').innerText || '';
        var page = location.pathname + location.hash;
        addPageView(title, page);
      }, 0);
    });
    Reveal.addEventListener('overviewshown', function(ev) {
      addEvent('overviewshown', {
        eventLabel: 'Slide overview shown ' + getSlideLabel(ev)
      });
    });
    Reveal.addEventListener('overviewhidden', function(ev) {
      addEvent('overviewhidden', {
        eventLabel: 'Slide overview hidden ' + getSlideLabel(ev)
      });
    });
  }
function addEventListeners ( ) { Reveal . addEventListener ( 'slidechanged' , function ( ev ) { addEvent ( 'changeslide' , { eventLabel : 'Change current slide ' + getSlideLabel ( ev ) } ) ; setTimeout ( function ( ) { var title = ev . currentSlide . querySelector ( 'h1,h2,h3' ) . innerText || '' ; var page = location . pathname + location . hash ; addPageView ( title , page ) ; } , 0 ) ; } ) ; Reveal . addEventListener ( 'overviewshown' , function ( ev ) { addEvent ( 'overviewshown' , { eventLabel : 'Slide overview shown ' + getSlideLabel ( ev ) } ) ; } ) ; Reveal . addEventListener ( 'overviewhidden' , function ( ev ) { addEvent ( 'overviewhidden' , { eventLabel : 'Slide overview hidden ' + getSlideLabel ( ev ) } ) ; } ) ; }
Register the appropriate event listeners for Reveal.js.
Register the appropriate event listeners for Reveal . js .
// Track the changing of slides // We need to "wait" so URL is changed // Reveal overview mode