mirror of
https://github.com/Poniverse/Pony.fm.git
synced 2024-12-01 17:17:59 +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) + '%' |