/9-final-no-server/public/index.html

https://bitbucket.org/edwardstlouis/backbonepeep1 · HTML · 130 lines · 117 code · 9 blank · 4 comment · 0 complexity · 9ad1f9071bbfee71b0d672308b876ff6 MD5 · raw file

  1. <!doctype html>
  2. <!--[if lt IE 7]> <html lang="en" class="no-js ie6"> <![endif]-->
  3. <!--[if IE 7]> <html lang="en" class="no-js ie7"> <![endif]-->
  4. <!--[if IE 8]> <html lang="en" class="no-js ie8"> <![endif]-->
  5. <!--[if IE 9]> <html lang="en" class="no-js ie9"> <![endif]-->
  6. <!--[if (gt IE 9)|!(IE)]><!--> <html lang="en" class="no-js"> <!--<![endif]-->
  7. <head>
  8. <meta charset="utf-8">
  9. <title>Backbone Tunes</title>
  10. <meta name="author" content="David Goodlad <david@goodlad.ca>">
  11. <link rel="stylesheet" href="style/screen.css" media="screen, projection">
  12. <link rel="stylesheet" href="style/fancypants.css" media="screen, projection">
  13. <script src="js/vendor/modernizr-1.6.min.js"></script>
  14. <script src="js/vendor/jquery-1.5.1.min.js"></script>
  15. <script src="js/vendor/underscore.js"></script>
  16. <script src="js/vendor/backbone.js"></script>
  17. <script src="js/Tunes.js"></script>
  18. <script type="text/template" id="library-template">
  19. <h1>Music Library</h1>
  20. <ul class="albums"></ul>
  21. </script>
  22. <script type="text/template" id="playlist-template">
  23. <h1>Playlist</h1>
  24. <nav>
  25. <button class="control play">Play</button>
  26. <button class="control pause">Pause</button>
  27. <button class="control prev">Prev</button>
  28. <button class="control next">Next</button>
  29. </nav>
  30. <ul class="albums">
  31. </ul>
  32. </script>
  33. <script type="text/template" id="album-template">
  34. <button class="queue add"><img src="images/add.png"></button>
  35. <button class="queue remove"><img src="images/remove.png"></button>
  36. <span class="album-title"><%= title %></span>&nbsp;&nbsp;
  37. <span class="artist-name"><%= artist %></span>
  38. <ol class="tracks">
  39. <% _.each(tracks, function(track) { %>
  40. <li><%= track.title %></li>
  41. <% }); %>
  42. </ol>
  43. </script>
  44. <script type="application/javascript">
  45. jQuery(function() {
  46. window.library.reset([{
  47. "title": "Bound - Zen Bound Ingame Music",
  48. "artist": "Ghost Monkey",
  49. "tracks": [{
  50. "title": "Care",
  51. "url": "music/blue.mp3"
  52. },
  53. {
  54. "title": "Rope and Wood",
  55. "url": "music/jazz.mp3"
  56. },
  57. {
  58. "title": "Problem Solvent",
  59. "url": "music/minimalish.mp3"
  60. },
  61. {
  62. "title": "Unpaint My Skin",
  63. "url": "music/slower.mp3"
  64. },
  65. {
  66. "title": "Nostalgia",
  67. "url": "music/blue.mp3"
  68. },
  69. {
  70. "title": "Interludum",
  71. "url": "music/jazz.mp3"
  72. },
  73. {
  74. "title": "Grind",
  75. "url": "music/minimalish.mp3"
  76. },
  77. {
  78. "title": "Diagrams",
  79. "url": "music/slower.mp3"
  80. },
  81. {
  82. "title": "Hare",
  83. "url": "music/blue.mp3"
  84. },
  85. {
  86. "title": "Carefree",
  87. "url": "music/jazz.mp3"
  88. },
  89. {
  90. "title": "Tunnel At The End Of Light",
  91. "url": "music/minimalish.mp3"
  92. }]
  93. },
  94. {
  95. "title": "Where the Earth Meets the Sky",
  96. "artist": "Tom Heasley",
  97. "tracks": [{
  98. "title": "Ground Zero",
  99. "url": "music/blue.mp3"
  100. },
  101. {
  102. "title": "Western Sky",
  103. "url": "music/jazz.mp3"
  104. },
  105. {
  106. "title": "Monterey Bay",
  107. "url": "music/minimalish.mp3"
  108. },
  109. {
  110. "title": "Where the Earth Meets the Sky",
  111. "url": "music/slower.mp3"
  112. }]
  113. }]);
  114. });
  115. </script>
  116. </head>
  117. <body>
  118. <div id="container">
  119. </div>
  120. </body>
  121. </html>