This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Vector2 = function () { | |
this._x = 0; | |
this._y = 0; | |
this.DEGRAD = 0; | |
}; | |
Vector2.prototype.initialize = function (x, y) { | |
_x = x; | |
_y = y; | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// docs application object | |
var DocsApplication = function () { | |
this.buttonEls = undefined; | |
this.audioArray = []; | |
this.audioManager = undefined; | |
this.mediaModel = undefined; | |
// initialize docs application | |
this.initialize = function () { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE HTML> | |
<html> | |
<head> | |
<title>wolves.js quickstart guide</title> | |
<!-- link wolves.js javascript --> | |
<script src="wolves-1.0.min.js"></script> | |
</head> | |
<body> | |
<!-- audio courtesy of http://www.noiseaddicts.com/ --> | |
<audio id="audio_01" class="demo-audio" name="WOLVES_DEMO_AUDIO" preload="auto" autobuffer="autobuffer"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// create new wolves soundmanager instance | |
var soundManager = new WolvesSoundManager(); | |
// add new sound passing params object | |
soundManager.addSound({ | |
'id': 'audio_01', | |
'class': 'demo-audio', | |
'alias': 'WOLVES_DEMO_AUDIO' | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pass 'false' boolean to disable jquery | |
// pass 'false' boolean to disable easing | |
soundManager.fadeMute('WOLVES_DEMO_AUDIO', '1000', 'false', 'false'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pass 'true' boolean to enable jquery | |
// pass optional jquery easing parameter | |
soundManager.fadeMute('WOLVES_DEMO_AUDIO', '1000', 'true', 'easeOutBounce'); | |
// pass 'false' boolean to omit jquery easing parameter | |
soundManager.fadeMute('WOLVES_DEMO_AUDIO', '1000', 'true', 'false'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pass 'false' boolean to disable jquery | |
// pass 'false' boolean to disable easing | |
soundManager.fadeUnmute('WOLVES_DEMO_AUDIO', '1000', 'false', 'false'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pass 'true' boolean to enable jquery | |
// pass optional jquery easing parameter | |
soundManager.fadeUnmute('WOLVES_DEMO_AUDIO', '1000', 'true', 'easeOutBounce'); | |
// pass 'false' boolean to omit jquery easing parameter | |
soundManager.fadeUnmute('WOLVES_DEMO_AUDIO', '1000', 'true', 'false'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pass 'false' boolean to disable jquery | |
// pass 'false' boolean to disable easing | |
soundManager.fadeMuteAllSounds('1000', 'false', 'false'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pass 'false' boolean to disable jquery | |
// pass 'false' boolean to disable easing | |
soundManager.fadeUnmuteAllSounds('1000', 'false', 'false'); |
OlderNewer