PageSourceSearch

https://malyn-rada.gov.ua/themes/gov/libs/scrollama/scrollama.min.js?v=tm2ph2

js malyn-rada.gov.ua collected 2026-10-02 18:51:01 UTC 7,189 bytes, 1 lines download raw bytes

1!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.scrollama=t()}(this,function(){"use strict";function e(e){for(var t=e.length,n=[],r=0;r<t;r+=1)n.push(e[r]);return n}function t(e){return"scrollama__debug-offset--"+e.id}function n(e){!function(e){var n=e.id,r=e.offsetVal,o=e.stepClass,i=document.createElement("div");i.setAttribute("id",t({id:n})),i.setAttribute("class","scrollama__debug-offset"),i.style.position="fixed",i.style.left="0",i.style.width="100%",i.style.height="0px",i.style.borderTop="2px dashed black",i.style.zIndex="9999";var s=document.createElement("p");s.innerText='".'+o+'" trigger: '+r,s.style.fontSize="12px",s.style.fontFamily="monospace",s.style.color="black",s.style.margin="0",s.style.padding="6px",i.appendChild(s),document.body.appendChild(i)}({id:e.id,offsetVal:e.offsetVal,stepClass:e.stepEl[0].getAttribute("class")})}function r(e){var n=e.id,r=(e.stepOffsetHeight,e.offsetMargin);e.offsetVal;!function(e){var n=e.id,r=e.offsetMargin,o=(e.offsetVal,t({id:n}));document.querySelector("#"+o).style.top=r+"px"}({id:n,offsetMargin:r})}function o(e){var t=e.id,n=e.index,r=e.state,o=function(e){return"scrollama__debug-step--"+e.id+"-"+e.i}({id:t,i:n}),i=document.querySelector("#"+o+"_above"),s=document.querySelector("#"+o+"_below"),a="enter"===r?"block":"none";i&&(i.style.display=a),s&&(s.style.display=a)}return function(){var t=["stepAbove","stepBelow","stepProgress","viewportAbove","viewportBelow"],i={stepEnter:function(){},stepExit:function(){},stepProgress:function(){}},s={},a=null,c=[],u=[],f=[],l=[],d=0,p=0,g=0,v=0,m=0,b=0,h=!1,x=!1,w=!1,y=!1,E=!1,M=!1,H="down",A=null,I=[];function O(e){return e.getBoundingClientRect().top+window.pageYOffset-(document.body.clientTop||0)}function S(e){return+e.getAttribute("data-scrollama-index")}function k(){var e=A?A.scrollTop:window.pageYOffset;e>m?H="down":e<m&&(H="up"),m=e}function C(e){s[e]&&s[e].forEach(function(e){return e.disconnect()})}function q(){var e,t;g=window.innerHeight,e=document.body,t=document.documentElement,v=A?Math.max(A.scrollHeight,A.offsetHeight,e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight):Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight),p=d*g,h&&(u=c.map(function(e){return e.getBoundingClientRect().height}),f=c.map(O),x&&D()),w&&r({id:a,stepOffsetHeight:u,offsetMargin:p,offsetVal:d})}function _(e){if(e&&!x)return h&&D(),x=!0,!0;t.forEach(C),x=!1}function P(e,t){var n=S(e);void 0!==t&&(l[n].progress=t);var r={element:e,index:n,progress:l[n].progress};"enter"===l[n].state&&i.stepProgress(r)}function V(e,t){if("above"===t)for(var n=0;n<e;n++){var r=l[n];"enter"!==r.state&&"down"!==r.direction?(R(c[n],"down",!1),T(c[n],"down")):"enter"===r.state&&T(c[n],"down")}else if("below"===t)for(var o=l.length-1;o>e;o--){var i=l[o];"enter"===i.state&&T(c[o],"up"),"down"===i.direction&&(R(c[o],"up",!1),T(c[o],"up"))}}function R(e,t,n){void 0===n&&(n=!0);var r=S(e),s={element:e,index:r,direction:t};l[r].direction=t,l[r].state="enter",E&&n&&"down"===t&&V(r,"above"),E&&n&&"up"===t&&V(r,"below"),i.stepEnter&&!I[r]&&(i.stepEnter(s,l),w&&o({id:a,index:r,state:"enter"}),M&&(I[r]=!0)),y&&P(e)}function T(e,t){var n=S(e),r={element:e,index:n,direction:t};y&&("down"===t&&l[n].progress<1?P(e,1):"up"===t&&l[n].progress>0&&P(e,0)),l[n].direction=t,l[n].state="exit",i.stepExit(r,l),w&&o({id:a,index:n,state:"exit"})}function j(e){var t=e[0];k();var n=t.isIntersecting,r=t.boundingClientRect,o=t.target,i=r.top,s=r.bottom,a=i-p,c=s-p,u=S(o),f=l[u];n&&a<=0&&c>=0&&"down"===H&&"enter"!==f.state&&R(o,H),!n&&a>0&&"up"===H&&"enter"===f.state&&T(o,H)}function B(e){var t=e[0];k();var n=t.isIntersecting,r=t.boundingClientRect,o=t.target,i=r.top,s=r.bottom,a=i-p,c=s-p,u=S(o),f=l[u];n&&a<=0&&c>=0&&"up"===H&&"enter"!==f.state&&R(o,H),!n&&c<0&&"down"===H&&"enter"===f.state&&T(o,H)}function F(e){var t=e[0];k();var n=t.isIntersecting,r=t.target,o=S(r),i=l[o];n&&"down"===H&&"down"!==i.direction&&"enter"!==i.state&&(R(r,"down"),T(r,"down"))}function N(e){var t=e[0];k();var n=t.isIntersecting,r=t.target,o=S(r),i=l[o];n&&"up"===H&&"down"===i.direction&&"enter"!==i.state&&(R(r,"up"),T(r,"up"))}function z(e){var t=e[0];k();var n=t.isIntersecting,r=t.intersectionRatio,o=t.boundingClientRect,i=t.target,s=o.bottom;n&&s-p>=0&&P(i,+r.toFixed(3))}function Y(){s.stepProgress=c.map(function(e,t){var n=u[t]-p+"px 0px "+(-g+p)+"px 0px",r=function(e){for(var t=Math.ceil(e/b),n=[],r=1/t,o=0;o<t;o++)n.push(o*r);return n}(u[t]),o=new IntersectionObserver(z,{rootMargin:n,threshold:r});return o.observe(e),o})}function D(){t.forEach(C),s.viewportAbove=c.map(function(e,t){var n=v-f[t],r=p-g-u[t],o=new IntersectionObserver(F,{rootMargin:n+"px 0px "+r+"px 0px"});return o.observe(e),o}),s.viewportBelow=c.map(function(e,t){var n=-p-u[t],r=p-g+u[t]+v,o=new IntersectionObserver(N,{rootMargin:n+"px 0px "+r+"px 0px"});return o.observe(e),o}),s.stepAbove=c.map(function(e,t){var n=-p+u[t],r=new IntersectionObserver(j,{rootMargin:n+"px 0px "+(p-g)+"px 0px"});return r.observe(e),r}),s.stepAbove=c.map(function(e,t){var n=-p,r=p-g+u[t],o=new IntersectionObserver(B,{rootMargin:n+"px 0px "+r+"px 0px"});return o.observe(e),o}),y&&Y()}var L={};return L.setup=function(t){var r=t.step,o=t.offset;void 0===o&&(o=.5);var i=t.progress;void 0===i&&(i=!1);var s=t.threshold;void 0===s&&(s=4);var u=t.debug;void 0===u&&(u=!1);var f=t.order;void 0===f&&(f=!0);var p=t.once;void 0===p&&(p=!1);var g,v,m,x,H,I=t.container;return void 0===I&&(I=!1),v=(g="abcdefghijklmnopqrstuv").length,m=Date.now(),a=""+[0,0,0].map(function(e){return g[Math.floor(Math.random()*v)]}).join("")+m,x=r,void 0===H&&(H=document),(c="string"==typeof x?e(H.querySelectorAll(x)):x instanceof Element?e([x]):x instanceof NodeList?e(x):x instanceof Array?x:[]).length?(w=u,y=i,E=f,M=p,A=I,L.offsetTrigger(o),b=Math.max(1,+s),h=!0,w&&n({id:a,stepEl
1:c,offsetVal:d}),c.forEach(function(e,t){return e.setAttribute("data-scrollama-index",t)}),l=c.map(function(){return{direction:null,state:null,progress:0}}),q(),L.enable(),L):(console.error("scrollama error: no step elements"),L)},L.resize=function(){return q(),L},L.enable=function(){return _(!0),L},L.disable=function(){return _(!1),L},L.destroy=function(){_(!1),Object.keys(i).forEach(function(e){return i[e]=null}),Object.keys(s).forEach(function(e){return s[e]=null})},L.offsetTrigger=function(e){return e&&!isNaN(e)?(e>1&&console.error("scrollama error: offset value is greater than 1. Fallbacks to 1."),e<0&&console.error("scrollama error: offset value is lower than 0. Fallbacks to 0."),d=Math.min(Math.max(0,e),1),L):(isNaN(e)&&console.error("scrollama error: offset value is not a number. Fallbacks to 0."),d)},L.onStepEnter=function(e){return"function"==typeof e?i.stepEnter=e:console.error("scrollama error: onStepEnter requires a function"),L},L.onStepExit=function(e){return"function"==typeof e?i.stepExit=e:console.error("scrollama error: onStepExit requires a function"),L},L.onStepProgress=function(e){return"function"==typeof e?i.stepProgress=e:console.error("scrollama error: onStepProgress requires a function"),L},L}});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.