mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-27 15:27:58 +01:00
5 lines
No EOL
200 B
CoffeeScript
5 lines
No EOL
200 B
CoffeeScript
angular.module('ponyfm').directive 'pfmProgressBar', () ->
|
|
(scope, element, attrs) ->
|
|
scope.$watch attrs.pfmProgressBar, (val) ->
|
|
return if !val?
|
|
$(element).css 'width', Math.floor(val) + '%' |