Advertisement
Guest User

ROWurBUX Status

a guest
Feb 24th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta name="viewport" content="width=device-width, initial-scale=1">
  5. <style>
  6. .accordion {
  7. background-color: #eee;
  8. color: #444;
  9. cursor: pointer;
  10. padding: 18px;
  11. width: 100%;
  12. border: none;
  13. text-align: left;
  14. outline: none;
  15. font-size: 15px;
  16. transition: 0.4s;
  17. }
  18.  
  19. .active, .accordion:hover {
  20. background-color: #ccc;
  21. }
  22.  
  23. .panel {
  24. padding: 0 18px;
  25. background-color: white;
  26. max-height: 0;
  27. overflow: hidden;
  28. transition: max-height 0.2s ease-out;
  29. }
  30. </style>
  31. </head>
  32. <body>
  33.  
  34.  
  35.  
  36. <button class="accordion">All Systems Operational ✔️</button>
  37. <div class="panel">
  38. <p>Everything is working so don't be spooked.</p>
  39. </div>
  40.  
  41. <button class="accordion">Issue Name (Investigating)👁️</button>
  42. <div class="panel">
  43. <p>We're working on the hitsabuna cuiana</p>
  44. </div>
  45.  
  46. <button class="accordion">Fixed ✔️</button>
  47. <div class="panel">
  48. <p>The hitsabuna cuiana issue has been fixed, carry on.</p>
  49. </div>
  50.  
  51. <script>
  52. var acc = document.getElementsByClassName("accordion");
  53. var i;
  54.  
  55. for (i = 0; i < acc.length; i++) {
  56. acc[i].addEventListener("click", function() {
  57. this.classList.toggle("active");
  58. var panel = this.nextElementSibling;
  59. if (panel.style.maxHeight){
  60. panel.style.maxHeight = null;
  61. } else {
  62. panel.style.maxHeight = panel.scrollHeight + "px";
  63. }
  64. });
  65. }
  66. </script>
  67.  
  68. </body>
  69. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement