Created
August 9, 2013 18:21
-
-
Save jxnblk/6195872 to your computer and use it in GitHub Desktop.
Plangular Boilerplate
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
<!-- | |
Plangular Boilerplate | |
http://jxnblk.github.io/Plangular | |
--> | |
<script src="//connect.soundcloud.com/sdk.js"></script> | |
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.1.4/angular.min.js"></script> | |
<script src="plangular.js"></script> | |
<div ng-app="plangular"> | |
<div plangular data-src="'http://soundcloud.com/jxnblk/plangular'"> | |
<a href="" ng-click="player.play(track)" ng-hide="player.playing == track">Play</a> | |
<a href="" ng-click="player.pause()" ng-show="player.playing == track">Pause</a> | |
<p>{{ track.user.username }}</p> | |
<h1>{{ track.title }}</h1> | |
<progress value="{{ currentTime / duration }}" ng-click="seekTo($event)">{{ currentTime / duration }}</progress> | |
<small>{{ currentTime | playTime }} | {{ duration | playTime }}</small> | |
<a ng-href="{{ track.permalink_url }}">View on SoundCloud</a> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment