summaryrefslogtreecommitdiff
path: root/static/audio.js
blob: 6eaec56c385b06c63792c6b1e8cfb9bb277a6e0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function Audio() {
	this.audio = document.getElementById('audio');

	this.set_src = function(src) {
		this.audio.setAttribute('src', src);
	}

	this.play = function() {
		this.audio.play();
	}

	this.pause = function() {
		this.audio.pause();
	}

	this.stop = function() {
		this.audio.stop();
	}
}