Improved audio player QoL

This commit is contained in:
Eduard Urbach 2018-03-11 20:29:22 +01:00
parent 90be415d9a
commit 3d02c3d7b2
3 changed files with 3 additions and 2 deletions

View File

@ -7,4 +7,4 @@ component AudioPlayer
button#audio-player-pause.fade-out.action(data-action="pauseAudio", data-trigger="click")
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")

View File

@ -5,6 +5,7 @@
justify-content center
align-items center
margin 0.8rem 0
min-height 90px
.audio-player-play-pause-container
position relative

View File

@ -3,7 +3,7 @@ import { AnimeNotifier } from "../AnimeNotifier"
var audioContext: AudioContext
var audioNode: AudioBufferSourceNode
var gainNode: GainNode
var volume = 1.0
var volume = 0.5
var playId = 0
var audioPlayer = document.getElementById("audio-player")
var audioPlayerPlay = document.getElementById("audio-player-play")