PageSourceSearch

https://oppl.ru/assets/321ac5bf/js/department-search.min.js

js oppl.ru collected 2026-10-02 04:51:54 UTC 1,524 bytes, 1 lines download raw bytes

1$(document).ready(function(){let searchTimeout;let isLoading=false;const $searchInput=$("#department-search");const currentSearch=window.location.search;if(currentSearch){const urlParams=new URLSearchParams(currentSearch);const searchParam=urlParams.get("search");if(searchParam){$searchInput.val(searchParam);$(".mui-wrapper").addClass("focused")}}function debounce(func,wait){return function(){clearTimeout(searchTimeout);searchTimeout=setTimeout(func,wait)}}function removeAllParamsFromUrl(){const newUrl=window.location.pathname;history.replaceState({},"",newUrl)}function performSearch(){if(isLoading)return;isLoading=true;$("#departments-pjax").addClass("pjax-loading");const searchTerm=$searchInput.val().trim();if(searchTerm===""){removeAllParamsFromUrl()}$.pjax({url:"/departments",container:"#departments-pjax",data:searchTerm?{search:searchTerm}:{},scrollTo:false,push:true,replace:true,timeout:5e3}).always(function(){isLoading=false;$("#departments-pjax").removeClass("pjax-loading")})}$searchInput.on("input",debounce(performSearch,500));$searchInput.on("keydown",function(e){if(e.key==="Escape"){$(this).val("");performSearch()}});$(document).on("pjax:success","#departments-pjax",function(event,data,status,xhr,options){const urlParams=new URLSearchParams(window.location.search);const searchParam=urlParams.get("search");if(searchParam){$("#department-search").val(searchParam)}});$(".form-search-area .mui-clear-btn").on("click",function(){$searchInput.val("");removeAllParamsFromUrl();performSearch()})});

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.