Untitled

 avatar
unknown
plain_text
2 years ago
9.2 kB
3
Indexable
.en.banner_text {
    display: none;
}

@media screen and (min-width: 1025px) {
.eg_form input[type=text],
.eg_form input[type=email] {
    width: 100% !important;
    padding: 8px 20px;
    margin: 10px 0 !important;
  display: inline-block;
  outline: 0;
  border: 1px solid #ccc;
  border-radius: 25px;
  box-sizing: border-box;
}

html body .nfn__content  .nfn__language:not(.eg_count) {
    width: 32%!important;
}

html body .nfn__languages {
    position: relative;
    justify-content: space-between !important;
}

.form_container_desktop .nfn__languages .nfn__language.eg_count{
    width: 25% !important;
}

html body section#banner,
html body section.template_banner {
    /* background-image: url("https://expogrowth.in/wp-content/uploads/2022/12/image-49.png") !important; */
    /* background-size: cover;
    background-position: center; */
    padding-block: 30px;
}

.nfn__options-title:after {
    content: "\f078" !important;
    display: inline-block;
    background-image: none !important;
    font-family: "Fontawesome" !important;
    padding-left: 16px;
    width: 12px !important;
}
/* .form_container_desktop {
    display: block;
    margin-top: 0;
} */
#nfnQuoteBtn.get_started_btn{
    margin-right: 25px !important;
}

.eg_form input[type=text]::placeholder, 
.eg_form input[type=email]::placeholder {
    font-size: 17px;
}

#nfnQuoteBtn.get_started_btn ,
#nfnQuoteBtn.nfn__btn{
    margin-right: 25px !important;
    font-size: 20px !important;
}

html body button#nfnOrderBtn {
    font-size: 20px!important;
}

.nfn__trust {
    display: none !important;
}

.nfn__label {
    font-size: 15px !important;
}

form.eg_form {
    width: 90% !important;
    margin: auto;
}

/* div.nfn__language:nth-child(3) {
    width: 175px !important;
} */


.nfn__languages {
    display: flex !important;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px !important;
    width: 90% !important;
    margin: auto;

}

input#quantity {
    border-radius: 20px;
    height: 40px;
    width: 98%;
    outline: 0;
    text-align: center;
    background: #1f3d5c;
    border: 0;   
     /* width: 82%; */
    color: #47acad;
}


#nfnLanguageFrom > div.nfn__options-title,
#nfnLanguageTo > div.nfn__options-title {
    color: #47acad !important;
}

html body .nfn__actions #quote button {
    color : #fff !important;
    background: #47acad !important;
}

html body #nfnLanguageTo .nfn__options-title, html body #nfnLanguageFrom .nfn__options-title {
    background: #1f3d5c;
    border: 0;
}


button#nfnQuoteBtn,
button#nfnOrderBtn{
    border-radius: 30px;
}

.nfn__content {
    position: relative;
    border-radius: 35px !important;
    box-shadow: inset 0px 0px 0px 3px #47acad !important;
}

#header-img > section.template_banner > div.container > div > div > div.form_container_desktop > div,
#banner > div > div > div.col-md-6.form_container_desktop > div > div.nfn__content{
    border: 3px solid rgb(43 71 99 / 80%) !important;
    background: rgb(43 71 99 / 80%) !important;
}

.nfn__actions {
    position: relative;
    top: 35px;
}
.second-container.container {
    display: none;
}

/* .eg_icon {
    display: flex;
    align-items: center;
} */

.eg_icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 135px !important;
}

.form_container_desktop {
    margin-block: 13%;
}

.egFirst{
    margin-bottom: 2px;
}

.eg_icon.egLast {
    margin-bottom: 16px;
}

div.eg_desc > div:nth-child(3) {
    margin-bottom: 12px;
}

div.eg_desc > div:nth-child(2) > div.eg_img img  {
    width: 24px;
}

.eg_img img {
    width: 22px;
    display: block;
}

.eg_detail {
    font-size: 11px;
    line-height: 1.2;
    font-weight: 600;
    color: #fff;
    padding: 10px 4px;
}

#banner > div > div > div.col-md-6.form_container_desktop > div > div.nfn__content{
    width: 650px !important;
}

