-
Notifications
You must be signed in to change notification settings - Fork 9
/
index.htm
40 lines (35 loc) · 1.48 KB
/
index.htm
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
40
<!doctype html>
<html>
<head>
<title>Audio Trackr</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css" />
<script src="angular-1.2.23.min.js"></script>
<script src="app.js"></script>
</head>
<body ng-app="AudioTrackr" ng-controller="MainController">
<header>
<h1>Audio Trackr</h1>
<a href="http://cbateman.com">cbateman.com</a>
</header>
<div class="songs" ng-cloak>
<span ng-repeat="song in songs">
<input id="{{'radio-'+song.name}}" type="radio" ng-model="$parent.currentSong" ng-value="song" />
<label for="{{'radio-'+song.name}}">{{song.name+' ('+song.band+')'}}</label>
</span>
</div>
<div class="controls" ng-show="currentSong" ng-cloak>
<button ng-disabled="!ready" ng-show="!playing" ng-click="playTracks()">Play</button>
<button ng-disabled="!ready" ng-show="playing" ng-click="stopTracks()">Stop</button>
<a href="{{currentSong.link}}" target="_blank" title="Download on iTunes"><img alt="iTunes" src="itunes.png" /></a>
</div>
<div class="error" ng-show="error" ng-cloak>Sorry, it looks like this won't work in your browser.</div>
<div class="track-container" ng-cloak>
<div track="track" track-name="{{track.name}}" ng-repeat="track in currentSong.tracks"></div>
</div>
<footer>
<p><a href="http://cbateman.com/blog/a-web-audio-api-toy/">Read more</a> about this experiment.</p>
<p><a href="https://github.com/chrisbateman/Audio-Trackr">View/fork on GitHub</a>.</p>
</footer>
</body>
</html>