add stuff
This commit is contained in:
parent
f522e01f24
commit
55e74e2a94
328 changed files with 6240 additions and 22 deletions
|
@ -2,7 +2,14 @@ angular.module('podcast.directives', [])
|
|||
.directive('pullToRefresh', function() {
|
||||
return function(scope, element, attrs, feedItems) {
|
||||
var myScroll,
|
||||
pullDownEl, pullDownOffset;
|
||||
pullDownEl, pullDownOffset,
|
||||
wrapper = angular.element('<div class="scroller"></div>');
|
||||
|
||||
element.contents().wrap(wrapper[0]);
|
||||
|
||||
wrapper.prepend('<div id="pullDown">' +
|
||||
'<span class="pullDownIcon"></span><span class="pullDownLabel">Pull down to refresh...</span>' +
|
||||
'</div>');
|
||||
|
||||
pullDownEl = document.getElementById('pullDown');
|
||||
pullDownOffset = pullDownEl.offsetHeight;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue