Guest User

Untitled

a guest
Nov 20th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.33 KB | None | 0 0
  1. <div class="wrapper">
  2. <div>
  3. <h1>Click</h1>
  4. <button id="click">Click!</button>
  5. <p id="clickp">Click the button to change this paragraph.</p>
  6. </div>
  7. <div>
  8. <h1>Hide</h1>
  9. <button id="hide">Hide!</button>
  10. <p id="hidep">Click the button to hide this paragraph.</p>
  11. </div>
  12. <div>
  13. <h1>Show</h1>
  14. <button id="show">Show!</button>
  15. <p>I'm lonely without the last paragraph. Click the button to show the last paragraph.</p>
  16. </div>
  17. <div>
  18. <h1>Toggle</h1>
  19. <button id="toggle">Toggle!</button>
  20. <p id="togglep">Click the button to toggle this paragraph. Now you see me, now you don't.</p>
  21. </div>
  22. <div>
  23. <h1>Slide Down</h1>
  24. <button id="slideDown">Slide down...?</button>
  25. <p id="slideDownp">You clicked the button and slid this paragraph down! Yay!</p>
  26. </div>
  27. <div>
  28. <h1>Slide Up</h1>
  29. <button id="slideUp">Slide up!</button>
  30. <p>I'm done seeing that paragraph now, though. Click this button to make it slide back up.</p>
  31. </div>
  32. <div>
  33. <h1>Slide Toggle</h1>
  34. <button id="slideToggle">Toggle slide!</button>
  35. <p id="slideTogglep">Who needs two buttons to do that, anyway? Click this button to toggle slide up/down.</p>
  36. </div>
  37. <div>
  38. <h1>Fade In</h1>
  39. <button id="fadein">Fade In!!!</button>
  40. <p id="fadeinp">Say please next time and I'll fade in a little quicker.</p>
  41. </div>
  42. <div>
  43. <h1>Fade Out</h1>
  44. <button id="fadeout">Fade Out!</button>
  45. <p id="fadeoutp">Click this button and whisk me away into the void through a fade out, where I am destined to live for all of eternity.</p>
  46. </div>
  47. <div>
  48. <h1>Add Class</h1>
  49. <button id="addclass">Add Class!</button>
  50. <p id="addclassp">I'm feeling crass and could really use some class. Can you click that button so I can get some?</p>
  51. </div>
  52. <div>
  53. <h1>Before</h1>
  54. <button id="before">Add Before!</button>
  55. <p id="beforep">What comes before the storm? Click to add a sibling element before this element and find out.</p>
  56. </div>
  57. <div>
  58. <h1>After</h1>
  59. <button id="after">Add After!</button>
  60. <p id="afterp">You know the drill by now. Click to add something after this paragraph, which will be a sibling of this element.</p>
  61. </div>
  62. <div>
  63. <h1>Append</h1>
  64. <button id="append">Append!</button>
  65. <p id="appendp">Click the button to append something to the end of this paragraph, creating an element that is a CHILD of this element.</p>
  66. </div>
  67. <div>
  68. <h1>Prepend</h1>
  69. <button id="prepend">Prepend!</button>
  70. <p id="prependp">Do the same thing as above when you click the button, but add the child BEFORE the element.</p>
  71. </div>
  72. <div>
  73. <h1>HTML</h1>
  74. <button id="html">Change!</button>
  75. <p id="htmlp">Click to change the HTML of this paragraph.</p>
  76. </div>
  77. <div>
  78. <h1>attr</h1>
  79. <button id="attr">Click</button>
  80. <p id="attrp">Click to give this paragraph a title when you hover over it.</p>
  81. </div>
  82. <div>
  83. <h1>val</h1>
  84. <button id="val">Give Input!</button>
  85. <input id="valin" value="Click to input button's text."></input>
  86. <p id="valp"></p>
  87. </div>
  88. <div>
  89. <h1>text</h1>
  90. <button id="text">Click!</button>
  91. <p id="textp">Now back to something I completely understand that strangely enough is the last item on the list but arguably the one that I have been using the most in this whole assignment! Click to change the text!?!</p>
  92. </div>
  93. </div>
Add Comment
Please, Sign In to add comment