Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
34 kB
1
Indexable
Never
window.egMobileMenu1 = ''+ 
    '  <div class="eg-mobile-nav">'+ 
    '      <div class="eg-nav-inr">'+ 
    '          <ul class="eg-menu-option">'+ 
    '              <li class="eg-main-option eg-has-dropdown">'+ 
    '                  <a class="eg-title" href="/collections/sale">Sale <span'+ 
    '                          class="eg-arrow icon-chevron-right is-size-6"></span>'+ 
    '                  </a>'+ 
    '                  <ul class="eg-sub-menu eg-has-dropdown">'+ 
    '                      <li class="eg-sub-menu-option eg-has-dropdown">'+ 
    '                          <a class="eg-title" href="/collections/sale-collections">Collections<span'+ 
    '                                  class="eg-arrow icon-chevron-right is-size-6"></span></a>'+ 
    '                          <ul class="eg-sub-menu-link">'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/sale-accessories">Accessories</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/sale-bags">Bags</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/sale-books-stationery">Books and Stationary</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/sale-christmas">Christmas</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/sale-clothing">Clothing<span'+ 
    '                                          class="eg-arrow icon-chevron-right is-size-6"></span></a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/sale-home">Home</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/sale-jewellery">Jewellery</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/sale-pets">Pets</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/sale-service-pins">Service Pins</a>'+ 
    '                              </li>'+
    '                          </ul>'+ 
    '                      </li>'+ 
    '                  </ul>'+ 
    '              </li>'+ 
    '              <li class="eg-main-option eg-has-dropdown">'+ 
    '                  <a class="eg-title" href="/collections/poppy-pins-brooches">Poppy Pins & Brooches <span'+ 
    '                          class="eg-arrow icon-chevron-right is-size-6"></span>'+ 
    '                  </a>'+ 
    '                  <ul class="eg-sub-menu eg-has-dropdown">'+ 
    '                      <li class="eg-sub-menu-option eg-has-dropdown">'+ 
    '                          <a class="eg-title" href="/collections/poppy-pins-badges">Poppy Pins and Badges <span'+ 
    '                                  class="eg-arrow icon-chevron-right is-size-6"></span></a>'+ 
    '                          <ul class="eg-sub-menu-link">'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/commemorative-pins-badges">Commemorative Pins and Badges</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/service-regimental-pins">Service Pins and'+ 
    '                                      Patches</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/pins-badges">Pins & Badges</a>'+ 
    '                              </li>'+ 
    '                          </ul>'+ 
    '                      </li>'+ 
    '                      <li class="eg-sub-menu-option eg-no-dropdown">'+ 
    '                          <a class="eg-title" href="/collections/poppy-brooches">Poppy Brooches</a>'+ 
    '                      </li>'+ 
    '                      <li class="eg-sub-menu-option eg-has-dropdown">'+ 
    '                          <a class="eg-title" href="/collections/football-pins">Football Pins<span'+ 
    '                                  class="eg-arrow icon-chevron-right is-size-6"></span></a>'+ 
    '                          <ul class="eg-sub-menu-link">'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/premier-league-football-pins">Premier League</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/championship-football-pins">Championship</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/league-two-football-pins">League Two</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/national-league-football-pins">National League</a>'+ 
    '                              </li>'+ 
    '                          </ul>'+ 
    '                      </li>'+ 
    '                      <li class="eg-sub-menu-option eg-no-dropdown">'+ 
    '                          <a class="eg-title" href="/collections/rugby-pins">Rugby Pins</a>'+ 
    '                      </li>'+ 
    '                  </ul>'+ 
    '              </li>'+ 
    '              <li class="eg-main-option eg-has-dropdown">'+ 
    '                  <a class="eg-title" href="/collections/jewellery">Jewellery <span'+ 
    '                          class="eg-arrow icon-chevron-right is-size-6"></span>'+ 
    '                  </a>'+ 
    '                  <ul class="eg-sub-menu eg-has-dropdown">'+ 
    '                      <li class="eg-sub-menu-option eg-has-dropdown">'+ 
    '                          <a class="eg-title" href="https://www.poppyshop.org.uk/collections/jewellery-styles">Jewellery Styles <span'+ 
    '                                  class="eg-arrow icon-chevron-right is-size-6"></span>'+ 
    '                          </a>'+ 
    '                          <ul class="eg-sub-menu-link">'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/bracelets-wristbands">Bracelets & Wristbands</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/cufflinks">Cufflinks</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/necklaces">Necklaces</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/earrings">Earrings</a>'+ 
    '                              </li>'+ 
    '                          </ul>'+ 
    '                      </li>'+ 
    '                      <li class="eg-sub-menu-option eg-no-dropdown eg-with-image">'+ 
    '                          <a class="eg-image-heading" href="/collections/jewellery-collections">Featured'+ 
    '                              Jewellery Collections</a>'+ 
    '                          <a class="eg-image-text eg-jewellery" href="/collections/british-pewter">'+ 
    '                              <img src="https://cld.accentuate.io/79778021430/1636626297130/202108_VETERAN-JEWELLERY_RBL8038.jpg?v=0&options=w_1500"><span>British Pewter</span>'+ 
    '                          </a>'+ 
    '                          <a class="eg-image-bottom-text" href="/collections/jewellery-collections">View all'+ 
    '                              Collections</a>'+ 
    '                      </li>'+ 
    '                  </ul>'+ 
    '              </li>'+ 
    '              <li class="eg-main-option eg-has-dropdown">'+ 
    '                  <a class="eg-title">Clothes, Bags & Accessories <span'+ 
    '                          class="eg-arrow icon-chevron-right is-size-6"></span>'+ 
    '                  </a>'+ 
    '                  <ul class="eg-sub-menu eg-has-dropdown">'+ 
    '                      <li class="eg-sub-menu-option eg-has-dropdown">'+ 
    '                          <a class="eg-title" href="https://www.poppyshop.org.uk/collections/mens-clothing">Mens Clothing <span'+ 
    '                                  class="eg-arrow icon-chevron-right is-size-6"></span></a>'+ 
    '                          </a>'+ 
    '                          <ul class="eg-sub-menu-link">'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/mens-tops-t-shirts">Tops & T-Shirts</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/mens-coats-jackets">Coats & Jackets</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/mens-sportswear">Sportswear</a>'+ 
    '                              </li>'+ 
    '                          </ul>'+ 
    '                      </li>'+ 
    '                      <li class="eg-sub-menu-option eg-no-dropdown">'+ 
    '                          <a class="eg-title" href="/collections/womens-clothing">Womens Clothing</a>'+ 
    '                      </li>'+ 
    '                      <li class="eg-sub-menu-option eg-has-dropdown">'+ 
    '                          <a class="eg-title" href="/collections/bags">Bags, Purses & Wallets <span'+ 
    '                                  class="eg-arrow icon-chevron-right is-size-6"></span></a>'+ 
    '                          </a>'+ 
    '                          <ul class="eg-sub-menu-link">'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/messenger-bags">Messenger Bags</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/shopper-bags">Shopper Bags</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/coin-purses">Coin Purses</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/wallets">Wallets</a>'+ 
    '                              </li>'+ 
    '                          </ul>'+ 
    '                      </li>'+ 
    '                      <li class="eg-sub-menu-option eg-has-dropdown">'+ 
    '                          <a class="eg-title" href="/collections/poppy-accessories">Poppy Accessories <span'+ 
    '                                  class="eg-arrow icon-chevron-right is-size-6"></span></a>'+ 
    '                          </a>'+ 
    '                          <ul class="eg-sub-menu-link">'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/poppy-scarves">Poppy Scarves</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/poppy-umbrellas">Poppy Umbrellas</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/lanyards">Lanyards</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/glasses-cases">Glasses Cases</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/poppy-patches">Poppy Patches</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/keyrings">Keyrings</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/hair-accessories">Hair Accessories</a>'+ 
    '                              </li>'+ 
    '                          </ul>'+ 
    '                      </li>'+ 
    '                      <li class="eg-sub-menu-option eg-no-dropdown">'+ 
    '                          <a class="eg-title" href="/collections/rbl-accessories">RBL Accessories</a>'+ 
    '                      </li>'+ 
    '                      <li class="eg-sub-menu-option eg-no-dropdown eg-with-image">'+ 
    '                          <a class="eg-image-heading" href="/collections/accessory-collections">Featured'+ 
    '                              Accessory Collections</a>'+ 
    '                          <a class="eg-image-text eg-Accessory" href="/collections/sausage-dog-collection">'+ 
    '                              <img src="https://images.accentuate.io/?image=https%3A%2F%2Fcdn.accentuate.io%2F176724148278%2F1605802306427%2F611855-PoppyShopWebsiteAssets-Shot33-RAFPins-Desktop1980x810.jpg%3Fv%3D1623849686447&c_options=w_1500"><span>Sausage Dog</span>'+ 
    '                          </a>'+ 
    '                          <a class="eg-image-bottom-text" href="/collections/accessory-collections">View all'+ 
    '                              Collections</a>'+ 
    '                      </li>'+ 
    '                  </ul>'+ 
    '              </li>'+ 
    '  '+ 
    '              <li class="eg-main-option eg-has-dropdown">'+ 
    '                  <a class="eg-title" href="/collections/home">Home <span'+ 
    '                          class="eg-arrow icon-chevron-right is-size-6"></span>'+ 
    '                  </a>'+ 
    '                  <ul class="eg-sub-menu eg-has-dropdown">'+ 
    '                      <li class="eg-sub-menu-option eg-no-dropdown">'+ 
    '                          <a class="eg-title" href="/collections/home-accessories">Home Accessories</a>'+ 
    '                      </li>'+ 
    '                      <li class="eg-sub-menu-option eg-has-dropdown">'+ 
    '                          <a class="eg-title" href="/collections/stationery">Stationary<span'+ 
    '                                  class="eg-arrow icon-chevron-right is-size-6"></span>'+ 
    '                          </a>'+ 
    '                          <ul class="eg-sub-menu-link">'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/notebooks">Notebooks</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/pens-pencils">Pens & Pencils</a>'+ 
    '                              </li>'+ 
    '                          </ul>'+ 
    '                      </li>'+ 
    '                      <li class="eg-sub-menu-option eg-no-dropdown">'+ 
    '                          <a class="eg-title" href="/collections/calendars">Calendars</a>'+ 
    '                      </li>'+ 
    '                      <li class="eg-sub-menu-option eg-has-dropdown">'+ 
    '                          <a class="eg-title" href="/collections/entertainment">Entertainment<span'+ 
    '                                  class="eg-arrow icon-chevron-right is-size-6"></span>'+ 
    '                          </a>'+ 
    '                          <ul class="eg-sub-menu-link">'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/books">Books</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/games">Games</a>'+ 
    '                              </li>'+ 
    '                          </ul>'+ 
    '                      </li>'+ 
    '                      <li class="eg-sub-menu-option eg-has-dropdown">'+ 
    '                          <a class="eg-title" href="/collections/kitchen-dining">Kitchen and Dining<span class="eg-arrow icon-chevron-right is-size-6"></span>'+ 
    '                          </a>'+ 
    '                          <ul class="eg-sub-menu-link">'+ 
        '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/coasters">Coasters</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/mugs">Mugs</a>'+ 
    '                              </li>'+ 
    '                          </ul>'+ 
    '                      </li>'+ 
    '                      <li class="eg-sub-menu-option eg-has-dropdown">'+ 
    '                          <a class="eg-title" href="/collections/food-drink">Food and Drink <span class="eg-arrow icon-chevron-right is-size-6"></span>'+ 
    '                          </a>'+ 
    '                          <ul class="eg-sub-menu-link">'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/food-1">Food</a>'+ 
    '                              </li>'+ 
    '                              <li class="eg-sub-menu-link-option">'+ 
    '                                  <a class="eg-title" href="/collections/drink">Drink </a>'+ 
    '                              </li>'+ 
    '                          </ul>'+ 
    '                      </li>'+ 
    '                  </ul>'+ 
    '              </li>';



