This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| module.exports = function (gulp, sass, changed, autoprefixer, filePaths) { | |
| return function sassCompiler(done) { | |
| var sassPaths = [ | |
| 'node_modules/normalize.scss/sass', | |
| 'node_modules/foundation-sites/scss' | |
| ]; | |
| gulp.src(filePaths) | |
| .pipe(changed('css')) | |
| .pipe( | |
| sass({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| myModule.directive('lazyLoad', ['$parse', function ($parse) { | |
| "use strict"; | |
| return { | |
| restrict: 'A', | |
| link: function link(scope, element, attrs) { | |
| var observer = new IntersectionObserver(loadImg); | |
| var img = angular.element(element)[0]; | |
| observer.observe(img); | |
| function loadImg(changes) { |
NewerOlder