html body div.form_container_desktop > div > div.nfn__title ,
html body #banner .form_container_desktop > div > div.nfn__content > div.nfn__title{
    color: #fff !important;
    margin-top: 20px;
    font-size: 26px !important;
    padding-bottom : 12px !important;
}

section.template_banner div.form_container_desktop > div > div.nfn__languages > div  .nfn__label,
html body .nfn__languages .nfn__label{
    color: #fff !important;
}


.eg_logo img {
    background: #1f3d5c;
    border-radius: 50%;
    width: 130px;
    aspect-ratio: 1/1;
    object-fit: contain;
}

#banner .eg_logo img{
    width: 120px;
}

#banner .form_container_desktop .eg_logo {
    position: absolute;
    top: -13%;
    left: 59%;
    z-index: 99;
    transform: translateX(-50%);
}

#banner .eg_desc {
    padding-top: 2px;
    padding-bottom: 0;
    margin-bottom: -9.5%;
}

.eg_desc {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    margin-bottom: -5%;
}


#banner .form_container_desktop  {
    margin-top: 0;
}

.eg_logo {
    position: absolute;
    top: -17%;
    left: 50%;
    z-index: 99;
    transform: translateX(-50%);
}

#banner .nfn__actions {
    position: relative;
    top: 60px;
}

#banner .nfn__container {
    top: 40px !important;
    margin: 0;
}

#banner .form_container_desktop > div > div.nfn__content > div.nfn__title {
    color: #fff !important;
    margin-top: 20px;
    margin-bottom: 0;
    padding-bottom: 12px !important;
}

#banner .row {
    margin-block: -4px !important;
}
#banner .nfn__languages {
    margin-top: 0;
    padding-top: 0;
}

.nfn__label {
    font-size: 15px;
}

}


@media screen and (max-width: 1200px){
    #banner .form_container_desktop .eg_logo {
        position: absolute;
        top: -13%;
        left: 50% !important;
    }
}

























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

    let egForm = `
    <form class="eg_form" action="/action_page.php">
    <input type="text" id="fname" name="firstname" placeholder="Name">

    <input type="Email" id="email" name="email" placeholder="Email">

  </form>
  
  <div class="eg_desc">

    <div class="eg_icon egFirst ">
       <div class="eg_img">
       <img src="https://i.ibb.co/myxBpfk/message.png" alt="message" border="0">
       </div>

       <div class="eg_detail">
       Certified Translators <br/>
       Ready to <br/> 
       Support Your Needs
       </div>
    </div>

    <div class="eg_icon">
       <div class="eg_img">
       <img src="https://i.ibb.co/yV6bpsP/thumb-up-v1.png" alt="thumb-up-v1" border="0">
       </div>

       <div class="eg_detail">
       Guaranteed Acceptance <br/> 
       & <br/> 
       Over 90 Languages <br/> 
       </div>
    </div>

    <div class="eg_icon">
       <div class="eg_img">
       <img src="https://i.ibb.co/yQ4kpnj/lock.png" alt="lock" border="0">
       </div>

       <div class="eg_detail">
       Same Day Delivery <br/> Available
       </div>
    </div>

    <div class="eg_icon egLast">
       <div class="eg_img">
       <img src="https://i.ibb.co/J7qcqMm/ssl.png" alt="ssl" border="0">
       </div>

       <div class="eg_detail">
       Secure & Safe <br/> Checkout
       </div>
    </div>

</div>`

  
let input = `<div id="nfnLanguageTo" class="nfn__language eg_count">
<div class="nfn__label">Number of Pages</div>
<input type="number" id="quantity" min="1">
</div>`


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

      if(window.innerWidth > 1024){
      document.querySelector("section div.container div.form_container_desktop div.nfn__languages").insertAdjacentHTML("afterend", egForm)
      document.querySelector("#nfnLanguageTo").insertAdjacentHTML("afterend", input);

      document.querySelector("div.container div.form_container_desktop > div").insertAdjacentHTML("afterbegin",`<div class="eg_logo"><img src="https://thespanishgroup.org/translations/wp-content/themes/translations/uploads/1/4/8/2/14823004/1382166907.png"></div>
`);
      }
    }

    /* Initialize variation */
    waitForElement('section div.container div.form_container_desktop div.nfn__languages', init, 50, 15000);
  } catch (e) {
    if (debug) console.log(e, "error in Test" + variation_name);
  }
})();
Editor is loading...