Untitled

mail@pastecode.io avatar
unknown
plain_text
7 months ago
7.8 kB
0
Indexable
Never
/* html body .template_banner>.container .row>div {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap !important;
    width: 100% !important;
} */

html body .template_banner>.container .banner_text .eg-certified-image {
    margin-top: 25px;
}

.template_banner>.container .banner_text>h1:first-child {
    padding-top: 10px !important;
}

.template_banner>.container .eg-certified-image img {
    width: 210px;
    height: 200px !important;
}

/* html body .template_banner>.container .banner_text {
    width: 100% !important;
    max-width: 430px !important;
} */

html body .eg-certified-image {
    /* margin-right: 40px; */
    display: flex;
    justify-content: center;
}

#footer>.container>div:first-child>div:nth-child(1) .policies {
    display: flex;
    flex-direction: column;
    width: fit-content;
}

html body #footer .eg-certified-image img {
    width: 140px !important;
    height: 130px !important;
}

html body #footer .eg-certified-image {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    margin-right: 0px !important;
}


/* search pages */

html body .template_banner .new-container .eg-certified-image img {
    width: 95px !important;
    height: 90px;
}

html body .template_banner .new-container .eg-certified-image {
    margin-right: 0px !important;
}

/* quote */

#main>.container .eg-certified-container .eg-certified-icon img {
    width: 75px !important;
    height: 70px !important;
}

#main>.container .eg-certified-container>div:first-child {
    display: flex;
    align-items: center;
}

#main>.container .eg-certified-container h5 {
    font-weight: bold;
    margin-left: 20px !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 22px !important;
}

#main>.container .eg-certified-container {
    margin-bottom: 20px !important;
}

#main>.container .eg-certified-container .eg-certified-image {
    width: fit-content;
    margin-left: 60px !important;
}

#main>.container .eg-certified-container .eg-certified-image img {
    width: 250px !important;
    height: 240px !important;
}

/*  */

.container .format-text .eg-certified-icon img {
    width: 75px !important;
    height: 70px !important;
}

.container .format-text .eg-certified-container>div:first-child {
    display: flex;
    align-items: center;
}

.container .format-text .eg-certified-container h5 {
    font-weight: bold;
    margin-left: 15px !important;
    font-family: 'Roboto', sans-serif !important;
    font-size: 30px !important;
}

.container .format-text .eg-certified-image img {
    width: 260px !important;
    height: 250px !important;
}

.container .format-text .eg-certified-image {
    margin-left: 70px;
    width: fit-content !important;
}

.container .format-text .eg-certified-container {
    margin-top: 25px;
}

@media only screen and (max-width:1024px) {
    html body .eg-certified-image {
        margin-right: 0px !important;
    }

    html body .template_banner>.container .eg-certified-image img {
        width: 210px !important;
        height: 200px !important;
    }

    #footer>.container>div:first-child>div:nth-child(1) .policies {
        display: flex;
        flex-direction: column;
        width: fit-content;
        margin: auto;
    }
}

@media only screen and (max-width:768px) {
    html body .template_banner .new-container .eg-certified-image {
        margin-right: 0px !important;
        width: 50% !important;
        margin-bottom: 15px !important;
        display: flex;
        justify-content: center;
    }

    #main>.container .eg-certified-container {
        margin-bottom: 20px !important;
    }

    #main>.container .eg-certified-container .eg-certified-image img {
        width: 210px !important;
        height: 200px !important;
    }

    .container .format-text .eg-certified-image {
        margin-left: 40px !important;
        width: fit-content !important;
    }

    .container .format-text .eg-certified-container {
        margin-top: 25px;
    }

    #main>.container .eg-certified-container h5 {
        margin-left: 15px !important;
    }
}

@media only screen and (min-width:767px) and (max-width:1024px) {
    .container .format-text .eg-certified-container {
        margin-top: 25px;
    }
}


















(function () {
  try {
    /* main variables */
    var debug = 0;
    var variation_name = "";
    var $;
    /* all Pure helper functions */

    waitForElement = function (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);
    }

    var certifiedicon = '' +
      '<div class="eg-certified-container">' +
      '<div>' +
      '<div class="eg-certified-icon">' +
      '<img src="https://expogrowth.in/wp-content/uploads/2023/11/tsgLogoISO.png">' +
      '</div>' +
      '<h5>Certified</h5>' +
      '</div>' +
      '<div class="eg-certified-image">' +
      '<img src="https://expogrowth.in/wp-content/uploads/2023/11/tsgLogoISO.png">' +
      '</div>' +
      '</div>'

    var certifiedimage = '' +
      '<div class="eg-certified-image">' +
      '<img src="https://expogrowth.in/wp-content/uploads/2023/11/tsgLogoISO.png">' +
      '</div>'

    /* Variation Init */
    init = function () {
      if (!document.querySelector(".eg-certified-image")) {

        if (window.location.href.includes("/translations")) {
          document.querySelector(".template_banner .image-container").insertAdjacentHTML("afterbegin", certifiedimage)
        }

        if (window.location.href.indexOf("/")) {
          document.querySelector(".template_banner > .container .banner_text").insertAdjacentHTML("beforeend", certifiedimage);
          document.querySelector("#footer > .container > div:first-child > div:nth-child(2) ").insertAdjacentHTML("beforeend", certifiedimage);
          document.querySelectorAll("#footer > .container > div:first-child > div:nth-child(1) ").forEach(function (e) {
            e.insertAdjacentElement("beforeend", document.querySelector("#footer > .container > div:first-child > div:nth-child(2) > a"))
          });
        }
      }
    }


    initquote = function () {
      if (!document.querySelector(".certifiedicon")) {
        if (window.location.href.includes("/quotes")) {
          document.querySelector("#main > .container > div > div:nth-child(2) > div > div:first-child").insertAdjacentHTML("afterend", certifiedicon)
        }

        if (window.location.href.includes("/billing")) {
          document.querySelector("#header-img + .container .format-text > div:first-child").insertAdjacentHTML("afterend", certifiedicon)
        }
      }
    }

    /* Initialize variation */
    waitForElement('#footer > .container > div:first-child > div:nth-child(2)', init, 50, 15000);
    waitForElement('.template_banner .image-container', init, 100, 15000);
    waitForElement('#main > .container > div > div:nth-child(2) > div > div:first-child', initquote, 100, 15000);
    waitForElement('#header-img + .container .format-text > div:first-child', initquote, 100, 15000);

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


Leave a Comment