PageSourceSearch

https://ctk71.ru/abitur/assets/review/v1/common/js/scroll_thead_table.js?v=5.98.2

js ctk71.ru collected 2026-10-08 12:27:11 UTC 6,697 bytes, 2 lines download raw bytes

1!function(t){var n={};function e(o){if(n[o])return n[o].exports;var i=n[o]={i:o,l:!1,exports:{}};return t[o].call(i.exports,i,i.exports,e),i.l=!0,i.exports}e.m=t,e.c=n,e.d=function(t,n,o){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:o})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var o=Object.create(null);if(e.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(o,i,function(n){return t[n]}.bind(null,i));return o},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="https://db-nica.ru/build_ci/review/",e(e.s=95)}({17:function(t,n,e){"use strict";e.d(n,"c",function(){return o}),e.d(n,"a",function(){return r}),e.d(n,"d",function(){return a}),e.d(n,"e",function(){return c}),e.d(n,"b",function(){return l}),Element.prototype.closest||(Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector),Element.prototype.closest=function(t){var n=this;if(!document.documentElement.contains(this))return null;do{if(n.matches(t))return n;n=n.parentElement}while(null!==n);return null});var o={Android:function(){return navigator.userAgent.match(/Android/i)},BlackBerry:function(){return navigator.userAgent.match(/BlackBerry/i)},iOS:function(){return navigator.userAgent.match(/iPhone|iPad|iPod/i)},Opera:function(){return navigator.userAgent.match(/Opera Mini/i)},Windows:function(){return navigator.userAgent.match(/IEMobile/i)},any:function(){return o.Android()||o.BlackBerry()||o.iOS()||o.Opera()||o.Windows()}};var i,r=(i=0,function(t,n){clearTimeout(i),i=setTimeout(t,n)});function a(){return Number($_vikon("[name=to_file]").val())}function c(){var t={byRow:!0,property:"height",target:null,remove:!1};$_vikon(".block-item").matchHeight(t),$_vikon(".block-item-outer").matchHeight(t)}function l(t){var n=t.substr(1),e={};return n.split("&").forEach(function(t){var n=t.split("=");e[n[0]]=decodeURIComponent(n[1])}),e}},95:function(t,n,e){"use strict";e.r(n),e.d(n,"showHideThead",function(){return d}),e.d(n,"initScrollTheadTable",function(){return u}),e.d(n,"isAccessability",function(){return s});var o,i=e(17),r=[];function a(t){var n,e,o=$_vikon("#vikon-content-abitur"),i=o.length,r=document.body,a=document.documentElement;i?(n=o.scrollTop(),e=o.scrollLeft()):(n=window.pageYOffset||a.scrollTop,e=window.pageXOffset||a.scrollLeft);var c=t.getBoundingClientRect(),l=a.clientTop||r.clientTop||0,d=a.clientLeft||r.clientLeft||0;return{top:c.top+n-l,left:c.left+e-d,height:c.height,width:c.width}}function c(){o.each(function(t,n){$_vikon(n).attr("data-table-id",t),r[t]=a(n);var e=$_vikon(n).closest(".vikon-responsive-table")[0];r[t].left+=e.pageXOffset||e.scrollLeft,r[t].theadHeight=a($_vikon(n).find("thead:first")[0]).height})}function l(){$_vikon(".container-thead").remove();var t=$_vikon("#vikon-content-abitur").length?$_vikon(".abitur-modal-content").width():$_vikon(".vikon-content").width();o.each(function(n,e){var o=[],i=$_vikon(e).find("thead");"visible"===i.parents(".vikon-responsive-table").css("overflow")&&(t=i.width()),$_vikon(i).find("tr").each(function(t,n){o[t]=[],$_vikon(n).find("th").each(function(n,e){var i=($_vikon(e).innerHeight()-$_vikon(e).height())/2,r=($_vikon(e).innerWidth()-$_vikon(e).width())/2,c=i-($_vikon(e).outerHeight()-$_vikon(e).innerHeight())/2,l=r-($_vikon(e).outerWidth()-$_vikon(e).innerWidth())/2;o[t][n]={vPadding:c,gPadding:l,height:$_vikon(e).height(),width:a(e).width,text:$_vikon(e).html(),fontSize:$_vikon(e).css("font-size"),fontFamily:$_vikon(e).css("font-family"),color:$_vikon(e).css("color"),backgroundColor:$_vikon(e).css("background-color"),verticalAlign:$_vikon(e).css("vertical-align")}})});var c=document.createElement("thead");c.innerHTML=$_vikon(i).html(),$_vikon(c).find("tr").each(function(t,n){$_vikon(n).find("th").each(function(n,e){var i=o[t][n];$_vikon(e).css({"padding-top":i.vPadding,"padding-left":i.gPadding,"padding-bottom":i.vPadding,"padding-right":i.gPadding,height:i.height,"font-size":i.fontSize,"font-family":i.fontFamily,width:i.width,"min-width":i.width,"max-width":i.width,color:i.color,"background-color":i.backgroundColor,"vertical-align":i.verticalAlign})})});var l=document.createElement("table");l.className="table table-bordered table-sm",l.style.cssText="margin-bottom: 0",l.innerHTML=$_vikon(c).html();var d=document.createElement("div");
1d.className="container-thead";var u=r[n].left;d.style.cssText="position: fixed; top: 0; left: ".concat(u,"px; background-color: #fff; \n        border-bottom: 1px solid #000; display: none; z-index: 1002; overflow-x: hidden; width: ").concat(t,"px"),d.setAttribute("data-table-id",n),$_vikon(d).html(l),$_vikon(".vikon-wrapper").append(d),$_vikon('[data-toggle="popover"]').popover()})}function d(){if($_vikon(".container-thead").hide(),!s()){var t,n=$_vikon("#vikon-content-abitur"),e=n.length;t=e?n.scrollTop():window.pageYOffset||document.documentElement.scrollTop,o.each(function(n,e){var o=e.closest("div.vikon-responsive-table"),i=$_vikon(o).is(":visible"),a=o.pageXOffset||o.scrollLeft;if(r[n].top<t&&r[n].top+r[n].height-r[n].theadHeight>t&&i){var c=$_vikon('div[data-table-id="'.concat(n,'"]'));c.show(),"visible"===$_vikon(o).css("overflow")&&c.offset({left:$_vikon(o).offset().left}),c.scrollLeft(a)}})}}function u(){s()||(o=$_vikon(".table-scroll-thead:visible"),c(),l(),d())}function s(){if(window.sessionStorage){var t=window.sessionStorage.getItem("accessability");return!(null===t||"0"===t)}return!0}$_vikon(function(){u(),$_vikon(document).on("click","a.showpart-btn-list",function(){s()||(c(),l(),d())}),$_vikon(window).on("resize",function(){s()||(c(),l(),d())}).on("scroll",function(){s()||d()}),$_vikon(".abitur-modal").on("scroll",function(){s()||d()}),$_vikon('a[data-toggle="tab"]').on("hidden.bs.tab",function(t){u()}),$_vikon(document).on("modal-open",function(){u()}),$_vikon(".vikon-responsive-table").on("scroll",function(){if(!s()){var t=$_vikon(this).find("table:first").data("table-id");r.length>0&&$_vikon('div[data-table-id="'.concat(t,'"]')).scrollLeft($_vikon(this).scrollLeft())}}),$_vikon(document).on("accessability",function(){s()?d():u();var t=$_vikon("#vikon-content");t.length&&t.hasClass("abitur")&&($_vikon(".block-item").css({height:"0px"}),Object(i.e)())})})}});
2//# sourceMappingURL=scroll_thead_table.js.map

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.