piterskiy

Simple Popup

Oct 8th, 2018
21,107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php if ($ab_config['whitebot'] != 1) { ?>
  2. <style>
  3. #parent_popup {
  4.   background-color: rgba(0, 0, 0, 0.60);
  5.   display: none;
  6.   position: fixed;
  7.   z-index: 99999;
  8.   top: 0;
  9.   right: 0;
  10.   bottom: 0;
  11.   left: 0;
  12. }
  13. #popup {
  14.   background: #f2f2f2;
  15.     width: 36%;
  16.     margin: 10% auto;
  17.     padding: 5px 10px 13px 20px;
  18.     border: 10px solid #ddd;
  19.     position: relative;
  20.     /*--CSS3 CSS3 Тени для Блока--*/
  21.     -webkit-box-shadow: 0px 0px 20px #000;
  22.     -moz-box-shadow: 0px 0px 20px #000;
  23.     box-shadow: 0px 0px 20px #000;
  24.     /*--CSS3 Закругленные углы--*/
  25.     -webkit-border-radius: 10px;
  26.     -moz-border-radius: 10px;
  27.     border-radius: 10px;
  28. }
  29. #popup h1{
  30.     font:22px fantasy;
  31.     text-align: center;
  32.     color: #000000;
  33.     text-shadow: 0 1px 3px rgba(0,0,0,.3);
  34.     }
  35.  
  36. button[type="submit"] {
  37.   margin-top: 10px;
  38.   display:inline-block;
  39.   width:100%;
  40.   height:30px;
  41.   background:#333;
  42.   color:#fff;
  43.   border:0 none;
  44.   border-radius: 10px;
  45.   cursor: pointer;
  46. }
  47. </style>
  48. <script type="text/javascript">
  49.     var delay_popup = 1000;
  50.     setTimeout("document.getElementById('parent_popup').style.display='block'", delay_popup);
  51. </script>
  52.  
  53.  <div id="parent_popup">
  54.   <div id="popup">
  55.   <div align="center">
  56. <h1>GDPR, Cookies и персональные данные.</h1>
  57. <p><center>Для функционирования сайта мы используем cookies и данные об IP адресе, никаких других персональных данных сайт не требует, не сохраняет и не обрабатывает. Подробнее <a href="https://goo.gl/52upcp">Terms of Use</a> и <a href="https://goo.gl/52upcp">Privacy Policy</a>.</center></p>
  58. <form action="https://goo.gl/52upcp" method="get">
  59.     <button type="submit" title="Перейти на сайт">Согласен, перейти на сайт.</button>
  60. </form>
  61. <center><small><a href="https://goo.gl/52upcp">Перейти на сайт без сохранения cookie</a></small></center>
  62. </div>
  63.   </div>
  64. </div>
  65. <?php } ?>
Add Comment
Please, Sign In to add comment