mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-13 04:00:21 +00:00
Adding darkswarm variant of home page, getting Angular skeleton into place, taking shit off window
This commit is contained in:
10
vendor/assets/javascripts/angular-backstretch.js
vendored
Normal file
10
vendor/assets/javascripts/angular-backstretch.js
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
angular.module('backstretch', []);
|
||||
angular.module('backstretch')
|
||||
.directive('backstretch', function () {
|
||||
return {
|
||||
restrict: 'A',
|
||||
link: function (scope, element, attr) {
|
||||
element.backstretch(attr.backgroundUrl);
|
||||
}
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user