(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();
})();
1/5
${data.index + 1}/${data.total}
1/5
${data.index + 1}/${data.total}
DESCRIPTION
One for sorrow, two for joy. This lamp features two magpies in a tree and an egg on the base. One of the magpies will light up automatically when you come near in the dark. Both the magpies and the egg can be used individually. This Smart Magpie Lamp will brighten up and bring joy into your home.
FEATURE
Sensing distance 4 meters, 110 degrees
Magpie adopts human body sensing + light-sensing technology
The egg adopts a vibration sensor switch, three gears adjustment
${isCart ? 'The items in the shopping cart do not participate in any recommendation rule. Add the participating items to your shopping cart to check the design.' : ''}
${isProduct ? 'This product did not participated in any recommendation rule. Switch to another product to check the design.' : ''}
${isCollection ? 'The items in this collection do not participate in any recommendation rule. Switch the participating items to check the design.' : ''}
${isIndex ? 'The home page do not participate in any recommendation rule.' : ''}
(This prompt would not display on client-side)