(function () {
  try {
    var debug = 0;
    var variation_name = "";

    function waitForElement(selector, trigger, delayInterval, delayTimeout) {
      var interval = setInterval(function () {
        if (
          document &&
          document.querySelector(selector) &&
          document.querySelectorAll(selector).length > 0 && window.egMobileMenu1
        ) {
          clearInterval(interval);
          trigger();
        }
      }, delayInterval);
      setTimeout(function () {
        clearInterval(interval);
      }, delayTimeout);
    }
function live(selector, event, callback, context) {
    // helper for enabling IE 8 event bindings
    function addEvent(el, type, handler) {
      if (el.attachEvent) el.attachEvent('on' + type, handler);
      else el.addEventListener(type, handler);
    }
    // matches polyfill
    this.Element && function (ElementPrototype) {
      ElementPrototype.matches = ElementPrototype.matches ||
        ElementPrototype.matchesSelector ||
        ElementPrototype.webkitMatchesSelector ||
        ElementPrototype.msMatchesSelector ||
        function (selector) {
          var node = this,
            nodes = (node.parentNode || node.document).querySelectorAll(selector),
            i = -1;
          while (nodes[++i] && nodes[i] != node);
          return !!nodes[i];
        };
    }(Element.prototype);
    // live binding helper using matchesSelector
    function live(selector, event, callback, context) {
      addEvent(context || document, event, function (e) {
        var found, el = e.target || e.srcElement;
        while (el && el.matches && el !== context && !(found = el.matches(selector))) el = el.parentElement;
        if (found) callback.call(el, e);
      });
    }
    live(selector, event, callback, context);
  }
    var htmlString = `<div class="eg_collections">

    <h2>Collections</h2>

    <div class="eg_main">
        <div class="eg_innr" eg-href="https://www.poppyshop.org.uk/collections/commemorative-events">
            <div class="eg_img">
                <img src="https://images.accentuate.io/?image=https%3A%2F%2Fcdn.accentuate.io%2F176724148278%2F1605802306427%2F611855-PoppyShopWebsiteAssets-Shot33-RAFPins-Desktop1980x810.jpg%3Fv%3D1623849686447&c_options=w_1500" alt="Commemorative_Events">
            </div>
            <h3>Commemorative Events</h3>
        </div>
    
        <div class="eg_innr" eg-href="https://www.poppyshop.org.uk/pages/veterans-market">
            <div class="eg_img">
                <img src="https://cld.accentuate.io/79778021430/1636626297130/202108_VETERAN-JEWELLERY_RBL8038.jpg?v=0&options=w_1500" alt="veteran">
            </div>
            <h3>Veteran's Market</h3>
        </div>
    
        <div class="eg_innr" eg-href="https://www.poppyshop.org.uk/collections/membership">
            <div class="eg_img">
                <img src="https://images.accentuate.io/?image=https%3A%2F%2Fcdn.accentuate.io%2F169159032886%2F1590760983831%2F611855-PoppyShopWebsiteAssets-Shot23-Membership-Desktop1980x810.jpg%3Fv%3D1623850704516&c_options=w_1500" alt="Membership">
            </div>
            <h3>Membership</h3>
        </div>
    
        <div class="eg_innr" eg-href="https://www.poppyshop.org.uk/collections/armed-forces">
            <div class="eg_img">
                <img src="https://cld.accentuate.io/169158049846/1590758159718/RBL005_Spring_Shot-18_-Commemorative-Shot-1_0384.jpg?v=1654766277411&options=w_1500" alt="Armed_Forces">
            </div>
            <h3>Armed Forces</h3>
        </div>
    
        <div class="eg_innr" eg-href="https://www.poppyshop.org.uk/collections/legion-100-years">
            <div class="eg_img">
                <img src="https://images.accentuate.io/?image=https%3A%2F%2Fcdn.accentuate.io%2F260894654518%2F1619789009590%2FTRBL-Banners-Silk-Replica-Poppy-1980x810.jpg%3Fv%3D1623855953233&c_options=w_1500" alt="RBL_Collection">
            </div>
            <h3>RBL Collection</h3>
        </div>
    
        <div class="eg_innr" eg-href="https://www.poppyshop.org.uk/collections/military-metals">
            <div class="eg_img">
                <img src="https://cld.accentuate.io/173949452342/1601498132204/REM22_Shot10_L_Military-Metals-1.jpg?v=1665399898795&options=w_1500" alt="Commemorative_Events">
            </div>
            <h3>Military Metals</h3>
        </div>
    </div>
</div>`;

    function init() {
      var egMobileMenu = window.egMobileMenu1+'  '+ 
      '              <li class="eg-main-option eg-has-dropdown">'+ 
      '                  <a class="eg-title" href="/collections/christmas-gifting">Christmas & Gifts <span'+ 
      '                          class="eg-arrow icon-chevron-right is-size-6"></span>'+ 
      '                  </a>'+ 
      '                  <ul class="eg-sub-menu eg-has-dropdown">'+ 
      '                      <li class="eg-sub-menu-option eg-has-dropdown">'+ 
      '                          <a class="eg-title" href="/collections/gifts">Gifts <span'+ 
      '                                  class="eg-arrow icon-chevron-right is-size-6"></span></a>'+ 
      '                          </a>'+ 
      '                          <ul class="eg-sub-menu-link">'+ 
      '                              <li class="eg-sub-menu-link-option">'+ 
      '                                  <a class="eg-title" href="/collections/gifts-for-him">For Him</a>'+ 
      '                              </li>'+ 
      '                              <li class="eg-sub-menu-link-option">'+ 
      '                                  <a class="eg-title" href="/collections/gifts-for-her">For Her</a>'+ 
      '                              </li>'+ 
      '                              <li class="eg-sub-menu-link-option">'+ 
      '                                  <a class="eg-title" href="/collections/christmas-gifting">Christmas Gifting</a>'+ 
      '                              </li>'+ 
      '                              <li class="eg-sub-menu-link-option">'+ 
      '                                  <a class="eg-title" href="/collections/gifts-10-and-under">£10 and under</a>'+ 
      '                              </li>'+ 
      '                              <li class="eg-sub-menu-link-option">'+ 
      '                                  <a class="eg-title" href="/collections/gifts-20-and-under">£20 and under</a>'+ 
      '                              </li>'+ 
      '                              <li class="eg-sub-menu-link-option">'+ 
      '                                  <a class="eg-title" href="/collections/gifts-40-and-under">£40 and under</a>'+ 
      '                              </li>'+ 
      '                              <li class="eg-sub-menu-link-option">'+ 
      '                                  <a class="eg-title" href="/collections/gifts-50-and-under">£50 and under</a>'+ 
      '                              </li>'+ 
      '                              <li class="eg-sub-menu-link-option">'+ 
      '                                  <a class="eg-title" href="/pages/your-big-day">Your Big Day</a>'+ 
      '                              </li>'+ 
      '                          </ul>'+ 
      '                      </li>'+ 
      '                      <li class="eg-sub-menu-option eg-no-dropdown">'+ 
      '                          <a class="eg-title" href="/collections/christmas">Christmas</a>'+ 
      '                      </li>'+ 
      '                  </ul>'+ 
      '              </li>'+ 
      '          </ul>'+ 
      '      </div>'+ 
      '  </div>';
      document.querySelector('.mobile-navbar nav[role="navigation"]').insertAdjacentHTML('afterend', egMobileMenu);

      var egMainSubMenu = document.querySelectorAll('.eg-main-option > .eg-title .eg-arrow');

      for(var i=0; i < egMainSubMenu.length; i++){
        egMainSubMenu[i].addEventListener('click', function(e){
            e.preventDefault()
            e.stopImmediatePropagation();
            var self = this;
            egMainSubMenu.forEach(function(item) {
                if(item != self) {
                    item.parentElement.classList.remove('eg-active');
                }
            })
            this.parentElement.classList.toggle("eg-active");
        });
      }
 live('.eg-title.eg-active','mousedown',function(){
    console.log('eg link',this.href );
   window.location.href = this.href;
    });
      var egMainSubMenuOption = document.querySelectorAll('.eg-sub-menu-option.eg-has-dropdown > .eg-title');

      for(var i=0; i < egMainSubMenuOption.length; i++){
        egMainSubMenuOption[i].addEventListener('click', function(e){
            e.preventDefault()
            e.stopImmediatePropagation();
            var self = this;
            egMainSubMenuOption.forEach(function(item) {
                if(item != self) {
                    item.classList.remove('eg-active');
                }
            })
            this.classList.toggle("eg-active");
        });
      }
      document.querySelector("#shopify-section-1583400657542").insertAdjacentHTML('afterend',htmlString)
      document.querySelectorAll('.eg_collections .eg_innr').forEach(function(el){
    el.addEventListener('click',function(){
      window.location.href = this.getAttribute('eg-href');
    });
      });
      
      
     
    }

    waitForElement('.mobile-navbar nav[role="navigation"]', init, 100, 35000);
  } catch (e) {
    if (debug) console.log(e, "error in Test" + variation_name);
  }
})();


