room.html 25 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406
  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-4">-->
  44. <!--{{#if currentUser}}-->
  45. <!--<button type="button" id="song-modal" class="button action-button action-button-25" 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 action-button action-button-25" disabled>Add songs</button>-->
  48. <!--{{/if}}-->
  49. <!--</div>-->
  50. <!--<div class="col-md-4">-->
  51. <!--<button type="button" id="toggle-video" class="button action-button action-button-25">Hide video</button>-->
  52. <!--<div class="action-button action-button-25">-->
  53. <!--</div>-->
  54. <!--</div>-->
  55. <!---->
  56. <div class="row" id="settings">
  57. <div class="col-md-4">
  58. {{#if currentUser}}
  59. <button type="button" id="song-modal" class="button action-button" data-toggle="modal" data-target="#myModal">Add songs</button>
  60. {{else}}
  61. <button title="You need to be logged in to add songs." type="button" class="button btn btn-disabled action-button" disabled>Add songs</button>
  62. {{/if}}
  63. </div>
  64. <div class="col-md-4">
  65. <button type="button" id="toggle-video" class="button action-button">Hide video</button>
  66. <div class="action-button "></div>
  67. </div>
  68. </div>
  69. <div class="row" id="settings">
  70. {{#if currentUser}}
  71. <div class="col-md-2">
  72. <button title="Smile to this song." type="button" id="like" class="btn btn-success btn-lg {{liked}} action-button"><i class="fa fa-smile-o"> {{likes}}</i></button>
  73. </div>
  74. <div class="col-md-2">
  75. <button title="I dislike this song." type="button" id="dislike" class="btn btn-danger btn-lg {{disliked}} action-button"><i class="fa fa-meh-o"> {{dislikes}}</i></button>
  76. </div>
  77. {{else}}
  78. <div class="col-md-2">
  79. <button title="You need to be logged to smile this song." type="button" class="btn btn-success btn-lg action-button" disabled><i class="fa fa-smile-o"> {{likes}}</i></button>
  80. </div>
  81. <div class="col-md-2">
  82. <button title="You need to be logged to dislike this song." type="button" class="btn btn-danger btn-lg action-button" disabled><i class="fa fa-meh-o"> {{dislikes}}</i></button>
  83. </div>
  84. {{/if}}
  85. <div class="col-md-2">
  86. <button title="Report this song!" type="button" id="report-modal" class="btn btn-warning btn-lg report-button action-button" data-toggle="modal" data-target="#reportModal"><i class="fa fa-flag"></i></button>
  87. </div>
  88. </div>
  89. <!---->
  90. </div>
  91. <div class="col-md-3" id="side-panel">
  92. <ul class="nav nav-tabs nav-justified" data-tabs="tabs">
  93. <li role="presentation" class="active"><a data-toggle="tab" href="#playlist">Playlist</a></li>
  94. <li role="presentation"><a data-toggle="tab" href="#chat">Chat</a></li>
  95. </ul>
  96. <div id='content' class="tab-content sidebar-content">
  97. <div class="tab-pane active" id="playlist">
  98. {{> playlist}}
  99. </div>
  100. <div class="tab-pane" id="chat">
  101. <h2 class="chat-title">Chat</h2>
  102. <ul id="chat-ul">
  103. {{#each chat}}
  104. <li class="chat-message"><b class="bold">{{this.username}}:</b> {{this.message}}</li>
  105. <hr>
  106. {{/each}}
  107. </ul>
  108. <div id="chat-input-div">
  109. <input id="chat-input" placeholder="Type a message...">
  110. <div id="submit"><i id="submit-message" class="fa fa-paper-plane-o"></i>
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. </div>
  116. </div>
  117. <!-- Modal -->
  118. <div id="myModal" class="modal fade" role="dialog">
  119. <div class="modal-dialog">
  120. <!-- Modal content-->
  121. <div class="modal-content">
  122. <div class="modal-header">
  123. <button type="button" class="close" data-dismiss="modal">&times;</button>
  124. <h4 class="modal-title">Search for a song</h4>
  125. </div>
  126. <div class="modal-body">
  127. <div id="search-info">
  128. <select name="type" id="search_type" class="song-input-select">
  129. <option name="youtube" id="search_youtube">YouTube</option>
  130. <option name="soundcloud" id="search_soundcloud">SoundCloud</option>
  131. </select>
  132. <input type="text" id="song-input" class="song-input">
  133. <button type="button" id="search-song" class="button">Search</button>
  134. <div id="song-results"></div>
  135. </div>
  136. <div id="add-info" style="display:none">
  137. <button type="button" id="return" class="button">Return</button>
  138. <label for="type" class="song-input-label">Song Type</label>
  139. <select name="type" id="type" class="song-input-select">
  140. <option name="youtube" id="youtube">YouTube</option>
  141. <option name="soundcloud" id="soundcloud">SoundCloud</option>
  142. </select>
  143. <label for="id" class="song-input-label">Song ID</label>
  144. <input class="song-input" name="id" id="id" type="text"/>
  145. <label for="id" class="song-input-label">Song Artist</label>
  146. <input class="song-input" name="artist" id="artist" type="text"/>
  147. <label for="title" class="song-input-label">Song Title</label>
  148. <input class="song-input" name="title" id="title" type="text"/>
  149. <label for="img" class="song-input-label">Song Img</label>
  150. <input class="song-input" name="img" id="img" type="text" />
  151. <button type="button" id="add-song-button" class="button">Add Song</button>
  152. </div>
  153. <!--small id="search-alert">Searching for a song fills out the above fields automatically, but you will still have to verify them.</small-->
  154. </div>
  155. <div class="modal-footer">
  156. <button id="close-modal-a" type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  157. </div>
  158. </div>
  159. </div>
  160. </div>
  161. <!-- Report Modal -->
  162. <div id="reportModal" class="modal fade" role="dialog">
  163. <div class="modal-dialog">
  164. <!-- Modal content-->
  165. <div class="modal-content">
  166. <div class="modal-body">
  167. <button type="button" id="report-prev" class="btn btn-warning btn-lg btn-block">Report previous song ({{previousSongR.title}})</button>
  168. <button type="button" id="report-curr" class="btn btn-warning btn-lg btn-block" disabled>Report current song ({{currentSongR.title}})</button>
  169. <h3 class="text-primary"><b>Reporting:</b> {{reportingSong.title}} by {{reportingSong.artist}}</h3>
  170. <div class="report-layer-1">
  171. <div class="checkbox">
  172. <input class="checkbox-box" type="checkbox" id="report-song">
  173. <label for="report-song">
  174. Song
  175. </label>
  176. </div>
  177. <!-- Layer2 -->
  178. {{#if reportSong}}
  179. <div class="report-layer-2" id="report-song-list">
  180. <div class="checkbox">
  181. <input type="checkbox" id="report-song-not-playing">
  182. <label for="report-song-not-playing">
  183. Not playing
  184. </label>
  185. </div>
  186. <div class="checkbox">
  187. <input type="checkbox" id="report-song-does-not-exist">
  188. <label for="report-song-does-not-exist">
  189. Does not exist
  190. </label>
  191. </div>
  192. <div class="checkbox">
  193. <input type="checkbox" id="report-song-other">
  194. <label for="report-song-other">
  195. Other: <br>
  196. <textarea class="other-textarea" id="report-song-other-ta" type="text"></textarea>
  197. </label>
  198. </div>
  199. </div>
  200. {{/if}}
  201. <div class="checkbox">
  202. <input class="checkbox-box" type="checkbox" id="report-title">
  203. <label for="report-title">
  204. Title
  205. </label>
  206. </div>
  207. <!-- Layer2 -->
  208. {{#if reportTitle}}
  209. <div class="report-layer-2" id="report-title-list">
  210. <div class="checkbox">
  211. <input type="checkbox" id="report-title-incorrect">
  212. <label for="report-title-incorrect">
  213. Incorrect
  214. </label>
  215. </div>
  216. <div class="checkbox">
  217. <input type="checkbox" id="report-title-inappropriate">
  218. <label for="report-title-inappropriate">
  219. Inappropriate
  220. </label>
  221. </div>
  222. <div class="checkbox">
  223. <input type="checkbox" id="report-title-other">
  224. <label for="report-title-other">
  225. Other: <br>
  226. <textarea class="other-textarea" id="report-title-other-ta" type="text"></textarea>
  227. </label>
  228. </div>
  229. </div>
  230. {{/if}}
  231. <div class="checkbox">
  232. <input class="checkbox-box" type="checkbox" id="report-author">
  233. <label for="report-author">
  234. Author
  235. </label>
  236. </div>
  237. <!-- Layer2 -->
  238. {{#if reportAuthor}}
  239. <div class="report-layer-2" id="report-author-list">
  240. <div class="checkbox">
  241. <input type="checkbox" id="report-author-incorrect">
  242. <label for="report-author-incorrect">
  243. Incorrect
  244. </label>
  245. </div>
  246. <div class="checkbox">
  247. <input type="checkbox" id="report-author-inappropriate">
  248. <label for="report-author-inappropriate">
  249. Inappropriate
  250. </label>
  251. </div>
  252. <div class="checkbox">
  253. <input type="checkbox" id="report-author-other">
  254. <label for="report-author-other">
  255. Other: <br>
  256. <textarea class="other-textarea" id="report-author-other-ta" type="text"></textarea>
  257. </label>
  258. </div>
  259. </div>
  260. {{/if}}
  261. <div class="checkbox">
  262. <input class="checkbox-box" type="checkbox" id="report-duration">
  263. <label for="report-duration">
  264. Duration
  265. </label>
  266. </div>
  267. <!-- Layer2 -->
  268. {{#if reportDuration}}
  269. <div class="report-layer-2" id="report-duration-list">
  270. <div class="checkbox">
  271. <input type="checkbox" id="report-duration-long">
  272. <label for="report-duration-long">
  273. Too long
  274. </label>
  275. </div>
  276. <div class="checkbox">
  277. <input type="checkbox" id="report-duration-short">
  278. <label for="report-duration-short">
  279. Too short
  280. </label>
  281. </div>
  282. <div class="checkbox">
  283. <input type="checkbox" id="report-duration-other">
  284. <label for="report-duration-other">
  285. Other: <br>
  286. <textarea class="other-textarea" id="report-duration-other-ta" type="text"></textarea>
  287. </label>
  288. </div>
  289. </div>
  290. {{/if}}
  291. <div class="checkbox">
  292. <input class="checkbox-box" type="checkbox" id="report-audio">
  293. <label for="report-audio">
  294. Audio
  295. </label>
  296. </div>
  297. <!-- Layer2 -->
  298. {{#if reportAudio}}
  299. <div class="report-layer-2" id="report-audio-list">
  300. <div class="checkbox">
  301. <input type="checkbox" id="report-audio-inappropriate">
  302. <label for="report-audio-inappropriate">
  303. Inappropriate
  304. </label>
  305. </div>
  306. <div class="checkbox">
  307. <input type="checkbox" id="report-audio-not-playing">
  308. <label for="report-audio-not-playing">
  309. Not playing
  310. </label>
  311. </div>
  312. <div class="checkbox">
  313. <input type="checkbox" id="report-audio-other">
  314. <label for="report-audio-other">
  315. Other: <br>
  316. <textarea class="other-textarea" id="report-audio-other-ta" type="text"></textarea>
  317. </label>
  318. </div>
  319. </div>
  320. {{/if}}
  321. <div class="checkbox">
  322. <input class="checkbox-box" type="checkbox" id="report-albumart">
  323. <label for="report-albumart">
  324. Albumart
  325. </label>
  326. </div>
  327. <!-- Layer2 -->
  328. {{#if reportAlbumart}}
  329. <div class="report-layer-2" id="report-albumart-list">
  330. <div class="checkbox">
  331. <input type="checkbox" id="report-albumart-incorrect">
  332. <label for="report-albumart-incorrect">
  333. Incorrect
  334. </label>
  335. </div>
  336. <div class="checkbox">
  337. <input type="checkbox" id="report-albumart-inappropriate">
  338. <label for="report-albumart-inappropriate">
  339. Inappropriate
  340. </label>
  341. </div>
  342. <div class="checkbox">
  343. <input type="checkbox" id="report-albumart-not-showing">
  344. <label for="report-albumart-not-showing">
  345. Not showing
  346. </label>
  347. </div>
  348. <div class="checkbox">
  349. <input type="checkbox" id="report-albumart-other">
  350. <label for="report-albumart-other">
  351. Other: <br>
  352. <textarea class="other-textarea" id="report-albumart-other-ta" type="text"></textarea>
  353. </label>
  354. </div>
  355. </div>
  356. {{/if}}
  357. <div class="checkbox">
  358. <input class="checkbox-box" type="checkbox" id="report-other">
  359. <label for="report-other">
  360. Other: <br>
  361. <textarea class="other-textarea" id="report-other-ta" type="text"></textarea>
  362. </label>
  363. </div>
  364. </div>
  365. <button type="button" id="report-song-button" class="button">Submit</button>
  366. </div>
  367. <div class="modal-footer">
  368. <button id="close-modal-r" type="button" class="btn btn-default" data-dismiss="modal">Close</button>
  369. </div>
  370. </div>
  371. </div>
  372. </div>
  373. <ul class="bg-bubbles">
  374. <li></li>
  375. <li></li>
  376. <li></li>
  377. <li></li>
  378. <li></li>
  379. <li></li>
  380. <li></li>
  381. <li></li>
  382. <li></li>
  383. <li></li>
  384. </ul>
  385. </div>
  386. {{else}}
  387. {{> loading}}
  388. {{/if}}
  389. <script type="text/javascript">
  390. window.doorbellOptions = {
  391. appKey: 'v2Gu14c8s9HgBsAFCXNWIm2vlk11N12Plt2Wu5k2MbQIkM1Ao6kOTCbfN95ElEVM',
  392. hideEmail: true
  393. };
  394. (function(d, t) {
  395. 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);
  396. }(document, 'script'));
  397. </script>
  398. </template>