Guest User

Untitled

a guest
Jul 17th, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.53 KB | None | 0 0
  1. <!DOCTYPE HTML>
  2. <html>
  3.  
  4. <head>
  5. <link rel="stylesheet" href="messages.css">
  6. <meta charset="utf-8">
  7. </head>
  8.  
  9. <body>
  10.  
  11. <div id="container">
  12. <div class="pane">
  13. <h3>Horse</h3>
  14. <p>The horse is one of two extant subspecies of Equus ferus. It is an odd-toed ungulate mammal belonging to the taxonomic family Equidae. The horse has evolved over the past 45 to 55 million years from a small multi-toed creature, Eohippus, into the large, single-toed animal of today.</p>
  15. <button class="remove-button">[x]</button>
  16. </div>
  17. <div class="pane">
  18. <h3>Donkey</h3>
  19. <p>The donkey or ass (Equus africanus asinus) is a domesticated member of the horse family, Equidae. The wild ancestor of the donkey is the African wild ass, E. africanus. The donkey has been used as a working animal for at least 5000 years.</p>
  20. <button class="remove-button">[x]</button>
  21. </div>
  22. <div class="pane">
  23. <h3>Cat</h3>
  24. <p>The domestic cat (Latin: Felis catus) is a small, typically furry, carnivorous mammal. They are often called house cats when kept as indoor pets or simply cats when there is no need to distinguish them from other felids and felines. Cats are often valued by humans for companionship and for their ability to hunt vermin.
  25. </p>
  26. <button class="remove-button">[x]</button>
  27. </div>
  28. </div>
  29.  
  30. <script>
  31. container.onclick = function(event) {
  32. if (event.target.className != 'remove-button') return;
  33.  
  34. let pane = event.target.closest('.pane');
  35. pane.remove();
  36. };
  37. </script>
  38.  
  39. </body>
  40. </html>
Add Comment
Please, Sign In to add comment