helloworld.html 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta http-equiv="Content-type" content="text/html; charset=utf-8">
  5. <meta name="viewport" content="width=device-width, initial-scale=1">
  6. <title>PushJS - Hello world!</title>
  7. <script src="https://cdnjs.cloudflare.com/ajax/libs/push.js/1.0.9/push.min.js" integrity="sha256-7knTDMqjR962XOHsW7AEJpNDYQpsXXnCItzuekBvHqc=" crossorigin="anonymous"></script>
  8. <script src="helloworld.js"></script>
  9. <style>
  10. body {
  11. background-color: #e1e1e1;
  12. }
  13. .center {
  14. margin: 0;
  15. position: absolute;
  16. top: 50%;
  17. left: 50%;
  18. transform: translate(-50%, -50%);
  19. }
  20. .button {
  21. background-color: #4CAF50;
  22. border: none;
  23. color: white;
  24. padding: 15px 32px;
  25. text-align: center;
  26. text-decoration: none;
  27. display: inline-block;
  28. font-size: 16px;
  29. margin: 4px 2px;
  30. cursor: pointer;
  31. -webkit-transition-duration: 0.4s;
  32. transition-duration: 0.4s;
  33. border-radius: 8px;
  34. }
  35. .button:hover {
  36. box-shadow: 0 12px 16px 0 rgba(0,0,0,0.24),0 17px 50px 0 rgba(0,0,0,0.19);
  37. }
  38. </style>
  39. </head>
  40. <body>
  41. <button class="button center">View a Push demo ...</button>
  42. <script>
  43. rtl.run();
  44. </script>
  45. </body>
  46. </html>