Update bootstrap from 3.4.1 to 4.3.1

This commit is contained in:
2019-11-26 10:55:00 -05:00
parent de1a8bc2b3
commit f4a5518c30
134 changed files with 48016 additions and 21473 deletions
+219
View File
@@ -0,0 +1,219 @@
<!-- IGNORE THE HTML BLOCK BELOW, THE INTERESTING PART IS AFTER IT -->
<h1 align="center">Popper.js</h1>
<p align="center">
<strong>A library used to position poppers in web applications.</strong>
</p>
<p align="center">
<a href="https://travis-ci.org/FezVrasta/popper.js/branches" target="_blank"><img src="https://travis-ci.org/FezVrasta/popper.js.svg?branch=master" alt="Build Status"/></a>
<img src="http://img.badgesize.io/https://unpkg.com/popper.js/dist/popper.min.js?compression=gzip" alt="Stable Release Size"/>
<a href="https://www.bithound.io/github/FezVrasta/popper.js"><img src="https://www.bithound.io/github/FezVrasta/popper.js/badges/score.svg" alt="bitHound Overall Score"></a>
<a href="https://codeclimate.com/github/FezVrasta/popper.js/coverage"><img src="https://codeclimate.com/github/FezVrasta/popper.js/badges/coverage.svg" alt="Istanbul Code Coverage"/></a>
<a href="https://gitter.im/FezVrasta/popper.js" target="_blank"><img src="https://img.shields.io/gitter/room/nwjs/nw.js.svg" alt="Get support or discuss"/></a>
<br />
<a href="https://saucelabs.com/u/popperjs" target="_blank"><img src="https://badges.herokuapp.com/browsers?labels=none&googlechrome=latest&firefox=latest&microsoftedge=latest&iexplore=11,10&safari=latest&iphone=latest" alt="SauceLabs Reports"/></a>
</p>
<img src="https://raw.githubusercontent.com/FezVrasta/popper.js/master/popperjs.png" align="right" width=250 />
<!-- 🚨 HEY! HERE BEGINS THE INTERESTING STUFF 🚨 -->
## Wut? Poppers?
A popper is an element on the screen which "pops out" from the natural flow of your application.
Common examples of poppers are tooltips, popovers and drop-downs.
## So, yet another tooltip library?
Well, basically, **no**.
Popper.js is a **positioning engine**, its purpose is to calculate the position of an element
to make it possible to position it near a given reference element.
The engine is completely modular and most of its features are implemented as **modifiers**
(similar to middlewares or plugins).
The whole code base is written in ES2015 and its features are automatically tested on real browsers thanks to [SauceLabs](https://saucelabs.com/) and [TravisCI](https://travis-ci.org/).
Popper.js has zero dependencies. No jQuery, no LoDash, nothing.
It's used by big companies like [Twitter in Bootstrap v4](https://getbootstrap.com/), [Microsoft in WebClipper](https://github.com/OneNoteDev/WebClipper) and [Atlassian in AtlasKit](https://aui-cdn.atlassian.com/atlaskit/registry/).
### Popper.js
This is the engine, the library that computes and, optionally, applies the styles to
the poppers.
Some of the key points are:
- Position elements keeping them in their original DOM context (doesn't mess with your DOM!);
- Allows to export the computed informations to integrate with React and other view libraries;
- Supports Shadow DOM elements;
- Completely customizable thanks to the modifiers based structure;
Visit our [project page](https://fezvrasta.github.io/popper.js) to see a lot of examples of what you can do with Popper.js!
Find [the documentation here](/docs/_includes/popper-documentation.md).
### Tooltip.js
Since lots of users just need a simple way to integrate powerful tooltips in their projects,
we created **Tooltip.js**.
It's a small library that makes it easy to automatically create tooltips using as engine Popper.js.
Its API is almost identical to the famous tooltip system of Bootstrap, in this way it will be
easy to integrate it in your projects.
The tooltips generated by Tooltip.js are accessible thanks to the `aria` tags.
Find [the documentation here](/docs/_includes/tooltip-documentation.md).
## Installation
Popper.js is available on the following package managers and CDNs:
| Source | |
|:-------|:---------------------------------------------------------------------------------|
| npm | `npm install popper.js --save` |
| yarn | `yarn add popper.js` |
| NuGet | `PM> Install-Package popper.js` |
| Bower | `bower install popper.js --save` |
| unpkg | [`https://unpkg.com/popper.js`](https://unpkg.com/popper.js) |
| cdnjs | [`https://cdnjs.com/libraries/popper.js`](https://cdnjs.com/libraries/popper.js) |
Tooltip.js as well:
| Source | |
|:-------|:---------------------------------------------------------------------------------|
| npm | `npm install tooltip.js --save` |
| yarn | `yarn add tooltip.js` |
| Bower* | `bower install tooltip.js=https://unpkg.com/tooltip.js --save` |
| unpkg | [`https://unpkg.com/tooltip.js`](https://unpkg.com/tooltip.js) |
| cdnjs | [`https://cdnjs.com/libraries/popper.js`](https://cdnjs.com/libraries/popper.js) |
\*: Bower isn't officially supported, it can be used to install Tooltip.js only trough the unpkg.com CDN. This method has the limitation of not being able to define a specific version of the library. Bower and Popper.js suggests to use npm or Yarn for your projects.
For more info, [read the related issue](https://github.com/FezVrasta/popper.js/issues/390).
### Dist targets
Popper.js is currently shipped with 3 targets in mind: UMD, ESM and ESNext.
- UMD - Universal Module Definition: AMD, RequireJS and globals;
- ESM - ES Modules: For webpack/Rollup or browser supporting the spec;
- ESNext: Available in `dist/`, can be used with webpack and `babel-preset-env`;
Make sure to use the right one for your needs. If you want to import it with a `<script>` tag, use UMD.
## Usage
Given an existing popper DOM node, ask Popper.js to position it near its button
```js
var reference = document.querySelector('.my-button');
var popper = document.querySelector('.my-popper');
var anotherPopper = new Popper(
reference,
popper,
{
// popper options here
}
);
```
### Callbacks
Popper.js supports two kinds of callbacks, the `onCreate` callback is called after
the popper has been initalized. The `onUpdate` one is called on any subsequent update.
```js
const reference = document.querySelector('.my-button');
const popper = document.querySelector('.my-popper');
new Popper(reference, popper, {
onCreate: (data) => {
// data is an object containing all the informations computed
// by Popper.js and used to style the popper and its arrow
// The complete description is available in Popper.js documentation
},
onUpdate: (data) => {
// same as `onCreate` but called on subsequent updates
}
});
```
### Writing your own modifiers
Popper.js is based on a "plugin-like" architecture, most of its features are fully encapsulated "modifiers".
A modifier is a function that is called each time Popper.js needs to compute the position of the popper. For this reason, modifiers should be very performant to avoid bottlenecks.
To learn how to create a modifier, [read the modifiers documentation](docs/_includes/popper-documentation.md#modifiers--object)
### React, Vue.js, Angular, AngularJS, Ember.js (etc...) integration
Integrating 3rd party libraries in React or other libraries can be a pain because
they usually alter the DOM and drive the libraries crazy.
Popper.js limits all its DOM modifications inside the `applyStyle` modifier,
you can simply disable it and manually apply the popper coordinates using
your library of choice.
For a comprehensive list of libraries that let you use Popper.js into existing
frameworks, visit the [MENTIONS](/MENTIONS.md) page.
Alternatively, you may even override your own `applyStyles` with your custom one and
integrate Popper.js by yourself!
```js
function applyReactStyle(data) {
// export data in your framework and use its content to apply the style to your popper
};
const reference = document.querySelector('.my-button');
const popper = document.querySelector('.my-popper');
new Popper(reference, popper, {
modifiers: {
applyStyle: { enabled: false },
applyReactStyle: {
enabled: true,
fn: applyReactStyle,
order: 800,
},
},
});
```
### Migration from Popper.js v0
Since the API changed, we prepared some migration instructions to make it easy to upgrade to
Popper.js v1.
https://github.com/FezVrasta/popper.js/issues/62
Feel free to comment inside the issue if you have any questions.
### Performances
Popper.js is very performant. It usually takes 0.5ms to compute a popper's position (on an iMac with 3.5G GHz Intel Core i5).
This means that it will not cause any [jank](https://www.chromium.org/developers/how-tos/trace-event-profiling-tool/anatomy-of-jank), leading to a smooth user experience.
## Notes
### Libraries using Popper.js
The aim of Popper.js is to provide a stable and powerful positioning engine ready to
be used in 3rd party libraries.
Visit the [MENTIONS](/MENTIONS.md) page for an updated list of projects.
### Credits
I want to thank some friends and projects for the work they did:
- [@AndreaScn](https://github.com/AndreaScn) for his work on the GitHub Page and the manual testing he did during the development;
- [@vampolo](https://github.com/vampolo) for the original idea and for the name of the library;
- [Sysdig](https://github.com/Draios) for all the awesome things I learned during these years that made it possible for me to write this library;
- [Tether.js](http://github.hubspot.com/tether/) for having inspired me in writing a positioning library ready for the real world;
- [The Contributors](https://github.com/FezVrasta/popper.js/graphs/contributors) for their much appreciated Pull Requests and bug reports;
- **you** for the star you'll give to this project and for being so awesome to give this project a try 🙂
### Copyright and license
Code and documentation copyright 2016 **Federico Zivolo**. Code released under the [MIT license](LICENSE.md). Docs released under Creative Commons.
+7013
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+4156 -2301
View File
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+6 -5
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+159
View File
@@ -0,0 +1,159 @@
/**
* @fileoverview This file only declares the public portions of the API.
* It should not define internal pieces such as utils or modifier details.
*
* Original definitions by: edcarroll <https://github.com/edcarroll>, ggray <https://github.com/giladgray>, rhysd <https://rhysd.github.io>, joscha <https://github.com/joscha>, seckardt <https://github.com/seckardt>, marcfallows <https://github.com/marcfallows>
*/
/**
* This kind of namespace declaration is not necessary, but is kept here for backwards-compatibility with
* popper.js 1.x. It can be removed in 2.x so that the default export is simply the Popper class
* and all the types / interfaces are top-level named exports.
*/
declare namespace Popper {
export type Position = 'top' | 'right' | 'bottom' | 'left';
export type Placement = 'auto-start'
| 'auto'
| 'auto-end'
| 'top-start'
| 'top'
| 'top-end'
| 'right-start'
| 'right'
| 'right-end'
| 'bottom-end'
| 'bottom'
| 'bottom-start'
| 'left-end'
| 'left'
| 'left-start';
export type Boundary = 'scrollParent' | 'viewport' | 'window';
export type Behavior = 'flip' | 'clockwise' | 'counterclockwise';
export type ModifierFn = (data: Data, options: Object) => Data;
export interface BaseModifier {
order?: number;
enabled?: boolean;
fn?: ModifierFn;
}
export interface Modifiers {
shift?: BaseModifier;
offset?: BaseModifier & {
offset?: number | string,
};
preventOverflow?: BaseModifier & {
priority?: Position[],
padding?: number,
boundariesElement?: Boundary | Element,
escapeWithReference?: boolean
};
keepTogether?: BaseModifier;
arrow?: BaseModifier & {
element?: string | Element,
};
flip?: BaseModifier & {
behavior?: Behavior | Position[],
padding?: number,
boundariesElement?: Boundary | Element,
};
inner?: BaseModifier;
hide?: BaseModifier;
applyStyle?: BaseModifier & {
onLoad?: Function,
gpuAcceleration?: boolean,
};
computeStyle?: BaseModifier & {
gpuAcceleration?: boolean;
x?: 'bottom' | 'top',
y?: 'left' | 'right'
};
[name: string]: (BaseModifier & Record<string, any>) | undefined;
}
export interface Offset {
top: number;
left: number;
width: number;
height: number;
}
export interface Data {
instance: Popper;
placement: Placement;
originalPlacement: Placement;
flipped: boolean;
hide: boolean;
arrowElement: Element;
styles: CSSStyleDeclaration;
boundaries: Object;
offsets: {
popper: Offset,
reference: Offset,
arrow: {
top: number,
left: number,
},
};
}
export interface PopperOptions {
placement?: Placement;
positionFixed?: boolean;
eventsEnabled?: boolean;
modifiers?: Modifiers;
removeOnDestroy?: boolean;
onCreate?(data: Data): void;
onUpdate?(data: Data): void;
}
export interface ReferenceObject {
clientHeight: number;
clientWidth: number;
getBoundingClientRect(): ClientRect;
}
}
// Re-export types in the Popper namespace so that they can be accessed as top-level named exports.
// These re-exports should be removed in 2.x when the "declare namespace Popper" syntax is removed.
export type Position = Popper.Position;
export type Placement = Popper.Placement;
export type Boundary = Popper.Boundary;
export type Behavior = Popper.Behavior;
export type ModifierFn = Popper.ModifierFn;
export type BaseModifier = Popper.BaseModifier;
export type Modifiers = Popper.Modifiers;
export type Offset = Popper.Offset;
export type Data = Popper.Data;
export type PopperOptions = Popper.PopperOptions;
export type ReferenceObject = Popper.ReferenceObject;
declare class Popper {
static modifiers: (BaseModifier & { name: string })[];
static placements: Placement[];
static Defaults: PopperOptions;
options: PopperOptions;
constructor(reference: Element | ReferenceObject, popper: Element, options?: PopperOptions);
destroy(): void;
update(): void;
scheduleUpdate(): void;
enableEventListeners(): void;
disableEventListeners(): void;
}
export default Popper;
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
intellisense.annotate(jQuery, {
intellisense.annotate(jQuery, {
'ajax': function() {
/// <signature>
/// <summary>Perform an asynchronous HTTP (Ajax) request.</summary>
@@ -21,7 +21,7 @@
},
'ajaxSetup': function() {
/// <signature>
/// <summary>Set default values for future Ajax requests.</summary>
/// <summary>Set default values for future Ajax requests. Its use is not recommended.</summary>
/// <param name="options" type="PlainObject">A set of key/value pairs that configure the default Ajax request. All options are optional.</param>
/// </signature>
},
@@ -37,11 +37,11 @@
/// <returns type="Boolean" />
},
'browser': function() {
/// <summary>Contains flags for the useragent, read from navigator.userAgent. We recommend against using this property; please try to use feature detection instead (see jQuery.support). jQuery.browser may be moved to a plugin in a future release of jQuery.</summary>
/// <summary>Contains flags for the useragent, read from navigator.userAgent. This property was removed in jQuery 1.9 and is available only through the jQuery.migrate plugin. Please try to use feature detection instead.</summary>
/// <returns type="PlainObject" />
},
'browser.version': function() {
/// <summary>The version number of the rendering engine for the user's browser.</summary>
/// <summary>The version number of the rendering engine for the user's browser. This property was removed in jQuery 1.9 and is available only through the jQuery.migrate plugin.</summary>
/// <returns type="String" />
},
'Callbacks': function() {
@@ -121,11 +121,18 @@
/// <returns type="Object" />
/// </signature>
},
'fn.extend': function() {
/// <signature>
/// <summary>Merge the contents of an object onto the jQuery prototype to provide new jQuery instance methods.</summary>
/// <param name="object" type="Object">An object to merge onto the jQuery prototype.</param>
/// <returns type="Object" />
/// </signature>
},
'get': function() {
/// <signature>
/// <summary>Load data from the server using a HTTP GET request.</summary>
/// <param name="url" type="String">A string containing the URL to which the request is sent.</param>
/// <param name="data" type="String">A plain object or string that is sent to the server with the request.</param>
/// <param name="data" type="">A plain object or string that is sent to the server with the request.</param>
/// <param name="success(data, textStatus, jqXHR)" type="Function">A callback function that is executed if the request succeeds.</param>
/// <param name="dataType" type="String">The type of data expected from the server. Default: Intelligent Guess (xml, json, script, or html).</param>
/// <returns type="jqXHR" />
@@ -189,7 +196,7 @@
/// <signature>
/// <summary>Determine whether the argument is an array.</summary>
/// <param name="obj" type="Object">Object to test whether or not it is an array.</param>
/// <returns type="boolean" />
/// <returns type="Boolean" />
/// </signature>
},
'isEmptyObject': function() {
@@ -203,7 +210,7 @@
/// <signature>
/// <summary>Determine if the argument passed is a Javascript function object.</summary>
/// <param name="obj" type="PlainObject">Object to test whether or not it is a function.</param>
/// <returns type="boolean" />
/// <returns type="Boolean" />
/// </signature>
},
'isNumeric': function() {
@@ -224,7 +231,7 @@
/// <signature>
/// <summary>Determine whether the argument is a window.</summary>
/// <param name="obj" type="PlainObject">Object to test whether or not it is a window.</param>
/// <returns type="boolean" />
/// <returns type="Boolean" />
/// </signature>
},
'isXMLDoc': function() {
@@ -250,7 +257,7 @@
/// </signature>
/// <signature>
/// <summary>Translate all items in an array or object to new array of items.</summary>
/// <param name="arrayOrObject" type="Object">The Array or Object to translate.</param>
/// <param name="arrayOrObject" type="">The Array or Object to translate.</param>
/// <param name="callback( value, indexOrKey )" type="Function">The function to process each item against. The first argument to the function is the value; the second argument is the index or key of the array or object property. The function can return any value to add to the array. A returned array will be flattened into the resulting array. Within the function, this refers to the global (window) object.</param>
/// <returns type="Array" />
/// </signature>
@@ -280,12 +287,12 @@
'param': function() {
/// <signature>
/// <summary>Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request.</summary>
/// <param name="obj" type="Object">An array or object to serialize.</param>
/// <param name="obj" type="">An array or object to serialize.</param>
/// <returns type="String" />
/// </signature>
/// <signature>
/// <summary>Create a serialized representation of an array or object, suitable for use in a URL query string or Ajax request.</summary>
/// <param name="obj" type="Object">An array or object to serialize.</param>
/// <param name="obj" type="">An array or object to serialize.</param>
/// <param name="traditional" type="Boolean">A Boolean indicating whether to perform a traditional "shallow" serialization.</param>
/// <returns type="String" />
/// </signature>
@@ -294,7 +301,7 @@
/// <signature>
/// <summary>Parses a string into an array of DOM nodes.</summary>
/// <param name="data" type="String">HTML string to be parsed</param>
/// <param name="context" type="Element">DOM element to serve as the context in which the HTML fragment will be created</param>
/// <param name="context" type="Element">Document element to serve as the context in which the HTML fragment will be created</param>
/// <param name="keepScripts" type="Boolean">A Boolean indicating whether to include scripts passed in the HTML string</param>
/// <returns type="Array" />
/// </signature>
@@ -317,8 +324,8 @@
/// <signature>
/// <summary>Load data from the server using a HTTP POST request.</summary>
/// <param name="url" type="String">A string containing the URL to which the request is sent.</param>
/// <param name="data" type="String">A plain object or string that is sent to the server with the request.</param>
/// <param name="success(data, textStatus, jqXHR)" type="Function">A callback function that is executed if the request succeeds.</param>
/// <param name="data" type="">A plain object or string that is sent to the server with the request.</param>
/// <param name="success(data, textStatus, jqXHR)" type="Function">A callback function that is executed if the request succeeds. Required if dataType is provided, but can be null in that case.</param>
/// <param name="dataType" type="String">The type of data expected from the server. Default: Intelligent Guess (xml, json, script, text, html).</param>
/// <returns type="jqXHR" />
/// </signature>
@@ -420,7 +427,7 @@ intellisense.annotate(_object, {
'add': function() {
/// <signature>
/// <summary>Add a callback or a collection of callbacks to a callback list.</summary>
/// <param name="callbacks" type="Array">A function, or array of functions, that are to be added to the callback list.</param>
/// <param name="callbacks" type="">A function, or array of functions, that are to be added to the callback list.</param>
/// <returns type="Callbacks" />
/// </signature>
},
@@ -473,7 +480,7 @@ intellisense.annotate(_object, {
'remove': function() {
/// <signature>
/// <summary>Remove a callback or a collection of callbacks from a callback list.</summary>
/// <param name="callbacks" type="Array">A function, or array of functions, that are to be removed from the callback list.</param>
/// <param name="callbacks" type="">A function, or array of functions, that are to be removed from the callback list.</param>
/// <returns type="Callbacks" />
/// </signature>
},
@@ -552,7 +559,7 @@ intellisense.annotate(_object, {
'progress': function() {
/// <signature>
/// <summary>Add handlers to be called when the Deferred object generates progress notifications.</summary>
/// <param name="progressCallbacks" type="Function">A function, or array of functions, that is called when the Deferred generates progress notifications.</param>
/// <param name="progressCallbacks" type="">A function, or array of functions, to be called when the Deferred generates progress notifications.</param>
/// <returns type="Deferred" />
/// </signature>
},
@@ -566,7 +573,7 @@ intellisense.annotate(_object, {
'reject': function() {
/// <signature>
/// <summary>Reject a Deferred object and call any failCallbacks with the given args.</summary>
/// <param name="args" type="Object">Optional arguments that are passed to the failCallbacks.</param>
/// <param name="args" type="Anything">Optional arguments that are passed to the failCallbacks.</param>
/// <returns type="Deferred" />
/// </signature>
},
@@ -581,7 +588,7 @@ intellisense.annotate(_object, {
'resolve': function() {
/// <signature>
/// <summary>Resolve a Deferred object and call any doneCallbacks with the given args.</summary>
/// <param name="args" type="Object">Optional arguments that are passed to the doneCallbacks.</param>
/// <param name="args" type="Anything">Optional arguments that are passed to the doneCallbacks.</param>
/// <returns type="Deferred" />
/// </signature>
},
@@ -715,7 +722,7 @@ intellisense.annotate(jQuery.fn, {
/// </signature>
/// <signature>
/// <summary>Add elements to the set of matched elements.</summary>
/// <param name="html" type="String">An HTML fragment to add to the set of matched elements.</param>
/// <param name="html" type="htmlString">An HTML fragment to add to the set of matched elements.</param>
/// <returns type="jQuery" />
/// </signature>
/// <signature>
@@ -752,8 +759,8 @@ intellisense.annotate(jQuery.fn, {
'after': function() {
/// <signature>
/// <summary>Insert content, specified by the parameter, after each element in the set of matched elements.</summary>
/// <param name="content" type="jQuery">HTML string, DOM element, or jQuery object to insert after each element in the set of matched elements.</param>
/// <param name="content" type="jQuery">One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert after each element in the set of matched elements.</param>
/// <param name="content" type="">HTML string, DOM element, or jQuery object to insert after each element in the set of matched elements.</param>
/// <param name="content" type="">One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert after each element in the set of matched elements.</param>
/// <returns type="jQuery" />
/// </signature>
/// <signature>
@@ -833,8 +840,8 @@ intellisense.annotate(jQuery.fn, {
'append': function() {
/// <signature>
/// <summary>Insert content, specified by the parameter, to the end of each element in the set of matched elements.</summary>
/// <param name="content" type="jQuery">DOM element, HTML string, or jQuery object to insert at the end of each element in the set of matched elements.</param>
/// <param name="content" type="jQuery">One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the end of each element in the set of matched elements.</param>
/// <param name="content" type="">DOM element, HTML string, or jQuery object to insert at the end of each element in the set of matched elements.</param>
/// <param name="content" type="">One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the end of each element in the set of matched elements.</param>
/// <returns type="jQuery" />
/// </signature>
/// <signature>
@@ -846,7 +853,7 @@ intellisense.annotate(jQuery.fn, {
'appendTo': function() {
/// <signature>
/// <summary>Insert every element in the set of matched elements to the end of the target.</summary>
/// <param name="target" type="jQuery">A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted at the end of the element(s) specified by this parameter.</param>
/// <param name="target" type="">A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted at the end of the element(s) specified by this parameter.</param>
/// <returns type="jQuery" />
/// </signature>
},
@@ -854,7 +861,7 @@ intellisense.annotate(jQuery.fn, {
/// <signature>
/// <summary>Set one or more attributes for the set of matched elements.</summary>
/// <param name="attributeName" type="String">The name of the attribute to set.</param>
/// <param name="value" type="Number">A value to set for the attribute.</param>
/// <param name="value" type="">A value to set for the attribute.</param>
/// <returns type="jQuery" />
/// </signature>
/// <signature>
@@ -935,8 +942,8 @@ intellisense.annotate(jQuery.fn, {
'before': function() {
/// <signature>
/// <summary>Insert content, specified by the parameter, before each element in the set of matched elements.</summary>
/// <param name="content" type="jQuery">HTML string, DOM element, or jQuery object to insert before each element in the set of matched elements.</param>
/// <param name="content" type="jQuery">One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert before each element in the set of matched elements.</param>
/// <param name="content" type="">HTML string, DOM element, or jQuery object to insert before each element in the set of matched elements.</param>
/// <param name="content" type="">One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert before each element in the set of matched elements.</param>
/// <returns type="jQuery" />
/// </signature>
/// <signature>
@@ -999,7 +1006,7 @@ intellisense.annotate(jQuery.fn, {
/// <summary>Selects all elements of type checkbox.</summary>
},
'checked': function() {
/// <summary>Matches all elements that are checked.</summary>
/// <summary>Matches all elements that are checked or selected.</summary>
},
'child': function() {
/// <signature>
@@ -1095,7 +1102,7 @@ intellisense.annotate(jQuery.fn, {
/// <signature>
/// <summary>Set one or more CSS properties for the set of matched elements.</summary>
/// <param name="propertyName" type="String">A CSS property name.</param>
/// <param name="value" type="Number">A value to set for the property.</param>
/// <param name="value" type="">A value to set for the property.</param>
/// <returns type="jQuery" />
/// </signature>
/// <signature>
@@ -1296,14 +1303,14 @@ intellisense.annotate(jQuery.fn, {
'fadeTo': function() {
/// <signature>
/// <summary>Adjust the opacity of the matched elements.</summary>
/// <param name="duration" type="Number">A string or number determining how long the animation will run.</param>
/// <param name="duration" type="">A string or number determining how long the animation will run.</param>
/// <param name="opacity" type="Number">A number between 0 and 1 denoting the target opacity.</param>
/// <param name="complete" type="Function">A function to call once the animation is complete.</param>
/// <returns type="jQuery" />
/// </signature>
/// <signature>
/// <summary>Adjust the opacity of the matched elements.</summary>
/// <param name="duration" type="Number">A string or number determining how long the animation will run.</param>
/// <param name="duration" type="">A string or number determining how long the animation will run.</param>
/// <param name="opacity" type="Number">A number between 0 and 1 denoting the target opacity.</param>
/// <param name="easing" type="String">A string indicating which easing function to use for the transition.</param>
/// <param name="complete" type="Function">A function to call once the animation is complete.</param>
@@ -1423,9 +1430,9 @@ intellisense.annotate(jQuery.fn, {
},
'get': function() {
/// <signature>
/// <summary>Retrieve the DOM elements matched by the jQuery object.</summary>
/// <summary>Retrieve one of the DOM elements matched by the jQuery object.</summary>
/// <param name="index" type="Number">A zero-based integer indicating which element to retrieve.</param>
/// <returns type="Element, Array" />
/// <returns type="Element" />
/// </signature>
},
'gt': function() {
@@ -1433,6 +1440,10 @@ intellisense.annotate(jQuery.fn, {
/// <summary>Select all elements at an index greater than index within the matched set.</summary>
/// <param name="index" type="Number">Zero-based index.</param>
/// </signature>
/// <signature>
/// <summary>Select all elements at an index greater than index within the matched set.</summary>
/// <param name="-index" type="Number">Zero-based index, counting backwards from the last element.</param>
/// </signature>
},
'has': function() {
/// <signature>
@@ -1459,7 +1470,7 @@ intellisense.annotate(jQuery.fn, {
'height': function() {
/// <signature>
/// <summary>Set the CSS height of every matched element.</summary>
/// <param name="value" type="Number">An integer representing the number of pixels, or an integer with an optional unit of measure appended (as a string).</param>
/// <param name="value" type="">An integer representing the number of pixels, or an integer with an optional unit of measure appended (as a string).</param>
/// <returns type="jQuery" />
/// </signature>
/// <signature>
@@ -1502,7 +1513,7 @@ intellisense.annotate(jQuery.fn, {
'html': function() {
/// <signature>
/// <summary>Set the HTML contents of each element in the set of matched elements.</summary>
/// <param name="htmlString" type="String">A string of HTML to set as the content of each matched element.</param>
/// <param name="htmlString" type="htmlString">A string of HTML to set as the content of each matched element.</param>
/// <returns type="jQuery" />
/// </signature>
/// <signature>
@@ -1528,7 +1539,7 @@ intellisense.annotate(jQuery.fn, {
/// </signature>
/// <signature>
/// <summary>Search for a given element from among the matched elements.</summary>
/// <param name="element" type="jQuery">The DOM element or first element within the jQuery object to look for.</param>
/// <param name="element" type="">The DOM element or first element within the jQuery object to look for.</param>
/// <returns type="Number" />
/// </signature>
},
@@ -1536,7 +1547,7 @@ intellisense.annotate(jQuery.fn, {
/// <signature>
/// <summary>Accepts a string containing a CSS selector which is then used to match a set of elements.</summary>
/// <param name="selector" type="String">A string containing a selector expression</param>
/// <param name="context" type="jQuery">A DOM Element, Document, or jQuery to use as context</param>
/// <param name="context" type="">A DOM Element, Document, or jQuery to use as context</param>
/// <returns type="jQuery" />
/// </signature>
/// <signature>
@@ -1562,11 +1573,11 @@ intellisense.annotate(jQuery.fn, {
},
'innerHeight': function() {
/// <summary>Get the current computed height for the first element in the set of matched elements, including padding but not border.</summary>
/// <returns type="Integer" />
/// <returns type="Number" />
},
'innerWidth': function() {
/// <summary>Get the current computed width for the first element in the set of matched elements, including padding but not border.</summary>
/// <returns type="Integer" />
/// <returns type="Number" />
},
'input': function() {
/// <summary>Selects all input, textarea, select and button elements.</summary>
@@ -1574,14 +1585,14 @@ intellisense.annotate(jQuery.fn, {
'insertAfter': function() {
/// <signature>
/// <summary>Insert every element in the set of matched elements after the target.</summary>
/// <param name="target" type="jQuery">A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted after the element(s) specified by this parameter.</param>
/// <param name="target" type="">A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted after the element(s) specified by this parameter.</param>
/// <returns type="jQuery" />
/// </signature>
},
'insertBefore': function() {
/// <signature>
/// <summary>Insert every element in the set of matched elements before the target.</summary>
/// <param name="target" type="jQuery">A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted before the element(s) specified by this parameter.</param>
/// <param name="target" type="">A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted before the element(s) specified by this parameter.</param>
/// <returns type="jQuery" />
/// </signature>
},
@@ -1707,6 +1718,10 @@ intellisense.annotate(jQuery.fn, {
/// <summary>Select all elements at an index less than index within the matched set.</summary>
/// <param name="index" type="Number">Zero-based index.</param>
/// </signature>
/// <signature>
/// <summary>Select all elements at an index less than index within the matched set.</summary>
/// <param name="-index" type="Number">Zero-based index, counting backwards from the last element.</param>
/// </signature>
},
'map': function() {
/// <signature>
@@ -1987,14 +2002,14 @@ intellisense.annotate(jQuery.fn, {
/// <signature>
/// <summary>Get the current computed height for the first element in the set of matched elements, including padding, border, and optionally margin. Returns an integer (without "px") representation of the value or null if called on an empty set of elements.</summary>
/// <param name="includeMargin" type="Boolean">A Boolean indicating whether to include the element's margin in the calculation.</param>
/// <returns type="Integer" />
/// <returns type="Number" />
/// </signature>
},
'outerWidth': function() {
/// <signature>
/// <summary>Get the current computed width for the first element in the set of matched elements, including padding and border.</summary>
/// <param name="includeMargin" type="Boolean">A Boolean indicating whether to include the element's margin in the calculation.</param>
/// <returns type="Integer" />
/// <returns type="Number" />
/// </signature>
},
'parent': function() {
@@ -2035,8 +2050,8 @@ intellisense.annotate(jQuery.fn, {
'prepend': function() {
/// <signature>
/// <summary>Insert content, specified by the parameter, to the beginning of each element in the set of matched elements.</summary>
/// <param name="content" type="jQuery">DOM element, array of elements, HTML string, or jQuery object to insert at the beginning of each element in the set of matched elements.</param>
/// <param name="content" type="jQuery">One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the beginning of each element in the set of matched elements.</param>
/// <param name="content" type="">DOM element, array of elements, HTML string, or jQuery object to insert at the beginning of each element in the set of matched elements.</param>
/// <param name="content" type="">One or more additional DOM elements, arrays of elements, HTML strings, or jQuery objects to insert at the beginning of each element in the set of matched elements.</param>
/// <returns type="jQuery" />
/// </signature>
/// <signature>
@@ -2048,7 +2063,7 @@ intellisense.annotate(jQuery.fn, {
'prependTo': function() {
/// <signature>
/// <summary>Insert every element in the set of matched elements to the beginning of the target.</summary>
/// <param name="target" type="jQuery">A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted at the beginning of the element(s) specified by this parameter.</param>
/// <param name="target" type="">A selector, element, HTML string, or jQuery object; the matched set of elements will be inserted at the beginning of the element(s) specified by this parameter.</param>
/// <returns type="jQuery" />
/// </signature>
},
@@ -2092,7 +2107,7 @@ intellisense.annotate(jQuery.fn, {
/// <signature>
/// <summary>Set one or more properties for the set of matched elements.</summary>
/// <param name="propertyName" type="String">The name of the property to set.</param>
/// <param name="value" type="Boolean">A value to set for the property.</param>
/// <param name="value" type="">A value to set for the property.</param>
/// <returns type="jQuery" />
/// </signature>
/// <signature>
@@ -2179,7 +2194,7 @@ intellisense.annotate(jQuery.fn, {
/// </signature>
/// <signature>
/// <summary>Remove a previously-stored piece of data.</summary>
/// <param name="list" type="String">An array or space-separated string naming the pieces of data to delete.</param>
/// <param name="list" type="">An array or space-separated string naming the pieces of data to delete.</param>
/// <returns type="jQuery" />
/// </signature>
},
@@ -2193,14 +2208,14 @@ intellisense.annotate(jQuery.fn, {
'replaceAll': function() {
/// <signature>
/// <summary>Replace each target element with the set of matched elements.</summary>
/// <param name="target" type="String">A selector expression indicating which element(s) to replace.</param>
/// <param name="target" type="">A selector string, jQuery object, or DOM element reference indicating which element(s) to replace.</param>
/// <returns type="jQuery" />
/// </signature>
},
'replaceWith': function() {
/// <signature>
/// <summary>Replace each element in the set of matched elements with the provided new content and return the set of elements that was removed.</summary>
/// <param name="newContent" type="jQuery">The content to insert. May be an HTML string, DOM element, or jQuery object.</param>
/// <param name="newContent" type="">The content to insert. May be an HTML string, DOM element, or jQuery object.</param>
/// <returns type="jQuery" />
/// </signature>
/// <signature>
@@ -2226,10 +2241,7 @@ intellisense.annotate(jQuery.fn, {
/// </signature>
},
'root': function() {
/// <signature>
/// <summary>Selects the element that is the root of the document.</summary>
/// <param name="index" type="String">The index of each child to match, starting with 1, the string even or odd, or an equation ( eg. :nth-last-child(even), :nth-last-child(4n) )</param>
/// </signature>
/// <summary>Selects the element that is the root of the document.</summary>
},
'scroll': function() {
/// <signature>
@@ -2275,7 +2287,7 @@ intellisense.annotate(jQuery.fn, {
/// <summary>Selects all elements that are selected.</summary>
},
'selector': function() {
/// <summary>A selector representing selector originally passed to jQuery().</summary>
/// <summary>A selector representing selector passed to jQuery(), if any, when creating the original set.</summary>
/// <returns type="String" />
},
'serialize': function() {
@@ -2485,12 +2497,13 @@ intellisense.annotate(jQuery.fn, {
/// <signature>
/// <summary>Execute all handlers and behaviors attached to the matched elements for the given event type.</summary>
/// <param name="eventType" type="String">A string containing a JavaScript event type, such as click or submit.</param>
/// <param name="extraParameters" type="PlainObject">Additional parameters to pass along to the event handler.</param>
/// <param name="extraParameters" type="">Additional parameters to pass along to the event handler.</param>
/// <returns type="jQuery" />
/// </signature>
/// <signature>
/// <summary>Execute all handlers and behaviors attached to the matched elements for the given event type.</summary>
/// <param name="event" type="Event">A jQuery.Event object.</param>
/// <param name="extraParameters" type="">Additional parameters to pass along to the event handler.</param>
/// <returns type="jQuery" />
/// </signature>
},
@@ -2567,7 +2580,7 @@ intellisense.annotate(jQuery.fn, {
'val': function() {
/// <signature>
/// <summary>Set the value of each element in the set of matched elements.</summary>
/// <param name="value" type="Array">A string of text or an array of strings corresponding to the value of each matched element to set as selected/checked.</param>
/// <param name="value" type="">A string of text or an array of strings corresponding to the value of each matched element to set as selected/checked.</param>
/// <returns type="jQuery" />
/// </signature>
/// <signature>
@@ -2582,7 +2595,7 @@ intellisense.annotate(jQuery.fn, {
'width': function() {
/// <signature>
/// <summary>Set the CSS width of each element in the set of matched elements.</summary>
/// <param name="value" type="Number">An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).</param>
/// <param name="value" type="">An integer representing the number of pixels, or an integer along with an optional unit of measure appended (as a string).</param>
/// <returns type="jQuery" />
/// </signature>
/// <signature>
@@ -2594,7 +2607,7 @@ intellisense.annotate(jQuery.fn, {
'wrap': function() {
/// <signature>
/// <summary>Wrap an HTML structure around each element in the set of matched elements.</summary>
/// <param name="wrappingElement" type="jQuery">An HTML snippet, selector expression, jQuery object, or DOM element specifying the structure to wrap around the matched elements.</param>
/// <param name="wrappingElement" type="">A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements.</param>
/// <returns type="jQuery" />
/// </signature>
/// <signature>
@@ -2606,7 +2619,7 @@ intellisense.annotate(jQuery.fn, {
'wrapAll': function() {
/// <signature>
/// <summary>Wrap an HTML structure around all elements in the set of matched elements.</summary>
/// <param name="wrappingElement" type="jQuery">An HTML snippet, selector expression, jQuery object, or DOM element specifying the structure to wrap around the matched elements.</param>
/// <param name="wrappingElement" type="">A selector, element, HTML string, or jQuery object specifying the structure to wrap around the matched elements.</param>
/// <returns type="jQuery" />
/// </signature>
},
@@ -2629,7 +2642,7 @@ intellisense.annotate(window, {
/// <signature>
/// <summary>Accepts a string containing a CSS selector which is then used to match a set of elements.</summary>
/// <param name="selector" type="String">A string containing a selector expression</param>
/// <param name="context" type="jQuery">A DOM Element, Document, or jQuery to use as context</param>
/// <param name="context" type="">A DOM Element, Document, or jQuery to use as context</param>
/// <returns type="jQuery" />
/// </signature>
/// <signature>
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
+5
View File
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
+5 -5
View File
@@ -40,10 +40,10 @@
$el = $(this);
$($el).height('auto');
topPostion = $el.position().top;
topPostion = $el.position().top;
if (currentRowStart != topPostion) {
for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) {
for (currentDiv = 0; currentDiv < rowDivs.length; currentDiv++) {
rowDivs[currentDiv].height(currentTallest);
}
rowDivs.length = 0; // empty the array
@@ -54,7 +54,7 @@
rowDivs.push($el);
currentTallest = (currentTallest < $el.height()) ? ($el.height()) : (currentTallest);
}
for (currentDiv = 0 ; currentDiv < rowDivs.length ; currentDiv++) {
for (currentDiv = 0; currentDiv < rowDivs.length; currentDiv++) {
rowDivs[currentDiv].height(currentTallest);
}
});
@@ -84,12 +84,12 @@
var heightIsSet;
// On load
$(window).load(function() {
$(window).on('load', function() {
equalHeightChecker();
});
// and on resize
$(window).resize(function(){
$(window).on('resize', function(){
equalHeightChecker();
});
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large Load Diff
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long