Apple AirTag (1-pack)
{
// Ask any tabs block on the page to open the Lipscore tab/accordion.
// tabs.tpl listens for this on the window and sets activeTab = 'l'.
window.dispatchEvent(new CustomEvent('open-product-tab', { detail: 'l' }));
const isMobile = window.innerWidth < 768;
const header = isMobile
? document.querySelector('.__mobile-header')
: document.querySelector('header');
const headerHeight = header ? header.offsetHeight : 0;
// Scroll to the lipscore tab heading (desktop) or accordion heading (mobile).
// Wait one tick so Alpine can render the now-active panel before measuring.
setTimeout(() => {
const target = isMobile
? document.querySelector('.mobile_lipscore_tab_link')
: document.querySelector('.__lipscore_tab_link') || document.querySelector('.mobile_lipscore_tab_link');
if (!target) return;
window.scrollTo({
top: target.getBoundingClientRect().top + window.scrollY - headerHeight,
behavior: 'smooth'
});
}, 100);
}">
Lose your knack for losing things.
AirTag is an easy way to keep track of your stuff. Attach one to your keys, slip another one in your backpack. And just like that, they’re on your radar in the Find My app. AirTag has your back.
Les mer