<style>
/* Need to be remove this CSS */
@media screen and (max-width: 767px) {
    .eg_collections {
        display: flex;
        flex-direction: column;
        padding: 40px 1.5rem;
        align-items: center;
        font-family: "Gill sans MT", sans-serif;
    }
    
    .eg_img img {
        width: 100%;
        border-radius: 4px;
        height: 340px;
        object-fit: cover;
    }

    .eg_img {
        margin-block: 40px;
        height: auto;
    }

    .eg_innr {
        text-align: center;
        padding-bottom: 1.5em;
    }
    
    .eg_collections h2{
        color: #005ca8;
        font-size: 45px;
        font-weight: 500;
        padding-bottom: 0;
    }
    
    .eg_innr h3 {
        font-size: 30px;
        color: #0d5aa3;
        font-weight: 500;
    }
#shopify-section-header>div>header>section {
    display: none !important;
}

/*  */


.mobile-navbar nav[role="navigation"] {
    display: none;
}

.mobile-navbar.open {
    padding-right: 0px;
}

html body .eg-main-option>.eg-title {
    justify-content: space-between;
}

html body .eg-sub-menu-option>.eg-sub-menu-link,
html body .eg-main-option>.eg-title,
html body .eg-sub-menu-option>.eg-title {
    border-bottom: 1px solid #dbdbdb;
}

