PageSourceSearch

https://www.ranepa.ru/bitrix/cache/js/s1/ranepa_2025/page_85f0ad73…59c0f6c30f876434c601d_v1.js?179023815516882

js ranepa.ru collected 2026-09-24 08:48:29 UTC 16,882 bytes, 60 lines download raw bytes

1
2; /* Start:"a:4:{s:4:"full";s:76:"/local/components/bash/popup.slider/templates/modals/script.js?1762857535482";s:6:"source";s:62:"/local/components/bash/popup.slider/templates/modals/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
3/**
4 * Created by PhpStorm
5 * Project: www.ranepa.ru
6 * User:    bash
7 * Date:    19.12.2024
8 * Time:    17:13
9 * Version: 1.00
10 */
11
12document.addEventListener('DOMContentLoaded', () => {
13  const hrefElementsList = document.querySelectorAll('[href]');
14  const regexp = /^POPUP-ID=.+$/;
15
16  hrefElementsList.forEach(el => {
17    const hrefValue = el.getAttribute('href');
18    if (regexp.test(hrefValue)) {
19      el.dataset.openModal = hrefValue.replace('POPUP-ID=', '');
20    }
21  });
22});
23/* End */
24;
25; /* Start:"a:4:{s:4:"full";s:82:"/local/libcss/projects/redesign-applicant/common/build/js/index.js?175552185514462";s:6:"source";s:66:"/local/libcss/projects/redesign-applicant/common/build/js/index.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
26"use strict";(()=>{window.addEventListener("DOMContentLoaded",()=>{let n=document.getElementsByClassName("openday_announce__timer")[0],e=document.getElementsByClassName("openday_digit_class"),o=document.getElementsByClassName("openday_digits_class")[0];if(n||o)var t=n.dataset.timestamp,s=new Date(t).getTime(),c=setInterval(function(){var _=new Date().getTime(),a=s-_,f=Math.floor(a/(1e3*60*60*24)),l=Math.floor(a%(1e3*60*60*24)/(1e3*60*60)),i=Math.floor(a%(1e3*60*60)/(1e3*60)),r=Math.floor(a%(1e3*60)/1e3);n&&(e[0].innerHTML=f,e[1].innerHTML=l,e[2].innerHTML=i,e[3].innerHTML=r),o&&(o.innerHTML="\u0414\u043E \u043D\u0430\u0447\u0430\u043B\u0430 "+f+":"+l+":"+i),a<0&&(clearInterval(c),console.log(""))},1e3)});window.addEventListener("DOMContentLoaded",()=>{let n=document.getElementById("openday_close_reg_button_id"),e=d
26ocument.getElementById("reg_popup_id");n&&n.addEventListener("click",()=>{e.style.display="none"}),C().reg==1&&(e.style.display="block")});function C(){var n={},e=window.location.href.replace(/[?&]+([^=&]+)=([^&]*)/gi,function(o,t,s){n[t]=s});return n}function m(n,e){let o=document.getElementsByClassName(n)[0],t=document.getElementsByClassName(e)[0];if(o&&t){let s=t.getBoundingClientRect().top-o.getBoundingClientRect().top;o.style.height=s+"px"}}window.addEventListener("resize",()=>{m("announce__scroller","footer"),m("profession_control_scroller","footer")});window.addEventListener("load",()=>{m("announce__scroller","footer"),m("profession_control_scroller","footer")});window.addEventListener("resize",()=>{});window.addEventListener("load",()=>{let n=document.getElementsByClassName("openday_video_popup__video")[0],e=document.getElementsByClassName("openday_video_popup")[0];e&&e.addEventListener("click",()=>{e.style.display="none",n.setAttribute("src","about:blank")});function o(t){console.log(t),e.style.display="block",n.setAttribute("src",t)}window.openVideo=o});var b=class{constructor(e){if(this.tabs=e,this.tabButtonsParent=this.tabs.querySelector(".tabs__buttons"),!this.tabButtonsParent){console.warn("\u042D\u043B\u0435\u043C\u0435\u043D\u0442 .tabs__buttons \u043D\u0435 \u043D\u0430\u0439\u0434\u0435\u043D");return}this.tabButtons=this.tabButtonsParent.querySelectorAll(".tabs__btn"),this.tabContent=this.tabs.querySelectorAll(".tabs__block"),this.tabButtonsParent.addEventListener("click",this.handleBtnClick.bind(this))}hideAllActiveContent(){this.tabContent.forEach(function(e){e.classList.remove("active")})}removeActiveClassFromBtns(){this.tabButtons.forEach(function(e){e.classList.remove("active")})}handleBtnClick(e){e.stopPropagation();let o=e.target;if(o.classList.contains("tabs__btn")){this.hideAllActiveContent(),this.removeActiveClassFromBtns();let t=Array.from(this.tabButtons).indexOf(o);if(e.target.dataset.index){this.tabs.querySelector(`[data-tab="${o.dataset.index}"]`).classList.add("active"),o.classList.add("active");return}this.tabs.querySelector(".tabs__block:nth-child("+(t+1)+")").classList.add("active"),o.classList.add("active")}}};document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".tabs").forEach(e=>{new b(e).tabs.querySelectorAll(".tabs").forEach(s=>{new b(s)})})});window.addEventListener("DOMContentLoaded",()=>{class n{constructor(t,s){this.item=t,this.title=this.item.querySelector(".dropdown__title"),this.content=this.item.querySelector(".dropdown__content"),this.dropdownContent=this.item.querySelector(".dropdown__content_reception"),this.dropdownContent&&(this.hasP=!!this.dropdownContent.querySelector("p")),this.setupEventListeners()}toggleContent(t){t.target.tagName!=="path"&&this.title.tagName!=="A"&&(!this.hasP&&this.hasP!=null||(this.content.style.display==="none"||this.content.style.display===""?(this.content.style.display="block",this.title.classList.add("active")):(this.content.style.display="none",this.title.classList.remove("active"))))}setupEventListeners(){let t=this.title.cloneNode(!0);this.title.parentNode.replaceChild(t,this.title),this.title=t,this.title.addEventListener("click",this.toggleContent.bind(this))}}let e=o=>{let t=o.querySelectorAll(".dropdown__inner"),s=[];t.forEach((c,_)=>{let a=new n(c,_);s.push(a)})};e(document.body),window.initAccordions=e});var L=class{constructor(e){this.selectHeader=e.querySelector(".select__header"),this.options=e.querySelector(".select__options"),this.contentBlocks=e.querySelectorAll(".select__content"),this.btn=e.querySelector(".fiter-btn"),this.selectHeader.addEventListener("click",()=>{this.options.style.display=this.options.style.display==="block"?"none":"block"}),e.querySelectorAll(".select__option").forEach((o,t)=>{o.parentNode.parentNode.parentNode===e&&(o.addEventListener("click",s=>{this.contentBlocks.forEach((c,_)=>{let a=_===t;c.style.display=a?"block":"none",o.classList.remove("selected"),a&&o.classList.add("selected")}),this.selectHeader.querySelector("[data-mobile-tab-selected]")?this.selectHeader.querySelector("[data-mobile-tab-selected]").textContent=o.textContent:this.selectHeader.textContent=o.textContent,this.selectHeader.append(this.btn),this.options.style.display="none",s.stopPropagation()}),o.classList.contains("selected")&&(this.contentBlocks[t].style.display="block",this.selectHeader.querySelector("[data-mobile-tab-selected]")?this.selectHeader.querySelector("[data-mobile-tab-selected]").textContent=o.textContent:this.selectHeader.textContent=o.textContent,this.selectHeader.append(this.btn)))}),document.addEventListener("click",o=>
26{o.target.closest(".select")||(this.options.style.display="none")})}};document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".select").forEach(e=>new L(e))});window.addEventListener("DOMContentLoaded",()=>{let n=document.querySelectorAll(".dragscrolling"),e=!1,o,t;n.length&&n.forEach(s=>{s.addEventListener("mousedown",c=>{e=!0,o=c.pageX-s.offsetLeft,t=s.scrollLeft}),s.addEventListener("mouseleave",()=>{e=!1}),s.addEventListener("mouseup",()=>{e=!1}),s.addEventListener("mousemove",c=>{if(!e)return;c.preventDefault();let a=(c.pageX-s.offsetLeft-o)*3;s.scrollLeft=t-a})})});window.addEventListener("DOMContentLoaded",()=>{class n{constructor(){this.showMoreButtons=document.querySelectorAll(".show-more__btn"),this.hiddenItemsContainers=document.querySelectorAll(".show-more__hidden"),this.showMoreButtons.forEach((t,s)=>{t.addEventListener("click",()=>this.toggleHiddenItems(s))})}toggleHiddenItems(t){this.hiddenItemsContainers[t].style.display==="none"||this.hiddenItemsContainers[t].style.display===""?(this.hiddenItemsContainers[t].style.display="block",this.showMoreButtons[t].textContent="\u0421\u043A\u0440\u044B\u0442\u044C"):(this.hiddenItemsContainers[t].style.display="none",this.showMoreButtons[t].textContent="\u041F\u043E\u043A\u0430\u0437\u0430\u0442\u044C \u0435\u0449\u0451")}}let e=new n});window.addEventListener("DOMContentLoaded",()=>{let n=document.querySelector(".show-more__button"),e=document.querySelector(".close__button"),o=document.querySelector(".show-more__container");function t(){o.style.display==="none"||o.style.display===""?(o.style.display="block",n.style.display="none",e.style.display="block"):(o.style.display="none",n.style.display="block",e.style.display="none")}n&&(n.addEventListener("click",()=>t()),e.addEventListener("click",()=>t()))});window.addEventListener("DOMContentLoaded",()=>{if(document.querySelector('[data-modal="notification"]')){let s=function(){let c=t.value;[...o].every(a=>a.checked)&&c.trim()!==""?e.disabled=!1:e.disabled=!0};var n=s;let e=document.querySelector(".btn__link_modal"),o=document.querySelectorAll(".checkbox__input"),t=document.querySelector("#email");s(),o.forEach(c=>{c.addEventListener("change",s)})}});window.addEventListener("DOMContentLoaded",()=>{let n=document.querySelector(".dropdown__title--hid"),e=document.querySelector(".dropdown__content--hid");!n&&!e||(window.innerWidth<1240?(n.classList.remove("active"),e.style.display="none"):(n.classList.add("active"),e.style.display="block"))});window.addEventListener("DOMContentLoaded",()=>{let n=document.querySelectorAll(".directions__btn"),e=document.querySelectorAll(".directions__image");n.forEach(function(o){o.addEventListener("click",function(t){let s=t.currentTarget.dataset.path;n.forEach(function(c){c.classList.remove("directions__btn--active")}),t.currentTarget.classList.add("directions__btn--active"),e.forEach(function(c){c.classList.remove("directions__image--active")}),document.querySelector(`[data-target="${s}"]`).classList.add("directions__image--active")})})});document.addEventListener("DOMContentLoaded",function(){let n=document.getElementById("applicant-timer"),e=document.querySelector(".deadline_text");if(!n)return;let t=parseInt(n.getAttribute("data-timeout")||0,10),s=document.getElementById("timer_d"),c=document.getElementById("timer_h"),_=document.getElementById("timer_m"),a=i=>i<10?"0"+i:i;function f(){if(t<=0){clearInterval(l),s.textContent="00",c.textContent="00",_.textContent="00",n&&(n.style.display="none"),e&&(e.style.display="block");return}let i=Math.floor(t/(3600*24)),r=Math.floor(t%(3600*24)/3600),u=Math.floor(t%3600/60);s.textContent=a(i),c.textContent=a(r),_.textContent=a(u),t--}e&&t>0&&(e.style.display="none"),f();let l=setInterval(f,1e3)});document.addEventListener("DOMContentLoaded",function(){document.querySelectorAll(".applicant-calc-input").forEach(o=>{o.addEventListener("keydown",function(t){let s=[8,9,13,37,38,39,40,46],c=t.keyCode>=48&&t.keyCode<=57||t.keyCode>=96&&t.keyCode<=105;!s.includes(t.keyCode)&&!c&&t.preventDefault()}),o.addEventListener("paste",function(t){let s=t.clipboardData.getData("text/plain");/^\d*$/.test(s)||t.preventDefault()}),o.addEventListener("change",function(){e(this)}),o.addEventListener("input",function(){e(this)})});
26function e(o){let t=o.value;if(t==="")return;let s=t.replace(/\D/g,"");s.length>0&&parseInt(s,10)>100&&(s="100"),o.value=s}});window.addEventListener("DOMContentLoaded",()=>{let n=document.getElementsByClassName("announce__not_sure")[0],e=document.getElementsByClassName("announce__not_sure__close_button")[0];e&&n&&e.addEventListener("click",()=>{n.style.display="none"});function o(){document.body.style.height="",document.body.style.overflowY="";let t=document.getElementsByClassName("openday_block__filter");for(let l of t){if(l.dataset.initialized)continue;l.dataset.initialized="true";let i=l.querySelector(".openday_block__filter_control"),r=l.querySelector(".openday_block__filter_body");if(!i||!r)continue;i.addEventListener("click",function(d){d.target.closest(".openday_block__filter_checkbox, .openday__input_label")||d.target.closest(".openday_block__filter--nested, .openday_block__filter--nested-2")||_(r,i)}),r.querySelectorAll(".openday_block__filter--nested").forEach(d=>{let p=d.querySelector(".openday_block__filter_control"),y=d.querySelector(".openday_block__filter_body");if(!p||!y)return;p.addEventListener("click",function(h){h.target.closest(".openday_block__filter_checkbox, .openday__input_label")||(h.stopPropagation(),_(y,p))}),y.querySelectorAll(".openday_block__filter--nested-2").forEach(h=>{let k=h.querySelector(".openday_block__filter_control"),g=h.querySelector(".openday_block__filter_body");!k||!g||k.addEventListener("click",function(E){E.target.closest(".openday_block__filter_checkbox, .openday__input_label")||(E.stopPropagation(),_(g,k))})})})}document.addEventListener("click",function(l){let i=l.target.closest(".openday_block__filter_more");if(!i)return;let r=i.closest(".openday_block__filter_body");if(!r)return;r.querySelectorAll(".openday_block__filter_checkbox--hidden").forEach(d=>{d.classList.remove("openday_block__filter_checkbox--hidden")}),i.classList.add("openday_block__filter_more--hidden"),l.stopPropagation()}),document.addEventListener("change",function(l){let i=l.target;if(i.matches(".openday_block__filter_checkbox--all input.openday__input_checkbox")){let r=i.closest(".openday_block__filter_body");if(!r)return;s(r,i.checked,!0)}});function s(l,i,r=!1){let u=r?":scope > .openday_block__filter_checkbox input.openday__input_checkbox":":scope > .openday_block__filter_checkbox:not(.openday_block__filter_checkbox--all) input.openday__input_checkbox";l.querySelectorAll(u).forEach(y=>{y.checked!==i&&(y.checked=i,c(y))}),l.querySelectorAll(":scope > .openday_block__filter").forEach(y=>{let v=y.querySelector(".openday_block__filter_body");v&&s(v,i,r)})}function c(l){typeof dodArchiveVideoFilter_formSmartFilter!="undefined"&&typeof dodArchiveVideoFilter_formSmartFilter.click=="function"&&dodArchiveVideoFilter_formSmartFilter.click(l)}function _(l,i){!l.classList.contains("openday_block__filter_body--active")&&i.closest(".openday_block__filter, .openday_block__filter--nested, .openday_block__filter--nested-2").querySelectorAll(".openday_block__filter_body--active, .openday_block__filter_control--active").forEach(p=>{p.classList.remove("openday_block__filter_body--active","openday_block__filter_control--active")}),i.classList.toggle("openday_block__filter_control--active"),l.classList.toggle("openday_block__filter_body--active")}function a(l){l.querySelectorAll(".openday_block__filter--nested, .openday_block__filter--nested-2").forEach(r=>{let u=r.querySelector(".openday_block__filter_body"),d=r.querySelector(".openday_block__filter_control");u&&d&&(u.classList.remove("openday_block__filter_body--active"),d.classList.remove("openday_block__filter_control--active"))})}document.querySelectorAll(".openday_block__col_filters").forEach(l=>{let i=l.querySelector(".openday_block__filters_box"),r=l.querySelector(".openday_block__close_button"),u=l.querySelector(".openday__input_text__search"),d=0;!i||!r||!u||(u.addEventListener("click",()=>{i.classList.add("openday_block__filters_box--active"),d=window.scrollY,document.body.style.height="100vh",document.body.style.overflowY="hidden"}),r.addEventListener("click",()=>{i.classList.remove("openday_block__filters_box--active"),document.body.style.height="",document.body.style.overflowY="",window.scrollTo({top:d,behavior:"instant"})}))}),document.querySelectorAll(".openday_block__filter_autoclose").forEach(l=>{l.addEventListener("change",function(i){if(i.target.matches('input[type="radio"]')){let r=i.target,u=l.querySelector(".openday_block__filter_value");if(u){let d=l.querySelector(`label[for="${r.id}"]`);d&&(u.textContent=d.textContent)}_(l.querySelector(".openday_block__filter_control"),l)}})})}window.initFilters=o,o()});})();
27//# sourceMappingURL=index.js.map
28
29/* End */
30;
31; /* Start:"a:4:{s:4:"full";s:107:"/vendor/ranepa/bitrix-library/src/Components/RanepaFormContainer/templates/.default/script.js?1790238152835";s:6:"source";s:93:"/vendor/ranepa/bitrix-library/src/Components/RanepaFormContainer/templates/.default/script.js";s:3:"min";s:0:"";s:3:"map";s:0:"";}"*/
32(function () {
33    function bindFormLinks() {
34        if (window.RanepaCompositeRuntime && typeof window.RanepaCompositeRuntime.bindFormLinks === 'function') {
35            window.RanepaCompositeRuntime.bindFormLinks(document);
36            return;
37        }
38
39        let hrefElementsList = document.querySelectorAll('[href]');
40        var regexp = new RegExp(/^FORM-ID=.+$/);
41
42        hrefElementsList.forEach(function(el){
43            if(regexp.test(el.getAttribute('href')))
44            {
45                el.setAttribute('data-open-modal', 'contactsBlockButtonModal_' + el.getAttribute('href').replace('FORM-ID=', ''));
46            }
47        });
48    }
49
50    if (document.readyState === 'loading') {
51        document.addEventListener('DOMContentLoaded', bindFormLinks, { once: true });
52    } else {
53        bindFormLinks();
54    }
55})();
56
57/* End */
58;; /* /local/components/bash/popup.slider/templates/modals/script.
58js?1762857535482*/
59; /* /local/libcss/projects/redesign-applicant/common/build/js/index.js?175552185514462*/
60; /* /vendor/ranepa/bitrix-library/src/Components/RanepaFormContainer/templates/.default/script.js?1790238152835*/

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.