PageSourceSearch

https://support.textmagic.com/wp-content/cache/autoptimize/js/auto…2c35253548511bd0168c36b57.js?ver=1790170219

js textmagic.com collected 2026-09-24 08:29:47 UTC 1,246 bytes, 17 lines download raw bytes

1(function(){'use strict';if(!document.body.classList.contains('single-article')){return;}
2var HEADER_SELECTOR='#headerMenu';var EXTRA_GAP=30;function headerOffset(){var h=document.querySelector(HEADER_SELECTOR);if(!h){return 0;}
3return h.getBoundingClientRect().height;}
4function scrollToAnchor(hash){if(!hash||hash==='#'){return;}
5var id=hash.replace(/^#/,'');if(!id){return;}
6var el=document.getElementById(id);if(!el){return;}
7var y=el.getBoundingClientRect().top+
8window.pageYOffset-
9headerOffset()-
10EXTRA_GAP;window.scrollTo({top:Math.max(0,y),behavior:'smooth',});}
11function onInitialHash(){if(!window.location.hash){return;}
12setTimeout(function(){scrollToAnchor(window.location.hash);},50);}
13window.addEventListener('hashchange',function(){scrollToAnchor(window.location.hash);});if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',onInitialHash);}else{onInitialHash();}
14document.addEventListener('click',function(e){var a=e.target.closest&&e.target.closest('a[href^="#"]');if(!a||!a.hash){return;}
15if(a.pathname&&a.pathname!==window.location.pathname){return;}
16e.preventDefault();if(history.replaceState){history.replaceState(null,'',a.hash);}else{window.location.hash=a.hash;}
17scrollToAnchor(a.hash);});})();

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.