.eg-main-option .eg-title {
    font-style: normal;
    font-weight: 400;
    font-size: 17px;
    line-height: 26px;
    color: #0A0A0A;
    padding: 10px 0px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.eg-main-option .eg-sub-menu-option,
.eg-main-option .eg-sub-menu-option .eg-sub-menu-link {
    padding-left: 20px;
}


.eg-main-option .eg-sub-menu-option .eg-sub-menu-link .eg-arrow {
    display: none;
}

.eg-main-option .eg-sub-menu-option>.eg-title .eg-arrow {
    padding-left: 20px;
    /* position: static; */
}

.eg-with-image {
    display: flex;
    flex-direction: column;
}

.eg-menu-option .eg-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    padding: 8px 10px 8px 80px;
    position: absolute;
    right: 0px;
    height: 100%;
    z-index: 1;
    width: 100%;
}

.eg-menu-option .eg-title {
    position: relative;
}

html body .eg-sub-menu-option .eg-title+.eg-sub-menu-link,
html body .eg-main-option>.eg-title+.eg-sub-menu {
    max-height: 0px;
    overflow: hidden;
    opacity: 0;
    transition: all 0.35s;
}

html body .eg-sub-menu-option .eg-title.eg-active+.eg-sub-menu-link,
html body .eg-main-option>.eg-title.eg-active+.eg-sub-menu {
    max-height: 100vh;
    overflow: visible;
    opacity: 1;
    transition: all 0.35s;
}

