Untitled

 avatar
unknown
plain_text
6 months ago
5.8 kB
6
Indexable
  ;(function(){
    var style=document.createElement('style');style.type='text/css';style.appendChild(document.createTextNode('html body .hero-wrapper__inner {    width: 100%;    max-width: 1385px;    left: 50%;    transform: translateX(-50%);    padding: 0px 20px;    display: flex;}#overview .module .card .card__price>div:nth-child(1) {    display: none !important;}html body .hero-wrapper__inner .panel__title {    font-family: Open Sans, sans-serif !important;    font-size: 36px;    font-weight: 700;    line-height: 43.57px;    text-align: left;    color: #333333;    text-transform: capitalize;    margin-bottom: 18px;    letter-spacing: 1px;}html body .hero-wrapper__inner .hero img {    height: 100%;    max-height: 363px;}html body .hero-wrapper {    height: 100%;    max-height: 363px;    margin-top: 60px;}html body .description-wrapper .container>div>div:first-of-type {    background: #fff;    padding: 1.5em;}html body .description-wrapper .container .panel__title {    color: #333333;    font-family: Open Sans, sans-serif !important;    font-size: 18px;    font-weight: 700;    line-height: 21.78px;    text-align: left;    margin-top: 0px;    margin-bottom: 25px;}html body .description-wrapper .container ul li>span {    display: none;}html body .description-wrapper .container ul li {    border: 1px solid #0F61E6;    padding: 16px;    border-radius: 8px;}html body .description-wrapper .container ul {    display: flex;    flex-wrap: wrap;    grid-gap: 15px;}html body .description-wrapper .container>div {    display: flex;    flex-direction: row;    grid-gap: 10px;}html body .description-wrapper .container ul li a {    color: #7A7A7A;    text-decoration: none;    font-family: Open Sans, sans-serif !important;}@media only screen and (max-width:1024px) {    html body .hero-wrapper__inner,    html body .description-wrapper .container>div {        display: flex;        flex-direction: column;    }    html body .description-wrapper .container>div {        grid-gap: 0px;    }    html body .hero-wrapper {        height: 609px;        max-height: 609px;        margin-top: 0px;    }    html body .hero-wrapper__inner .hero img,    html body .hero-wrapper__inner .hero {        height: 100%;        max-height: 275px;    }    html body .hero-wrapper__inner .hero {        order: -1;    }    html body .hero-wrapper__inner {        padding: 0px !important;    }    html body .hero-wrapper__inner .panel__title {        font-size: 18px;        line-height: 21.78px;        letter-spacing: 0px;    }    html body .hero-wrapper__inner .panel {        text-align: left;        font-size: 14px;    }    html body .eg-scrollbar {        overflow-y: scroll;        scrollbar-width: none;    }    html body .eg-scrollbar>ul {        min-width: max-content;    }    html body .hero-wrapper__inner .panel__title {        margin-bottom: 30px;    }    html body .description-wrapper .container>div>div:first-of-type {        padding-top: 5px;    }    html body .description-wrapper .container .panel__title {        padding-bottom: 5px;    }}@media only screen and (min-width:430px) and (max-width:767px) {    html body .hero-wrapper {        height: 517px;        max-height: 517px;        margin-top: 0px;    }}@media only screen and (min-width:767px) {    html body .hero-wrapper__inner .hero .banner-component__round {        top: 0px;    }    html body .hero-wrapper__inner .hero {        border-radius: 8px;    }    html body .hero-wrapper__inner>.panel {        padding-right: 80px !important;    }    html body .destination-logo {        left: unset !important;        right: 32% !important;        top: -12px;    }    html body .hero-wrapper__inner .hero .hero__title {        padding: 0px;        text-align: center;    }    html body .hero-wrapper__inner .hero .hero__content {        width: 100%;    }}'));document.head.appendChild(style);
(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() {
      var descriptionEl = document.querySelector('.description-wrapper .panel--description');
      var ulElement = descriptionEl.querySelector('ul');
      var ulHeading = descriptionEl.querySelector('h2');
      if (descriptionEl && ulElement && ulHeading) {
        descriptionEl.parentNode.insertBefore(ulHeading, descriptionEl.nextSibling);
        descriptionEl.parentNode.insertBefore(ulElement, ulHeading.nextSibling);
      }

      var heroWrapper = document.querySelector('.hero-wrapper__inner');
      if (descriptionEl && heroWrapper) {
        heroWrapper.insertAdjacentElement('afterbegin', descriptionEl);
      }

      // Adding scrollbar in Mobile
      const targetElement = document.querySelector('.description-wrapper .container .panel__title + ul');
      if (targetElement && window.innerWidth <= 767) {
        const wrapperDiv = document.createElement('div');
        wrapperDiv.classList.add('eg-scrollbar');
        targetElement.parentNode.insertBefore(wrapperDiv, targetElement);
        wrapperDiv.appendChild(targetElement);
      }
    }

    /* Initialize variation */
    waitForElement('.hero-wrapper__inner', init, 50, 15000);

  } catch (e) {
    if (debug) console.log(e, "error in Test " + variation_name);
  }
})();

})();
Editor is loading...
Leave a Comment