File: /var/www/html/wptoho/wp-content/themes/themify-ultra/js/modules/revealing-footer.js
((t,e,o)=>{"use strict";const r=o.tfId("footerwrap")||o.tfId("tbp_footer"),s=o.tfId("body");if(!s||!r)return;const c=o.querySelector(".back-top.back-top-float"),i="sticky"===getComputedStyle(r).position,n=r.querySelector("#footer, :scope > .themify_builder");let f=r.clientHeight;const a=()=>{f=r.clientHeight,!i&&(r.parentElement.style.paddingBottom=f)},l=()=>{const e=s.getBoundingClientRect(),o=t.h-e.bottom;r.classList.toggle("active-revealing",e.top<0),o>=0&&o<=f?n.style.opacity=o/f+.2:o>f&&(n.style.opacity=1)};s.style.backgroundColor=(t=>{let o=t.firstElementChild,r=null;while(o.parentElement)if(o=o.parentElement,r=e.getComputedStyle(o).backgroundColor,r&&"transparent"!==r&&"rgba(0, 0, 0, 0)"!==r)return r})(s)||"#fff",i||document.body.classList.add("no-css-sticky"),a(),l(),t.on("tfsmartresize",a),e.tfOn("scroll",l,{passive:!0}),c.length&&r.before(c)})(Themify,window,document);