(function () {
let w = window.innerWidth;
function setHeaderCssVar() {
const headerEle = document.getElementById(
"shoplaza-section-header",
);
if (!headerEle) {
return;
}
document.body.style.setProperty(
"--window-height",
`${window.innerHeight}px`,
);
document.body.style.setProperty(
"--header-height",
`${headerEle.clientHeight}px`,
);
const mdScorllHideEle = headerEle.querySelector(
".header__mobile .header__scroll_hide",
);
if (mdScorllHideEle) {
document.body.style.setProperty(
"--header-scroll-hide-height-md",
`${mdScorllHideEle.clientHeight}px`,
);
}
const pcScorllHideEle = headerEle.querySelector(
".header__desktop .header__scroll_hide",
);
if (pcScorllHideEle) {
document.body.style.setProperty(
"--header-scroll-hide-height-pc",
`${pcScorllHideEle.clientHeight}px`,
);
}
}
function handlResize() {
if (w == window.innerWidth) {
return;
}
w = window.innerWidth;
setHeaderCssVar();
}
function init() {
setHeaderCssVar();
window.removeEventListener("resize", window._theme_header_listener);
window._theme_header_listener = handlResize;
window.addEventListener("resize", window._theme_header_listener);
}
init();
})();
You may also like
1/1
${data.index + 1}/${data.total}
1/1
${data.index + 1}/${data.total}
وصف
Keep it professional with the solid performance of this Kenneth Cole Unlisted dress shirt. Designed for easy wear and care, this machine-washable style is cut from a breathable, lightweight cotton-blend fabric for all-day comfort in and out of the office. Sewn-in collar stays ensure a crisp, neat look, that works from day to night. Available in Slim, Regular, and Big & Tall to fit every body.