Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
3.9 kB
3
Indexable
Never
(function () {
  var debug = 0;
  var variation_name = "";
  if (window.location.href.indexOf('qa-debug=true') > -1) {
    debug = 1;
  }
    try {
      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);
      }
        var NewForm='<div class="eg-new-hero-continer"><div class="eg-form-continer"></div></div>';
        function EgForm() {
        if(!document.querySelector('.eg-new-hero-continer .s-hero__in')){
                  var HeroContent=document.querySelector('.s-hero__in');
                  document.querySelector('.eg-new-hero-continer').insertAdjacentElement('afterbegin', HeroContent);
        }
  
       if(!document.querySelector(" .eg-form-continer .s-startup__form-wrap")){
              var OldForm = document.querySelector(".s-startup__form-wrap");
              document.querySelector('.eg-form-continer').insertAdjacentElement('afterbegin', OldForm);
          }
        }

        function WhyLunchpad() {
          // if(!document.querySelector(".eg-new-hero-continer .s-hero__btn-wrap")){
            var WhyLunchpadCTA=document.querySelector(".s-hero__btn-wrap");
            document.querySelector(' .s-hero__in >.s-hero__text').insertAdjacentElement('afterend', WhyLunchpadCTA);
          // }
        }
      function init() {
        if(debug){
          console.log('Inside init Function');
        
        }
        if(!document.querySelector('.eg-new-hero-continer')){
          document.querySelector('.s-hero__logo-block-wrap').insertAdjacentHTML('beforebegin', NewForm);
        } 
        waitForElement(".eg-new-hero-continer ", EgForm, 50, 15000);
        waitForElement(".eg-new-hero-continer .s-hero__text", WhyLunchpad, 50, 15000);
      }
      waitForElement(".s-hero__logo-block-wrap", init, 50, 15000);
    } 
    catch (e) {
      if (debug) console.log(e, "error in Test" + variation_name);
    }
})();



.eg-new-hero-continer {
    display: flex;
    flex-wrap: wrap;
}
.eg-new-hero-continer .s-hero__in {
    width: 50%;
    padding-right:50px
}
.eg-new-hero-continer .eg-form-continer {
    width: 50%;
}
.eg-new-hero-continer a.wds-btn._medium._primary._m-width-lg._center {
    display: none;
}
.eg-new-hero-continer .s-hero__btn-wrap {
    margin-bottom: 59px;
}

.eg-new-hero-continer .s-hero__text-row {
    display: flex!important;
    flex-direction:column;
    gap:15px!important;
    border-radius: 20px;
    border: 1px solid rgba(0, 0, 0, 0.20);
    background: #FFF;
    padding:10px;
    max-width:487px;
}


.eg-new-hero-continer .s-hero__video {
    max-width: 467px!important;
}

.eg-new-hero-continer.s-hero__text.wds-typography__text._size_m {
    color: #000;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 25px; 
    text-align: left;
    margin-bottom: 30px;
}


.eg-new-hero-continer .eg-form-continer .s-startup__form-wrap {
    margin-bottom: 40px!important;
}

@media only screen and (max-width: 767px) {

    .eg-new-hero-continer {
        display: flex;
        flex-wrap: wrap;
        flex-direction: column;
    }
    
    .eg-new-hero-continer .s-hero__in {
        width: 100%;
        padding-right:0;
    }
    
    .eg-new-hero-continer .eg-form-continer {
        width: 100%;
    }
    .eg-new-hero-continer > div.s-hero__in {
        margin: 0 0 50px!important;
    }

}