PageSourceSearch

https://elementaree.ru/landings-assets/js/lazyload-1.3.min.js

js elementaree.ru collected 2026-09-25 21:02:03 UTC 6,415 bytes, 1 lines download raw bytes

1function t_lazyload_update(){"undefined"!=typeof lazyload_cover&&lazyload_cover.update(),"undefined"!=typeof lazyload_img&&lazyload_img.update(),"undefined"!=typeof lazyload_bgimg&&lazyload_bgimg.update()}!function(t,e){"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?module.exports=e():t.LazyLoad=e()}(this,(function(){function t(t,e,o){return d?void t.addEventListener(e,o):void(u&&(t.attachEvent("on"+e,function(t){return function(){o.call(t,window.event)}}(t)),t=null))}function e(t,e,o){return d?void t.removeEventListener(e,o):void(u&&t.detachEvent("on"+e,o))}function o(t,e,o){function l(){return window.innerWidth||s.documentElement.clientWidth||document.body.clientWidth}function n(t){return t.getBoundingClientRect().top+a-s.documentElement.clientTop}function i(t){return t.getBoundingClientRect().left+r-s.documentElement.clientLeft}var s,a,r;return s=t.ownerDocument,a=window.pageYOffset||s.body.scrollTop,r=window.pageXOffset||s.body.scrollLeft,!((e===window?(window.innerHeight||s.documentElement.clientHeight||document.body.clientHeight)+a:n(e)+e.offsetHeight)<=n(t)-o||(e===window?a:n(e))>=n(t)+o+t.offsetHeight||(e===window?l()+window.pageXOffset:i(e)+l())<=i(t)-o||(e===window?r:i(e))>=i(t)+o+t.offsetWidth)}function l(){return(new Date).getTime()}function n(t,e){return _?void t.classList.add(e):void(t.className+=(t.className?" ":"")+e)}function i(t,e){return _?void t.classList.remove(e):void(t.className=t.className.replace(new RegExp("(^|\\s+)"+e+"(\\s+|$)")," ").replace(/^\s+/,"").replace(/\s+$/,""))}function s(t,e,o,l){var n=e.getAttribute("data-"+l),i=e.getAttribute("data-"+o),s=t.tagName;return"IMG"===s?(i&&t.setAttribute("srcset",i),void(n&&t.setAttribute("src",n))):"IFRAME"===s?void(n&&t.setAttribute("src",n)):void(t.style.backgroundImage="url("+n+")")}function a(t,e){return function(){return t.apply(e,arguments)}}function r(e){h||(c={elements_selector:"img",container:window,threshold:300,throttle:50,data_src:"original",data_srcset:"original-set",class_loading:"loading",class_loaded:"loaded",skip_invisible:!0,show_while_loading:!0,callback_load:null,callback_error:null,callback_set:null,callback_processed:null,placeholder:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},d=!!window.addEventListener,u=!!window.attachEvent,_=!!document.body.classList,h=!0),this._settings=function(t,e){var o,l={};for(o in t)t.hasOwnProperty(o)&&(l[o]=t[o]);for(o in e)e.hasOwnProperty(o)&&(l[o]=e[o]);return l}(c,e),this._queryOriginNode=this._settings.container===window?document:this._settings.container,this._previousLoopTime=0,this._loopTimeout=null,this._handleScrollFn=a(this.handleScroll,this),t(window,"resize",this._handleScrollFn),this.update()}var c,d,u,_,h=!1;return r.prototype._showOnLoad=function(o){var l,a=this._settings;o.getAttribute("src")||o.setAttribute("src",a.placeholder),t(l=document.createElement("img"),"load",(function t(){null!==a&&(a.callback_load&&a.callback_load(o),s(o,o,a.data_srcset,a.data_src),a.callback_set&&a.callback_set(o),i(o,a.class_loading),n(o,a.class_loaded),e(l,"load",t))})),t(l,"error",(function(){i(o,a.class_loading),a.callback_error&&a.callback_error(o)})),n(o,a.class_loading),s(l,o,a.data_srcset,a.data_src)},r.prototype._showOnAppear=function(o){function l(){null!==a&&(a.callback_load&&a.callback_load(o),i(o,a.class_loading),n(o,a.class_loaded),e(o,"load",l))}var a=this._settings;("IMG"===o.tagName||"IFRAME"===o.tagName)&&(t(o,"load",l),t(o,"error",(function(){e(o,"load",l),i(o,a.class_loading),a.callback_error&&a.callback_error(o)})),n(o,a.class_loading)),s(o,o,a.data_srcset,a.data_src),a.callback_set&&a.callback_set(o)},r.prototype._loopThroughElements=function(){var t,e,l=this._settings,n=this._elements,i=n?n.length:0,s=[];for(t=0;i>t;t++)e=n[t],l.skip_invisible&&null===e.offsetParent||o(e,l.container,l.threshold)&&(l.show_while_loading?this._showOnAppear(e):this._showOnLoad(e),s.push(t),e.wasProcessed=!0);for(;s.length>0;)n.splice(s.pop(),1),l.callback_processed&&l.callback_processed(n.length);0===i&&this._stopScrollHandler()},r.prototype._purgeElements=function(){var t,e=this._elements,o=e.length,l=[];for(t=0;o>t;t++)e[t].wasProcessed&&l.push(t);for(;l.length>0;)e.splice(l.pop(),1)},r.prototype._startScrollHandler=function(){this._isHandlingScroll||(this._isHandlingScroll=!0,t(this._settings.container,"scroll",this._handleScrollFn))},r.prototype._stopScrollHandler=function(){this._isHandlingScroll&&(this._isHandlingScroll=!1,e(this._settings.container,"scroll",this._handleScrollFn))},r.prototype.handleScroll=function(){var t,e,o;this._settings&&(e=l(),0!==(o=this._settings.throttle)?0>=(t=o-(e-this._previousLoopTime))||t>o?(this._loopTimeout&&(clearTimeout(this._loopTimeout),this._loopTimeout=null),this._previousLoopTime=e,this._loopThroughElements()):this._loopTimeout||(this._loopTimeout=setTimeout(a((function(){this._previousLoopTime=l(),this._loopTimeout=null,this._loopThroughElements()}),this),t)):this._loopThroughElements())},r.prototype.update=function(){this._elements=function(t){try{return Array.prototype.slice.call(t)}catch(n){var e,o=[],l=t.length;for(e=0;l>e;e++)o.push(t[e]);return o}}(this._queryOriginNode.querySelectorAll(this._settings.elements_selector)),this._purgeElements(),this._loopThroughElements(),this._startScrollHandler()},r.prototype.destroy=function(){e(window,"resize",this._handleScrollFn),this._loopTimeout&&(clearTimeout(this._loopTimeout),this._loopTimeout=null),this._stopScrollHandler(),this._elements=null,this._queryOriginNode=null,this._settings=null},r})),window.lazy="y",$(document).ready((function(){setTimeout((function(){lazyload_cover=new LazyLoad({elements_selector:".t-cover__carrier",show_while_loading:!1,data_src:"content-cover-bg",placeholder:"",threshold:700})}),100),setTimeout((function(){lazyload_img=new LazyLoad({elements_selector:".t-img",threshold:800}),lazyload_bgimg=new LazyLoad({elements_selector:".t-bgimg",show_while_loading:!1,placeholder:"",threshold:800}
1),lazyload_iframe=new LazyLoad({elements_selector:".t-iframe"}),$(document).bind("slide.bs.carousel",(function(t){setTimeout((function(){lazyload_cover.update(),lazyload_img.update(),lazyload_bgimg.update()}),500)})),$isMobile&&($("body").append("<div class='t-mbfix'></div>"),setTimeout((function(){$(".t-mbfix").addClass("t-mbfix_hide")}),50),setTimeout((function(){$(".t-mbfix").remove()}),1e3))}),500)}));

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.