|
262 | 262 | <div id="player">
|
263 | 263 | <div class="player">
|
264 | 264 | <div class="player__control">
|
265 |
| - <button type="button" class="player__button player__backward" on:click={backward} disabled={ !duration }>Backward</button> |
| 265 | + <button type="button" class="player__button player__backward mobile-hidden" on:click={backward} disabled={ !duration }>Backward</button> |
266 | 266 | <button type="button" class="player__button player__play" on:click={toggleSound} disabled={!duration}>{ playing ? 'Pause' : 'Play' }</button>
|
267 |
| - <button type="button" class="player__button player__fast_forward" on:click={fastForward} disabled={ !duration }>Forward</button> |
268 |
| - <button type="button" class="player__button player__fast_next" on:click={nextSong} disabled={ !duration }>Next Song</button> |
| 267 | + <button type="button" class="player__button player__fast_forward mobile-hidden" on:click={fastForward} disabled={ !duration }>Forward</button> |
| 268 | + <button type="button" class="player__button player__fast_next mobile-hidden" on:click={nextSong} disabled={ !duration }>Next Song</button> |
269 | 269 | </div>
|
270 | 270 | <div class="player__song">
|
271 | 271 | <div class="player__title">{ $song.url ? $song.title : 'No sound selected' }</div>
|
272 |
| - <div class="player__prog"> |
| 272 | + <div class="player__prog mobile-hidden"> |
273 | 273 | <div class="player__current">{ $song.url ? format(time) : format() }</div>
|
274 | 274 | <div class="progress" on:click={seekWithBar} on:mousemove={seekWithBar}>
|
275 | 275 | <div class="progress__bar" style="width:{ percent }%"></div>
|
276 | 276 | </div>
|
277 |
| - <div class="player__duration">{ $song.url ? format(duration) : format() }</div> |
| 277 | + <div class="player__duration mobile-hidden">{ $song.url ? format(duration) : format() }</div> |
278 | 278 | </div>
|
279 | 279 | </div>
|
280 |
| - <div class="player__song_control" on:mouseenter={ () => { console.log('muhaha'); showVolumeBar = true;} }> |
| 280 | + <div class="player__song_control mobile-hidden" on:mouseenter={ () => { console.log('muhaha'); showVolumeBar = true;} }> |
281 | 281 | <button type="button" class="player__button">Volume</button>
|
282 | 282 | <div class="volume__ghost" class:volume__ghost--visible={showVolumeBar} on:mouseleave={ ()=> showVolumeBar = false }>
|
283 | 283 | <div class="volume" id="volume" on:click={setVolume} on:mousemove={setVolume}>
|
|
0 commit comments