Station.vue 22 KB

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