Station.vue 21 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775
  1. <template>
  2. <official-header v-if='type == "official"'></official-header>
  3. <community-header v-if='type == "community"'></community-header>
  4. <song-queue v-if='modals.addSongToQueue'></song-queue>
  5. <edit-playlist v-if='modals.editPlaylist'></edit-playlist>
  6. <create-playlist v-if='modals.createPlaylist'></create-playlist>
  7. <edit-station v-if='modals.editStation'></edit-station>
  8. <report v-if='modals.report'></report>
  9. <queue-sidebar v-if='sidebars.queue'></queue-sidebar>
  10. <playlist-sidebar v-if='sidebars.playlist'></playlist-sidebar>
  11. <users-sidebar v-if='sidebars.users'></users-sidebar>
  12. <div class="station">
  13. <div v-show="noSong" class="noSong">
  14. <h1>No song is currently playing.</h1>
  15. <h1 v-if='type === "community" && station.partyMode'>You can add a song to the queue by clicking <a href="#" @click="sidebars.queue = true">here</a>.</h1>
  16. <h1 v-if='type === "community" && !station.partyMode && $parent.userId === station.owner && !station.privatePlaylist'>Click <a href="#" @click="sidebars.playlist = true">here</a> to play a private playlist.</h1>
  17. <h1 v-if='type === "community" && !station.partyMode && $parent.userId === station.owner && station.privatePlaylist'>Maybe you can add some songs to your selected private playlist.</h1>
  18. </div>
  19. <div class="columns is-mobile" v-show="!noSong">
  20. <div class="column is-8-desktop is-offset-2-desktop is-12-mobile">
  21. <div class="video-container">
  22. <div id="player"></div>
  23. <div class="seeker-bar-container white" id="preview-progress">
  24. <div class="seeker-bar light-blue" style="width: 0%;"></div>
  25. </div>
  26. </div>
  27. </div>
  28. </div>
  29. <div class="columns is-mobile" v-show="!noSong">
  30. <div class="column is-8-desktop is-offset-2-desktop is-12-mobile">
  31. <div class="columns is-mobile">
  32. <div class="column is-12-mobile" v-bind:class="{'is-8-desktop': !simpleSong}">
  33. <h4 id="time-display">{{timeElapsed}} / {{formatTime(currentSong.duration)}}</h4>
  34. <h3>{{currentSong.title}}</h3>
  35. <h4 class="thin" style="margin-left: 0">{{currentSong.artists}}</h4>
  36. <div class="columns is-mobile">
  37. <form style="margin-top: 12px; margin-bottom: 0;" action="#" class="column is-7-desktop is-4-mobile">
  38. <p style="margin-top: 0; position: relative;">
  39. <input type="range" id="volumeSlider" min="0" max="100" class="active" v-on:change="changeVolume()" v-on:input="changeVolume()">
  40. </p>
  41. </form>
  42. <div class="column is-8-mobile is-5-desktop" style="float: right;">
  43. <ul id="ratings" v-if="currentSong.likes !== -1 && currentSong.dislikes !== -1">
  44. <li id="like" class="right" @click="toggleLike()">
  45. <span class="flow-text">{{currentSong.likes}} </span>
  46. <i id="thumbs_up" class="material-icons grey-text" v-bind:class="{liked: liked}">thumb_up</i>
  47. </li>
  48. <li style="margin-right: 10px;" id="dislike" class="right" @click="toggleDislike()">
  49. <span class="flow-text">{{currentSong.dislikes}} </span>
  50. <i id="thumbs_down" class="material-icons grey-text" v-bind:class="{disliked: disliked}">thumb_down</i>
  51. </li>
  52. </ul>
  53. </div>
  54. </div>
  55. </div>
  56. <div class="column is-4-desktop is-12-mobile" v-if="!simpleSong">
  57. <img class="image" id="song-thumbnail" style="margin-top: 10px !important" :src="currentSong.thumbnail" alt="Song Thumbnail" onerror="this.src='/assets/notes.png'" />
  58. </div>
  59. </div>
  60. </div>
  61. </div>
  62. </div>
  63. </template>
  64. <script>
  65. import { Toast } from 'vue-roaster';
  66. import SongQueue from '../Modals/AddSongToQueue.vue';
  67. import EditPlaylist from '../Modals/Playlists/Edit.vue';
  68. import CreatePlaylist from '../Modals/Playlists/Create.vue';
  69. import EditStation from '../Modals/EditStation.vue';
  70. import Report from '../Modals/Report.vue';
  71. import QueueSidebar from '../Sidebars/Queue.vue';
  72. import PlaylistSidebar from '../Sidebars/Playlist.vue';
  73. import UsersSidebar from '../Sidebars/UsersList.vue';
  74. import OfficialHeader from './OfficialHeader.vue';
  75. import CommunityHeader from './CommunityHeader.vue';
  76. export default {
  77. data() {
  78. return {
  79. type: '',
  80. playerReady: false,
  81. previousSong: {},
  82. currentSong: {},
  83. player: undefined,
  84. timePaused: 0,
  85. paused: false,
  86. timeElapsed: '0:00',
  87. liked: false,
  88. disliked: false,
  89. modals: {
  90. addSongToQueue: false,
  91. editPlaylist: false,
  92. createPlaylist: false,
  93. editStation: false,
  94. report: false
  95. },
  96. sidebars: {
  97. queue: false,
  98. users: false,
  99. playlist: false
  100. },
  101. noSong: false,
  102. simpleSong: false,
  103. queue: [],
  104. timeBeforePause: 0,
  105. station: {},
  106. skipVotes: 0
  107. }
  108. },
  109. methods: {
  110. editPlaylist: function (id) {
  111. this.playlistBeingEdited = id;
  112. this.toggleModal('editPlaylist');
  113. },
  114. toggleModal: function (type) {
  115. if (type == 'addSongToQueue') this.modals.addSongToQueue = !this.modals.addSongToQueue;
  116. else if (type == 'editPlaylist') this.modals.editPlaylist = !this.modals.editPlaylist;
  117. else if (type == 'createPlaylist') this.modals.createPlaylist = !this.modals.createPlaylist;
  118. else if (type == 'editStation') this.modals.editStation = !this.modals.editStation;
  119. else if (type == 'report') this.modals.report = !this.modals.report;
  120. },
  121. youtubeReady: function() {
  122. let local = this;
  123. console.log("@@5", local.currentSong._id);
  124. if (!local.player) {
  125. local.player = new YT.Player("player", {
  126. height: 270,
  127. width: 480,
  128. videoId: local.currentSong._id,
  129. startSeconds: local.getTimeElapsed() / 1000 + local.currentSong.skipDuration,
  130. playerVars: {controls: 0, iv_load_policy: 3, rel: 0, showinfo: 0},
  131. events: {
  132. 'onReady': function (event) {
  133. console.log("@@6");
  134. local.playerReady = true;
  135. let volume = parseInt(localStorage.getItem("volume"));
  136. volume = (typeof volume === "number") ? volume : 20;
  137. local.player.setVolume(volume);
  138. if (volume > 0) local.player.unMute();
  139. console.log("@@7");
  140. local.playVideo();
  141. },
  142. 'onStateChange': function (event) {
  143. if (event.data === 1 && local.videoLoading === true) {
  144. local.videoLoading = false;
  145. local.player.seekTo(local.getTimeElapsed() / 1000 + local.currentSong.skipDuration, true);
  146. if (local.paused) local.player.pauseVideo();
  147. } else if (event.data === 1 && local.paused) {
  148. local.player.seekTo(local.timeBeforePause / 1000, true);
  149. local.player.pauseVideo();
  150. }
  151. if (event.data === 2 && !local.paused && !local.noSong) {
  152. local.player.seekTo(local.getTimeElapsed() / 1000 + local.currentSong.skipDuration, true);
  153. local.player.playVideo();
  154. }
  155. }
  156. }
  157. });
  158. }
  159. },
  160. getTimeElapsed: function() {
  161. let local = this;
  162. if (local.currentSong) {
  163. return Date.now() - local.startedAt - local.timePaused;
  164. } else {
  165. return 0;
  166. }
  167. },
  168. playVideo: function() {
  169. let local = this;
  170. console.log("@@9");
  171. if (local.playerReady) {
  172. console.log("@@@1");
  173. local.videoLoading = true;
  174. local.player.loadVideoById(local.currentSong._id, local.getTimeElapsed() / 1000 + local.currentSong.skipDuration);
  175. if (local.currentSong.artists) local.currentSong.artists = local.currentSong.artists.join(", ");
  176. if (window.stationInterval !== 0) clearInterval(window.stationInterval);
  177. window.stationInterval = setInterval(function () {
  178. local.resizeSeekerbar();
  179. local.calculateTimeElapsed();
  180. }, 250);
  181. }
  182. },
  183. resizeSeekerbar: function() {
  184. let local = this;
  185. if (!local.paused) {
  186. $(".seeker-bar").width(parseInt(((local.getTimeElapsed() / 1000) / local.currentSong.duration * 100)) + "%");
  187. }
  188. },
  189. formatTime: function(duration) {
  190. let d = moment.duration(duration, 'seconds');
  191. return ((d.hours() > 0) ? (d.hours() < 10 ? ("0" + d.hours() + ":") : (d.hours() + ":")) : "") + (d.minutes() + ":") + (d.seconds() < 10 ? ("0" + d.seconds()) : d.seconds());
  192. },
  193. calculateTimeElapsed: function() {
  194. let local = this;
  195. let currentTime = Date.now();
  196. if (local.currentTime !== undefined && local.paused) {
  197. console.log("123");
  198. local.timePaused += (Date.now() - local.currentTime);
  199. local.currentTime = undefined;
  200. }
  201. let duration = (Date.now() - local.startedAt - local.timePaused) / 1000;
  202. let songDuration = local.currentSong.duration;
  203. //console.log(duration, currentTime, local.startedAt, local.timePaused, local.startedAt - local.timePaused, Date.now() - local.startedAt - local.timePaused, Date.now() - local.startedAt);
  204. if (songDuration <= duration) local.player.pauseVideo();
  205. if ((!local.paused) && duration <= songDuration) local.timeElapsed = local.formatTime(duration);
  206. },
  207. changeVolume: function() {
  208. let local = this;
  209. let volume = $("#volumeSlider").val();
  210. localStorage.setItem("volume", volume);
  211. if (local.playerReady) {
  212. local.player.setVolume(volume);
  213. if (volume > 0) local.player.unMute();
  214. }
  215. },
  216. resumeLocalStation: function() {
  217. this.paused = false;
  218. if (!this.noSong) {
  219. if (this.playerReady) {
  220. this.player.seekTo(this.getTimeElapsed() / 1000 + this.currentSong.skipDuration);
  221. this.player.playVideo();
  222. }
  223. }
  224. },
  225. pauseLocalStation: function() {
  226. this.paused = true;
  227. if (!this.noSong) {
  228. this.timeBeforePause = this.getTimeElapsed();
  229. if (this.playerReady) this.player.pauseVideo();
  230. }
  231. },
  232. skipStation: function () {
  233. let _this = this;
  234. _this.socket.emit('stations.forceSkip', _this.stationId, data => {
  235. if (data.status !== 'success') {
  236. Toast.methods.addToast(`Error: ${data.message}`, 8000);
  237. } else {
  238. Toast.methods.addToast('Successfully skipped the station\'s current song.', 4000);
  239. }
  240. });
  241. },
  242. voteSkipStation: function () {
  243. let _this = this;
  244. _this.socket.emit('stations.voteSkip', _this.stationId, data => {
  245. if (data.status !== 'success') {
  246. Toast.methods.addToast(`Error: ${data.message}`, 8000);
  247. } else {
  248. Toast.methods.addToast('Successfully voted to skip the current song.', 4000);
  249. }
  250. });
  251. },
  252. resumeStation: function () {
  253. let _this = this;
  254. _this.socket.emit('stations.resume', _this.stationId, data => {
  255. console.log(data);
  256. if (data.status !== 'success') {
  257. Toast.methods.addToast(`Error: ${data.message}`, 8000);
  258. } else {
  259. Toast.methods.addToast('Successfully resumed the station.', 4000);
  260. }
  261. });
  262. },
  263. pauseStation: function () {
  264. let _this = this;
  265. _this.socket.emit('stations.pause', _this.stationId, data => {
  266. console.log(data);
  267. if (data.status !== 'success') {
  268. Toast.methods.addToast(`Error: ${data.message}`, 8000);
  269. } else {
  270. Toast.methods.addToast('Successfully paused the station.', 4000);
  271. }
  272. });
  273. },
  274. toggleLike: function() {
  275. let _this = this;
  276. if (_this.liked) _this.socket.emit('songs.unlike', _this.currentSong._id, data => {
  277. if (data.status !== 'success') {
  278. Toast.methods.addToast(`Error: ${data.message}`, 8000);
  279. }
  280. }); else _this.socket.emit('songs.like', _this.currentSong._id, data => {
  281. if (data.status !== 'success') {
  282. Toast.methods.addToast(`Error: ${data.message}`, 8000);
  283. }
  284. });
  285. },
  286. toggleDislike: function() {
  287. let _this = this;
  288. if (_this.disliked) return _this.socket.emit('songs.undislike', _this.currentSong._id, data => {
  289. if (data.status !== 'success') {
  290. Toast.methods.addToast(`Error: ${data.message}`, 8000);
  291. }
  292. });
  293. _this.socket.emit('songs.dislike', _this.currentSong._id, data => {
  294. if (data.status !== 'success') {
  295. Toast.methods.addToast(`Error: ${data.message}`, 8000);
  296. }
  297. });
  298. },
  299. joinStation: function(test) {
  300. let _this = this;
  301. _this.socket.emit('stations.join', _this.stationId, res => {
  302. if (res.status === 'success') {
  303. _this.station = {
  304. displayName: res.data.displayName,
  305. description: res.data.description,
  306. privacy: res.data.privacy,
  307. partyMode: res.data.partyMode,
  308. owner: res.data.owner,
  309. privatePlaylist: res.data.privatePlaylist
  310. };
  311. _this.currentSong = (res.data.currentSong) ? res.data.currentSong : {};
  312. _this.type = res.data.type;
  313. _this.startedAt = res.data.startedAt;
  314. _this.paused = res.data.paused;
  315. _this.timePaused = res.data.timePaused;
  316. if (res.data.currentSong) {
  317. _this.noSong = false;
  318. _this.simpleSong = (res.data.currentSong.likes === -1 && res.data.currentSong.dislikes === -1);
  319. if (_this.simpleSong) {
  320. _this.currentSong.skipDuration = 0;
  321. }
  322. console.log(12334);
  323. _this.youtubeReady();
  324. _this.playVideo();
  325. _this.socket.emit('songs.getOwnSongRatings', res.data.currentSong._id, data => {
  326. if (_this.currentSong._id === data.songId) {
  327. _this.liked = data.liked;
  328. _this.disliked = data.disliked;
  329. }
  330. });
  331. } else {
  332. if (_this.playerReady) _this.player.pauseVideo();
  333. console.log("NO SONG TRUE1", res.data);
  334. _this.noSong = true;
  335. }
  336. if (_this.type === 'community') {
  337. _this.socket.emit('stations.getQueue', _this.stationId, data => {
  338. console.log(data);
  339. if (data.status === 'success') {
  340. _this.queue = data.queue;
  341. }
  342. });
  343. }
  344. } else {
  345. //TODO Handle error
  346. }
  347. });
  348. }
  349. },
  350. ready: function() {
  351. let _this = this;
  352. _this.stationId = _this.$route.params.id;
  353. window.stationInterval = 0;
  354. let socketInterval = setInterval(() => {
  355. if (!!_this.$parent.socket) {
  356. _this.socket = _this.$parent.socket;
  357. _this.socket.removeAllListeners();
  358. if (_this.socket.connected) {
  359. _this.joinStation();
  360. }
  361. _this.socket.on('event:songs.next', data => {
  362. _this.previousSong = _this.currentSong;
  363. _this.currentSong = (data.currentSong) ? data.currentSong : {};
  364. _this.startedAt = data.startedAt;
  365. _this.paused = data.paused;
  366. _this.timePaused = data.timePaused;
  367. if (data.currentSong) {
  368. _this.noSong = false;
  369. _this.simpleSong = (data.currentSong.likes === -1 && data.currentSong.dislikes === -1);
  370. if (_this.simpleSong) {
  371. _this.currentSong.skipDuration = 0;
  372. }
  373. console.log(1233, _this.stationId);
  374. if (!_this.playerReady) _this.youtubeReady();
  375. else _this.playVideo();
  376. _this.socket.emit('songs.getOwnSongRatings', data.currentSong._id, (data) => {
  377. if (_this.currentSong._id === data.songId) {
  378. _this.liked = data.liked;
  379. _this.disliked = data.disliked;
  380. }
  381. });
  382. } else {
  383. if (_this.playerReady) _this.player.pauseVideo();
  384. console.log("NO SONG TRUE2", data);
  385. _this.noSong = true;
  386. }
  387. });
  388. _this.socket.on('event:stations.pause', data => {
  389. _this.pauseLocalStation();
  390. });
  391. _this.socket.on('event:stations.resume', data => {
  392. _this.timePaused = data.timePaused;
  393. _this.resumeLocalStation();
  394. });
  395. _this.socket.on('event:song.like', data => {
  396. if (!this.noSong) {
  397. if (data.songId === _this.currentSong._id) {
  398. _this.currentSong.likes++;
  399. if (data.undisliked) _this.currentSong.dislikes--;
  400. }
  401. }
  402. });
  403. _this.socket.on('event:song.dislike', data => {
  404. if (!this.noSong) {
  405. if (data.songId === _this.currentSong._id) {
  406. _this.currentSong.dislikes++;
  407. if (data.unliked) _this.currentSong.likes--;
  408. }
  409. }
  410. });
  411. _this.socket.on('event:song.unlike', data => {
  412. if (!this.noSong) {
  413. if (data.songId === _this.currentSong._id) _this.currentSong.likes--;
  414. }
  415. });
  416. _this.socket.on('event:song.undislike', data => {
  417. if (!this.noSong) {
  418. if (data.songId === _this.currentSong._id) _this.currentSong.dislikes--;
  419. }
  420. });
  421. _this.socket.on('event:song.newRatings', data => {
  422. if (!this.noSong) {
  423. if (data.songId === _this.currentSong._id) {
  424. _this.liked = data.liked;
  425. _this.disliked = data.disliked;
  426. }
  427. }
  428. });
  429. _this.socket.on('event:queue.update', queue => {
  430. if (this.type === 'community') {
  431. this.queue = queue;
  432. }
  433. });
  434. _this.socket.on('event:song.voteSkipSong', () => {
  435. if (this.currentSong) {
  436. this.currentSong.skipVotes++;
  437. }
  438. });
  439. clearInterval(socketInterval);
  440. }
  441. }, 100);
  442. let volume = parseInt(localStorage.getItem("volume"));
  443. volume = (typeof volume === "number") ? volume : 20;
  444. $("#volumeSlider").val(volume);
  445. },
  446. events: {
  447. 'handleSocketConnection': function () {
  448. if (this.$parent.socketConnected) {
  449. this.joinStation(321);
  450. }
  451. }
  452. },
  453. components: {
  454. OfficialHeader,
  455. CommunityHeader,
  456. SongQueue,
  457. EditPlaylist,
  458. CreatePlaylist,
  459. EditStation,
  460. Report,
  461. QueueSidebar,
  462. PlaylistSidebar,
  463. UsersSidebar
  464. }
  465. }
  466. </script>
  467. <style lang="scss">
  468. .noSong {
  469. color: #03A9F4;
  470. text-align: center;
  471. }
  472. .slideout {
  473. top: 50px;
  474. height: 100%;
  475. position: fixed;
  476. right: 0;
  477. width: 350px;
  478. background-color: white;
  479. box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  480. .slideout-header {
  481. text-align: center;
  482. background-color: rgb(3, 169, 244) !important;
  483. margin: 0;
  484. padding-top: 5px;
  485. padding-bottom: 7px;
  486. color: white;
  487. }
  488. .slideout-content {
  489. height: 100%;
  490. }
  491. }
  492. .modal-large {
  493. width: 75%;
  494. }
  495. .station {
  496. flex: 1 0 auto;
  497. padding-top: 0.5vw;
  498. transition: all 0.1s;
  499. margin: 0 auto;
  500. max-width: 1280px;
  501. width: 90%;
  502. @media only screen and (min-width: 993px) {
  503. width: 70%;
  504. }
  505. @media only screen and (min-width: 601px) {
  506. width: 85%;
  507. }
  508. input[type=range] {
  509. -webkit-appearance: none;
  510. width: 100%;
  511. margin: 7.3px 0;
  512. }
  513. input[type=range]:focus {
  514. outline: none;
  515. }
  516. input[type=range]::-webkit-slider-runnable-track {
  517. width: 100%;
  518. height: 5.2px;
  519. cursor: pointer;
  520. box-shadow: 0;
  521. background: #c2c0c2;
  522. border-radius: 0;
  523. border: 0;
  524. }
  525. input[type=range]::-webkit-slider-thumb {
  526. box-shadow: 0;
  527. border: 0;
  528. height: 19px;
  529. width: 19px;
  530. border-radius: 15px;
  531. background: #03a9f4;
  532. cursor: pointer;
  533. -webkit-appearance: none;
  534. margin-top: -6.5px;
  535. }
  536. input[type=range]::-moz-range-track {
  537. width: 100%;
  538. height: 5.2px;
  539. cursor: pointer;
  540. box-shadow: 0;
  541. background: #c2c0c2;
  542. border-radius: 0;
  543. border: 0;
  544. }
  545. input[type=range]::-moz-range-thumb {
  546. box-shadow: 0;
  547. border: 0;
  548. height: 19px;
  549. width: 19px;
  550. border-radius: 15px;
  551. background: #03a9f4;
  552. cursor: pointer;
  553. -webkit-appearance: none;
  554. margin-top: -6.5px;
  555. }
  556. input[type=range]::-ms-track {
  557. width: 100%;
  558. height: 5.2px;
  559. cursor: pointer;
  560. box-shadow: 0;
  561. background: #c2c0c2;
  562. border-radius: 1.3px;
  563. }
  564. input[type=range]::-ms-fill-lower {
  565. background: #c2c0c2;
  566. border: 0;
  567. border-radius: 0;
  568. box-shadow: 0;
  569. }
  570. input[type=range]::-ms-fill-upper {
  571. background: #c2c0c2;
  572. border: 0;
  573. border-radius: 0;
  574. box-shadow: 0;
  575. }
  576. input[type=range]::-ms-thumb {
  577. box-shadow: 0;
  578. border: 0;
  579. height: 15px;
  580. width: 15px;
  581. border-radius: 15px;
  582. background: #03a9f4;
  583. cursor: pointer;
  584. -webkit-appearance: none;
  585. margin-top: 1.5px;
  586. }
  587. .video-container {
  588. position: relative;
  589. padding-bottom: 56.25%;
  590. height: 0;
  591. overflow: hidden;
  592. iframe {
  593. position: absolute;
  594. top: 0;
  595. left: 0;
  596. width: 100%;
  597. height: 100%;
  598. }
  599. }
  600. .video-col {
  601. padding-right: 0.75rem;
  602. padding-left: 0.75rem;
  603. }
  604. }
  605. .room-title {
  606. left: 50%;
  607. -webkit-transform: translateX(-50%);
  608. transform: translateX(-50%);
  609. font-size: 2.1em;
  610. }
  611. #ratings {
  612. span {
  613. font-size: 1.68rem;
  614. }
  615. i {
  616. color: #9e9e9e !important;
  617. cursor: pointer;
  618. transition: 0.1s color;
  619. }
  620. }
  621. #time-display {
  622. margin-top: 30px;
  623. float: right;
  624. }
  625. #thumbs_up:hover, #thumbs_up.liked {
  626. color: #87D37C !important;
  627. }
  628. #thumbs_down:hover, #thumbs_down.disliked {
  629. color: #EC644B !important;
  630. }
  631. #song-thumbnail {
  632. max-width: 100%;
  633. width: 85%;
  634. }
  635. .seeker-bar-container {
  636. position: relative;
  637. height: 5px;
  638. display: block;
  639. width: 100%;
  640. overflow: hidden;
  641. }
  642. .seeker-bar {
  643. top: 0;
  644. left: 0;
  645. bottom: 0;
  646. position: absolute;
  647. }
  648. ul {
  649. list-style: none;
  650. margin: 0;
  651. display: block;
  652. }
  653. h1, h2, h3, h4, h5, h6 {
  654. font-weight: 400;
  655. line-height: 1.1;
  656. }
  657. h1 a, h2 a, h3 a, h4 a, h5 a, h6 a {
  658. font-weight: inherit;
  659. }
  660. h1 {
  661. font-size: 4.2rem;
  662. line-height: 110%;
  663. margin: 2.1rem 0 1.68rem 0;
  664. }
  665. h2 {
  666. font-size: 3.56rem;
  667. line-height: 110%;
  668. margin: 1.78rem 0 1.424rem 0;
  669. }
  670. h3 {
  671. font-size: 2.92rem;
  672. line-height: 110%;
  673. margin: 1.46rem 0 1.168rem 0;
  674. }
  675. h4 {
  676. font-size: 2.28rem;
  677. line-height: 110%;
  678. margin: 1.14rem 0 0.912rem 0;
  679. }
  680. h5 {
  681. font-size: 1.64rem;
  682. line-height: 110%;
  683. margin: 0.82rem 0 0.656rem 0;
  684. }
  685. h6 {
  686. font-size: 1rem;
  687. line-height: 110%;
  688. margin: 0.5rem 0 0.4rem 0;
  689. }
  690. .thin {
  691. font-weight: 200;
  692. }
  693. .left {
  694. float: left !important;
  695. }
  696. .right {
  697. float: right !important;
  698. }
  699. .light-blue {
  700. background-color: #03a9f4 !important;
  701. }
  702. .white {
  703. background-color: #FFFFFF !important;
  704. }
  705. .btn-search {
  706. font-size: 14px;
  707. }
  708. </style>