mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +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();
|
||||
|
|
|
@ -44,10 +44,9 @@
|
|||
$(window).load(function() {
|
||||
$('.pmarca').raptorize({
|
||||
'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);
|
||||
document.getElementById('pmarca').volume = 0.1
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
|
|
Loading…
Add table
Reference in a new issue