mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
merge from dev
This commit is contained in:
parent
1c8f02ce0f
commit
33b01d778c
911 changed files with 34157 additions and 57125 deletions
43
dashboard-ui/bower_components/headroom.js/dist/angular.headroom.js
vendored
Normal file
43
dashboard-ui/bower_components/headroom.js/dist/angular.headroom.js
vendored
Normal file
|
@ -0,0 +1,43 @@
|
|||
/*!
|
||||
* headroom.js v0.7.0 - Give your page some headroom. Hide your header until you need it
|
||||
* Copyright (c) 2014 Nick Williams - http://wicky.nillia.ms/headroom.js
|
||||
* License: MIT
|
||||
*/
|
||||
|
||||
(function(angular) {
|
||||
|
||||
if(!angular) {
|
||||
return;
|
||||
}
|
||||
|
||||
///////////////
|
||||
// Directive //
|
||||
///////////////
|
||||
|
||||
angular.module('headroom', []).directive('headroom', function() {
|
||||
return {
|
||||
restrict: 'EA',
|
||||
scope: {
|
||||
tolerance: '=',
|
||||
offset: '=',
|
||||
classes: '=',
|
||||
scroller: '@'
|
||||
},
|
||||
link: function(scope, element) {
|
||||
var options = {};
|
||||
angular.forEach(Headroom.options, function(value, key) {
|
||||
options[key] = scope[key] || Headroom.options[key];
|
||||
});
|
||||
if (options.scroller) {
|
||||
options.scroller = angular.element(options.scroller)[0];
|
||||
}
|
||||
var headroom = new Headroom(element[0], options);
|
||||
headroom.init();
|
||||
scope.$on('destroy', function() {
|
||||
headroom.destroy();
|
||||
});
|
||||
}
|
||||
};
|
||||
});
|
||||
|
||||
}(window.angular));
|
Loading…
Add table
Add a link
Reference in a new issue