room.html 25 KB

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