mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +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)
|
//Raptor Vars (Modify the 'src' to your prefrence)
|
||||||
var raptorImageMarkup = '<img id="elRaptor" style="display: none" src="images/raptor.png" />'
|
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;
|
var locked = false;
|
||||||
|
|
||||||
//Append Raptor and Style
|
//Append Raptor and Style
|
||||||
|
@ -54,6 +54,7 @@ $(document).ready(function() {
|
||||||
//Sound Hilarity
|
//Sound Hilarity
|
||||||
if(audioSupported) {
|
if(audioSupported) {
|
||||||
function playSound() {
|
function playSound() {
|
||||||
|
document.getElementById('elRaptorShriek').volume = 0.2;
|
||||||
document.getElementById('elRaptorShriek').play();
|
document.getElementById('elRaptorShriek').play();
|
||||||
}
|
}
|
||||||
playSound();
|
playSound();
|
||||||
|
|
|
@ -44,10 +44,9 @@
|
||||||
$(window).load(function() {
|
$(window).load(function() {
|
||||||
$('.pmarca').raptorize({
|
$('.pmarca').raptorize({
|
||||||
'enterOn' : 'timer', //timer, konami-code, click
|
'enterOn' : 'timer', //timer, konami-code, click
|
||||||
'delayTime' : 1000 //time before raptor attacks on timer mode
|
'delayTime' : 500 //time before raptor attacks on timer mode
|
||||||
});
|
});
|
||||||
window.scrollTo(0, 0);
|
window.scrollTo(0, 0);
|
||||||
document.getElementById('pmarca').volume = 0.1
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
Loading…
Add table
Reference in a new issue