Untitled

 avatar
unknown
plain_text
2 years ago
2.4 kB
6
Indexable
(function () {
  try {
    /* main variables */
    var debug = 0;
    var variation_name = "";
    var $;
    /* all Pure helper functions */

    function waitForElement(selector, trigger, delayInterval, delayTimeout) {
      var interval = setInterval(function () {
        if (
          document &&
          document.querySelector(selector) &&
          document.querySelectorAll(selector).length > 0
        ) {
          clearInterval(interval);
          trigger();
        }
      }, delayInterval);
      setTimeout(function () {
        clearInterval(interval);
      }, delayTimeout);
    }

    /* Variation Init */
    function init() {
      /* start your code here */

      window.onscroll = function () {
        if (window.scrollY > 0) {
          document.querySelector("section.breadcrumbs").style.display = "none";
        } else {
          document.querySelector("section.breadcrumbs").style.display = "block";
        }
      };
    }

    /* Initialize variation */
    waitForElement("#listing > div > div.search-content-main > h1", init, 50, 15000);
  } catch (e) {
    if (debug) console.log(e, "error in Test" + variation_name);
  }
})();


.filter-nav.filter-nav_fixed {
    top: 55px !important;
}

.filter-nav div.js-filter > a[data-filter="filter-distance"]{
    display: none;
}

@media screen and (max-width: 500px) {
    section.filter-nav {
        position: sticky;
        top: 119px;
        z-index: 9;
        background: #fff;
        padding-block: 8px;
    }

    #listing .filter-nav .filters {
       justify-content: flex-end;
    }

    #listing .filter-nav .filters .js-filter:nth-of-type(1) {
        flex-grow: unset;
    }

#listing .filter-nav .filters .js-filter:nth-of-type(1) a.js-filter-trigger,
#listing .filter-nav .filters .js-filter:nth-of-type(3) a {
    width: 130px;
} 
  #listing .filter-nav .filters .js-filter:nth-of-type(3) a{
    justify-content: center;
}
  
#listing .filter-nav .filters .js-filter:nth-of-type(2) {
    display: none !important;
}

    #listing .filter-nav .filters .js-filter:nth-of-type(1) a.js-filter-trigger {
        justify-content: flex-start;
    }

    #listing .filter-nav .filters .js-filter:nth-of-type(1) a.js-filter-trigger::after {
        position: absolute;
        top: 9px;
        right: 20px;
    }
#centre_filters {
    display: none;
}


Editor is loading...