Facebook
From Bartek, 4 Years ago, written in HTML5.
Embed
Download Paste or View Raw
Hits: 120
  1.  
  2. <link href="https://fonts.googleapis.com/css?family=Poppins:700&display=swap" rel="stylesheet">
  3. <style type="text/css">
  4.     .close {
  5.         position: absolute;
  6.         right: 18px;
  7.         top: 0px;
  8.         width: 18px;
  9.         height: 18px;
  10.     }
  11.     .close:before, .close:after {
  12.         position: absolute;
  13.         left: 15px;
  14.         content: ' ';
  15.         height: 18px;
  16.         width: 2px;
  17.         background-color: rgb(218, 218, 218);
  18.     }
  19.     .close:hover {
  20.         cursor: pointer;
  21.     }
  22.     .close:before {
  23.         transform: rotate(45deg);
  24.     }
  25.     .close:after {
  26.         transform: rotate(-45deg);
  27.     }
  28.  
  29.     #yl-popup-popupOknoPixel_2{
  30.         top: 50%;
  31.         transform: translateY(-50%);
  32.     }
  33.     #popup-form@(popupName){
  34.         margin-bottom: 1em;
  35.     }
  36.    
  37.     #popup-container{
  38.         background-image: url('https://oknoplast.user.com/media/uploads/kj7d8v-oknoplast/pop-up-pixel-8a832526d698.jpg');
  39.         box-sizing: border-box;
  40.         -webkit-box-sizing: border-box;
  41.         max-width: 1000px;
  42.         margin: 0 auto;
  43.         background-size: cover;
  44.         background-position: center center;
  45.         height: 500px;
  46.         position: absolute;
  47.         top: 50%;
  48.         left: 50%;
  49.         transform: translate(-50%, -50%);
  50.     }
  51.  
  52.     #qpContent, #qpContent *{
  53.         box-sizing: border-box;
  54.         -webkit-box-sizing: border-box;
  55.     }
  56.     #qpContent{
  57.         display: flex;
  58.         align-items: center;
  59.         padding: 40px;
  60.         text-align: center;
  61.         font-family: Calibri, Arial, sans-serif;
  62.         background: black;
  63.         background: rgba(0, 0, 0, 0.8);
  64.         color: white;
  65.         width: 50%;
  66.         float: right;
  67.         height: 500px;
  68.         letter-spacing: 0.05em;
  69.         overflow: hidden;
  70.  
  71.     }
  72.     #qpThankYou{
  73.         margin-top: 50%;
  74.         transform: translateY(-50%);
  75.     }
  76.    
  77.     #qpContent input[type=email]{
  78.         background: #4F5C6C;
  79.         border: none;
  80.         width: 100%;
  81.         height: 54px;
  82.         line-height: 54px;
  83.         margin: 10px 0 40px;
  84.         padding: 0 15px;
  85.         color: white;
  86.         outline:none !important;
  87.     }
  88.     .ue_form>form {
  89.         height: 100vh;
  90.     display: flex;
  91.     }
  92.     #popup-container{
  93.     align-self: center;
  94.     }
  95.     .qpButton{
  96.         font-family: Poppins, Arial, sans-serif;
  97.         font-weight: bold;
  98.         width: 171px;
  99.         font-size: 15px;
  100.         height: 42px;
  101.         line-height: 42px;
  102.         text-align: center;
  103.         background: #00B2EC;
  104.         border-radius: 42px;
  105.         border: none;
  106.         color: white;
  107.         text-transform: uppercase;
  108.         margin-bottom: 40px;
  109.         text-decoration: none;
  110.         display: inline-block;
  111.     }
  112.     .qpButton:last-child{
  113.         margin-bottom: 0;
  114.     }
  115.     .qpP, .qpH{
  116.         font-size: 17px;
  117.         line-height: 17px;
  118.     }
  119.     .qpH{
  120.         font-weight: bold;
  121.         margin-bottom: 20px;    
  122.         text-transform: uppercase;
  123.     }
  124.     .qpP{
  125.         margin-bottom: 40px;    
  126.  
  127.     }
  128.     .qpInfoSmall{
  129.         font-size: 13px;
  130.         color: #979797;
  131.         text-align: left;
  132.         letter-spacing: 0;
  133.     }
  134.     .qpInfo{
  135.         font-size: 14px;
  136.         color: #979797;
  137.         text-align: left;
  138.         line-height: 15px;
  139.         letter-spacing: -0.2px;
  140.         padding-bottom: 30px;
  141.     }
  142.     .qpInfo a{
  143.         text-decoration: underline;
  144.         color: #00c0ff;
  145.     }
  146.  
  147.     ::-webkit-input-placeholder { /* Chrome/Opera/Safari */
  148.     color: #ffffff;
  149.     }
  150.     ::-moz-placeholder { /* Firefox 19+ */
  151.     color: #ffffff;
  152.     }
  153.     :-ms-input-placeholder { /* IE 10+ */
  154.     color: #ffffff;
  155.     }
  156.     :-moz-placeholder { /* Firefox 18- */
  157.     color: #ffffff;
  158.     }
  159.     @@media screen and (max-width: 1099px){
  160.         .qpH, .qpP{
  161.             font-size: 16px;
  162.         }
  163.     }
  164.     @@media screen and (max-width: 749px){
  165.         #popup-container{
  166.             height: auto;
  167.         }
  168.         #qpContent{
  169.             height: auto;
  170.             width: auto;
  171.             float: none;
  172.         }
  173.     }
  174.    
  175.  
  176.     <div id="popup-container">
  177.         <p id="hide-popup" class="close"></p>
  178.     <div id="qpContent">
  179.         <div id="qpForm">
  180.             <div class="qpH">
  181.                 Dowiedz się więcej o oknach Pixel
  182.             </div>
  183.             <div class="qpP">
  184.                 Okna Pixel to nie tylko wyjątkowy design. To także technologia, która zapewnia więcej światła w pomieszczeniu.<br />
  185.                 Jeśli chcesz dowiedzieć się o nich więcej pozostaw swój adres e-mail.
  186.             </div>
  187.             <div id="qpForm">
  188.                 <form id="popup-form@(popupName)">
  189.                     [:email class="ue_input"]
  190.                     <button id="submitButton" type="submit" class="qpButton">Chcę!</button>
  191.                 </form>
  192.                 <div class='qpInfo'>
  193.                     Administratorem podanych danych osobowych jest Oknoplast Sp. z o.o. z siedzibą w Ochmanowie, Ochmanów 117, 32-003 Podłęże. Więcej informacji
  194.                     o przetwarzaniu danych osobowych i przysługujących Państwu prawach można znaleźć w <a href="https://oknoplast.com.pl/polityka-prywatnosci/" target="_blank">Polityce Prywatności</a>
  195.                 </div>
  196.             </div>
  197.         </div>
  198.         <div id="qpThankYou" style="display: none;">
  199.             <div class="qpH">
  200.                 POTWIERDŹ SWÓJ ADRES E-MAIL
  201.             </div>
  202.             <div class="qpP">
  203.                 Wejdź teraz na swoją skrzynkę mailową
  204.                 i kliknij w link, który wysłaliśmy Ci
  205.                 w wiadomości, aby potwierdzić zapis do newslettera. Jeśli nie widzisz wiadomości, sprawdź inne zakładki.
  206.                 <br />
  207.                 <br />
  208.                 Jeśli masz inne pytania, skontaktuj
  209.                 się z najbliższym salonem OKNOPLAST.
  210.             </div>
  211.             <a class="qpButton" href="https://oknoplast.com.pl/znajdz-salon/" target="_blank">Znajdź salon</a>
  212.         </div>
  213.     </div>
  214. </div>
  215.    
  216.     <script type="text/javascript">
  217.     let hideCross = document.querySelector('#hide-popup');
  218.     let popup = document.querySelector('#popup-container');
  219.    
  220.     hideCross.addEventListener('click', () => {
  221.         popup.style.display = 'none'
  222.     })
  223.  
  224.     (function () {
  225.         $('#popup-form@(popupName)').submit(function (e) {
  226.             e.preventDefault();
  227.             var validationPassed = true;
  228.             var email = $('#popup-container .yl-email').val();
  229.             if (!email)
  230.                 validationPassed = false;
  231.             if (validationPassed)
  232.             {
  233.                 Monitor.TrackForm("popup-form@(popupName)", 2);
  234.                 $('#qpForm').hide();
  235.                 $('#qpThankYou').show();
  236.             }
  237.         });
  238.  
  239.     })();
  240.  
  241.     var isIE = /*@@cc_on!@@*/ false || !!document.documentMode;
  242.     if(isIE){
  243.         setTimeout(function(){
  244.             var w = window.outerWidth;
  245.             var h = window.outerHeight;
  246.             window.resizeTo(w, h);
  247.         }, 200);
  248.     }
  249.  
  250.