PageSourceSearch

https://reform.news/wp-content/themes/reform-news/assets/js/reader-tools.js?ver=1.4.50.1789627696

js reform.news collected 2026-09-24 08:25:46 UTC 1,378 bytes, 17 lines download raw bytes

1(()=>{
2  const wrapper=document.createElement('div');
3  wrapper.className='reading-tools';
4  wrapper.setAttribute('aria-label',window.ReformTheme?.i18n?.readingTools||'Настройки чтения');
5  const tools=document.createElement('div');
6  tools.className='reader-tools font-size-control';
7  tools.setAttribute('aria-label',window.ReformTheme?.i18n?.textSize||'Размер текста');
8  tools.innerHTML='<button type="button" data-size="small">A−</button><button type="button" data-size="normal">A</button><button type="button" data-size="large">A+</button>';
9  wrapper.append(tools);
10  const backToTop=document.querySelector('.back-to-top');
11  if(backToTop)wrapper.append(backToTop);
12  document.body.append(wrapper);
13  const sizes={small:['-2px','-2px'],normal:['0px','0px'],large:['3px','4px']};
14  const setSize=size=>{const value=sizes[size]||sizes.normal;document.documentElement.style.setProperty('--reader-copy-shift',value[0]);document.documentElement.style.setProperty('--reader-title-shift',value[1]);tools.querySelectorAll('button').forEach(button=>button.classList.toggle('active',button.dataset.size===size));localStorage.setItem('reformTextSize',size)};
15  setSize(localStorage.getItem('reformTextSize')||'normal');
16  tools.addEventListener('click',event=>{const button=event.target.closest('button');if(button)setSize(button.dataset.size)});
17})();

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.