text: !function(t,e){"use strict";t.Cinematic=function(e){e instanceof t.HTMLVideoElement||this.throwException("Element passed into constructor must be an instance of HTMLVideoElement"),e.onloadedmetadata=function(){(function n(){setTimeout(function(){var i=t.scrollY+t.innerHeight,o=this.computeDocumentHeight(),c=e.duration;e.currentTime=+(i/o*c).toFixed(2),requestAnimationFrame(n.bind(this))}.bind(this),1e3/this.FRAMES_PER_SECOND)}).bind(this)()}.bind(this)},t.Cinematic.prototype={FRAMES_PER_SECOND:25,throwException:function(t){throw"Cinematic: "+t+"."},computeDocumentHeight:function(){var n=e.body,i=e.documentElement;return t.Math.max(n.scrollHeight,n.offsetHeight,i.clientHeight,i.scrollHeight,i.offsetHeight)}},e.addEventListener("DOMContentLoaded",function(){for(var t=e.querySelectorAll("*[data-cinematic]"),n=0,i=t.length;i>n;n++)new Cinematic(t[n])})}(window,window.document);