- [Case Studies](https://www.mergado.cz/kategorie/case-studies)
- [E‑commerce tipy](https://www.mergado.cz/kategorie/e-commerce-tipy)
- [E‑shopová řešení a platformy](https://www.mergado.cz/kategorie/e-shopova-reseni-a-platformy)
- [Mergado Pack](https://www.mergado.cz/kategorie/mergado-pack)
- [Mergado tipy](https://www.mergado.cz/kategorie/mergado-tipy)
- [Novinky v Mergadu](https://www.mergado.cz/kategorie/novinky-v-mergadu)
- [Novinky ze srovnávačů](https://www.mergado.cz/kategorie/novinky-ze-srovnavacu)
- [Pracujeme s Mergadem](https://www.mergado.cz/kategorie/pracujeme-s-mergadem)
- [Rozhovory](https://www.mergado.cz/kategorie/rozhovory)
- [Rozšíření](https://www.mergado.cz/kategorie/aplikace)
- [S Mergadem do zahraničí](https://www.mergado.cz/kategorie/s-mergadem-do-zahranici)
- [Ze života Mergada](https://www.mergado.cz/kategorie/ze-zivota-mergada)
 



 

 1. [  Úvod  ](https://www.mergado.cz/)
2. [     Blog  ](https://www.mergado.cz/blog)
3. [     Mergado tipy  ](https://www.mergado.cz/kategorie/mergado-tipy)
4. <a class="flex items-center gap-2 hover:underline" href="" itemid="" itemprop="item" itemscope="" itemtype="https://schema.org/Thing">    **Video: Mergadovy tipy #8** </a>
 
  

 

#  **Video: Mergadovy tipy #8** 

 

 

 [    ![](https://www.mergado.cz/sites/default/files/perm/user-avatar/foto.jpg)   Natália Saganová  ](https://www.mergado.cz/blog/natalia-saganova) [Mergado tipy](https://www.mergado.cz/kategorie/mergado-tipy) 

4. 10. 2018

1 minuta čtení

 

 

 

 

 

  ![Video: Mergadovy tipy #8](https://www.mergado.cz/sites/default/files/field/image/tipy8.png)  

Po delší době přicházejí Mergadovy tipy a s nimi novinky z Mergada. V našem store objevíte novou aplikaci Pairing Bear. Kromě toho máme nové školení Workshop: Expanze do zahraničí. Sledujete naši Mergado TV? Již brzy do ní přibudou nové rubriky. Jaké to budou a na co slouží Pairing Bear se dozvíte z našeho videa.



 

 

 
                function tableOfContents() {
                  return {
                    headings_menu: [],
                    heading_active: '', // Added to track the active section
                    shouldBeSticky: false,

                    generateToC() {
                      const headings = document.querySelectorAll('.js-article-full-headings h2, .js-article-full-headings h3');
                      let headingMap = {};

                      headings.forEach((heading) => { // Use an arrow function to maintain `this` context
                        // Normalize heading text to remove diacritics, then replace non-alphanumeric characters with dashes
                        var normalizedText = heading.textContent.normalize("NFD").replace(/[\u0300-\u036f]/g, ""); // Remove diacritics
                        var id = heading.id ? heading.id : normalizedText.trim().toLowerCase()
                          .split(' ').join('-').replace(/[^a-z0-9\-]/ig, ''); // Updated regex to replace non-alphanumeric characters
                        headingMap[id] = headingMap[id] !== undefined ? ++headingMap[id] : 0;

                        // Use the updated `id` with diacritics removed for the heading id and the TOC
                        const finalId = headingMap[id] ? `${id}-${headingMap[id]}` : id;
                        this.headings_menu.push({
                          id: finalId,
                          title: heading.textContent,
                          level: heading.tagName.toLowerCase(), // Track heading level
                          active: false, // Initially set active to false
                        });
                        heading.id = finalId;
                      });
                    },

                    checkStickyNeeded() {
                      const ul = this.$el.querySelector('ul');
                      if (ul) {
                        this.shouldBeSticky = ul.scrollHeight < window.innerHeight;
                      }
                    },

                    setActiveHeading() {
                      // disabled not working with active state on click
                      // add @scroll.window="setActiveHeading()" to the parent div

                      // const headings = document.querySelectorAll('.js-article-full-headings h2');
                      // let activeHeading = '';
                      // let closestHeadingDistance = Infinity;

                      // headings.forEach((heading) => {
                      //   const rect = heading.getBoundingClientRect();
                      //   const offset = rect.top - window.innerHeight / 2; // Consider heading in the middle of the screen as active

                      //   if (offset < 0 && Math.abs(offset) < closestHeadingDistance) {
                      //     activeHeading = heading.id;
                      //     closestHeadingDistance = Math.abs(offset);
                      //   }
                      // });

                      // // Update the active state in headings_menu
                      // if (activeHeading !== this.heading_active) {
                      //   this.headings_menu = this.headings_menu.map(item => ({
                      //     ...item,
                      //     active: item.id === activeHeading,
                      //   }));
                      //   this.heading_active = activeHeading;

                      // }
                    },

                    setActiveItem(clickedId) {
                      this.headings_menu.forEach(item => {
                        item.active = (item.id === clickedId);
                      });
                      this.heading_active = clickedId; // Optionally update the heading_active property if used
                    },
                  };
                }
               1. <a :class="{ 'border-r-[3px] border-secondary': item.active, 'text-sm': item.level === 'h3' }" :href="'#' + item.id" class="inline-block text-balance hover:underline p-0.5 pr-3">  — </a>
  



 

Po delší době přicházejí Mergadovy tipy a s nimi novinky z Mergada. V našem store objevíte novou aplikaci [Pairing Bear](http://store.mergado.com/detail/pairingbear/#about). Kromě toho máme nové školení [Workshop: Expanze do zahraničí](https://www.mergado.cz/workshop-expanze-do-zahranici-0). Sledujete naši [Mergado TV](http://www.mergado.cz/tv)? Již brzy do ní přibudou nové rubriky. Jaké to budou a na co slouží Pairing Bear se dozvíte z našeho videa.



 

  

 

Záznam videa si pusťte na našem podcastu MergadoToGo.



 

- [  Mergado ](https://www.mergado.cz/tema/mergado)
- [  Pairing Bear ](https://www.mergado.cz/tema/pairing-bear)
 
 [    ![](https://www.mergado.cz/sites/default/files/perm/user-avatar/foto.jpg)  ](https://www.mergado.cz/blog/natalia-saganova)###  [ Natália Saganová ](https://www.mergado.cz/blog/natalia-saganova) 

Natálka v Mergadu začínala jako copywriterka, a proto na blogu narazíte i na její články. Teď ji nejčastěji uvidíte před hledáčkem kamery nebo jako hlavní organizátorku každoročního MergadoFestu. Šéfka copy týmu nepohrdne dobrým jídlem a ráda cestuje, nejlépe obojí dohromady. Je milovnice jógy, dobré knihy a tance.

 

 

 

 

 

 

 

 

 

## Mohlo by vás *zajímat*

 

 [    ![](https://www.mergado.cz/sites/default/files/perm/image/ai_boost-2.jpg)  

### Jak by měl vypadat správný kontext o klientovi pro performance specialisty

 

 ](https://www.mergado.cz/blog/master-prompt-eshopy-b2c) 

 [    ![](https://www.mergado.cz/sites/default/files/perm/image/heureka_google_rec.jpg)  

### Heureka recenze do Google recenzí: nový postup krok za krokem

 

 ](https://www.mergado.cz/blog/heureka-recenze-do-google-recenzi) 

 [    ![](https://www.mergado.cz/sites/default/files/perm/image/dynamicky_pricing_bez_ztraty_zisku.jpg)  

### 10 tipů, jak přežít mezi vlky (hyperkonkurenční e‑commerce)

 

 ](https://www.mergado.cz/blog/sila-cenotvorby) 

 

 

 

## Ať vám *nic neunikne*

 Přihlašte se do našeho newsletteru 

   

       

   Přihlášením souhlasíte, že vaše údaje zpracujeme v souladu s podmínkami o [ochraně osobních údajů](https://www.mergado.cz/prohlaseni-o-cookies). 

  Děkujeme, úspěšně jste se připojili k našemu seznamu odběratelů. 

 

 

 
      function ml_webform_success_5807248() {
        var r = ml_jQuery || jQuery
        r('.ml-subscribe-form-5807248 .row-success').show(), r('.ml-subscribe-form-5807248 .row-form').hide()
      }