PageSourceSearch

https://priliv.pro/wp-content/cache/autoptimize/js/autoptimize_sin…2a7d88ceecaed11549f3044.js?ver=202610020743

js priliv.pro collected 2026-10-06 06:51:29 UTC 9,838 bytes, 15 lines download raw bytes

1(function(){var d=document,html=d.documentElement;function $(s,r){return(r||d).querySelector(s);}
2function $$(s,r){return Array.prototype.slice.call((r||d).querySelectorAll(s));}
3$$('.tgl button').forEach(function(b){b.addEventListener('click',function(){var t=b.getAttribute('data-theme');if(t==='light')html.setAttribute('data-theme','light');else html.setAttribute('data-theme','dark');try{localStorage.setItem('priliv_theme',t);}catch(e){}});});var bur=$('.burger'),mnav=$('.mnav');if(bur&&mnav){bur.addEventListener('click',function(){mnav.classList.toggle('on');});$$('a',mnav).forEach(function(a){a.addEventListener('click',function(){mnav.classList.remove('on');});});}
4var quiz=$('#quiz');if(quiz){var steps=$$('.qstep',quiz),cur=0,ans={},back=$('.qback',quiz),num=$('.qn',quiz),bar=$('.qprog i',quiz);var show=function(i){steps[cur].classList.remove('on');cur=i;steps[cur].classList.add('on');num.textContent='Шаг '+(cur+1)+' из '+steps.length;bar.style.width=((cur+1)/steps.length*100)+'%';back.hidden=cur===0;if(cur===steps.length-1){fill();mhPrice();}};var fill=function(){['q1','q2','q3','q4'].forEach(function(q){var f=$('input[name="'+q+'"]',quiz);if(f)f.value=ans[q]||'';});};var MHP={'Сайт с воронкой CJM':[['Продающий сайт (лендинг)',10000],['Мультилендинг — несколько посадочных страниц',15000],['Интернет-магазин',20000]],'SEO-продвижение':[['Первичное SEO',5000]],'Приложение с AR':[['WebAR-примерка товара в 3D для интернет-магазина',15000],['Интерфейс мобильного приложения (Android, iOS)',25000],['Мобильное приложение с дополненной реальностью под ключ',90000]],'Реклама в Яндекс.Директ':[['Аудит рекламы Яндекс.Директ','0 руб.'],['Настройка рекламы','назовём после аудита'],['Услуги студии по прайсу',3000]],'ИИ-сотрудник':[['ИИ-агент для бизнеса: тест','3 дня бесплатно'],['Услуги студии по прайсу',3000]],'Пока не знаю, нужен совет':[['Сайт-визитка (спецпредложение)',3000],['Первичное SEO',5000],['Интернет-магазин (спецпредложение)',10000]]};var mhRub=function(v){return typeof v==='number'?'от '+String(v).replace(/\B(?=(\d{3})+(?!\d))/g,' ')+' руб.':v;};var mhEsc=function(v){return String(v).replace(/[&<>"]/g,function(c){return{'&':'&amp;','<':'&lt;','>':'&gt;','"':'&quot;'}[c];});};var mhKey=function(){return Object.keys(MHP).filter(function(x){return(ans.q1||'').indexOf(x)>-1;})[0]||'Пока не знаю, нужен совет';};var mhCalc=function(){var k=mhKey(),rows=MHP[k].slice();if(k==='Сайт с воронкой CJM'&&ans.q3==='Торговля, магазин')rows=[rows[2],rows[0],rows[1]];rows=rows.map(function(r){return[r[0],mhRub(r[1])];});return{rows:rows,line:rows.map(function(r){return r[0]+' '+r[1];}).join('; ')};};var mhMsg=function(R){var t='Здравствуйте! Прошёл опрос на сайте priliv.pro.',L={q1:'Нужно',q2:'Сайт',q3:'Сфера',q4:'Когда'};['q1','q2','q3','q4'].forEach(function(q){if(ans[q])t+='\n'+L[q]+': '+(q==='q1'?mhKey():ans[q]);});return t+'\nРасчёт: '+R.line+'\nХочу аудит сайта по CJM в подарок.';};var mhPrice=function(){var st=steps[steps.length-1],R=mhCalc(),box=$('.mh-pq',st);if(!box){box=d.createElement('div');box.className='mh-pq';st.insertBefore(box,st.firstChild);var h=$('h3',st);if(h)h.textContent='Закрепить цену и получить аудит в подарок';var ml0=d.createElement('div');ml0.className='mh-pq-ml';var fw=$('.mhf',st);(fw?fw.parentNode:st).appendChild(ml0);}
5box.innerHTML='<h3>Ваш расчёт</h3><div class="mh-pq__rows">'+R.rows.map(function(r){return'<div><span>'+mhEsc(r[0])+'</span><b>'+mhEsc(r[1])+'</b></div>';}).join('')+'<div class="mh-pq__gift"><span>В подарок за ответы: аудит сайта на наличие воронки CJM</span><b>0 руб.</b></div></div>'+'<p class="mh-pq__of" style="font-size:12px;line-height:1.4;color:var(--soft);margin:8px 0 0">Цены указаны в справочных целях и не явÐ
5»ÑÑŽÑ‚ся публичной офертой. Точную стоимость назовём после уточнения деталей.</p>';var ml=$('.mh-pq-ml',st),msg=mhMsg(R);ml.innerHTML='<span>Или напишите нам, ответы уже в сообщении:</span><a target="_blank" rel="noopener" href="https://t.me/IgorGoldenS?text='+encodeURIComponent(msg)+'">Telegram</a><a data-m="max" target="_blank" rel="noopener" href="https://max.ru/u/f9LHodD0cOJ15AkMTqWb1UjJvPkA9itgfkCxb09iU5LhNzPSvWk_5RtAtbc">MAX</a><em></em>';$$('a',ml).forEach(function(a){a.onclick=function(){try{if(window.ym)ym(48933782,'reachGoal','quiz_msg');}catch(e){}if(a.getAttribute('data-m')==='max'){try{navigator.clipboard.writeText(msg);}catch(e){}$('em',ml).textContent='Ответы скопированы: вставьте их в чат MAX.';}};});};steps.forEach(function(st,i){$$('.qo',st).forEach(function(o){o.addEventListener('click',function(){$$('.qo',st).forEach(function(x){x.classList.remove('on');});o.classList.add('on');ans[st.getAttribute('data-q')]=o.textContent.trim();setTimeout(function(){show(i+1);},220);});});});back.addEventListener('click',function(){if(cur>0)show(cur-1);});}
6function tabs(btns,panes,cb){btns.forEach(function(b,i){b.addEventListener('click',function(){btns.forEach(function(x){x.classList.toggle('on',x===b);});panes.forEach(function(p,j){p.classList.toggle('on',j===i);});if(cb)cb(i);});});}
7tabs($$('#prices .tabs button'),$$('#prices .rows'));var gb=$$('.gtabs button'),gp=$$('.gl .gpane'),gm=$$('.map .gpane');var vid=function(i){var v=gp[i]&&$('video',gp[i]);if(v&&!v.src&&v.getAttribute('data-src')){v.src=v.getAttribute('data-src');}
8$$('video',d.querySelector('.gl')||d).forEach(function(x){if(x!==v)x.pause();});if(v){var p=v.play();if(p&&p.catch)p.catch(function(){});}
9var m=gm[i];if(m&&!m.src&&m.getAttribute('data-src'))m.src=m.getAttribute('data-src');};tabs(gb,gp,function(i){gm.forEach(function(m,j){m.classList.toggle('on',j===i);});vid(i);});if(gp.length&&'IntersectionObserver'in window){var io=new IntersectionObserver(function(es){es.forEach(function(e){if(e.isIntersecting){vid(gb.indexOf($('.gtabs button.on')));io.disconnect();}});},{rootMargin:'200px'});io.observe(gp[0]);}
10var gf=$('#formula');if(gf){var num2=function(s){var n=parseFloat(String(s).replace(/\s| /g,'').replace(',','.'));return isFinite(n)?n:0;};var rub=function(n){return Math.round(n).toString().replace(/\B(?=(\d{3})+(?!\d))/g,' ')+' руб.';};var fmt=function(n,k){return(k==='ltv'?(Math.round(n*100)/100).toString().replace('.',','):(Math.round(n*10)/10).toString().replace('.',',').replace(/\B(?=(\d{3})+(?!\d))/g,' '));};var calc=function(){var v={};$$('input[data-k]',gf).forEach(function(i){v[i.getAttribute('data-k')]=num2(i.value);});var now=v.tr*v.cv/100*v.ch*v.ltv*v.mg/100,nw=now*Math.pow(1.1,5);$$('[data-n]',gf).forEach(function(c){var k=c.getAttribute('data-n');c.textContent=fmt(v[k]*1.1,k)+(k==='cv'||k==='mg'?' %':'');});$('[data-r=now]',gf).textContent=rub(now);$('[data-r=new]',gf).textContent=rub(nw);$('[data-r=pct]',gf).textContent=now>0?'+'+rub(nw-now)+' в месяц, это +61 % к прибыли':'Заполните все пять цифр';var f=$('input[name=q1]',gf);if(f)f.value='трафик '+v.tr+', конверсия '+v.cv+' %, чек '+v.ch+', LTV '+v.ltv+', маржа '+v.mg+' %';var f2=$('input[name=q2]',gf);if(f2)f2.value='прибыль сейчас '+rub(now)+', после +10 % '+rub(nw);};$$('input[data-k]',gf).forEach(function(i){i.addEventListener('input',calc);});calc();}
11$$('.mhf').forEach(function(w){var s=$('input[name=src]',w);if(s)s.value=w.getAttribute('data-src')||'';});$$('.mhf input[type=tel]').forEach(function(i){i.addEventListener('focus',function(){if(!i.value)i.value='+7 (';});i.addEventListener('input',function(){var x=i.value.replace(/\D/g,'');if(x.charAt(0)==='8'||x.charAt(0)==='7')x=x.slice(1);x=x.slice(0,10);var r='+7 ('+x.slice(0,3);if(x.length>=3)r+=') '+x.slice(3,6);if(x.length>=6)r+='-'+x.slice(6,8);if(x.length>=8)r+='-'+x.slice(8,10);i.value=r;});i.addEventListener('blur',function(){if(i.value==='+7 (')i.value='';});});var row=$('.crow');if(row){var step=function(dir){var c=$('.cc',row);row.scrollBy({left:dir*(c?c.offsetWidth+12:200)*2,behavior:'smooth'});};
11var pv=$('.arr .prev'),nx=$('.arr .next');if(pv)pv.addEventListener('click',function(){step(-1);});if(nx)nx.addEventListener('click',function(){step(1);});}
12var m=$('.mhm'),box=m&&$('.box',m);var open=function(h){box.innerHTML=h;m.classList.add('on');d.body.style.overflow='hidden';};var close=function(){m.classList.remove('on');box.innerHTML='';d.body.style.overflow='';};if(m){d.addEventListener('click',function(e){var v=e.target.closest('[data-video]'),im=e.target.closest('[data-img]');if(v){e.preventDefault();open('<iframe src="'+v.getAttribute('data-video')+'" allow="autoplay; fullscreen; encrypted-media" allowfullscreen></iframe>');}
13else if(im){open('<img src="'+im.getAttribute('data-img')+'" alt="">');}
14else if(e.target===m||e.target.closest('.mhm .x'))close();});d.addEventListener('keydown',function(e){if(e.key==='Escape'&&m.classList.contains('on'))close();});}
15var sm=$('.seo-more');if(sm)sm.addEventListener('click',function(){var t=$('.seo .txt');var o=t.classList.toggle('open');sm.textContent=o?'Свернуть':'Читать подробнее';});})();

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.