popup.html 940 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <style>
  2. .popup {
  3. max-width: 500px;
  4. width: 400px;
  5. margin: 1em;
  6. margin-left: calc(-200px);
  7. padding: 1em;
  8. padding-right: 2em;
  9. color: black;
  10. background: white;
  11. border: 2px solid whitesmoke;
  12. box-shadow: 0px 0px 10px 10px rgba(0, 0, 0, .25);
  13. position: fixed;
  14. top: 0px;
  15. left: 50%;
  16. z-index: 99999999999999;
  17. transition: all 1s;
  18. border-radius: .25em;
  19. }
  20. .popup button.close {
  21. background: none;
  22. border: none;
  23. box-shadow: none;
  24. font-size: 200%;
  25. color: grey;
  26. position: absolute;
  27. top: 0px;
  28. right: 0px;
  29. }
  30. .popup.offscreen {
  31. top: -300px;
  32. opacity: 0;
  33. }
  34. </style>
  35. <div class="popup offscreen">
  36. Please complete <a href="https://brown.co1.qualtrics.com/jfe/form/SV_4PgW7EKNvnxnWLk">our survey</a>
  37. to help us in our research.
  38. <button class="close" onclick="$('.popup').classList.add('offscreen')">×</button>
  39. </div>
  40. <script>
  41. //setTimeout(() => $('.popup').classList.remove('offscreen'), 30000);
  42. </script>