ateProgress.bind(this), false);
    }
  
    function updateProgress(e) {
      var percentage = e.detail.current / (e.detail.total-1) * 100;
      this.shadowRoot.getElementById("progress").style.width = percentage + "%";
    }
  
    document.registerElement('web-presentation-progress', {prototype: progressProto});  
  })();
</script>
