var feeApp=angular.module('feeApp',['ngSanitize','ui.router']);feeApp.config(['$locationProvider',function($locationProvider){$locationProvider.html5Mode({enabled:true,requireBase:false,rewriteLinks:false})}]);feeApp.config(['$compileProvider',function($compileProvider){$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|bitcoin):/)}]);feeApp.config(function($sceDelegateProvider){$sceDelegateProvider.resourceUrlWhitelist(['self','https://www*.youtube.com/**'])});feeApp.directive("whenScrolled",function(){return function(scope,elem,attr){$(window).scroll(function(){if($(window).scrollTop()+$(window).height()>$(document).height()-400){$('[scroll-to-bottom]').addClass('absolute-position');var isLocked=scope.ctrl?scope.ctrl.infiniteScrollLocked:scope.infiniteScrollLocked;if(!scope.loading&&!isLocked){scope.$apply(attr.whenScrolled)}}else{$('[scroll-to-bottom]').removeClass('absolute-position')}})}});feeApp.directive("scrollToBottom",['$interval',function($interval){var scrollToBottom=function(interval){var intervalId=interval(function(){var pos=$(window).scrollTop()+$(window).height(),docHeight=$(document).height();if(Math.abs(pos-docHeight)>5){console.log("window hasn't reach bottom, scrolling now");$("html, body").animate({scrollTop:$(document).height()},"slow")}else{console.log("window has reached the bottom, stopping scroll now");clearInterval(intervalId)}},250)};return function(scope,elem,attr){$(elem).click(function(e){scrollToBottom(setInterval)});scope.$on('articlesLoaded',function(e,shouldScrollToBottom){if(shouldScrollToBottom){scrollToBottom($interval)}else{$('[scroll-to-bottom]').removeClass('absolute-position')}})}}]);
//# sourceMappingURL=/js/bundles/fee-angular-controllersmap
