c.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. var entries = [
  2. {
  3. "term": "CALAMITY",
  4. "part": "n.",
  5. "definition": "A more than commonly plain and unmistakable reminder that the affairs of this life are not of our own ordering. Calamities are of two kinds: misfortune to ourselves, and good fortune to others."
  6. },
  7. {
  8. "term": "CANNIBAL",
  9. "part": "n.",
  10. "definition": "A gastronome of the old school who preserves the simple tastes and adheres to the natural diet of the pre-pork period."
  11. },
  12. {
  13. "term": "CHILDHOOD",
  14. "part": "n.",
  15. "definition": "The period of human life intermediate between the idiocy of infancy and the folly of youth — two removes from the sin of manhood and three from the remorse of age."
  16. },
  17. {
  18. "term": "CLARIONET",
  19. "part": "n.",
  20. "definition": "An instrument of torture operated by a person with cotton in his ears. There are two instruments that are worse than a clarionet — two clarionets."
  21. },
  22. {
  23. "term": "COMFORT",
  24. "part": "n.",
  25. "definition": "A state of mind produced by contemplation of a neighbor's uneasiness."
  26. },
  27. {
  28. "term": "CORSAIR",
  29. "part": "n.",
  30. "definition": "A politician of the seas."
  31. }
  32. ];
  33. var html = '';
  34. $.each(entries, function() {
  35. html += '<div class="entry">';
  36. html += '<h3 class="term">' + this.term + '</h3>';
  37. html += '<div class="part">' + this.part + '</div>';
  38. html += '<div class="definition">' + this.definition + '</div>';
  39. html += '</div>';
  40. });
  41. $('#dictionary').html(html);