fix volume for reals

This commit is contained in:
Kyle Drake 2015-03-31 21:25:20 -07:00
parent 15d00c6d7a
commit b7e091b440
2 changed files with 3 additions and 3 deletions

View file

@ -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();

View file

@ -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>