-
Notifications
You must be signed in to change notification settings - Fork 0
/
soundboard.html
39 lines (38 loc) · 1.05 KB
/
soundboard.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<!DOCTYPE html>
<html ng-app>
<head>
<style>
@import url('https://fonts.googleapis.com/css?family=Anton');
</style>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.13/angular.js"></script>
<link rel="stylesheet" href="soundboard.css" />
</head>
<body>
<body ng-app>
<div id="wrapper">
<div id="header">
<center>Soundboard</center>
</div>
<input ng-model="search" id="searchbar" placeholder="Search Sounds..."/>
<div class="container" ng-controller="ListCtrl">
<ul>
<li ng-repeat="sound in sounds | filter:search">
{{sound.name}}<br \>
<audio controls>
<source src="{{sound.loc}}" type="audio/mpeg">
</div>
</li>
</ul>
</div>
</div>
</body>
<script type='text/javascript'>
function ListCtrl ($scope) {
$scope.sounds = [
{name: 'NAME_OF_SOUND', loc: 'file:///FILESYSTEM_LOCATION'},
{name: 'NAME_OF_SOUND2', loc: 'file:///LOCATION2'}
];
}
</script>
</body>
</html>