.eg-title .eg-arrow:before {
    transform: rotate(0deg);
    transition: all 0.35s;
}

.eg-title.eg-active .eg-arrow:before {
    transform: rotate(-90deg);
    transition: all 0.35s;
}

.eg-title.eg-active,
html body .eg-sub-menu-option>.eg-title.eg-active+.eg-sub-menu-link .eg-title {
    color: #0D5AA3;
}

.eg-image-heading {
    font-style: normal;
    font-weight: 400;
    font-size: 20px;
    line-height: 26px;
    color: #0D5AA3;
    padding: 10px 0px;
}

.eg-image-bottom-text {
    padding: 10px 0px;
    font-style: normal;
    font-weight: 400;
    font-size: 17px;
    line-height: 26px;
    color: #0D5AA3;
}

.eg-image-text.eg-jewellery {
    background: radial-gradient(96.87% 492.91% at 96.87% 0%, rgba(13, 90, 163, 0) 0%, rgba(13, 90, 163, 0.9) 100%), url('https://cld.accentuate.io/79778021430/1636626297130/202108_VETERAN-JEWELLERY_RBL8038.jpg?v=0&options=w_1500');
    border-radius: 4px;
    position: relative;
    background-size: cover;
    background-position: center center;
}

.eg-image-text.eg-Accessory {
    background: radial-gradient(96.87% 492.91% at 96.87% 0%, rgba(13, 90, 163, 0) 0%, rgba(13, 90, 163, 0.9) 100%), url('https://images.accentuate.io/?image=https%3A%2F%2Fcdn.accentuate.io%2F176724148278%2F1605802306427%2F611855-PoppyShopWebsiteAssets-Shot33-RAFPins-Desktop1980x810.jpg%3Fv%3D1623849686447&c_options=w_1500');
    border-radius: 4px;
    position: relative;
    background-size: cover;
    background-position: center center;

}


.eg-image-text img {
    opacity: 0;
    visibility: hidden;
}

.eg-image-text span {
    position: absolute;
    bottom: 20px;
    left: 20px;
    z-index: 1;
    font-style: normal;
    font-weight: 400;
    font-size: 17px;
    line-height: 26px;
    color: #FFFFFF;
    display: block;
}

.mobile-navbar form[role="search"] input::placeholder {
    color: #4A4A4A;
}
</style>