PageSourceSearch

https://rda.org.ua/themes/new/js/canvasMenu.js

js rda.org.ua collected 2026-09-25 04:13:17 UTC 1,006 bytes, 1 lines download raw bytes

1(function(){var bodyEl=document.body,content=document.querySelector('.content-wrap'),openbtn=document.getElementById('open-button'),closebtn=document.getElementById('close-button'),isOpen=false,morphEl=document.getElementById('morph-shape'),s=Snap(morphEl.querySelector('svg'));path=s.select('path');initialPath=this.path.attr('d'),pathOpen=morphEl.getAttribute('data-morph-open'),isAnimating=false;function init(){initEvents();}function initEvents(){openbtn.addEventListener('click',toggleMenu);if(closebtn){closebtn.addEventListener('click',toggleMenu);}content.addEventListener('click',function(ev){var target=ev.target;if(isOpen&&target!==openbtn){toggleMenu();}});}function toggleMenu(){if(isAnimating)return false;isAnimating=true;if(isOpen){classie.remove(bodyEl,'show-menu');setTimeout(function(){path.attr('d',initialPath);isAnimating=false;},300);}else{classie.add(bodyEl,'show-menu');path.animate({'path':pathOpen},400,mina.easeinout,function(){isAnimating=false;});}isOpen=!isOpen;}init();})();

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.