mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-11-30 16:47:59 +01:00
5 lines
188 B
CoffeeScript
5 lines
188 B
CoffeeScript
|
angular.module('ponyfm').directive 'pfmProgressBar', () ->
|
||
|
(scope, element, attrs) ->
|
||
|
scope.$watch attrs.pfmProgressBar, (val) ->
|
||
|
return if !val?
|
||
|
$(element).css 'width', val + '%'
|