2
0

room.html 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. <template name="room">
  2. {{#if loaded}}
  3. <div class="landing">
  4. <div class="row">
  5. <div class="col-md-9" id="station-main">
  6. <nav>
  7. <div id="room-icons">
  8. <a class="back" href="/"><i class="fa fa-chevron-left"></i></a>
  9. {{#if isAdmin}}
  10. {{#if paused}}
  11. <i class="fa fa-play fa-1" id="play"></i>
  12. {{else}}
  13. <i class="fa fa-pause fa-1" id="pause"></i>
  14. {{/if}}
  15. <i class="fa fa-step-forward fa-1" id="skip"></i>
  16. <i class="fa fa-random fa-1" id="shuffle"></i>
  17. {{/if}}
  18. </div>
  19. <h3 id="room-header">
  20. {{{type}}}
  21. </h3>
  22. <div id="volume-container">
  23. <i class="fa fa-volume-down" id="volume-icon"></i>
  24. <input type="text" id="volume-slider" class="span2" value="" data-slider-min="0" data-slider-max="100" data-slider-step="1" data-slider-value="50" data-slider-orientation="horizontal" data-slider-selection="after" data-slider-tooltip="hide">
  25. </div>
  26. </nav>
  27. <div id="seeker-container">
  28. <div id="seeker-bar"></div>
  29. </div>
  30. <div class="row" id="song-media">
  31. <div class="col-md-8">
  32. <div class="embed-responsive embed-responsive-16by9" id="media-container">
  33. <!--div id="player" class="embed-responsive-item"></div-->
  34. </div>
  35. </div>
  36. <div id="song-info" class="col-md-4" style="margin-top:15px">
  37. <img class="song-img" onError="this.src='http://static.boredpanda.com/blog/wp-content/uploads/2014/04/amazing-fox-photos-182.jpg'" id="song-img"/>
  38. <h2 class="room-title">{{{title}}} <small id="time-display">(<span id="time-elapsed"></span> / <span id="time-total"></span>)</small></h2>
  39. <h2 class="room-artist">{{{artist}}}</h2>
  40. </div>
  41. </div>
  42. <div class="row" id="settings">
  43. <div class="col-md-3">
  44. {{#if currentUser}}
  45. <button type="button" id="song-modal" class="button" data-toggle="modal" data-target="#myModal">Add songs</button>
  46. {{else}}
  47. <button title="You need to be logged in to add songs." type="button" class="button btn btn-disabled" disabled>Add songs</button>
  48. {{/if}}
  49. </div>
  50. <div class="col-md-3">
  51. <button type="button" id="toggle-video" class="button">Hide video</button>
  52. </div>
  53. <div class="col-md-3">
  54. {{#if currentUser}}
  55. <button title="Smile to this song." type="button" id="like" class="btn btn-success btn-lg {{liked}}"><i class="fa fa-smile-o"> {{likes}}</i></button>
  56. <button title="I dislike this song." type="button" id="dislike" class="btn btn-danger btn-lg {{disliked}}"><i class="fa fa-meh-o"> {{dislikes}}</i></button>
  57. {{else}}
  58. <button title="You need to be logged to smile this song." type="button" class="btn btn-success btn-lg" disabled><i class="fa fa-smile-o"> {{likes}}</i></button>
  59. <button title="You need to be logged to dislike this song." type="button" class="btn btn-danger btn-lg" disabled><i class="fa fa-meh-o"> {{dislikes}}</i></button>
  60. {{/if}}
  61. <button title="Report this song!" type="button" id="report-modal" class="btn btn-warning btn-lg report-button" data-toggle="modal" data-target="#reportModal"><i class="fa fa-flag"></i></button>
  62. </div>
  63. </div>
  64. </div>
  65. <div class="col-md-3" id="side-panel">
  66. {{> playlist}}
  67. </div>
  68. </div>
  69. <!-- Modal -->
  70. <div id="myModal" class="modal fade" role="dialog">
  71. <div class="modal-dialog">
  72. <!-- Modal content-->
  73. <div class="modal-content">
  74. <div class="modal-header">
  75. <button type="button" class="close" data-dismiss="modal">&times;</button>
  76. <h4 class="modal-title">Search for a song</h4>
  77. </div>
  78. <div class="modal-body">
  79. <div id="search-info">
  80. <select name="type" id="search_type" class="song-input-select">
  81. <option name="youtube" id="search_youtube">YouTube</option>
  82. <option name="soundcloud" id="search_soundcloud">SoundCloud</option>
  83. </select>
  84. <input type="text" id="song-input" class="song-input">
  85. <button type="button" id="search-song" class="button">Search</button>
  86. <div id="song-results"></div>
  87. </div>
  88. <div id="add-info" style="display:none">
  89. <button type="button" id="return" class="button">Return</button>
  90. <label for="type" class="song-input-label">Song Type</label>
  91. <select name="type" id="type" class="song-input-select">
  92. <option name="youtube" id="youtube">YouTube</option>
  93. <option name="soundcloud" id="soundcloud">SoundCloud</option>
  94. </select>
  95. <label for="id" class="song-input-label">Song ID</label>
  96. <input class="song-input" name="id" id="id" type="text"/>
  97. <label for="id" class="song-input-label">Song Artist</label>
  98. <input class="song-input" name="artist" id="artist" type="text"/>
  99. <label for="title" class="song-input-label">Song Title</label>
  100. <input class="song-input" name="title" id="title" type="text"/>
  101. <label for="img" class="song-input-label">Song Img</label>
  102. <input class="song-input" name="img" id="img" type="text" />
  103. <button type="button" id="add-song-button" class="button">Add Song</button>
  104. </div>
  105. <!--small id="search-alert">Searching for a song fills out the above fields automatically, but you will still have to verify them.</small-->
  106. </div>
  107. <div class="modal-footer">
  108. <button id="close-modal-a" type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  109. </div>
  110. </div>
  111. </div>
  112. </div>
  113. <!-- Report Modal -->
  114. <div id="reportModal" class="modal fade" role="dialog">
  115. <div class="modal-dialog">
  116. <!-- Modal content-->
  117. <div class="modal-content">
  118. <div class="col-md-3">
  119. <button title="Report this song!" type="button" id="report-modal" class="btn btn-warning btn-lg report-button" data-toggle="modal" data-target="#reportModal"><i class="fa fa-flag"></i></button>
  120. </div>
  121. <div class="modal-body">
  122. <button type="button" id="report-prev" class="btn btn-warning btn-lg btn-block">Report previous song ({{previousSongR.title}})</button>
  123. <button type="button" id="report-curr" class="btn btn-warning btn-lg btn-block" disabled>Report current song ({{currentSongR.title}})</button>
  124. <h3 class="text-primary"><b>Reporting:</b> {{reportingSong.title}} by {{reportingSong.artist}}</h3>
  125. <div class="report-layer-1">
  126. <div class="checkbox">
  127. <input class="checkbox-box" type="checkbox" id="report-song">
  128. <label for="report-song">
  129. Song
  130. </label>
  131. </div>
  132. <!-- Layer2 -->
  133. {{#if reportSong}}
  134. <div class="report-layer-2" id="report-song-list">
  135. <div class="checkbox">
  136. <input type="checkbox" id="report-song-not-playing">
  137. <label for="report-song-not-playing">
  138. Not playing
  139. </label>
  140. </div>
  141. <div class="checkbox">
  142. <input type="checkbox" id="report-song-does-not-exist">
  143. <label for="report-song-does-not-exist">
  144. Does not exist
  145. </label>
  146. </div>
  147. <div class="checkbox">
  148. <input type="checkbox" id="report-song-other">
  149. <label for="report-song-other">
  150. Other: <br>
  151. <textarea class="other-textarea" id="report-song-other-ta" type="text"></textarea>
  152. </label>
  153. </div>
  154. </div>
  155. {{/if}}
  156. <div class="checkbox">
  157. <input class="checkbox-box" type="checkbox" id="report-title">
  158. <label for="report-title">
  159. Title
  160. </label>
  161. </div>
  162. <!-- Layer2 -->
  163. {{#if reportTitle}}
  164. <div class="report-layer-2" id="report-title-list">
  165. <div class="checkbox">
  166. <input type="checkbox" id="report-title-incorrect">
  167. <label for="report-title-incorrect">
  168. Incorrect
  169. </label>
  170. </div>
  171. <div class="checkbox">
  172. <input type="checkbox" id="report-title-inappropriate">
  173. <label for="report-title-inappropriate">
  174. Inappropriate
  175. </label>
  176. </div>
  177. <div class="checkbox">
  178. <input type="checkbox" id="report-title-other">
  179. <label for="report-title-other">
  180. Other: <br>
  181. <textarea class="other-textarea" id="report-title-other-ta" type="text"></textarea>
  182. </label>
  183. </div>
  184. </div>
  185. {{/if}}
  186. <div class="checkbox">
  187. <input class="checkbox-box" type="checkbox" id="report-author">
  188. <label for="report-author">
  189. Author
  190. </label>
  191. </div>
  192. <!-- Layer2 -->
  193. {{#if reportAuthor}}
  194. <div class="report-layer-2" id="report-author-list">
  195. <div class="checkbox">
  196. <input type="checkbox" id="report-author-incorrect">
  197. <label for="report-author-incorrect">
  198. Incorrect
  199. </label>
  200. </div>
  201. <div class="checkbox">
  202. <input type="checkbox" id="report-author-inappropriate">
  203. <label for="report-author-inappropriate">
  204. Inappropriate
  205. </label>
  206. </div>
  207. <div class="checkbox">
  208. <input type="checkbox" id="report-author-other">
  209. <label for="report-author-other">
  210. Other: <br>
  211. <textarea class="other-textarea" id="report-author-other-ta" type="text"></textarea>
  212. </label>
  213. </div>
  214. </div>
  215. {{/if}}
  216. <div class="checkbox">
  217. <input class="checkbox-box" type="checkbox" id="report-duration">
  218. <label for="report-duration">
  219. Duration
  220. </label>
  221. </div>
  222. <!-- Layer2 -->
  223. {{#if reportDuration}}
  224. <div class="report-layer-2" id="report-duration-list">
  225. <div class="checkbox">
  226. <input type="checkbox" id="report-duration-long">
  227. <label for="report-duration-long">
  228. Too long
  229. </label>
  230. </div>
  231. <div class="checkbox">
  232. <input type="checkbox" id="report-duration-short">
  233. <label for="report-duration-short">
  234. Too short
  235. </label>
  236. </div>
  237. <div class="checkbox">
  238. <input type="checkbox" id="report-duration-other">
  239. <label for="report-duration-other">
  240. Other: <br>
  241. <textarea class="other-textarea" id="report-duration-other-ta" type="text"></textarea>
  242. </label>
  243. </div>
  244. </div>
  245. {{/if}}
  246. <div class="checkbox">
  247. <input class="checkbox-box" type="checkbox" id="report-audio">
  248. <label for="report-audio">
  249. Audio
  250. </label>
  251. </div>
  252. <!-- Layer2 -->
  253. {{#if reportAudio}}
  254. <div class="report-layer-2" id="report-audio-list">
  255. <div class="checkbox">
  256. <input type="checkbox" id="report-audio-inappropriate">
  257. <label for="report-audio-inappropriate">
  258. Inappropriate
  259. </label>
  260. </div>
  261. <div class="checkbox">
  262. <input type="checkbox" id="report-audio-not-playing">
  263. <label for="report-audio-not-playing">
  264. Not playing
  265. </label>
  266. </div>
  267. <div class="checkbox">
  268. <input type="checkbox" id="report-audio-other">
  269. <label for="report-audio-other">
  270. Other: <br>
  271. <textarea class="other-textarea" id="report-audio-other-ta" type="text"></textarea>
  272. </label>
  273. </div>
  274. </div>
  275. {{/if}}
  276. <div class="checkbox">
  277. <input class="checkbox-box" type="checkbox" id="report-albumart">
  278. <label for="report-albumart">
  279. Albumart
  280. </label>
  281. </div>
  282. <!-- Layer2 -->
  283. {{#if reportAlbumart}}
  284. <div class="report-layer-2" id="report-albumart-list">
  285. <div class="checkbox">
  286. <input type="checkbox" id="report-albumart-incorrect">
  287. <label for="report-albumart-incorrect">
  288. Incorrect
  289. </label>
  290. </div>
  291. <div class="checkbox">
  292. <input type="checkbox" id="report-albumart-inappropriate">
  293. <label for="report-albumart-inappropriate">
  294. Inappropriate
  295. </label>
  296. </div>
  297. <div class="checkbox">
  298. <input type="checkbox" id="report-albumart-not-showing">
  299. <label for="report-albumart-not-showing">
  300. Not showing
  301. </label>
  302. </div>
  303. <div class="checkbox">
  304. <input type="checkbox" id="report-albumart-other">
  305. <label for="report-albumart-other">
  306. Other: <br>
  307. <textarea class="other-textarea" id="report-albumart-other-ta" type="text"></textarea>
  308. </label>
  309. </div>
  310. </div>
  311. {{/if}}
  312. <div class="checkbox">
  313. <input class="checkbox-box" type="checkbox" id="report-other">
  314. <label for="report-other">
  315. Other: <br>
  316. <textarea class="other-textarea" id="report-other-ta" type="text"></textarea>
  317. </label>
  318. </div>
  319. </div>
  320. <button type="button" id="report-song-button" class="button">Submit</button>
  321. </div>
  322. <div class="modal-footer">
  323. <button id="close-modal-r" type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  324. </div>
  325. </div>
  326. </div>
  327. </div>
  328. <ul class="bg-bubbles">
  329. <li></li>
  330. <li></li>
  331. <li></li>
  332. <li></li>
  333. <li></li>
  334. <li></li>
  335. <li></li>
  336. <li></li>
  337. <li></li>
  338. <li></li>
  339. </ul>
  340. </div>
  341. {{else}}
  342. {{> loading}}
  343. {{/if}}
  344. <script type="text/javascript">
  345. window.doorbellOptions = {
  346. appKey: 'v2Gu14c8s9HgBsAFCXNWIm2vlk11N12Plt2Wu5k2MbQIkM1Ao6kOTCbfN95ElEVM',
  347. hideEmail: true
  348. };
  349. (function(d, t) {
  350. var g = d.createElement(t);g.id = 'doorbellScript';g.type = 'text/javascript';g.async = true;g.src = 'https://embed.doorbell.io/button/2408?t='+(new Date().getTime());(d.getElementsByTagName('head')[0]||d.getElementsByTagName('body')[0]).appendChild(g);
  351. }(document, 'script'));
  352. </script>
  353. </template>