Advertisement
Guest User

Untitled

a guest
Mar 30th, 2015
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.91 KB | None | 0 0
  1. <div class="" id="popup">
  2. <div class="close"><i class="fa fa-2x fa-times-circle"></i></div>
  3. <h2></h2>
  4. <div class='location field'></div>
  5. <div class='enrollment field'></div>
  6. <div class='tuition field'></div>
  7. <div class='history field'></div>
  8. <div class='fact field'></div>
  9. <div class='alumni field'></div>
  10.  
  11. <div class="videos"></div>
  12. <div class="images"></div>
  13. <div class="endnote field"></div>
  14. <div class="prose field"></div>
  15. </div>
  16.  
  17. $.getJSON( school + "/data.json", function( data ) {
  18. $('.images').empty();
  19. $('.videos').empty();
  20. $('.field').empty();
  21.  
  22. var location, enrollment, tuition, history, alumni, fact, prose;
  23. location = data.location;
  24. enrollment = data.enrollment;
  25. tuition = data.tuition;
  26. history = data.history;
  27. fact = data.fact;
  28. alumni = data.alumni;
  29. prose = data.prose;
  30.  
  31.  
  32. $('.location').html('<strong>Location</strong>: ' + location );
  33. $('.enrollment').html('<strong>Enrollment</strong>: ' + enrollment);
  34. $('.tuition').html('<strong>Undergraduate tuition</strong>: ' + tuition);
  35. $('.history').html('<strong>History</strong>: ' + history );
  36. $('.fact').html('<strong>Notable fact:</strong> ' + fact );
  37. $('.alumni').html('<strong>Prominent alumni</strong>: ' + alumni );
  38. $('.prose').html(prose);
  39. });
  40.  
  41. {
  42. "images": {
  43.  
  44. },
  45. "captions": {
  46.  
  47. },
  48. "videos": {
  49.  
  50. },
  51. "vidcaptions": {
  52. },
  53. "location": "",
  54. "enrollment": "",
  55. "tuition": "",
  56. "history": "",
  57. "alumni": "",
  58. "fact": "",
  59. "prose": ""
  60.  
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement