mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
node_modules
This commit is contained in:
parent
6fa46f4e34
commit
680eb33f0d
4375 changed files with 1042080 additions and 6 deletions
48
node_modules/jquery-ui/ui/scroll-parent.js
generated
vendored
Normal file
48
node_modules/jquery-ui/ui/scroll-parent.js
generated
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
/*!
|
||||
* jQuery UI Scroll Parent 1.13.1
|
||||
* http://jqueryui.com
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license.
|
||||
* http://jquery.org/license
|
||||
*/
|
||||
|
||||
//>>label: scrollParent
|
||||
//>>group: Core
|
||||
//>>description: Get the closest ancestor element that is scrollable.
|
||||
//>>docs: http://api.jqueryui.com/scrollParent/
|
||||
|
||||
( function( factory ) {
|
||||
"use strict";
|
||||
|
||||
if ( typeof define === "function" && define.amd ) {
|
||||
|
||||
// AMD. Register as an anonymous module.
|
||||
define( [ "jquery", "./version" ], factory );
|
||||
} else {
|
||||
|
||||
// Browser globals
|
||||
factory( jQuery );
|
||||
}
|
||||
} )( function( $ ) {
|
||||
"use strict";
|
||||
|
||||
return $.fn.scrollParent = function( includeHidden ) {
|
||||
var position = this.css( "position" ),
|
||||
excludeStaticParent = position === "absolute",
|
||||
overflowRegex = includeHidden ? /(auto|scroll|hidden)/ : /(auto|scroll)/,
|
||||
scrollParent = this.parents().filter( function() {
|
||||
var parent = $( this );
|
||||
if ( excludeStaticParent && parent.css( "position" ) === "static" ) {
|
||||
return false;
|
||||
}
|
||||
return overflowRegex.test( parent.css( "overflow" ) + parent.css( "overflow-y" ) +
|
||||
parent.css( "overflow-x" ) );
|
||||
} ).eq( 0 );
|
||||
|
||||
return position === "fixed" || !scrollParent.length ?
|
||||
$( this[ 0 ].ownerDocument || document ) :
|
||||
scrollParent;
|
||||
};
|
||||
|
||||
} );
|
Loading…
Add table
Add a link
Reference in a new issue