PageSourceSearch

https://sangtuda.com/bitrix/templates/aspro-allcorp3/js/logo.min.js?17262242314160

js sangtuda.com collected 2026-10-02 22:29:11 UTC 4,160 bytes, 1 lines download raw bytes

1if(void 0===window.JLogo){let readyFunc;window.JLogo=function(node,params){var _private={inited:!1};Object.defineProperties(this,{inited:{get:function(){return _private.inited},set:function(value){value&&(_private.inited=!0)}},node:{get:function(){return node}},img:{get:function(){return node?node.querySelector("img"):null}},svg:{get:function(){return node?node.querySelector("svg"):null}}}),this.params=function(key){if("object"==typeof params&&void 0!==key&&Object.keys(params).indexOf(key)>-1)return params[key]},this.init()},window.JLogo.prototype={get src(){return this.img?this.img.getAttribute("src"):""},set src(value){this.img&&this.img.setAttribute("src",value)},get srcDark(){return arAsproOptions.THEME.LOGO_IMAGE},get srcLight(){return arAsproOptions.THEME.LOGO_IMAGE_WHITE},get color(){if(this.img){let src=this.src;return src===this.srcDark?"dark":src===this.srcLight?"light":""}return""},set color(value){this.canChangeColor&&this.color!==value&&(this.src="light"===value?this.srcLight:this.srcDark)},get isCustomHeader(){return Boolean(this.node.closest(".header-custom"))},get isMainLogo(){return Boolean(this.node.closest("header"))},get isMenuFilledDark(){return this.img&&Boolean(this.img.closest(".header--color_dark, .header--color_colored, .mobileheader--color-colored, .mobileheader--color-dark"))},get isHeaderHasOffset(){return this.img&&Boolean(this.img.closest(".header--offset"))},get onBanner(){return this.isMainLogo&&Boolean(BX.hasClass(document.body,"header_opacity"))},get onTopPart(){return this.img&&Boolean(this.img.closest(".header__top-part"))},get onTransparentRow(){return this.img&&(Boolean(this.img.closest(".header--color_light.bg_none"))||this.onTopPart&&this.isHeaderHasOffset||Boolean(this.img.closest(".header__main-inner.bg_none"))&&!this.isHeaderHasOffset)},get allowChangeBySlider(){return this.onBanner&&this.onTransparentRow&&!this.isCustomHeader},get canChangeColor(){return this.img&&this.srcLight&&!this.allowChangeBySlider&&!(this.onTopPart&&this.isMenuFilledDark&&!this.isHeaderHasOffset)&&!(!this.onTopPart&&this.isMenuFilledDark)},setColorOfBanner:function(banner){this.img&&banner&&void 0!==window.headerLogo&&(value=BX.data(banner,"color"),value=value||"dark",this.color!==value&&this.node.setAttribute("src","light"===value?this.srcLight:this.srcDark))},get isPreferColor(){return BX.hasClass(document.body,"theme-default")},get preferColor(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"},get themeColor(){return this.isPreferColor?this.preferColor:BX.hasClass(document.body,"theme-dark")?"dark":"light"},init:function(){this.inited||(this.inited=!0,this.img&&!this.isCustomHeader&&(this.color=this.isMenuFilledDark?"light":this.getInvertedColor(this.themeColor),this.bindEvents()))},getInvertedColor:function(value){return"default"===value&&(value=this.preferColor),"light"===value?"dark":"dark"===value?"light":""},bindEvents:function(){"function"==typeof this.handlers.onChangePrefersColorScheme&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",BX.proxy(this.handlers.onChangePrefersColorScheme,this)),"function"==typeof this.handlers.onChangeThemeColor&&BX.addCustomEvent("onChangeThemeColor",BX.proxy(this.handlers.onChangeThemeColor,this))},unbindEvents:function(){},handlers:{onChangePrefersColorScheme:function(event){event||(event=window.event);let newColor=event.matches?"dark":"light";this.isPreferColor&&(this.color=this.getInvertedColor(newColor)),BX.setCookie("prefers-color-scheme",newColor)},onChangeThemeColor:function(eventdata){"object"==typeof eventdata&&eventdata&&"value"in eventdata&&(this.color=this.getInvertedColor(eventdata.value))}}},("function"==typeof readyDOM?readyDOM:BX.ready)((function(){window.headerLogo=new JLogo(document.querySelector("header .logo")),window.headerfixedLogo=new JLogo(document.querySelector("#headerfixed .header .logo")),window.mobileheaderLogo=new JLogo(document.querySelector("#mobileheader .mobileheader .logo")),window.mobilemenuLogo=new JLogo(document.querySelector("#mobilemenu .mobilemenu .logo")),BX.setCookie("prefers-color-scheme",window.headerLogo.preferColor)}))}

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.