Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
17 kB
1
Indexable
Never
<script>
 (function () {
   if(!document.querySelector('.eg-container'))
  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);
    }

    
    /* Variation Init */
    init = function () {
      var newContainer = '<div class="container eg-container">' +
      '<div class="logoContainer">' +
      '<div class="logoCon">' + 
      '<svg xmlns="http://www.w3.org/2000/svg" width="38" height="24" viewBox="0 0 38 24" fill="none">' +
        '<g clip-path="url(#clip0_1_53)">' +
          '<path opacity="0.07" d="M35 0H3C1.3 0 0 1.3 0 3V21C0 22.7 1.4 24 3 24H35C36.7 24 38 22.7 38 21V3C38 1.3 36.6 0 35 0Z" fill="black" />' +
          '<path d="M35 1C36.1 1 37 1.9 37 3V21C37 22.1 36.1 23 35 23H3C1.9 23 1 22.1 1 21V3C1 1.9 1.9 1 3 1H35Z" fill="#006FCF" />' +
          '<path d="M8.971 10.268L9.745 12.144H8.203L8.971 10.268ZM25.046 10.346H22.069V11.173H24.998V12.412H22.075V13.334H25.052V14.073L27.129 11.828L25.052 9.488L25.046 10.346ZM10.983 8.006H14.978L15.865 9.941L16.687 8H27.057L28.135 9.19L29.25 8H34.013L30.494 11.852L33.977 15.68H29.143L28.065 14.49L26.94 15.68H10.03L9.536 14.49H8.406L7.911 15.68H4L7.286 8H10.716L10.983 8.006ZM19.646 9.084H17.407L15.907 12.62L14.282 9.084H12.06V13.894L10 9.084H8.007L5.625 14.596H7.18L7.674 13.406H10.27L10.764 14.596H13.484V10.661L15.235 14.602H16.425L18.165 10.673V14.603H19.623L19.647 9.083L19.646 9.084ZM28.986 11.852L31.517 9.084H29.695L28.094 10.81L26.546 9.084H20.652V14.602H26.462L28.076 12.864L29.624 14.602H31.499L28.986 11.852Z" fill="white" />' +
        '</g>' +
        '<defs> <clipPath id="clip0_1_53">' +
           '<rect width="38" height="24" fill="white" />' +
          '</clipPath>'+
        '</defs>' +
      '</svg>'+
    '</div>' +
    '<div class="logoCon">' +
    '<svg xmlns="http://www.w3.org/2000/svg"  width="38" height="24" viewBox="0 0 38 24" fill="none">' +
      '<g clip-path="url(#clip0_1_59)">' +
        '<path d="M34.3872 0H3.61284C3.48465 0 3.35623 0 3.22826 0.00067947C3.12023 0.00158543 3.01242 0.00271788 2.90438 0.00566225C2.66906 0.012004 2.4317 0.0260463 2.19932 0.0677205C1.96627 0.107648 1.74048 0.182074 1.52936 0.288548C1.10496 0.504411 0.759996 0.849374 0.544133 1.27378C0.437469 1.48497 0.363034 1.71095 0.323305 1.94419C0.281178 2.17679 0.267362 2.41393 0.26102 2.64903C0.25826 2.75697 0.256599 2.86493 0.256038 2.97291C0.255585 3.10065 0.255585 3.22884 0.255585 3.35726V20.6425C0.255585 20.7709 0.255585 20.8989 0.256038 21.0273C0.256717 21.1351 0.258076 21.2432 0.26102 21.3512C0.267362 21.5858 0.281405 21.8232 0.323305 22.0556C0.362953 22.2888 0.437311 22.5148 0.543906 22.726C0.651078 22.9369 0.790968 23.1296 0.958383 23.2967C1.12551 23.4642 1.31816 23.6041 1.52914 23.7112C1.74362 23.8206 1.96332 23.8902 2.19955 23.9325C2.4317 23.974 2.66906 23.988 2.90438 23.9943C3.01242 23.9968 3.12023 23.9982 3.22826 23.9989C3.35623 23.9998 3.48465 23.9998 3.61284 23.9998H34.3872C34.5151 23.9998 34.6435 23.9998 34.7715 23.9989C34.8793 23.9984 34.9871 23.9968 35.0956 23.9943C35.3305 23.988 35.5678 23.974 35.8007 23.9325C36.0338 23.8925 36.2596 23.818 36.4706 23.7112C36.8948 23.4951 37.2397 23.1502 37.4559 22.726C37.5653 22.5115 37.6346 22.2918 37.6765 22.0556C37.7186 21.8232 37.7322 21.5858 37.7385 21.3512C37.7415 21.2432 37.7431 21.1351 37.7435 21.0273C37.7444 20.8989 37.7444 20.7709 37.7444 20.6425V3.35749C37.7444 3.22907 37.7444 3.10087 37.7435 2.97268C37.7431 2.86478 37.7414 2.75689 37.7385 2.64903C37.7322 2.41393 37.7186 2.17679 37.6765 1.94419C37.637 1.71091 37.5627 1.4849 37.4559 1.27378C37.2399 0.849448 36.895 0.504513 36.4706 0.288548C36.2595 0.182184 36.0337 0.107836 35.8007 0.067947C35.5678 0.0260463 35.3305 0.0122305 35.0956 0.00588874C34.9876 0.00314533 34.8796 0.00148432 34.7715 0.000905959C34.6435 0 34.5151 0 34.3872 0Z" fill="black" />' +
        '<path d="M34.3871 0.799957L34.7658 0.800637C34.8682 0.801316 34.9708 0.802449 35.0739 0.805167C35.2535 0.810149 35.4632 0.819888 35.6589 0.854994C35.8288 0.88557 35.9714 0.932001 36.1082 1.00176C36.382 1.14095 36.6044 1.3636 36.7433 1.63752C36.8126 1.77341 36.8588 1.91519 36.8894 2.08665C36.9243 2.28007 36.934 2.49048 36.9388 2.67099C36.9417 2.77291 36.9431 2.87483 36.9433 2.97902C36.9444 3.10517 36.9444 3.2311 36.9444 3.35748V20.6427C36.9444 20.7691 36.9444 20.895 36.9435 21.0237C36.9431 21.1256 36.9417 21.2275 36.939 21.3295C36.934 21.5097 36.9243 21.7201 36.889 21.9158C36.8633 22.0715 36.814 22.2223 36.7429 22.3632C36.6037 22.6372 36.3809 22.8598 36.1069 22.9989C35.971 23.0682 35.8288 23.1146 35.6605 23.145C35.4609 23.1806 35.2421 23.1903 35.0775 23.1948C34.974 23.1971 34.8709 23.1987 34.7652 23.1991C34.6395 23.2 34.5131 23.2 34.3871 23.2H3.60786C3.48329 23.2 3.35872 23.2 3.23188 23.1991C3.12995 23.1987 3.02803 23.1973 2.92612 23.1951C2.75761 23.1905 2.53882 23.1806 2.34087 23.1452C2.18436 23.1191 2.03271 23.0695 1.89106 22.998C1.7552 22.929 1.63119 22.8388 1.5237 22.7307C1.41587 22.6231 1.32581 22.499 1.25689 22.3632C1.18572 22.2215 1.13639 22.07 1.11058 21.9136C1.07525 21.7181 1.06528 21.5086 1.06075 21.3297C1.05819 21.2274 1.05668 21.1251 1.05622 21.0228L1.05554 20.7222V3.27821L1.05599 2.97811C1.05646 2.87565 1.05797 2.77319 1.06052 2.67076C1.06551 2.49138 1.07525 2.28188 1.11081 2.08483C1.13666 1.92875 1.18599 1.77748 1.25712 1.63616C1.32597 1.50072 1.41566 1.37705 1.52438 1.26856C1.63213 1.16064 1.75627 1.07044 1.8922 1.00131C2.03349 0.93032 2.18467 0.880997 2.34065 0.854994C2.53656 0.819888 2.74652 0.810149 2.92635 0.805167C3.02872 0.802449 3.13132 0.801316 3.23302 0.800637L3.61284 0.799957H34.3871Z" fill="white" />' +
        '<path d="M10.1097 8.10153C10.4277 7.70404 10.6433 7.1702 10.5865 6.62482C10.1212 6.64792 9.55366 6.93171 9.2248 7.32965C8.92968 7.67029 8.66854 8.22633 8.73649 8.74884C9.25877 8.79414 9.78061 8.48792 10.1097 8.10153Z" fill="black" />' +
        '<path d="M10.5806 8.85097C9.82183 8.80567 9.17724 9.2813 8.81509 9.2813C8.4527 9.2813 7.89803 8.87362 7.29806 8.88472C6.51735 8.89604 5.79303 9.3377 5.39667 10.0398C4.58176 11.4441 5.18151 13.5278 5.97422 14.6715C6.35903 15.2378 6.82288 15.8606 7.43395 15.8382C8.0115 15.8155 8.23776 15.4645 8.93943 15.4645C9.64087 15.4645 9.84471 15.8382 10.456 15.8269C11.0897 15.8155 11.4861 15.2606 11.8709 14.6944C12.3125 14.0489 12.4931 13.4261 12.5044 13.3921C12.4931 13.3808 11.2822 12.9162 11.2709 11.5233C11.2596 10.3569 12.2217 9.802 12.267 9.7678C11.7237 8.96422 10.8748 8.87362 10.5803 8.85097" fill="black" />' +
        '<path d="M18.1422 7.27258C19.7906 7.27258 20.9386 8.40888 20.9386 10.0632C20.9386 11.7233 19.767 12.8655 18.101 12.8655H16.2759V15.7682H14.9573V7.27258H18.1422ZM16.2759 11.7587H17.7889C18.9372 11.7587 19.5904 11.1406 19.5904 10.0691C19.5904 8.99776 18.9369 8.38533 17.7947 8.38533H16.2759V11.7587Z" fill="black" />' +
        '<path d="M21.2657 14.0077C21.2657 12.9185 22.0958 12.2946 23.6264 12.2003L25.2689 12.1002V11.6291C25.2689 10.9406 24.8157 10.5637 24.0092 10.5637C23.3437 10.5637 22.8609 10.905 22.7612 11.4289H21.5717C21.6072 10.3282 22.6432 9.52753 24.0445 9.52753C25.5516 9.52753 26.5347 10.3164 26.5347 11.541V15.768H25.3162V14.7495H25.2868C24.9394 15.4147 24.1738 15.8326 23.3437 15.8326C22.1193 15.8326 21.2657 15.1028 21.2657 14.0077ZM25.2689 13.4603V12.9833L23.8031 13.0775C22.9786 13.1305 22.5492 13.4365 22.5492 13.9722C22.5492 14.4904 22.9965 14.826 23.6971 14.826C24.5917 14.826 25.2689 14.2548 25.2689 13.4603Z" fill="black" />' +
        '<path d="M27.6552 18.0404V17.0221C27.7377 17.0336 27.9376 17.0454 28.0436 17.0454C28.6264 17.0454 28.9562 16.7985 29.1564 16.1623L29.2742 15.7857L27.0428 9.60406H28.4203L29.9747 14.6199H30.0041L31.5583 9.60406H32.9007L30.5869 16.0975C30.0569 17.5872 29.4506 18.0759 28.1673 18.0759C28.0672 18.0759 27.7433 18.0641 27.6552 18.0404Z" fill="black" />' +
      '</g>' +
      '<defs>' +
        '<clipPath id="clip0_1_59">' +
        '<rect width="38" height="24" fill="white" />' +
      '</clipPath> </defs> </svg> </div>' +
     '<div class="logoCon">' +
  '<svg xmlns="http://www.w3.org/2000/svg" width="38" height="24" viewBox="0 0 38 24" fill="none">' +
  '<g clip-path="url(#clip0_1_71)">' +
     '<path opacity="0.07" d="M35 0H3C1.3 0 0 1.3 0 3V21C0 22.7 1.4 24 3 24H35C36.7 24 38 22.7 38 21V3C38 1.3 36.6 0 35 0Z" fill="black" />' +
     '<path d="M35 1C36.1 1 37 1.9 37 3V21C37 22.1 36.1 23 35 23H3C1.9 23 1 22.1 1 21V3C1 1.9 1.9 1 3 1H35Z" fill="white" />' +
     '<path d="M15 19C18.866 19 22 15.866 22 12C22 8.13401 18.866 5 15 5C11.134 5 8 8.13401 8 12C8 15.866 11.134 19 15 19Z" fill="#EB001B" />' +
     '<path d="M23 19C26.866 19 30 15.866 30 12C30 8.13401 26.866 5 23 5C19.134 5 16 8.13401 16 12C16 15.866 19.134 19 23 19Z" fill="#F79E1B" />' +
     '<path d="M22 12C22 9.59999 20.8 7.49999 19 6.29999C17.2 7.59999 16 9.69999 16 12C16 14.3 17.2 16.5 19 17.7C20.8 16.5 22 14.4 22 12Z" fill="#FF5F00" />' +
   '</g>' +
   '<defs>' +
     '<clipPath id="clip0_1_71">' +
     '<rect width="38" height="24" fill="white" />' +       
 '</clipPath> </defs> </svg> </div>' +
 '<div class="logoCon">' +
    '<svg xmlns="http://www.w3.org/2000/svg" width="38" height="24" viewBox="0 0 38 24" fill="none">' +
      '<g clip-path="url(#clip0_1_78)">' +
        '<path  opacity="0.07"   d="M35 0H3C1.3 0 0 1.3 0 3V21C0 22.7 1.4 24 3 24H35C36.7 24 38 22.7 38 21V3C38 1.3 36.6 0 35 0Z" fill="black"/>' +
        '<path d="M35 1C36.1 1 37 1.9 37 3V21C37 22.1 36.1 23 35 23H3C1.9 23 1 22.1 1 21V3C1 1.9 1.9 1 3 1H35Z" fill="white" />' +
        '<path d="M28.3 10.1H28C27.6 11.1 27.3 11.6 27 13.1H28.9C28.6 11.6 28.6 10.9 28.3 10.1ZM31.2 16H29.5C29.4 16 29.4 16 29.3 15.9L29.1 15L29 14.8H26.6C26.5 14.8 26.4 14.8 26.4 15L26.1 15.9C26.1 16 26 16 26 16H23.9L24.1 15.5L27 8.7C27 8.2 27.3 8 27.8 8H29.3C29.4 8 29.5 8 29.5 8.2L30.9 14.7C31 15.1 31.1 15.4 31.1 15.8C31.2 15.9 31.2 15.9 31.2 16ZM17.8 15.7L18.2 13.9C18.3 13.9 18.4 14 18.4 14C19.1 14.3 19.8 14.5 20.5 14.4C20.7 14.4 21 14.3 21.2 14.2C21.7 14 21.7 13.5 21.3 13.1C21.1 12.9 20.8 12.8 20.5 12.6C20.1 12.4 19.7 12.2 19.4 11.9C18.2 10.9 18.6 9.5 19.3 8.8C19.9 8.4 20.2 8 21 8C22.2 8 23.5 8 24.1 8.2H24.2C24.1 8.8 24 9.3 23.8 9.9C23.3 9.7 22.8 9.5 22.3 9.5C22 9.5 21.7 9.5 21.4 9.6C21.2 9.6 21.1 9.7 21 9.8C20.8 10 20.8 10.3 21 10.5L21.5 10.9C21.9 11.1 22.3 11.3 22.6 11.5C23.1 11.8 23.6 12.3 23.7 12.9C23.9 13.8 23.6 14.6 22.8 15.2C22.3 15.6 22.1 15.8 21.4 15.8C20 15.8 18.9 15.9 18 15.6C17.9 15.8 17.9 15.8 17.8 15.7ZM14.3 16C14.4 15.3 14.4 15.3 14.5 15C15 12.8 15.5 10.5 15.9 8.3C16 8.1 16 8 16.2 8H18C17.8 9.2 17.6 10.1 17.3 11.2C17 12.7 16.7 14.2 16.3 15.7C16.3 15.9 16.2 15.9 16 15.9M5 8.2C5 8.1 5.2 8 5.3 8H8.7C9.2 8 9.6 8.3 9.7 8.8L10.6 13.2C10.6 13.3 10.6 13.3 10.7 13.4C10.7 13.3 10.8 13.3 10.8 13.3L12.9 8.2C12.8 8.1 12.9 8 13 8H15.1C15.1 8.1 15.1 8.1 15 8.2L11.9 15.5C11.8 15.7 11.8 15.8 11.7 15.9C11.6 16 11.4 15.9 11.2 15.9H9.7C9.6 15.9 9.5 15.9 9.5 15.7L7.9 9.5C7.7 9.3 7.4 9 7 8.9C6.4 8.6 5.3 8.4 5.1 8.4L5 8.2Z" fill="#142688" />' +
       ' </g>' +
      '<defs>  <clipPath id="clip0_1_78">' +
     '<rect width="38" height="24" fill="white" />'   +    
    '</clipPath> </defs> </svg> </div>' +
      '</div>' +
     '<div class="infoContainer">' +
    '<div class="infoSection">' +
    '<div class="logoSvg">' +
    '<svg ' +
    'xmlns="http://www.w3.org/2000/svg" ' +
    'width="25" ' +
    'height="24" ' +
    'viewBox="0 0 25 24" ' +
    'fill="none">' +
    '<path ' +
    'd="M2.57224 19.8918H1.00024V0.399994H17.5465V5.29834H18.6839C21.539 5.29834 23.8535 7.61287 23.8535 10.468V19.8921H22.1217M16.78 19.8918H7.91342" ' +
    'stroke="black" ' +
    'stroke-width="0.731707" />' +
    '<path ' +
    'd="M4.47034 22.4644C3.30956 22.657 2.14732 22.9064 1 23.2234M18.124 22.2388C15.0473 21.8841 11.0124 21.6625 6.81327 22.1068M23.8006 23.2295C23.8006 23.2295 22.3489 22.8719 20.003 22.5285M17.5272 12.1084H21.9374V10.8587C21.9374 8.86259 20.3188 7.24405 18.3224 7.24405H17.5269L17.5272 12.1084ZM22.0858 20.3363C22.1433 19.9896 22.1319 19.635 22.0522 19.2927C21.9724 18.9504 21.8259 18.6272 21.6209 18.3417C21.416 18.0561 21.1568 17.8138 20.858 17.6287C20.5593 17.4435 20.2269 17.3192 19.88 17.2627C19.5331 17.2063 19.1785 17.2189 18.8365 17.2997C18.4945 17.3806 18.1718 17.5282 17.8869 17.7341C17.602 17.9399 17.3606 18.2 17.1764 18.4993C16.9922 18.7987 16.869 19.1314 16.8137 19.4785C16.704 20.1758 16.8749 20.8881 17.289 21.4598C17.703 22.0315 18.3265 22.416 19.0232 22.5293C19.7199 22.6427 20.4331 22.4756 21.007 22.0646C21.5809 21.6536 21.9687 21.0324 22.0858 20.3363ZM7.87834 20.3361C7.93886 19.9881 7.92977 19.6316 7.85159 19.2872C7.77341 18.9428 7.6277 18.6173 7.42288 18.3296C7.21807 18.0418 6.95822 17.7976 6.65838 17.611C6.35854 17.4243 6.02466 17.299 5.67607 17.2423C5.32748 17.1856 4.9711 17.1986 4.62756 17.2805C4.28402 17.3624 3.96014 17.5117 3.67466 17.7196C3.38919 17.9276 3.1478 18.1901 2.96445 18.4919C2.78111 18.7938 2.65946 19.129 2.60654 19.4782C2.49286 20.1772 2.66149 20.8928 3.07534 21.4675C3.48918 22.0422 4.11436 22.429 4.81337 22.5429C5.51245 22.6566 6.22809 22.4881 6.80287 22.0742C7.37766 21.6603 7.76451 21.0351 7.87834 20.3361Z" ' +
    'stroke="black" ' +
    'stroke-width="0.731707" />' +
    '</svg>' +
    '</div>' +
    '<div class="text">' +
    'Livraison 3j<br />' +
    'ouvrés' +
    '</div>' +
    '</div>' +
    '<div class="infoSection" >' +
     '<div class="logoSvg">' +
'<svg width="24" height="24" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> <path fill-rule="evenodd" clip-rule="evenodd" d="M15 12C15 12.1015 14.9805 12.1975 14.9525 12.289L10.5 7.5L15 4V12ZM1.778 12.973L6.28999 8.16499L8 9.4575L9.636 8.157L14.222 12.973C14.1505 12.9895 1.8495 12.9895 1.778 12.973ZM1 12V4L5.5 7.5L1.0475 12.289C1.0195 12.1975 1 12.1015 1 12ZM14.5 3L8 8L1.5 3H14.5ZM14 2H2C0.8955 2 0 2.8955 0 4V12C0 13.1045 0.8955 14 2 14H14C15.1045 14 16 13.1045 16 12V4C16 2.8955 15.1045 2 14 2Z" fill="white"></path> </svg>' +
'</div>' +
    '<div class="text">' +
    'Service client du Lundi<br />' +
    'au Vendredi' +
    '</div>' +
    '</div>' +
    '<div class="infoSection">' +
    '<div class="logoSvg">' +
    '<svg ' +
    'xmlns="http://www.w3.org/2000/svg" ' +
    'width="23" ' +
    'height="25" ' +
    'viewBox="0 0 23 25" ' +
    'fill="none">' +
    '<path ' +
    'd="M20.4853 13.0485C22.1808 8.15557 19.5886 2.81471 14.6954 1.11954C9.8024 -0.576236 4.46154 2.01594 2.76636 6.9092C1.07089 11.8022 3.66306 17.143 8.55603 18.8382C13.449 20.5337 18.7901 17.9415 20.4853 13.0485Z" ' +
    'stroke="black" ' +
    'stroke-width="0.674157" />' +
    '<path ' +
    'd="M19.4072 15.3069L22.2517 20.059L17.7201 20.1954L15.6816 23.9919L12.8623 19.2825M3.8445 15.327L0.999985 20.0791L5.53156 20.2155L7.5704 24.012L10.4098 19.2686M18.4008 12.5255C19.8067 8.81762 17.9406 4.67176 14.2324 3.26587C10.5243 1.85999 6.3787 3.72639 4.97281 7.43456C3.56693 11.1424 5.43303 15.2883 9.1412 16.6942C12.8494 18.1001 16.9949 16.2337 18.4008 12.5255Z" ' +
    'stroke="black" ' +
    'stroke-width="0.674157" />' +
    '</svg>' +
    '</div>' +
    '<div class="text">Garantie<br />5 ans</div>' +
    '</div>'
    '</div>';
       if(!document.querySelector('.eg-container')){
      document.querySelector(
        ".cart-drawer__foot.cart__foot"
      ).insertAdjacentHTML("afterend", newContainer);
       }
    }

    /* Initialize variation */
    waitForElement(".cart-drawer__foot.cart__foot", init, 50, 15000);
  } catch (e) {
    if (debug) console.log(e, "error in Test" + variation_name);
  }
})();

</script>

<style>
.container{
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 20px;
  margin-top: -45px;
}
.logoContainer{
  display: flex; gap: 10px; margin: 5px;
}

.infoContainer{
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0px 10px;
}

.infoSection{
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
}

.text{
  color: #000;
  /*font-family: Montserrat;*/
  font-size: 10px;
  font-style: normal;
  font-weight: 400;
  line-height: 11.9px;
  margin-top: -6px;
}
  .container.eg-container .infoContainer .infoSection:nth-child(2) .logoSvg svg {
    filter: invert(1);
}
</style>
Leave a Comment