/*
(function () {
  const root = document.documentElement;
  const raw = getComputedStyle(root).getPropertyValue('--nav-h').trim();
  const NAV_H = parseFloat(raw || '72');

  function scrollToHash(id, smooth = true) {
    const el = document.querySelector(id);
    if (!el) return;
    const y = el.getBoundingClientRect().top + window.scrollY - NAV_H - 16;
    console.log("Scrolling to", id, "Y=", y);
    window.scrollTo({ top: y, behavior: smooth ? 'smooth' : 'auto' });
  }

  // 1. Intercept in-page anchor clicks
  document.querySelectorAll('a[href*="#"]').forEach(a => {
    a.addEventListener('click', e => {
      const href = a.getAttribute('href');
      if (!href) return;
      const id = href.includes('#') ? href.substring(href.indexOf('#')) : null;
      if (!id || id === '#') return;
      if (!document.querySelector(id)) return;

      e.preventDefault();
      scrollToHash(id, true);
      history.pushState(null, '', id);
    });
  });

  // 2. Handle page load with hash (from external page or refresh)
  window.addEventListener('load', () => {
    if (location.hash && document.querySelector(location.hash)) {
      // Reset scroll to top first so browser’s auto-scroll doesn’t interfere
      window.scrollTo(0, 0);
      setTimeout(() => scrollToHash(location.hash, false), 50);
    }
  });
})();

*/

Donata

Lauksiu jūsų skambučio ar žinutės – atsakysiu į jūsų klausimus bei aptarsime, kokie sprendimai geriausiai tiks jums.
+370 603 25 640
hello@contento.lt

Lyderiai veikia, o kiti laukia. Parašyk mums!

Mums svarbu ne kiekis, dirbame ten, kur galime sukurti realų poveikį.
+370 603 25 640
hello@contento.lt

Daugiau informacijos

Projektai

Mūsų projektai apima prekės ženklo strategijas, kūrybines kampanijas ir inovatyvius sprendimus, didinančius klientų žinomumą.
Visi darbai

Paslaugos

Mūsų kūrybiškumas generuoja išskirtines idėjas, o strateginiai sprendimai jas paverčia rezultatais.
Mūsų paslaugos

Apie mus

Mūsų komanda jungia strategiją, kūrybą ir technologijas tam, kad jūsų prekės ženklas būtų matomas, išgirstas ir pasirenkamas.
Apie mus