/* Delighters - Add CSS animations to delight users as they scroll down. (c) 2018 - Q42 Written by Martin Kool https://github.com/Q42/delighters */ var Delighters=new function(){var t=this.dels=[],e={attribute:"data-delighter",classNames:["delighter","started","ended"],start:.75,end:.75,autoInit:!0};function s(){document.addEventListener("scroll",d);for(var s=document.querySelectorAll("["+e.attribute+"]"),a=0;a=0&&i<=1&&(a.startLine||(a.startLine=document.createElement("div"),document.body.appendChild(a.startLine),a.startLine.style="position:fixed;height:0;width:100%;border-bottom:dotted red 2px;top:"+100*a.start+"vh")),(r1)&&a.startLine&&(a.startLine.parentNode.removeChild(a.startLine),delete a.startLine)),ia.start&&a.started&&(a.started=!1,a.el.classList.remove(e.classNames[1])),ra.end&&a.ended&&(a.ended=!1,a.el.classList.remove(e.classNames[2]))}}document.addEventListener("DOMContentLoaded",function(){e.autoInit&&s()}),this.init=s,this.config=function(t){for(var s in t)e[s]=t[s]}};