(function () {const map = {
'#regular': 0,
'#upcycling': 1,
'#mosaic': 2,
'#plate': 3,
'#block': 4,
'#project': 5
};function activateTabByHash() {
const hash = window.location.hash;
if (!map.hasOwnProperty(hash)) return false;const tabs = document.querySelectorAll('.elementor-tabs .elementor-tab-title');
const index = map[hash];if (!tabs.length || !tabs[index]) return false;// 🔑 官方切换方式:aria-selected
tabs.forEach(tab => tab.setAttribute('aria-selected', 'false'));
tabs[index].setAttribute('aria-selected', 'true');// 同步内容面板
const contents = document.querySelectorAll('.elementor-tabs .elementor-tab-content');
contents.forEach(c => c.style.display = 'none');
contents[index].style.display = 'block';// 滚动到 Tabs(可选)
tabs[index].scrollIntoView({ behavior: 'smooth', block: 'start' });return true;
}let tries = 0;
const timer = setInterval(() => {
tries++;
if (activateTabByHash() || tries > 30) {
clearInterval(timer);
}
}, 300);})();















Let's Connect



