Improved audio player QoL
This commit is contained in:
parent
90be415d9a
commit
3d02c3d7b2
@ -7,4 +7,4 @@ component AudioPlayer
|
|||||||
button#audio-player-pause.fade-out.action(data-action="pauseAudio", data-trigger="click")
|
button#audio-player-pause.fade-out.action(data-action="pauseAudio", data-trigger="click")
|
||||||
RawIcon("pause")
|
RawIcon("pause")
|
||||||
|
|
||||||
input#audio-player-volume.action(data-action="setVolume", data-trigger="input", type="range", min="0", max="100", value="100")
|
input#audio-player-volume.action(data-action="setVolume", data-trigger="input", type="range", min="0", max="100", value="50")
|
@ -5,6 +5,7 @@
|
|||||||
justify-content center
|
justify-content center
|
||||||
align-items center
|
align-items center
|
||||||
margin 0.8rem 0
|
margin 0.8rem 0
|
||||||
|
min-height 90px
|
||||||
|
|
||||||
.audio-player-play-pause-container
|
.audio-player-play-pause-container
|
||||||
position relative
|
position relative
|
||||||
|
@ -3,7 +3,7 @@ import { AnimeNotifier } from "../AnimeNotifier"
|
|||||||
var audioContext: AudioContext
|
var audioContext: AudioContext
|
||||||
var audioNode: AudioBufferSourceNode
|
var audioNode: AudioBufferSourceNode
|
||||||
var gainNode: GainNode
|
var gainNode: GainNode
|
||||||
var volume = 1.0
|
var volume = 0.5
|
||||||
var playId = 0
|
var playId = 0
|
||||||
var audioPlayer = document.getElementById("audio-player")
|
var audioPlayer = document.getElementById("audio-player")
|
||||||
var audioPlayerPlay = document.getElementById("audio-player-play")
|
var audioPlayerPlay = document.getElementById("audio-player-play")
|
||||||
|
Loading…
Reference in New Issue
Block a user