mirror of
https://github.com/neocities/neocities.git
synced 2025-08-03 08:11:56 +02:00
fix volume for reals
This commit is contained in:
parent
15d00c6d7a
commit
b7e091b440
2 changed files with 3 additions and 3 deletions
|
@ -33,7 +33,7 @@ $(document).ready(function() {
|
|||
|
||||
//Raptor Vars (Modify the 'src' to your prefrence)
|
||||
var raptorImageMarkup = '<img id="elRaptor" style="display: none" src="images/raptor.png" />'
|
||||
var raptorAudioMarkup = '<audio id="elRaptorShriek" preload="auto"><source src="sounds/raptor-sound.mp3" volume="0.1" /><source src="sounds/raptor-sound.ogg" /></audio>';
|
||||
var raptorAudioMarkup = '<audio id="elRaptorShriek" preload="auto"><source src="sounds/raptor-sound.mp3" /><source src="sounds/raptor-sound.ogg" /></audio>';
|
||||
var locked = false;
|
||||
|
||||
//Append Raptor and Style
|
||||
|
@ -54,6 +54,7 @@ $(document).ready(function() {
|
|||
//Sound Hilarity
|
||||
if(audioSupported) {
|
||||
function playSound() {
|
||||
document.getElementById('elRaptorShriek').volume = 0.2;
|
||||
document.getElementById('elRaptorShriek').play();
|
||||
}
|
||||
playSound();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue