add stuff

This commit is contained in:
Colin Frei 2013-05-25 13:45:48 +02:00
parent f522e01f24
commit 55e74e2a94
328 changed files with 6240 additions and 22 deletions

View file

@ -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;