mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-17 19:08:18 -07:00
update confirm
This commit is contained in:
parent
166a16b60d
commit
1ea5d5f307
@ -15,12 +15,12 @@
|
||||
},
|
||||
"devDependencies": {},
|
||||
"ignore": [],
|
||||
"version": "1.0.92",
|
||||
"_release": "1.0.92",
|
||||
"version": "1.0.94",
|
||||
"_release": "1.0.94",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "1.0.92",
|
||||
"commit": "31046563fca4f28a30c1ae6f6d124a2714649398"
|
||||
"tag": "1.0.94",
|
||||
"commit": "5a8fd76f8b8d8096f9aca548127e8d0c2bfe81f9"
|
||||
},
|
||||
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
|
||||
"_target": "~1.0.0",
|
||||
|
@ -17,15 +17,15 @@ define(['layoutManager', 'dialogText'], function (layoutManager, dialogText) {
|
||||
id: 'cancel'
|
||||
});
|
||||
|
||||
actionsheet.show({
|
||||
actionSheet.show({
|
||||
|
||||
title: options.title,
|
||||
title: options.text,
|
||||
items: items
|
||||
|
||||
}).then(function (id) {
|
||||
|
||||
switch (id) {
|
||||
|
||||
|
||||
case 'ok':
|
||||
resolve();
|
||||
break;
|
||||
@ -39,17 +39,79 @@ define(['layoutManager', 'dialogText'], function (layoutManager, dialogText) {
|
||||
});
|
||||
}
|
||||
|
||||
function showConfirm(options) {
|
||||
function showConfirmInternal(options, paperdialoghelper, resolve, reject) {
|
||||
|
||||
var dialogOptions = {
|
||||
removeOnClose: true
|
||||
};
|
||||
|
||||
var backButton = false;
|
||||
|
||||
if (layoutManager.tv) {
|
||||
dialogOptions.size = 'fullscreen';
|
||||
backButton = true;
|
||||
dialogOptions.autoFocus = true;
|
||||
} else {
|
||||
|
||||
dialogOptions.modal = false;
|
||||
dialogOptions.entryAnimationDuration = 160;
|
||||
dialogOptions.exitAnimationDuration = 200;
|
||||
dialogOptions.autoFocus = false;
|
||||
}
|
||||
|
||||
var dlg = paperdialoghelper.createDialog(dialogOptions);
|
||||
var html = '';
|
||||
|
||||
if (options.title) {
|
||||
html += '<h2>' + options.title + '</h2>';
|
||||
}
|
||||
|
||||
if (options.text) {
|
||||
html += '<div>' + options.text + '</div>';
|
||||
}
|
||||
|
||||
html += '<div class="buttons">';
|
||||
|
||||
html += '<paper-button class="btnConfirm" dialog-confirm autofocus>' + dialogText.get('Ok') + '</paper-button>';
|
||||
|
||||
html += '<paper-button dialog-dismiss>' + dialogText.get('Cancel') + '</paper-button>';
|
||||
|
||||
html += '</div>';
|
||||
|
||||
dlg.innerHTML = html;
|
||||
document.body.appendChild(dlg);
|
||||
|
||||
paperdialoghelper.open(dlg).then(function () {
|
||||
|
||||
var confirmed = dlg.closingReason.confirmed;
|
||||
|
||||
if (confirmed) {
|
||||
resolve();
|
||||
} else {
|
||||
reject();
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
return function (options) {
|
||||
function showConfirm(options) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
|
||||
if (typeof options === 'string') {
|
||||
require(['paperdialoghelper', 'paper-button'], function (paperdialoghelper) {
|
||||
showConfirmInternal(options, paperdialoghelper, resolve, reject);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
return function (text, title) {
|
||||
|
||||
var options;
|
||||
if (typeof text === 'string') {
|
||||
options = {
|
||||
title: '',
|
||||
text: options
|
||||
title: title,
|
||||
text: text
|
||||
};
|
||||
} else {
|
||||
options = text;
|
||||
}
|
||||
|
||||
if (layoutManager.tv) {
|
||||
|
@ -31,14 +31,14 @@
|
||||
"web-component-tester": "*",
|
||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||
},
|
||||
"homepage": "https://github.com/polymerelements/iron-icon",
|
||||
"homepage": "https://github.com/PolymerElements/iron-icon",
|
||||
"_release": "1.0.7",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.0.7",
|
||||
"commit": "6f4d152dc3998a6cc12a5a585a654f893dc99381"
|
||||
},
|
||||
"_source": "git://github.com/polymerelements/iron-icon.git",
|
||||
"_source": "git://github.com/PolymerElements/iron-icon.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "polymerelements/iron-icon"
|
||||
"_originalSource": "PolymerElements/iron-icon"
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "iron-overlay-behavior",
|
||||
"version": "1.3.3",
|
||||
"version": "1.4.0",
|
||||
"license": "http://polymer.github.io/LICENSE.txt",
|
||||
"description": "Provides a behavior for making an element an overlay",
|
||||
"private": true,
|
||||
@ -19,6 +19,7 @@
|
||||
"url": "git://github.com/PolymerElements/iron-overlay-behavior.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"iron-a11y-keys-behavior": "PolymerElements/iron-a11y-keys-behavior#^1.0.0",
|
||||
"iron-fit-behavior": "PolymerElements/iron-fit-behavior#^1.0.0",
|
||||
"iron-resizable-behavior": "PolymerElements/iron-resizable-behavior#^1.0.0",
|
||||
"polymer": "Polymer/polymer#^1.0.0"
|
||||
@ -34,11 +35,11 @@
|
||||
},
|
||||
"ignore": [],
|
||||
"homepage": "https://github.com/polymerelements/iron-overlay-behavior",
|
||||
"_release": "1.3.3",
|
||||
"_release": "1.4.0",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "v1.3.3",
|
||||
"commit": "7279b3bedd0f0dd70dbfb3d7557d1f49c7432941"
|
||||
"tag": "v1.4.0",
|
||||
"commit": "9731850e81b004723f0c1878a85479f7aa9cfda1"
|
||||
},
|
||||
"_source": "git://github.com/polymerelements/iron-overlay-behavior.git",
|
||||
"_target": "^1.0.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "iron-overlay-behavior",
|
||||
"version": "1.3.3",
|
||||
"version": "1.4.0",
|
||||
"license": "http://polymer.github.io/LICENSE.txt",
|
||||
"description": "Provides a behavior for making an element an overlay",
|
||||
"private": true,
|
||||
@ -19,6 +19,7 @@
|
||||
"url": "git://github.com/PolymerElements/iron-overlay-behavior.git"
|
||||
},
|
||||
"dependencies": {
|
||||
"iron-a11y-keys-behavior": "PolymerElements/iron-a11y-keys-behavior#^1.0.0",
|
||||
"iron-fit-behavior": "PolymerElements/iron-fit-behavior#^1.0.0",
|
||||
"iron-resizable-behavior": "PolymerElements/iron-resizable-behavior#^1.0.0",
|
||||
"polymer": "Polymer/polymer#^1.0.0"
|
||||
|
@ -9,6 +9,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
-->
|
||||
|
||||
<link rel="import" href="../polymer/polymer.html">
|
||||
<link rel="import" href="../iron-a11y-keys-behavior/iron-a11y-keys-behavior.html">
|
||||
<link rel="import" href="../iron-fit-behavior/iron-fit-behavior.html">
|
||||
<link rel="import" href="../iron-resizable-behavior/iron-resizable-behavior.html">
|
||||
<link rel="import" href="iron-overlay-backdrop.html">
|
||||
@ -118,6 +119,15 @@ context. You should place this element as a child of `<body>` whenever possible.
|
||||
type: Object
|
||||
},
|
||||
|
||||
/**
|
||||
* The HTMLElement that will be firing relevant KeyboardEvents.
|
||||
* Used for capturing esc and tab. Overridden from `IronA11yKeysBehavior`.
|
||||
*/
|
||||
keyEventTarget: {
|
||||
type: Object,
|
||||
value: document
|
||||
},
|
||||
|
||||
_manager: {
|
||||
type: Object,
|
||||
value: Polymer.IronOverlayManager
|
||||
@ -130,13 +140,6 @@ context. You should place this element as a child of `<body>` whenever possible.
|
||||
}
|
||||
},
|
||||
|
||||
_boundOnCaptureKeydown: {
|
||||
type: Function,
|
||||
value: function() {
|
||||
return this._onCaptureKeydown.bind(this);
|
||||
}
|
||||
},
|
||||
|
||||
_boundOnCaptureFocus: {
|
||||
type: Function,
|
||||
value: function() {
|
||||
@ -144,33 +147,99 @@ context. You should place this element as a child of `<body>` whenever possible.
|
||||
}
|
||||
},
|
||||
|
||||
/** @type {?Node} */
|
||||
/**
|
||||
* The node being focused.
|
||||
* @type {?Node}
|
||||
*/
|
||||
_focusedChild: {
|
||||
type: Object
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
keyBindings: {
|
||||
'esc': '__onEsc',
|
||||
'tab': '__onTab'
|
||||
},
|
||||
|
||||
listeners: {
|
||||
'iron-resize': '_onIronResize'
|
||||
},
|
||||
|
||||
/**
|
||||
* The backdrop element.
|
||||
* @type Node
|
||||
* @type {Node}
|
||||
*/
|
||||
get backdropElement() {
|
||||
return this._manager.backdropElement;
|
||||
},
|
||||
|
||||
/**
|
||||
* Returns the node to give focus to.
|
||||
* @type {Node}
|
||||
*/
|
||||
get _focusNode() {
|
||||
return this._focusedChild || Polymer.dom(this).querySelector('[autofocus]') || this;
|
||||
return this._focusedChild || Polymer.dom(this).querySelector('[autofocus]') || this.__firstFocusableNode || this;
|
||||
},
|
||||
|
||||
/**
|
||||
* Array of nodes that can receive focus (overlay included), ordered by `tabindex`.
|
||||
* This is used to retrieve which is the first and last focusable nodes in order
|
||||
* to wrap the focus for overlays `with-backdrop`.
|
||||
*
|
||||
* If you know what is your content (specifically the first and last focusable children),
|
||||
* you can override this method to return only `[firstFocusable, lastFocusable];`
|
||||
* @type {[Node]}
|
||||
* @protected
|
||||
*/
|
||||
get _focusableNodes() {
|
||||
// Elements that can be focused even if they have [disabled] attribute.
|
||||
var FOCUSABLE_WITH_DISABLED = [
|
||||
'a[href]',
|
||||
'area[href]',
|
||||
'iframe',
|
||||
'[tabindex]',
|
||||
'[contentEditable=true]'
|
||||
];
|
||||
|
||||
// Elements that cannot be focused if they have [disabled] attribute.
|
||||
var FOCUSABLE_WITHOUT_DISABLED = [
|
||||
'input',
|
||||
'select',
|
||||
'textarea',
|
||||
'button'
|
||||
];
|
||||
|
||||
// Discard elements with tabindex=-1 (makes them not focusable).
|
||||
var selector = FOCUSABLE_WITH_DISABLED.join(':not([tabindex="-1"]),') +
|
||||
':not([tabindex="-1"]),' +
|
||||
FOCUSABLE_WITHOUT_DISABLED.join(':not([disabled]):not([tabindex="-1"]),') +
|
||||
':not([disabled]):not([tabindex="-1"])';
|
||||
|
||||
var focusables = Polymer.dom(this).querySelectorAll(selector);
|
||||
if (this.tabIndex >= 0) {
|
||||
// Insert at the beginning because we might have all elements with tabIndex = 0,
|
||||
// and the overlay should be the first of the list.
|
||||
focusables.splice(0, 0, this);
|
||||
}
|
||||
// Sort by tabindex.
|
||||
return focusables.sort(function (a, b) {
|
||||
if (a.tabIndex === b.tabIndex) {
|
||||
return 0;
|
||||
}
|
||||
if (a.tabIndex === 0 || a.tabIndex > b.tabIndex) {
|
||||
return 1;
|
||||
}
|
||||
return -1;
|
||||
});
|
||||
},
|
||||
|
||||
ready: function() {
|
||||
// with-backdrop need tabindex to be set in order to trap the focus.
|
||||
// If it is not set, IronOverlayBehavior will set it, and remove it if with-backdrop = false.
|
||||
this.__shouldRemoveTabIndex = false;
|
||||
// Used for wrapping the focus on TAB / Shift+TAB.
|
||||
this.__firstFocusableNode = this.__lastFocusableNode = null;
|
||||
this._ensureSetup();
|
||||
},
|
||||
|
||||
@ -321,9 +390,8 @@ context. You should place this element as a child of `<body>` whenever possible.
|
||||
}
|
||||
},
|
||||
|
||||
_toggleListeners: function () {
|
||||
_toggleListeners: function() {
|
||||
this._toggleListener(this.opened, document, 'tap', this._boundOnCaptureClick, true);
|
||||
this._toggleListener(this.opened, document, 'keydown', this._boundOnCaptureKeydown, true);
|
||||
this._toggleListener(this.opened, document, 'focus', this._boundOnCaptureFocus, true);
|
||||
},
|
||||
|
||||
@ -425,18 +493,8 @@ context. You should place this element as a child of `<body>` whenever possible.
|
||||
}
|
||||
},
|
||||
|
||||
_onCaptureKeydown: function(event) {
|
||||
var ESC = 27;
|
||||
if (this._manager.currentOverlay() === this &&
|
||||
!this.noCancelOnEscKey &&
|
||||
event.keyCode === ESC) {
|
||||
this.cancel(event);
|
||||
}
|
||||
},
|
||||
|
||||
_onCaptureFocus: function (event) {
|
||||
if (this._manager.currentOverlay() === this &&
|
||||
this.withBackdrop) {
|
||||
if (this._manager.currentOverlay() === this && this.withBackdrop) {
|
||||
var path = Polymer.dom(event).path;
|
||||
if (path.indexOf(this) === -1) {
|
||||
event.stopPropagation();
|
||||
@ -462,6 +520,37 @@ context. You should place this element as a child of `<body>` whenever possible.
|
||||
if (this.opened) {
|
||||
this.notifyResize();
|
||||
}
|
||||
// Store it so we don't query too much.
|
||||
var focusableNodes = this._focusableNodes;
|
||||
this.__firstFocusableNode = focusableNodes[0];
|
||||
this.__lastFocusableNode = focusableNodes[focusableNodes.length - 1];
|
||||
},
|
||||
|
||||
__onEsc: function(event) {
|
||||
// Not opened or not on top, so return.
|
||||
if (this._manager.currentOverlay() !== this) {
|
||||
return;
|
||||
}
|
||||
if (!this.noCancelOnEscKey) {
|
||||
this.cancel(event);
|
||||
}
|
||||
},
|
||||
|
||||
__onTab: function(event) {
|
||||
// Not opened or not on top, so return.
|
||||
if (this._manager.currentOverlay() !== this) {
|
||||
return;
|
||||
}
|
||||
// TAB wraps from last to first focusable.
|
||||
// Shift + TAB wraps from first to last focusable.
|
||||
var shift = event.detail.keyboardEvent.shiftKey;
|
||||
var nodeToCheck = shift ? this.__firstFocusableNode : this.__lastFocusableNode;
|
||||
var nodeToSet = shift ? this.__lastFocusableNode : this.__firstFocusableNode;
|
||||
if (this.withBackdrop && this._focusedChild === nodeToCheck) {
|
||||
// We set here the _focusedChild so that _onCaptureFocus will handle the
|
||||
// wrapping of the focus (the next event after tab is focus).
|
||||
this._focusedChild = nodeToSet;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
@ -484,7 +573,7 @@ context. You should place this element as a child of `<body>` whenever possible.
|
||||
};
|
||||
|
||||
/** @polymerBehavior */
|
||||
Polymer.IronOverlayBehavior = [Polymer.IronFitBehavior, Polymer.IronResizableBehavior, Polymer.IronOverlayBehaviorImpl];
|
||||
Polymer.IronOverlayBehavior = [Polymer.IronA11yKeysBehavior, Polymer.IronFitBehavior, Polymer.IronResizableBehavior, Polymer.IronOverlayBehaviorImpl];
|
||||
|
||||
|
||||
</script>
|
||||
|
@ -63,6 +63,33 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
</template>
|
||||
</test-fixture>
|
||||
|
||||
<test-fixture id="focusables">
|
||||
<template>
|
||||
<test-overlay tabindex="-1">
|
||||
<h2>Focusables (no tabindex)</h2>
|
||||
<div>
|
||||
<input class="focusable1" placeholder="1 (nested)">
|
||||
</div>
|
||||
<button class="focusable2">1</button>
|
||||
<button disabled> disabled button</button>
|
||||
<div tabindex="-1">not focusable</div>
|
||||
<button class="focusable3">2</button>
|
||||
</test-overlay>
|
||||
<test-overlay tabindex="-1">
|
||||
<h2>Focusables (with tabindex)</h2>
|
||||
<div tabindex="-1">not focusable</div>
|
||||
<div tabindex="3" class="focusable3">3</div>
|
||||
<div tabindex="4" class="focusable4">4</div>
|
||||
<div tabindex="5" class="focusable5">5</div>
|
||||
<div>
|
||||
<div tabindex="1" class="focusable1">1 (nested)</div>
|
||||
<div tabindex="6" class="focusable6">6 (nested)</div>
|
||||
</div>
|
||||
<div tabindex="2" class="focusable2">2</div>
|
||||
</test-overlay>
|
||||
</template>
|
||||
</test-fixture>
|
||||
|
||||
<test-fixture id="backdrop">
|
||||
<template>
|
||||
<test-overlay with-backdrop>
|
||||
@ -391,6 +418,86 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||
|
||||
});
|
||||
|
||||
suite('focusable nodes', function() {
|
||||
var overlay, overlayWithTabIndex;
|
||||
|
||||
setup(function() {
|
||||
var f = fixture('focusables');
|
||||
overlay = f[0];
|
||||
overlayWithTabIndex = f[1];
|
||||
});
|
||||
|
||||
test('_focusableNodes returns nodes that are focusable', function() {
|
||||
var focusableNodes = overlay._focusableNodes;
|
||||
assert.equal(focusableNodes.length, 3, '3 nodes are focusable');
|
||||
assert.equal(focusableNodes[0], Polymer.dom(overlay).querySelector('.focusable1'));
|
||||
assert.equal(focusableNodes[1], Polymer.dom(overlay).querySelector('.focusable2'));
|
||||
assert.equal(focusableNodes[2], Polymer.dom(overlay).querySelector('.focusable3'));
|
||||
});
|
||||
|
||||
test('_focusableNodes includes overlay if it has a valid tabindex', function() {
|
||||
overlay.setAttribute('tabindex', '0');
|
||||
var focusableNodes = overlay._focusableNodes;
|
||||
assert.equal(focusableNodes.length, 4, '4 focusable nodes');
|
||||
assert.notEqual(focusableNodes.indexOf(overlay), -1, 'overlay is included');
|
||||
});
|
||||
|
||||
test('_focusableNodes respects the tabindex order', function() {
|
||||
var focusableNodes = overlayWithTabIndex._focusableNodes;
|
||||
assert.equal(focusableNodes.length, 6, '6 nodes are focusable');
|
||||
assert.equal(focusableNodes[0], Polymer.dom(overlayWithTabIndex).querySelector('.focusable1'));
|
||||
assert.equal(focusableNodes[1], Polymer.dom(overlayWithTabIndex).querySelector('.focusable2'));
|
||||
assert.equal(focusableNodes[2], Polymer.dom(overlayWithTabIndex).querySelector('.focusable3'));
|
||||
assert.equal(focusableNodes[3], Polymer.dom(overlayWithTabIndex).querySelector('.focusable4'));
|
||||
assert.equal(focusableNodes[4], Polymer.dom(overlayWithTabIndex).querySelector('.focusable5'));
|
||||
assert.equal(focusableNodes[5], Polymer.dom(overlayWithTabIndex).querySelector('.focusable6'));
|
||||
});
|
||||
|
||||
test('first focusable is focused if no [autofocus] node is present', function(done) {
|
||||
runAfterOpen(overlay, function() {
|
||||
assert.equal(Polymer.dom(overlay).querySelector('.focusable1'), document.activeElement, 'focusable1 is focused');
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
test('with-backdrop: TAB & Shift+TAB wrap focus', function(done) {
|
||||
overlay.withBackdrop = true;
|
||||
var focusableNodes = overlay._focusableNodes;
|
||||
runAfterOpen(overlay, function() {
|
||||
// Go to last element.
|
||||
MockInteractions.focus(focusableNodes[focusableNodes.length-1]);
|
||||
// Simulate TAB & focus out of overlay.
|
||||
MockInteractions.pressAndReleaseKeyOn(document, 9);
|
||||
MockInteractions.focus(document.body);
|
||||
assert.equal(focusableNodes[0], document.activeElement, 'focus wrapped to first focusable');
|
||||
// Simulate Shift+TAB & focus out of overlay.
|
||||
MockInteractions.pressAndReleaseKeyOn(document, 9, ['shift']);
|
||||
MockInteractions.focus(document.body);
|
||||
assert.equal(focusableNodes[focusableNodes.length-1], document.activeElement, 'focus wrapped to last focusable');
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
test('with-backdrop: TAB & Shift+TAB wrap focus respecting tabindex', function(done) {
|
||||
overlayWithTabIndex.withBackdrop = true;
|
||||
var focusableNodes = overlayWithTabIndex._focusableNodes;
|
||||
runAfterOpen(overlayWithTabIndex, function() {
|
||||
// Go to last element.
|
||||
MockInteractions.focus(focusableNodes[focusableNodes.length-1]);
|
||||
// Simulate TAB & focus out of overlay.
|
||||
MockInteractions.pressAndReleaseKeyOn(document, 9);
|
||||
MockInteractions.focus(document.body);
|
||||
assert.equal(focusableNodes[0], document.activeElement, 'focus wrapped to first focusable');
|
||||
// Simulate Shift+TAB & focus out of overlay.
|
||||
MockInteractions.pressAndReleaseKeyOn(document, 9, ['shift']);
|
||||
MockInteractions.focus(document.body);
|
||||
assert.equal(focusableNodes[focusableNodes.length-1], document.activeElement, 'focus wrapped to last focusable');
|
||||
done();
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
suite('overlay with backdrop', function() {
|
||||
var overlay;
|
||||
|
||||
|
@ -36,7 +36,7 @@
|
||||
"tag": "v1.2.4",
|
||||
"commit": "1ee4e2e11a9e5118320987d93fc2c03ae9a489f4"
|
||||
},
|
||||
"_source": "git://github.com/PolymerElements/iron-selector.git",
|
||||
"_source": "git://github.com/polymerelements/iron-selector.git",
|
||||
"_target": "^1.0.0",
|
||||
"_originalSource": "PolymerElements/iron-selector"
|
||||
"_originalSource": "polymerelements/iron-selector"
|
||||
}
|
23
dashboard-ui/bower_components/jquery/.bower.json
vendored
23
dashboard-ui/bower_components/jquery/.bower.json
vendored
@ -1,14 +1,25 @@
|
||||
{
|
||||
"name": "jquery",
|
||||
"homepage": "https://github.com/jquery/jquery",
|
||||
"version": "2.2.0",
|
||||
"_release": "2.2.0",
|
||||
"main": "dist/jquery.js",
|
||||
"license": "MIT",
|
||||
"ignore": [
|
||||
"package.json"
|
||||
],
|
||||
"keywords": [
|
||||
"jquery",
|
||||
"javascript",
|
||||
"browser",
|
||||
"library"
|
||||
],
|
||||
"homepage": "https://github.com/jquery/jquery-dist",
|
||||
"version": "2.2.1",
|
||||
"_release": "2.2.1",
|
||||
"_resolution": {
|
||||
"type": "version",
|
||||
"tag": "2.2.0",
|
||||
"commit": "33b548c8e3d43b2ebdfb129fd8086a3b0c905919"
|
||||
"tag": "2.2.1",
|
||||
"commit": "788eaba2f83e7b7445c7a83a50c81c0704423874"
|
||||
},
|
||||
"_source": "git://github.com/jquery/jquery.git",
|
||||
"_source": "git://github.com/jquery/jquery-dist.git",
|
||||
"_target": ">=1.9.1",
|
||||
"_originalSource": "jquery"
|
||||
}
|
@ -1,27 +0,0 @@
|
||||
# This file is for unifying the coding style for different editors and IDEs
|
||||
# editorconfig.org
|
||||
|
||||
root = true
|
||||
|
||||
|
||||
[*]
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
|
||||
# Tabs in JS unless otherwise specified
|
||||
[**.js]
|
||||
indent_style = tab
|
||||
|
||||
[test/**.xml]
|
||||
indent_style = tab
|
||||
|
||||
[test/**.php]
|
||||
indent_style = tab
|
||||
|
||||
[test/**.html]
|
||||
indent_style = tab
|
||||
|
||||
[test/**.css]
|
||||
indent_style = tab
|
@ -1,5 +0,0 @@
|
||||
# Auto detect text files and perform LF normalization
|
||||
* text=auto
|
||||
|
||||
# JS files must always use LF for tools to work
|
||||
*.js eol=lf
|
14
dashboard-ui/bower_components/jquery/.gitignore
vendored
14
dashboard-ui/bower_components/jquery/.gitignore
vendored
@ -1,14 +0,0 @@
|
||||
.project
|
||||
.settings
|
||||
*~
|
||||
*.diff
|
||||
*.patch
|
||||
/*.html
|
||||
.DS_Store
|
||||
.bower.json
|
||||
.sizecache.json
|
||||
|
||||
/dist
|
||||
/node_modules
|
||||
|
||||
/test/node_smoke_tests/lib/ensure_iterability.js
|
10
dashboard-ui/bower_components/jquery/.jscsrc
vendored
10
dashboard-ui/bower_components/jquery/.jscsrc
vendored
@ -1,10 +0,0 @@
|
||||
{
|
||||
"preset": "jquery",
|
||||
|
||||
// remove after https://github.com/jscs-dev/node-jscs/issues/1685
|
||||
// and https://github.com/jscs-dev/node-jscs/issues/1686
|
||||
"requireCapitalizedComments": null,
|
||||
|
||||
"excludeFiles": [ "external", "src/intro.js", "src/outro.js",
|
||||
"test/node_smoke_tests/lib/ensure_iterability.js", "node_modules" ]
|
||||
}
|
@ -1,12 +0,0 @@
|
||||
external
|
||||
src/intro.js
|
||||
src/outro.js
|
||||
test/data/jquery-1.9.1.js
|
||||
test/data/badcall.js
|
||||
test/data/badjson.js
|
||||
test/data/json_obj.js
|
||||
test/data/readywaitasset.js
|
||||
test/data/readywaitloader.js
|
||||
test/data/support/csp.js
|
||||
test/data/support/getComputedSupport.js
|
||||
test/node_smoke_tests/lib/ensure_iterability.js
|
14
dashboard-ui/bower_components/jquery/.jshintrc
vendored
14
dashboard-ui/bower_components/jquery/.jshintrc
vendored
@ -1,14 +0,0 @@
|
||||
{
|
||||
"boss": true,
|
||||
"curly": true,
|
||||
"eqeqeq": true,
|
||||
"eqnull": true,
|
||||
"expr": true,
|
||||
"immed": true,
|
||||
"noarg": true,
|
||||
"quotmark": "double",
|
||||
"undef": true,
|
||||
"unused": true,
|
||||
|
||||
"node": true
|
||||
}
|
104
dashboard-ui/bower_components/jquery/.mailmap
vendored
104
dashboard-ui/bower_components/jquery/.mailmap
vendored
@ -1,104 +0,0 @@
|
||||
Adam Coulombe <me@adam.co> <adamcoulombe187@hotmail.com>
|
||||
Adam J. Sontag <ajpiano@ajpiano.com>
|
||||
Alexander Farkas <info@corrupt-system.de>
|
||||
Alexander Farkas <info@corrupt-system.de> <a.farkas.pm@googlemail.com>
|
||||
Alexis Abril <me@alexisabril.com> <alexis.abril@gmail.com>
|
||||
Andrew E Monat <amonat@gmail.com>
|
||||
Anton Matzneller <obhvsbypqghgc@gmail.com>
|
||||
Anton Matzneller <obhvsbypqghgc@gmail.com> <haskell_noob-github@yahoo.de>
|
||||
Batiste Bieler <batiste.bieler@gmail.com>
|
||||
Benjamin Truyman <bentruyman@gmail.com>
|
||||
Brandon Aaron <brandon.aaron@gmail.com>
|
||||
Carl Danley <carldanley@gmail.com>
|
||||
Carl Fürstenberg <azatoth@gmail.com>
|
||||
Carl Fürstenberg <azatoth@gmail.com> <carl@excito.com>
|
||||
Charles McNulty <cmcnulty@kznf.com>
|
||||
Christopher Jones <chris@cjqed.com> cjqed <christopherjonesqed@gmail.com>
|
||||
Colin Snover <github.com@zetafleet.com> <colin@alpha.zetafleet.com>
|
||||
Corey Frang <gnarf37@gmail.com> <gnarf@gnarf.net>
|
||||
Dan Heberden <danheberden@gmail.com>
|
||||
Daniel Chatfield <chatfielddaniel@gmail.com> <chatfielddaniel@googlemail.com>
|
||||
Daniel Gálvez <dgalvez@editablething.com>
|
||||
Danil Somsikov <danilasomsikov@gmail.com>
|
||||
Dave Methvin <dave.methvin@gmail.com>
|
||||
Dave Reed <dareed@microsoft.com>
|
||||
David Fox <dfoxinator@gmail.com> <dfox@snap-interactive.com>
|
||||
David Hong <d.hong@me.com>
|
||||
David Murdoch <david@davidmurdoch.com> <musicisair@yahoo.com>
|
||||
Devin Cooper <cooper.semantics@gmail.com> <dcooper@snap-interactive.com>
|
||||
Douglas Neiner <doug@dougneiner.com> <doug@pixelgraphics.us>
|
||||
Dmitry Gusev <dmitry.gusev@gmail.com>
|
||||
Earle Castledine <mrspeaker@gmail.com>
|
||||
Erick Ruiz de Chávez <erickrdch@gmail.com>
|
||||
Gianni Alessandro Chiappetta <gianni@runlevel6.org>
|
||||
Heungsub Lee <h@subl.ee> <lee@heungsub.net>
|
||||
Iraê Carvalho <irae@irae.pro.br>
|
||||
Isaac Z. Schlueter <i@izs.me>
|
||||
Ismail Khair <ismail.khair@gmail.com>
|
||||
James Burke <jrburke@gmail.com>
|
||||
James Padolsey <cla@padolsey.net> <jamespadolsey@gmail.com>
|
||||
Jason Bedard <jason+jquery@jbedard.ca> <github@jbedard.ca>
|
||||
Jay Merrifield <fracmak@gmail.com>
|
||||
Jay Merrifield <fracmak@gmail.com> <jmerrifiel@gannett.com>
|
||||
Jean Boussier <jean.boussier@gmail.com>
|
||||
Jephte Clain <Jephte.Clain@univ-reunion.fr>
|
||||
Jess Thrysoee <jess@thrysoee.dk>
|
||||
Joao Henrique de Andrade Bruni <joaohbruni@yahoo.com.br>
|
||||
Joe Presbrey <presbrey@gmail.com> <presbrey+jwp@gmail.com>
|
||||
John Resig <jeresig@gmail.com>
|
||||
John Resig <jeresig@gmail.com> <jeresig@Archimedes.local>
|
||||
Jordan Boesch <jboesch26@gmail.com> <jordan@boedesign.com>
|
||||
Josh Varner <josh.varner@gmail.com> <josh.varner@gmail.com>
|
||||
Julian Aubourg <aubourg.julian@gmail.com>
|
||||
Julian Aubourg <aubourg.julian@gmail.com> <j@ubourg.net>
|
||||
Julian Aubourg <aubourg.julian@gmail.com> <Julian@.(none)>
|
||||
Jörn Zaefferer <joern.zaefferer@gmail.com>
|
||||
Jörn Zaefferer <joern.zaefferer@gmail.com> <joern.zaefferer@googlemail.com>
|
||||
Jörn Zaefferer <joern.zaefferer@gmail.com> <JZA@.(none)>
|
||||
Karl Swedberg <kswedberg@gmail.com> <karl@englishrules.com>
|
||||
Klaus Hartl <klaus.hartl@gmail.com> <klaus.hartl@googlemail.com>
|
||||
Kris Borchers <kris.borchers@gmail.com>
|
||||
Lee Carpenter <elcarpie@gmail.com>
|
||||
Li Xudong <istonelee@gmail.com>
|
||||
Louis-Rémi Babé <lrbabe@gmail.com>
|
||||
Louis-Rémi Babé <lrbabe@gmail.com> <louisremi@louisremi-laptop.(none)>
|
||||
Louis-Rémi Babé <lrbabe@gmail.com> <lrbabe@lrbabe-laptop.(none)>
|
||||
Louis-Rémi Babé <lrbabe@gmail.com> <lrbabe@lrbabe-laptop>
|
||||
Marcel Greter <marcel.greter@ocbnet.ch> <mgr@rtp.ch>
|
||||
Matthias Jäggli <matthias.jaeggli@gmail.com> <matthias.jaeggli@scout24.ch>
|
||||
Michael Murray <m@murz.net> <mmurray.wa@gmail.com>
|
||||
Michał Gołębiowski <m.goleb@gmail.com>
|
||||
Michał Gołębiowski <m.goleb@gmail.com> <michal.golebiowski@laboratorium.ee>
|
||||
Mike Alsup <malsup@gmail.com>
|
||||
Nguyen Phuc Lam <ruado1987@gmail.com>
|
||||
Oleg Gaidarenko <markelog@gmail.com>
|
||||
Paul Bakaus <paul.bakaus@gmail.com> <paul.bakaus@googlemail.com>
|
||||
Rafaël Blais Masson <rafbmasson@gmail.com>
|
||||
Richard D. Worth <rdworth@gmail.com>
|
||||
Rick Waldron <waldron.rick@gmail.com>
|
||||
Rick Waldron <waldron.rick@gmail.com> <rick@bocoup.com>
|
||||
Robert Katić <robert.katic@gmail.com>
|
||||
Roman Reiß <me@silverwind.io>
|
||||
Ron Otten <r.j.g.otten@gmail.com>
|
||||
Sai Lung Wong <sai.wong@huffingtonpost.com>
|
||||
Scott González <scott.gonzalez@gmail.com> <sgonzale@sgonzale-laptop.local>
|
||||
Scott Jehl <scottjehl@gmail.com> <scott@scottjehl.com>
|
||||
Sebastian Burkhard <sebi.burkhard@gmail.com>
|
||||
Senya Pugach <upisfree@outlook.com>
|
||||
Thomas Tortorini <thomastortorini@gmail.com> Mr21
|
||||
Timmy Willison <timmywillisn@gmail.com>
|
||||
Timmy Willison <timmywillisn@gmail.com> <tim.willison@thisismedium.com>
|
||||
Timo Tijhof <krinklemail@gmail.com>
|
||||
TJ Holowaychuk <tj@vision-media.ca>
|
||||
Tom H Fuertes <tomfuertes@gmail.com>
|
||||
Tom H Fuertes <tomfuertes@gmail.com> Tom H Fuertes <TomFuertes@gmail.com>
|
||||
Tom Viner <github@viner.tv>
|
||||
Wesley Walser <waw325@gmail.com> <wwalser@atlassian.com>
|
||||
Xavi Ramirez <xavi.rmz@gmail.com>
|
||||
Xavier Montillet <xavierm02.net@gmail.com>
|
||||
Yehuda Katz <wycats@gmail.com>
|
||||
Yehuda Katz <wycats@gmail.com> <wycats@12-189-125-93.att-inc.com>
|
||||
Yehuda Katz <wycats@gmail.com> <wycats@mobile005.mycingular.net>
|
||||
Yehuda Katz <wycats@gmail.com> <wycats@Yehuda-Katz.local>
|
||||
Yiming He <yiminghe@gmail.com>
|
||||
Terry Jones <terry@jon.es> <terry@fluidinfo.com>
|
17
dashboard-ui/bower_components/jquery/.npmignore
vendored
17
dashboard-ui/bower_components/jquery/.npmignore
vendored
@ -1,17 +0,0 @@
|
||||
.jshintignore
|
||||
.jshintrc
|
||||
|
||||
/.editorconfig
|
||||
/.gitattributes
|
||||
/.jscs.json
|
||||
/.mailmap
|
||||
/.travis.yml
|
||||
|
||||
/build
|
||||
/speed
|
||||
/test
|
||||
/Gruntfile.js
|
||||
|
||||
/external/qunit
|
||||
/external/requirejs
|
||||
/external/sinon
|
@ -1,7 +0,0 @@
|
||||
language: node_js
|
||||
sudo: false
|
||||
node_js:
|
||||
- "0.10"
|
||||
- "0.12"
|
||||
- "4"
|
||||
- "5"
|
@ -273,3 +273,6 @@ Liza Ramo <liza.h.ramo@gmail.com>
|
||||
Julian Alexander Murillo <julian.alexander.murillo@gmail.com>
|
||||
Joelle Fleurantin <joasqueeniebee@gmail.com>
|
||||
Jun Sun <klsforever@gmail.com>
|
||||
Devin Wilson <dwilson6.github@gmail.com>
|
||||
Todor Prikumov <tono_pr@abv.bg>
|
||||
Zack Hall <zackhall@outlook.com>
|
||||
|
132
dashboard-ui/bower_components/jquery/CONTRIBUTING.md
vendored
132
dashboard-ui/bower_components/jquery/CONTRIBUTING.md
vendored
@ -1,132 +0,0 @@
|
||||
# Contributing to jQuery
|
||||
|
||||
1. [Getting Involved](#getting-involved)
|
||||
2. [Questions and Discussion](#questions-and-discussion)
|
||||
3. [How To Report Bugs](#how-to-report-bugs)
|
||||
4. [Tips for Bug Patching](#tips-for-bug-patching)
|
||||
|
||||
Note: This is the code development repository for *jQuery Core* only. Before opening an issue or making a pull request, be sure you're in the right place.
|
||||
* jQuery plugin issues should be reported to the author of the plugin.
|
||||
* jQuery Core API documentation issues can be filed [at the API repo](http://github.com/jquery/api.jquery.com/issues).
|
||||
* Bugs or suggestions for other jQuery Foundation projects should be filed in [their respective repos](http://github.com/jquery/).
|
||||
|
||||
## Getting Involved
|
||||
|
||||
We've put together [a short guide with tips, tricks, and ideas on getting started](http://contribute.jquery.org/open-source/). We're always looking for help identifying bugs, writing and reducing test cases, and documentation.
|
||||
|
||||
More information on how to contribute to this and other jQuery Foundation projects is at [contribute.jquery.org](http://contribute.jquery.org). Please review our [commit & pull request guide](http://contribute.jquery.org/commits-and-pull-requests/) and [style guides](http://contribute.jquery.org/style-guide/) for instructions on how to maintain a fork and submit patches. Before we can merge any pull request, we'll also need you to sign our [contributor license agreement](http://contribute.jquery.org/cla/).
|
||||
|
||||
|
||||
## Questions and Discussion
|
||||
|
||||
### Forum and IRC
|
||||
|
||||
jQuery is so popular that many developers have knowledge of its capabilities and limitations. Most questions about using jQuery can be answered on popular forums such as [Stack Overflow](http://stackoverflow.com). Please start there when you have questions, even if you think you've found a bug.
|
||||
|
||||
The jQuery Core team watches the [jQuery Development Forum](http://forum.jquery.com/developing-jquery-core). If you have longer posts or questions that can't be answered in places such as Stack Overflow, please feel free to post them there. If you think you've found a bug, please [file it in the bug tracker](#how-to-report-bugs). The Core team can be found in the [#jquery-dev](http://webchat.freenode.net/?channels=jquery-dev) IRC channel on irc.freenode.net.
|
||||
|
||||
### Weekly Status Meetings
|
||||
|
||||
The jQuery Core team has a weekly meeting to discuss the progress of current work. The meeting is held in the [#jquery-meeting](http://webchat.freenode.net/?channels=jquery-meeting) IRC channel on irc.freenode.net at [Noon EST](http://www.timeanddate.com/worldclock/fixedtime.html?month=1&day=17&year=2011&hour=12&min=0&sec=0&p1=43) on Mondays.
|
||||
|
||||
[jQuery Core Meeting Notes](http://meetings.jquery.org/category/core/)
|
||||
|
||||
|
||||
## How to Report Bugs
|
||||
|
||||
### Make sure it is a jQuery bug
|
||||
|
||||
Most bugs reported to our bug tracker are actually bugs in user code, not in jQuery code. Keep in mind that just because your code throws an error inside of jQuery, this does *not* mean the bug is a jQuery bug.
|
||||
|
||||
Ask for help first in the [Using jQuery Forum](http://forum.jquery.com/using-jquery) or another discussion forum like [Stack Overflow](http://stackoverflow.com/). You will get much quicker support, and you will help avoid tying up the jQuery team with invalid bug reports.
|
||||
|
||||
### Disable browser extensions
|
||||
|
||||
Make sure you have reproduced the bug with all browser extensions and add-ons disabled, as these can sometimes cause things to break in interesting and unpredictable ways. Try using incognito, stealth or anonymous browsing modes.
|
||||
|
||||
### Try the latest version of jQuery
|
||||
|
||||
Bugs in old versions of jQuery may have already been fixed. In order to avoid reporting known issues, make sure you are always testing against the [latest build](http://code.jquery.com/jquery.js). We cannot fix bugs in older released files, if a bug has been fixed in a subsequent version of jQuery the site should upgrade.
|
||||
|
||||
### Simplify the test case
|
||||
|
||||
When experiencing a problem, [reduce your code](http://webkit.org/quality/reduction.html) to the bare minimum required to reproduce the issue. This makes it *much* easier to isolate and fix the offending code. Bugs reported without reduced test cases take on average 9001% longer to fix than bugs that are submitted with them, so you really should try to do this if at all possible.
|
||||
|
||||
### Search for related or duplicate issues
|
||||
|
||||
Go to the [jQuery Core issue tracker](https://github.com/jquery/jquery/issues) and make sure the problem hasn't already been reported. If not, create a new issue there and include your test case.
|
||||
|
||||
|
||||
## Tips For Bug Patching
|
||||
|
||||
We *love* when people contribute back to the project by patching the bugs they find. Since jQuery is used by so many people, we are cautious about the patches we accept and want to be sure they don't have a negative impact on the millions of people using jQuery each day. For that reason it can take a while for any suggested patch to work its way through the review and release process. The reward for you is knowing that the problem you fixed will improve things for millions of sites and billions of visits per day.
|
||||
|
||||
### Build a Local Copy of jQuery
|
||||
|
||||
Create a fork of the jQuery repo on github at http://github.com/jquery/jquery
|
||||
|
||||
Change directory to your web root directory, whatever that might be:
|
||||
|
||||
```bash
|
||||
$ cd /path/to/your/www/root/
|
||||
```
|
||||
|
||||
Clone your jQuery fork to work locally
|
||||
|
||||
```bash
|
||||
$ git clone git@github.com:username/jquery.git
|
||||
```
|
||||
|
||||
Change directory to the newly created dir jquery/
|
||||
|
||||
```bash
|
||||
$ cd jquery
|
||||
```
|
||||
|
||||
Add the jQuery master as a remote. I label mine "upstream"
|
||||
|
||||
```bash
|
||||
$ git remote add upstream git://github.com/jquery/jquery.git
|
||||
```
|
||||
|
||||
Get in the habit of pulling in the "upstream" master to stay up to date as jQuery receives new commits
|
||||
|
||||
```bash
|
||||
$ git pull upstream master
|
||||
```
|
||||
|
||||
Run the build script
|
||||
|
||||
```bash
|
||||
$ npm run build
|
||||
```
|
||||
|
||||
Run the Grunt tools:
|
||||
|
||||
```bash
|
||||
$ grunt && grunt watch
|
||||
```
|
||||
|
||||
Now open the jQuery test suite in a browser at http://localhost/test. If there is a port, be sure to include it.
|
||||
|
||||
Success! You just built and tested jQuery!
|
||||
|
||||
|
||||
### Test Suite Tips...
|
||||
|
||||
During the process of writing your patch, you will run the test suite MANY times. You can speed up the process by narrowing the running test suite down to the module you are testing by either double clicking the title of the test or appending it to the url. The following examples assume you're working on a local repo, hosted on your localhost server.
|
||||
|
||||
Example:
|
||||
|
||||
http://localhost/test/?filter=css
|
||||
|
||||
This will only run the "css" module tests. This will significantly speed up your development and debugging.
|
||||
|
||||
**ALWAYS RUN THE FULL SUITE BEFORE COMMITTING AND PUSHING A PATCH!**
|
||||
|
||||
|
||||
### Browser support
|
||||
|
||||
Remember that jQuery supports multiple browsers and their versions; any contributed code must work in all of them. You can refer to the [browser support page](http://jquery.com/browser-support/) for the current list of supported browsers.
|
||||
|
||||
Note that browser support differs depending on whether you are targeting the `master` or `compat` branch.
|
212
dashboard-ui/bower_components/jquery/Gruntfile.js
vendored
212
dashboard-ui/bower_components/jquery/Gruntfile.js
vendored
@ -1,212 +0,0 @@
|
||||
module.exports = function( grunt ) {
|
||||
"use strict";
|
||||
|
||||
function readOptionalJSON( filepath ) {
|
||||
var data = {};
|
||||
try {
|
||||
data = JSON.parse( stripJSONComments(
|
||||
fs.readFileSync( filepath, { encoding: "utf8" } )
|
||||
) );
|
||||
} catch ( e ) {}
|
||||
return data;
|
||||
}
|
||||
|
||||
var fs = require( "fs" ),
|
||||
stripJSONComments = require( "strip-json-comments" ),
|
||||
gzip = require( "gzip-js" ),
|
||||
srcHintOptions = readOptionalJSON( "src/.jshintrc" ),
|
||||
newNode = !/^v0/.test( process.version ),
|
||||
|
||||
// Allow to skip jsdom-related tests in Node.js < 1.0.0
|
||||
runJsdomTests = newNode || ( function() {
|
||||
try {
|
||||
require( "jsdom" );
|
||||
return true;
|
||||
} catch ( e ) {
|
||||
return false;
|
||||
}
|
||||
} )();
|
||||
|
||||
// The concatenated file won't pass onevar
|
||||
// But our modules can
|
||||
delete srcHintOptions.onevar;
|
||||
|
||||
grunt.initConfig( {
|
||||
pkg: grunt.file.readJSON( "package.json" ),
|
||||
dst: readOptionalJSON( "dist/.destination.json" ),
|
||||
"compare_size": {
|
||||
files: [ "dist/jquery.js", "dist/jquery.min.js" ],
|
||||
options: {
|
||||
compress: {
|
||||
gz: function( contents ) {
|
||||
return gzip.zip( contents, {} ).length;
|
||||
}
|
||||
},
|
||||
cache: "build/.sizecache.json"
|
||||
}
|
||||
},
|
||||
babel: {
|
||||
options: {
|
||||
sourceMap: "inline",
|
||||
retainLines: true
|
||||
},
|
||||
nodeSmokeTests: {
|
||||
files: {
|
||||
"test/node_smoke_tests/lib/ensure_iterability.js":
|
||||
"test/node_smoke_tests/lib/ensure_iterability_es6.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
build: {
|
||||
all: {
|
||||
dest: "dist/jquery.js",
|
||||
minimum: [
|
||||
"core",
|
||||
"selector"
|
||||
],
|
||||
|
||||
// Exclude specified modules if the module matching the key is removed
|
||||
removeWith: {
|
||||
ajax: [ "manipulation/_evalUrl", "event/ajax" ],
|
||||
callbacks: [ "deferred" ],
|
||||
css: [ "effects", "dimensions", "offset" ],
|
||||
sizzle: [ "css/hiddenVisibleSelectors", "effects/animatedSelector" ]
|
||||
}
|
||||
}
|
||||
},
|
||||
npmcopy: {
|
||||
all: {
|
||||
options: {
|
||||
destPrefix: "external"
|
||||
},
|
||||
files: {
|
||||
"sizzle/dist": "sizzle/dist",
|
||||
"sizzle/LICENSE.txt": "sizzle/LICENSE.txt",
|
||||
|
||||
"npo/npo.js": "native-promise-only/npo.js",
|
||||
|
||||
"qunit/qunit.js": "qunitjs/qunit/qunit.js",
|
||||
"qunit/qunit.css": "qunitjs/qunit/qunit.css",
|
||||
"qunit/LICENSE.txt": "qunitjs/LICENSE.txt",
|
||||
|
||||
"qunit-assert-step/qunit-assert-step.js":
|
||||
"qunit-assert-step/qunit-assert-step.js",
|
||||
"qunit-assert-step/MIT-LICENSE.txt":
|
||||
"qunit-assert-step/MIT-LICENSE.txt",
|
||||
|
||||
"requirejs/require.js": "requirejs/require.js",
|
||||
|
||||
"sinon/fake_timers.js": "sinon/lib/sinon/util/fake_timers.js",
|
||||
"sinon/LICENSE.txt": "sinon/LICENSE"
|
||||
}
|
||||
}
|
||||
},
|
||||
jsonlint: {
|
||||
pkg: {
|
||||
src: [ "package.json" ]
|
||||
}
|
||||
},
|
||||
jshint: {
|
||||
all: {
|
||||
src: [
|
||||
"src/**/*.js", "Gruntfile.js", "test/**/*.js", "build/**/*.js"
|
||||
],
|
||||
options: {
|
||||
jshintrc: true
|
||||
}
|
||||
},
|
||||
dist: {
|
||||
src: "dist/jquery.js",
|
||||
options: srcHintOptions
|
||||
}
|
||||
},
|
||||
jscs: {
|
||||
src: "src",
|
||||
gruntfile: "Gruntfile.js",
|
||||
|
||||
// Check parts of tests that pass
|
||||
test: [
|
||||
"test/data/testrunner.js",
|
||||
"test/unit/basic.js",
|
||||
"test/unit/wrap.js"
|
||||
],
|
||||
build: "build"
|
||||
},
|
||||
testswarm: {
|
||||
tests: [
|
||||
|
||||
// A special module with basic tests, meant for
|
||||
// not fully supported environments like Android 2.3,
|
||||
// jsdom or PhantomJS. We run it everywhere, though,
|
||||
// to make sure tests are not broken.
|
||||
"basic",
|
||||
|
||||
"ajax",
|
||||
"attributes",
|
||||
"callbacks",
|
||||
"core",
|
||||
"css",
|
||||
"data",
|
||||
"deferred",
|
||||
"deprecated",
|
||||
"dimensions",
|
||||
"effects",
|
||||
"event",
|
||||
"manipulation",
|
||||
"offset",
|
||||
"queue",
|
||||
"selector",
|
||||
"serialize",
|
||||
"support",
|
||||
"traversing"
|
||||
]
|
||||
},
|
||||
watch: {
|
||||
files: [ "<%= jshint.all.src %>" ],
|
||||
tasks: [ "dev" ]
|
||||
},
|
||||
uglify: {
|
||||
all: {
|
||||
files: {
|
||||
"dist/jquery.min.js": [ "dist/jquery.js" ]
|
||||
},
|
||||
options: {
|
||||
preserveComments: false,
|
||||
sourceMap: true,
|
||||
sourceMapName: "dist/jquery.min.map",
|
||||
report: "min",
|
||||
beautify: {
|
||||
"ascii_only": true
|
||||
},
|
||||
banner: "/*! jQuery v<%= pkg.version %> | " +
|
||||
"(c) jQuery Foundation | jquery.org/license */",
|
||||
compress: {
|
||||
"hoist_funs": false,
|
||||
loops: false,
|
||||
unused: false
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
} );
|
||||
|
||||
// Load grunt tasks from NPM packages
|
||||
require( "load-grunt-tasks" )( grunt );
|
||||
|
||||
// Integrate jQuery specific tasks
|
||||
grunt.loadTasks( "build/tasks" );
|
||||
|
||||
grunt.registerTask( "lint", [ "jsonlint", "jshint", "jscs" ] );
|
||||
|
||||
// Don't run Node-related tests in Node.js < 1.0.0 as they require an old
|
||||
// jsdom version that needs compiling, making it harder for people to compile
|
||||
// jQuery on Windows. (see gh-2519)
|
||||
grunt.registerTask( "test_fast", runJsdomTests ? [ "node_smoke_tests" ] : [] );
|
||||
|
||||
grunt.registerTask( "test", [ "test_fast" ] );
|
||||
|
||||
// Short list as a high frequency watch task
|
||||
grunt.registerTask( "dev", [ "build:*:*", "lint", "uglify", "remove_map_comment", "dist:*" ] );
|
||||
|
||||
grunt.registerTask( "default", [ "dev", "test_fast", "compare_size" ] );
|
||||
};
|
14
dashboard-ui/bower_components/jquery/bower.json
vendored
Normal file
14
dashboard-ui/bower_components/jquery/bower.json
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "jquery",
|
||||
"main": "dist/jquery.js",
|
||||
"license": "MIT",
|
||||
"ignore": [
|
||||
"package.json"
|
||||
],
|
||||
"keywords": [
|
||||
"jquery",
|
||||
"javascript",
|
||||
"browser",
|
||||
"library"
|
||||
]
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* jQuery JavaScript Library v2.2.0
|
||||
* jQuery JavaScript Library v2.2.1
|
||||
* http://jquery.com/
|
||||
*
|
||||
* Includes Sizzle.js
|
||||
@ -9,7 +9,7 @@
|
||||
* Released under the MIT license
|
||||
* http://jquery.org/license
|
||||
*
|
||||
* Date: 2016-01-08T20:02Z
|
||||
* Date: 2016-02-22T19:11Z
|
||||
*/
|
||||
|
||||
(function( global, factory ) {
|
||||
@ -65,7 +65,7 @@ var support = {};
|
||||
|
||||
|
||||
var
|
||||
version = "2.2.0",
|
||||
version = "2.2.1",
|
||||
|
||||
// Define a local copy of jQuery
|
||||
jQuery = function( selector, context ) {
|
||||
@ -4479,7 +4479,7 @@ function on( elem, types, selector, data, fn, one ) {
|
||||
if ( fn === false ) {
|
||||
fn = returnFalse;
|
||||
} else if ( !fn ) {
|
||||
return this;
|
||||
return elem;
|
||||
}
|
||||
|
||||
if ( one === 1 ) {
|
||||
@ -5128,14 +5128,14 @@ var
|
||||
rscriptTypeMasked = /^true\/(.*)/,
|
||||
rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
|
||||
|
||||
// Manipulating tables requires a tbody
|
||||
function manipulationTarget( elem, content ) {
|
||||
if ( jQuery.nodeName( elem, "table" ) &&
|
||||
jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) {
|
||||
return jQuery.nodeName( elem, "table" ) &&
|
||||
jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?
|
||||
|
||||
return elem.getElementsByTagName( "tbody" )[ 0 ] || elem;
|
||||
}
|
||||
|
||||
return elem;
|
||||
elem.getElementsByTagName( "tbody" )[ 0 ] ||
|
||||
elem.appendChild( elem.ownerDocument.createElement( "tbody" ) ) :
|
||||
elem;
|
||||
}
|
||||
|
||||
// Replace/restore the type attribute of script elements for safe DOM manipulation
|
||||
@ -5642,7 +5642,7 @@ var getStyles = function( elem ) {
|
||||
// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
|
||||
var view = elem.ownerDocument.defaultView;
|
||||
|
||||
if ( !view.opener ) {
|
||||
if ( !view || !view.opener ) {
|
||||
view = window;
|
||||
}
|
||||
|
||||
@ -5791,15 +5791,18 @@ function curCSS( elem, name, computed ) {
|
||||
style = elem.style;
|
||||
|
||||
computed = computed || getStyles( elem );
|
||||
ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined;
|
||||
|
||||
// Support: Opera 12.1x only
|
||||
// Fall back to style even without computed
|
||||
// computed is undefined for elems on document fragments
|
||||
if ( ( ret === "" || ret === undefined ) && !jQuery.contains( elem.ownerDocument, elem ) ) {
|
||||
ret = jQuery.style( elem, name );
|
||||
}
|
||||
|
||||
// Support: IE9
|
||||
// getPropertyValue is only needed for .css('filter') (#12537)
|
||||
if ( computed ) {
|
||||
ret = computed.getPropertyValue( name ) || computed[ name ];
|
||||
|
||||
if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {
|
||||
ret = jQuery.style( elem, name );
|
||||
}
|
||||
|
||||
// A tribute to the "awesome hack by Dean Edwards"
|
||||
// Android Browser returns percentage for some values,
|
||||
@ -7849,7 +7852,7 @@ jQuery.extend( jQuery.event, {
|
||||
// But now, this "simulate" function is used only for events
|
||||
// for which stopPropagation() is noop, so there is no need for that anymore.
|
||||
//
|
||||
// For the compat branch though, guard for "click" and "submit"
|
||||
// For the 1.x branch though, guard for "click" and "submit"
|
||||
// events is still used, but was moved to jQuery.event.stopPropagation function
|
||||
// because `originalEvent` should point to the original event for the constancy
|
||||
// with other events and for more focused logic
|
||||
@ -9619,11 +9622,8 @@ jQuery.fn.extend( {
|
||||
}
|
||||
|
||||
// Add offsetParent borders
|
||||
// Subtract offsetParent scroll positions
|
||||
parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true ) -
|
||||
offsetParent.scrollTop();
|
||||
parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true ) -
|
||||
offsetParent.scrollLeft();
|
||||
parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
|
||||
parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
|
||||
}
|
||||
|
||||
// Subtract parent offsets and element margins
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
7877
dashboard-ui/bower_components/jquery/dist/jquery.slim.js
vendored
Normal file
7877
dashboard-ui/bower_components/jquery/dist/jquery.slim.js
vendored
Normal file
File diff suppressed because it is too large
Load Diff
4
dashboard-ui/bower_components/jquery/dist/jquery.slim.min.js
vendored
Normal file
4
dashboard-ui/bower_components/jquery/dist/jquery.slim.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
dashboard-ui/bower_components/jquery/dist/jquery.slim.min.map
vendored
Normal file
1
dashboard-ui/bower_components/jquery/dist/jquery.slim.min.map
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -1,5 +0,0 @@
|
||||
/*! Native Promise Only
|
||||
v0.7.8-a (c) Kyle Simpson
|
||||
MIT License: http://getify.mit-license.org
|
||||
*/
|
||||
!function(t,n,e){n[t]=n[t]||e(),"undefined"!=typeof module&&module.exports?module.exports=n[t]:"function"==typeof define&&define.amd&&define(function(){return n[t]})}("Promise","undefined"!=typeof global?global:this,function(){"use strict";function t(t,n){l.add(t,n),h||(h=y(l.drain))}function n(t){var n,e=typeof t;return null==t||"object"!=e&&"function"!=e||(n=t.then),"function"==typeof n?n:!1}function e(){for(var t=0;t<this.chain.length;t++)o(this,1===this.state?this.chain[t].success:this.chain[t].failure,this.chain[t]);this.chain.length=0}function o(t,e,o){var r,i;try{e===!1?o.reject(t.msg):(r=e===!0?t.msg:e.call(void 0,t.msg),r===o.promise?o.reject(TypeError("Promise-chain cycle")):(i=n(r))?i.call(r,o.resolve,o.reject):o.resolve(r))}catch(c){o.reject(c)}}function r(o){var c,u,a=this;if(!a.triggered){a.triggered=!0,a.def&&(a=a.def);try{(c=n(o))?(u=new f(a),c.call(o,function(){r.apply(u,arguments)},function(){i.apply(u,arguments)})):(a.msg=o,a.state=1,a.chain.length>0&&t(e,a))}catch(s){i.call(u||new f(a),s)}}}function i(n){var o=this;o.triggered||(o.triggered=!0,o.def&&(o=o.def),o.msg=n,o.state=2,o.chain.length>0&&t(e,o))}function c(t,n,e,o){for(var r=0;r<n.length;r++)!function(r){t.resolve(n[r]).then(function(t){e(r,t)},o)}(r)}function f(t){this.def=t,this.triggered=!1}function u(t){this.promise=t,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function a(n){if("function"!=typeof n)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var o=new u(this);this.then=function(n,r){var i={success:"function"==typeof n?n:!0,failure:"function"==typeof r?r:!1};return i.promise=new this.constructor(function(t,n){if("function"!=typeof t||"function"!=typeof n)throw TypeError("Not a function");i.resolve=t,i.reject=n}),o.chain.push(i),0!==o.state&&t(e,o),i.promise},this["catch"]=function(t){return this.then(void 0,t)};try{n.call(void 0,function(t){r.call(o,t)},function(t){i.call(o,t)})}catch(c){i.call(o,c)}}var s,h,l,p=Object.prototype.toString,y="undefined"!=typeof setImmediate?function(t){return setImmediate(t)}:setTimeout;try{Object.defineProperty({},"x",{}),s=function(t,n,e,o){return Object.defineProperty(t,n,{value:e,writable:!0,configurable:o!==!1})}}catch(d){s=function(t,n,e){return t[n]=e,t}}l=function(){function t(t,n){this.fn=t,this.self=n,this.next=void 0}var n,e,o;return{add:function(r,i){o=new t(r,i),e?e.next=o:n=o,e=o,o=void 0},drain:function(){var t=n;for(n=e=h=void 0;t;)t.fn.call(t.self),t=t.next}}}();var g=s({},"constructor",a,!1);return a.prototype=g,s(g,"__NPO__",0,!1),s(a,"resolve",function(t){var n=this;return t&&"object"==typeof t&&1===t.__NPO__?t:new n(function(n,e){if("function"!=typeof n||"function"!=typeof e)throw TypeError("Not a function");n(t)})}),s(a,"reject",function(t){return new this(function(n,e){if("function"!=typeof n||"function"!=typeof e)throw TypeError("Not a function");e(t)})}),s(a,"all",function(t){var n=this;return"[object Array]"!=p.call(t)?n.reject(TypeError("Not an array")):0===t.length?n.resolve([]):new n(function(e,o){if("function"!=typeof e||"function"!=typeof o)throw TypeError("Not a function");var r=t.length,i=Array(r),f=0;c(n,t,function(t,n){i[t]=n,++f===r&&e(i)},o)})}),s(a,"race",function(t){var n=this;return"[object Array]"!=p.call(t)?n.reject(TypeError("Not an array")):new n(function(e,o){if("function"!=typeof e||"function"!=typeof o)throw TypeError("Not a function");c(n,t,function(t,n){e(n)},o)})}),a});
|
@ -1,21 +0,0 @@
|
||||
Copyright jQuery Foundation and other contributors
|
||||
http://jquery.com/
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@ -1,26 +0,0 @@
|
||||
QUnit.extend( QUnit.assert, {
|
||||
|
||||
/**
|
||||
* Check the sequence/order
|
||||
*
|
||||
* @example test('Example unit test', function(assert) { assert.step(1); setTimeout(function () { assert.step(3); start(); }, 100); assert.step(2); stop(); });
|
||||
* @param Number expected The excepted step within the test()
|
||||
* @param String message (optional)
|
||||
*/
|
||||
step: function (expected, message) {
|
||||
// increment internal step counter.
|
||||
QUnit.config.current.step++;
|
||||
if (typeof message === "undefined") {
|
||||
message = "step " + expected;
|
||||
}
|
||||
var actual = QUnit.config.current.step;
|
||||
QUnit.push(QUnit.equiv(actual, expected), actual, expected, message);
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* Reset the step counter for every test()
|
||||
*/
|
||||
QUnit.testStart(function () {
|
||||
QUnit.config.current.step = 0;
|
||||
});
|
@ -1,36 +0,0 @@
|
||||
Copyright jQuery Foundation and other contributors, https://jquery.org/
|
||||
|
||||
This software consists of voluntary contributions made by many
|
||||
individuals. For exact contribution history, see the revision history
|
||||
available at https://github.com/jquery/qunit
|
||||
|
||||
The following license applies to all parts of this software except as
|
||||
documented below:
|
||||
|
||||
====
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
====
|
||||
|
||||
All files located in the node_modules and external directories are
|
||||
externally maintained libraries used by this software which have their
|
||||
own licenses; we recommend you read them, as their terms may differ from
|
||||
the terms above.
|
@ -1,21 +0,0 @@
|
||||
Copyright 2013 jQuery Foundation and other contributors
|
||||
http://jquery.com/
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@ -1,280 +0,0 @@
|
||||
/*!
|
||||
* QUnit 1.17.1
|
||||
* http://qunitjs.com/
|
||||
*
|
||||
* Copyright jQuery Foundation and other contributors
|
||||
* Released under the MIT license
|
||||
* http://jquery.org/license
|
||||
*
|
||||
* Date: 2015-01-20T19:39Z
|
||||
*/
|
||||
|
||||
/** Font Family and Sizes */
|
||||
|
||||
#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult {
|
||||
font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
|
||||
}
|
||||
|
||||
#qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
|
||||
#qunit-tests { font-size: smaller; }
|
||||
|
||||
|
||||
/** Resets */
|
||||
|
||||
#qunit-tests, #qunit-header, #qunit-banner, #qunit-userAgent, #qunit-testresult, #qunit-modulefilter {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
|
||||
/** Header */
|
||||
|
||||
#qunit-header {
|
||||
padding: 0.5em 0 0.5em 1em;
|
||||
|
||||
color: #8699A4;
|
||||
background-color: #0D3349;
|
||||
|
||||
font-size: 1.5em;
|
||||
line-height: 1em;
|
||||
font-weight: 400;
|
||||
|
||||
border-radius: 5px 5px 0 0;
|
||||
}
|
||||
|
||||
#qunit-header a {
|
||||
text-decoration: none;
|
||||
color: #C2CCD1;
|
||||
}
|
||||
|
||||
#qunit-header a:hover,
|
||||
#qunit-header a:focus {
|
||||
color: #FFF;
|
||||
}
|
||||
|
||||
#qunit-testrunner-toolbar label {
|
||||
display: inline-block;
|
||||
padding: 0 0.5em 0 0.1em;
|
||||
}
|
||||
|
||||
#qunit-banner {
|
||||
height: 5px;
|
||||
}
|
||||
|
||||
#qunit-testrunner-toolbar {
|
||||
padding: 0.5em 1em 0.5em 1em;
|
||||
color: #5E740B;
|
||||
background-color: #EEE;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
#qunit-userAgent {
|
||||
padding: 0.5em 1em 0.5em 1em;
|
||||
background-color: #2B81AF;
|
||||
color: #FFF;
|
||||
text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
|
||||
}
|
||||
|
||||
#qunit-modulefilter-container {
|
||||
float: right;
|
||||
padding: 0.2em;
|
||||
}
|
||||
|
||||
.qunit-url-config {
|
||||
display: inline-block;
|
||||
padding: 0.1em;
|
||||
}
|
||||
|
||||
.qunit-filter {
|
||||
display: block;
|
||||
float: right;
|
||||
margin-left: 1em;
|
||||
}
|
||||
|
||||
/** Tests: Pass/Fail */
|
||||
|
||||
#qunit-tests {
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
#qunit-tests li {
|
||||
padding: 0.4em 1em 0.4em 1em;
|
||||
border-bottom: 1px solid #FFF;
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
#qunit-tests > li {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#qunit-tests li.running,
|
||||
#qunit-tests li.pass,
|
||||
#qunit-tests li.fail,
|
||||
#qunit-tests li.skipped {
|
||||
display: list-item;
|
||||
}
|
||||
|
||||
#qunit-tests.hidepass li.running,
|
||||
#qunit-tests.hidepass li.pass {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#qunit-tests li strong {
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
#qunit-tests li.skipped strong {
|
||||
cursor: default;
|
||||
}
|
||||
|
||||
#qunit-tests li a {
|
||||
padding: 0.5em;
|
||||
color: #C2CCD1;
|
||||
text-decoration: none;
|
||||
}
|
||||
#qunit-tests li a:hover,
|
||||
#qunit-tests li a:focus {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
#qunit-tests li .runtime {
|
||||
float: right;
|
||||
font-size: smaller;
|
||||
}
|
||||
|
||||
.qunit-assert-list {
|
||||
margin-top: 0.5em;
|
||||
padding: 0.5em;
|
||||
|
||||
background-color: #FFF;
|
||||
|
||||
border-radius: 5px;
|
||||
}
|
||||
|
||||
.qunit-collapsed {
|
||||
display: none;
|
||||
}
|
||||
|
||||
#qunit-tests table {
|
||||
border-collapse: collapse;
|
||||
margin-top: 0.2em;
|
||||
}
|
||||
|
||||
#qunit-tests th {
|
||||
text-align: right;
|
||||
vertical-align: top;
|
||||
padding: 0 0.5em 0 0;
|
||||
}
|
||||
|
||||
#qunit-tests td {
|
||||
vertical-align: top;
|
||||
}
|
||||
|
||||
#qunit-tests pre {
|
||||
margin: 0;
|
||||
white-space: pre-wrap;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
#qunit-tests del {
|
||||
background-color: #E0F2BE;
|
||||
color: #374E0C;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#qunit-tests ins {
|
||||
background-color: #FFCACA;
|
||||
color: #500;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
/*** Test Counts */
|
||||
|
||||
#qunit-tests b.counts { color: #000; }
|
||||
#qunit-tests b.passed { color: #5E740B; }
|
||||
#qunit-tests b.failed { color: #710909; }
|
||||
|
||||
#qunit-tests li li {
|
||||
padding: 5px;
|
||||
background-color: #FFF;
|
||||
border-bottom: none;
|
||||
list-style-position: inside;
|
||||
}
|
||||
|
||||
/*** Passing Styles */
|
||||
|
||||
#qunit-tests li li.pass {
|
||||
color: #3C510C;
|
||||
background-color: #FFF;
|
||||
border-left: 10px solid #C6E746;
|
||||
}
|
||||
|
||||
#qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; }
|
||||
#qunit-tests .pass .test-name { color: #366097; }
|
||||
|
||||
#qunit-tests .pass .test-actual,
|
||||
#qunit-tests .pass .test-expected { color: #999; }
|
||||
|
||||
#qunit-banner.qunit-pass { background-color: #C6E746; }
|
||||
|
||||
/*** Failing Styles */
|
||||
|
||||
#qunit-tests li li.fail {
|
||||
color: #710909;
|
||||
background-color: #FFF;
|
||||
border-left: 10px solid #EE5757;
|
||||
white-space: pre;
|
||||
}
|
||||
|
||||
#qunit-tests > li:last-child {
|
||||
border-radius: 0 0 5px 5px;
|
||||
}
|
||||
|
||||
#qunit-tests .fail { color: #000; background-color: #EE5757; }
|
||||
#qunit-tests .fail .test-name,
|
||||
#qunit-tests .fail .module-name { color: #000; }
|
||||
|
||||
#qunit-tests .fail .test-actual { color: #EE5757; }
|
||||
#qunit-tests .fail .test-expected { color: #008000; }
|
||||
|
||||
#qunit-banner.qunit-fail { background-color: #EE5757; }
|
||||
|
||||
/*** Skipped tests */
|
||||
|
||||
#qunit-tests .skipped {
|
||||
background-color: #EBECE9;
|
||||
}
|
||||
|
||||
#qunit-tests .qunit-skipped-label {
|
||||
background-color: #F4FF77;
|
||||
display: inline-block;
|
||||
font-style: normal;
|
||||
color: #366097;
|
||||
line-height: 1.8em;
|
||||
padding: 0 0.5em;
|
||||
margin: -0.4em 0.4em -0.4em 0;
|
||||
}
|
||||
|
||||
/** Result */
|
||||
|
||||
#qunit-testresult {
|
||||
padding: 0.5em 1em 0.5em 1em;
|
||||
|
||||
color: #2B81AF;
|
||||
background-color: #D2E0E6;
|
||||
|
||||
border-bottom: 1px solid #FFF;
|
||||
}
|
||||
#qunit-testresult .module-name {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
/** Fixture */
|
||||
|
||||
#qunit-fixture {
|
||||
position: absolute;
|
||||
top: -10000px;
|
||||
left: -10000px;
|
||||
width: 1000px;
|
||||
height: 1000px;
|
||||
}
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,36 +0,0 @@
|
||||
Copyright jQuery Foundation and other contributors, https://jquery.org/
|
||||
|
||||
This software consists of voluntary contributions made by many
|
||||
individuals. For exact contribution history, see the revision history
|
||||
available at https://github.com/jquery/sizzle
|
||||
|
||||
The following license applies to all parts of this software except as
|
||||
documented below:
|
||||
|
||||
====
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
|
||||
====
|
||||
|
||||
All files located in the node_modules and external directories are
|
||||
externally maintained libraries used by this software which have their
|
||||
own licenses; we recommend you read them, as their terms may differ from
|
||||
the terms above.
|
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
@ -1,84 +0,0 @@
|
||||
{
|
||||
"name": "jquery",
|
||||
"title": "jQuery",
|
||||
"description": "JavaScript library for DOM operations",
|
||||
"version": "2.2.0",
|
||||
"main": "dist/jquery.js",
|
||||
"homepage": "http://jquery.com",
|
||||
"author": {
|
||||
"name": "jQuery Foundation and other contributors",
|
||||
"url": "https://github.com/jquery/jquery/blob/2.2.0/AUTHORS.txt"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/jquery/jquery.git"
|
||||
},
|
||||
"keywords": [
|
||||
"jquery",
|
||||
"javascript",
|
||||
"browser",
|
||||
"library"
|
||||
],
|
||||
"bugs": {
|
||||
"url": "https://github.com/jquery/jquery/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"dependencies": {},
|
||||
"devDependencies": {
|
||||
"commitplease": "2.0.0",
|
||||
"core-js": "0.9.17",
|
||||
"grunt": "0.4.5",
|
||||
"grunt-babel": "5.0.1",
|
||||
"grunt-cli": "0.1.13",
|
||||
"grunt-compare-size": "0.4.0",
|
||||
"grunt-contrib-jshint": "0.11.2",
|
||||
"grunt-contrib-uglify": "0.9.2",
|
||||
"grunt-contrib-watch": "0.6.1",
|
||||
"grunt-git-authors": "2.0.1",
|
||||
"grunt-jscs": "2.1.0",
|
||||
"grunt-jsonlint": "1.0.4",
|
||||
"grunt-npmcopy": "0.1.0",
|
||||
"gzip-js": "0.3.2",
|
||||
"jsdom": "5.6.1",
|
||||
"load-grunt-tasks": "1.0.0",
|
||||
"qunitjs": "1.17.1",
|
||||
"qunit-assert-step": "1.0.3",
|
||||
"requirejs": "2.1.17",
|
||||
"sinon": "1.10.3",
|
||||
"sizzle": "2.2.1",
|
||||
"strip-json-comments": "1.0.3",
|
||||
"testswarm": "1.1.0",
|
||||
"win-spawn": "2.0.0"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm install && grunt",
|
||||
"start": "grunt watch",
|
||||
"test": "grunt && grunt test"
|
||||
},
|
||||
"commitplease": {
|
||||
"components": [
|
||||
"Docs",
|
||||
"Tests",
|
||||
"Build",
|
||||
"Release",
|
||||
"Core",
|
||||
"Ajax",
|
||||
"Attributes",
|
||||
"Callbacks",
|
||||
"CSS",
|
||||
"Data",
|
||||
"Deferred",
|
||||
"Deprecated",
|
||||
"Dimensions",
|
||||
"Effects",
|
||||
"Event",
|
||||
"Manipulation",
|
||||
"Offset",
|
||||
"Queue",
|
||||
"Selector",
|
||||
"Serialize",
|
||||
"Traversing",
|
||||
"Wrap"
|
||||
]
|
||||
}
|
||||
}
|
14
dashboard-ui/bower_components/jquery/src/core/DOMEval.js
vendored
Normal file
14
dashboard-ui/bower_components/jquery/src/core/DOMEval.js
vendored
Normal file
@ -0,0 +1,14 @@
|
||||
define( [
|
||||
"../var/document"
|
||||
], function( document ) {
|
||||
function DOMEval( code, doc ) {
|
||||
doc = doc || document;
|
||||
|
||||
var script = doc.createElement( "script" );
|
||||
|
||||
script.text = code;
|
||||
doc.head.appendChild( script ).parentNode.removeChild( script );
|
||||
}
|
||||
|
||||
return DOMEval;
|
||||
} );
|
@ -12,15 +12,18 @@ function curCSS( elem, name, computed ) {
|
||||
style = elem.style;
|
||||
|
||||
computed = computed || getStyles( elem );
|
||||
ret = computed ? computed.getPropertyValue( name ) || computed[ name ] : undefined;
|
||||
|
||||
// Support: Opera 12.1x only
|
||||
// Fall back to style even without computed
|
||||
// computed is undefined for elems on document fragments
|
||||
if ( ( ret === "" || ret === undefined ) && !jQuery.contains( elem.ownerDocument, elem ) ) {
|
||||
ret = jQuery.style( elem, name );
|
||||
}
|
||||
|
||||
// Support: IE9
|
||||
// getPropertyValue is only needed for .css('filter') (#12537)
|
||||
if ( computed ) {
|
||||
ret = computed.getPropertyValue( name ) || computed[ name ];
|
||||
|
||||
if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {
|
||||
ret = jQuery.style( elem, name );
|
||||
}
|
||||
|
||||
// A tribute to the "awesome hack by Dean Edwards"
|
||||
// Android Browser returns percentage for some values,
|
||||
|
20
dashboard-ui/bower_components/jquery/src/data/accepts.js
vendored
Normal file
20
dashboard-ui/bower_components/jquery/src/data/accepts.js
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
define([
|
||||
"../core"
|
||||
], function( jQuery ) {
|
||||
|
||||
/**
|
||||
* Determines whether an object can have data
|
||||
*/
|
||||
jQuery.acceptData = function( owner ) {
|
||||
// Accepts only:
|
||||
// - Node
|
||||
// - Node.ELEMENT_NODE
|
||||
// - Node.DOCUMENT_NODE
|
||||
// - Object
|
||||
// - Any
|
||||
/* jshint -W018 */
|
||||
return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
|
||||
};
|
||||
|
||||
return jQuery.acceptData;
|
||||
});
|
23
dashboard-ui/bower_components/jquery/src/data/support.js
vendored
Normal file
23
dashboard-ui/bower_components/jquery/src/data/support.js
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
define( [
|
||||
"../var/document",
|
||||
"../var/support"
|
||||
], function( document, support ) {
|
||||
|
||||
( function() {
|
||||
var div = document.createElement( "div" );
|
||||
|
||||
// Support: IE<9
|
||||
support.deleteExpando = true;
|
||||
try {
|
||||
delete div.test;
|
||||
} catch ( e ) {
|
||||
support.deleteExpando = false;
|
||||
}
|
||||
|
||||
// Null elements to avoid leaks in IE.
|
||||
div = null;
|
||||
} )();
|
||||
|
||||
return support;
|
||||
|
||||
} );
|
19
dashboard-ui/bower_components/jquery/src/deferred/exceptionHook.js
vendored
Normal file
19
dashboard-ui/bower_components/jquery/src/deferred/exceptionHook.js
vendored
Normal file
@ -0,0 +1,19 @@
|
||||
define( [
|
||||
"../core",
|
||||
"../deferred"
|
||||
], function( jQuery ) {
|
||||
|
||||
// These usually indicate a programmer mistake during development,
|
||||
// warn about them ASAP rather than swallowing them by default.
|
||||
var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
|
||||
|
||||
jQuery.Deferred.exceptionHook = function( error, stack ) {
|
||||
|
||||
// Support: IE9
|
||||
// Console exists when dev tools are open, which can happen at any time
|
||||
if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {
|
||||
window.console.warn( "jQuery.Deferred exception: " + error.message, stack );
|
||||
}
|
||||
};
|
||||
|
||||
} );
|
58
dashboard-ui/bower_components/jquery/src/effects/support.js
vendored
Normal file
58
dashboard-ui/bower_components/jquery/src/effects/support.js
vendored
Normal file
@ -0,0 +1,58 @@
|
||||
define( [
|
||||
"../var/support",
|
||||
"../var/document"
|
||||
], function( support, document ) {
|
||||
|
||||
( function() {
|
||||
var shrinkWrapBlocksVal;
|
||||
|
||||
support.shrinkWrapBlocks = function() {
|
||||
if ( shrinkWrapBlocksVal != null ) {
|
||||
return shrinkWrapBlocksVal;
|
||||
}
|
||||
|
||||
// Will be changed later if needed.
|
||||
shrinkWrapBlocksVal = false;
|
||||
|
||||
// Minified: var b,c,d
|
||||
var div, body, container;
|
||||
|
||||
body = document.getElementsByTagName( "body" )[ 0 ];
|
||||
if ( !body || !body.style ) {
|
||||
|
||||
// Test fired too early or in an unsupported environment, exit.
|
||||
return;
|
||||
}
|
||||
|
||||
// Setup
|
||||
div = document.createElement( "div" );
|
||||
container = document.createElement( "div" );
|
||||
container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
|
||||
body.appendChild( container ).appendChild( div );
|
||||
|
||||
// Support: IE6
|
||||
// Check if elements with layout shrink-wrap their children
|
||||
if ( typeof div.style.zoom !== "undefined" ) {
|
||||
|
||||
// Reset CSS: box-sizing; display; margin; border
|
||||
div.style.cssText =
|
||||
|
||||
// Support: Firefox<29, Android 2.3
|
||||
// Vendor-prefix box-sizing
|
||||
"-webkit-box-sizing:content-box;-moz-box-sizing:content-box;" +
|
||||
"box-sizing:content-box;display:block;margin:0;border:0;" +
|
||||
"padding:1px;width:1px;zoom:1";
|
||||
div.appendChild( document.createElement( "div" ) ).style.width = "5px";
|
||||
shrinkWrapBlocksVal = div.offsetWidth !== 3;
|
||||
}
|
||||
|
||||
body.removeChild( container );
|
||||
|
||||
return shrinkWrapBlocksVal;
|
||||
};
|
||||
|
||||
} )();
|
||||
|
||||
return support;
|
||||
|
||||
} );
|
@ -71,7 +71,7 @@ function on( elem, types, selector, data, fn, one ) {
|
||||
if ( fn === false ) {
|
||||
fn = returnFalse;
|
||||
} else if ( !fn ) {
|
||||
return this;
|
||||
return elem;
|
||||
}
|
||||
|
||||
if ( one === 1 ) {
|
||||
|
@ -164,7 +164,7 @@ jQuery.extend( jQuery.event, {
|
||||
// But now, this "simulate" function is used only for events
|
||||
// for which stopPropagation() is noop, so there is no need for that anymore.
|
||||
//
|
||||
// For the compat branch though, guard for "click" and "submit"
|
||||
// For the 1.x branch though, guard for "click" and "submit"
|
||||
// events is still used, but was moved to jQuery.event.stopPropagation function
|
||||
// because `originalEvent` should point to the original event for the constancy
|
||||
// with other events and for more focused logic
|
||||
|
@ -38,14 +38,14 @@ var
|
||||
rscriptTypeMasked = /^true\/(.*)/,
|
||||
rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
|
||||
|
||||
// Manipulating tables requires a tbody
|
||||
function manipulationTarget( elem, content ) {
|
||||
if ( jQuery.nodeName( elem, "table" ) &&
|
||||
jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) {
|
||||
return jQuery.nodeName( elem, "table" ) &&
|
||||
jQuery.nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ?
|
||||
|
||||
return elem.getElementsByTagName( "tbody" )[ 0 ] || elem;
|
||||
}
|
||||
|
||||
return elem;
|
||||
elem.getElementsByTagName( "tbody" )[ 0 ] ||
|
||||
elem.appendChild( elem.ownerDocument.createElement( "tbody" ) ) :
|
||||
elem;
|
||||
}
|
||||
|
||||
// Replace/restore the type attribute of script elements for safe DOM manipulation
|
||||
|
20
dashboard-ui/bower_components/jquery/src/manipulation/createSafeFragment.js
vendored
Normal file
20
dashboard-ui/bower_components/jquery/src/manipulation/createSafeFragment.js
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
define( [
|
||||
"./var/nodeNames"
|
||||
], function( nodeNames ) {
|
||||
|
||||
function createSafeFragment( document ) {
|
||||
var list = nodeNames.split( "|" ),
|
||||
safeFrag = document.createDocumentFragment();
|
||||
|
||||
if ( safeFrag.createElement ) {
|
||||
while ( list.length ) {
|
||||
safeFrag.createElement(
|
||||
list.pop()
|
||||
);
|
||||
}
|
||||
}
|
||||
return safeFrag;
|
||||
}
|
||||
|
||||
return createSafeFragment;
|
||||
} );
|
@ -134,11 +134,8 @@ jQuery.fn.extend( {
|
||||
}
|
||||
|
||||
// Add offsetParent borders
|
||||
// Subtract offsetParent scroll positions
|
||||
parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true ) -
|
||||
offsetParent.scrollTop();
|
||||
parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true ) -
|
||||
offsetParent.scrollLeft();
|
||||
parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
|
||||
parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
|
||||
}
|
||||
|
||||
// Subtract parent offsets and element margins
|
||||
|
@ -1,6 +1,6 @@
|
||||
define( [
|
||||
"./core",
|
||||
"sizzle"
|
||||
"../external/sizzle/dist/sizzle"
|
||||
], function( jQuery, Sizzle ) {
|
||||
|
||||
jQuery.find = Sizzle;
|
||||
|
63
dashboard-ui/bower_components/jquery/src/support.js
vendored
Normal file
63
dashboard-ui/bower_components/jquery/src/support.js
vendored
Normal file
@ -0,0 +1,63 @@
|
||||
define( [
|
||||
"./core",
|
||||
"./var/support",
|
||||
"./var/document",
|
||||
"./core/init", // Needed for hasOwn support test
|
||||
// This is listed as a dependency for build order, but it's still optional in builds
|
||||
"./core/ready"
|
||||
], function( jQuery, support, document ) {
|
||||
|
||||
// Support: IE<9
|
||||
// Iteration over object's inherited properties before its own
|
||||
var i;
|
||||
for ( i in jQuery( support ) ) {
|
||||
break;
|
||||
}
|
||||
support.ownFirst = i === "0";
|
||||
|
||||
// Note: most support tests are defined in their respective modules.
|
||||
// false until the test is run
|
||||
support.inlineBlockNeedsLayout = false;
|
||||
|
||||
// Execute ASAP in case we need to set body.style.zoom
|
||||
jQuery( function() {
|
||||
|
||||
// Minified: var a,b,c,d
|
||||
var val, div, body, container;
|
||||
|
||||
body = document.getElementsByTagName( "body" )[ 0 ];
|
||||
if ( !body || !body.style ) {
|
||||
|
||||
// Return for frameset docs that don't have a body
|
||||
return;
|
||||
}
|
||||
|
||||
// Setup
|
||||
div = document.createElement( "div" );
|
||||
container = document.createElement( "div" );
|
||||
container.style.cssText = "position:absolute;border:0;width:0;height:0;top:0;left:-9999px";
|
||||
body.appendChild( container ).appendChild( div );
|
||||
|
||||
if ( typeof div.style.zoom !== "undefined" ) {
|
||||
|
||||
// Support: IE<8
|
||||
// Check if natively block-level elements act like inline-block
|
||||
// elements when setting their display to 'inline' and giving
|
||||
// them layout
|
||||
div.style.cssText = "display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1";
|
||||
|
||||
support.inlineBlockNeedsLayout = val = div.offsetWidth === 3;
|
||||
if ( val ) {
|
||||
|
||||
// Prevent IE 6 from affecting layout for positioned elements #11048
|
||||
// Prevent IE from shrinking the body in IE 7 mode #12869
|
||||
// Support: IE<8
|
||||
body.style.zoom = 1;
|
||||
}
|
||||
}
|
||||
|
||||
body.removeChild( container );
|
||||
} );
|
||||
|
||||
return support;
|
||||
} );
|
@ -1,56 +0,0 @@
|
||||
{
|
||||
"boss": true,
|
||||
"curly": true,
|
||||
"eqeqeq": true,
|
||||
"eqnull": true,
|
||||
"expr": true,
|
||||
"immed": true,
|
||||
"noarg": true,
|
||||
"quotmark": "double",
|
||||
"undef": true,
|
||||
"unused": true,
|
||||
|
||||
"es3": true,
|
||||
|
||||
"evil": true,
|
||||
"sub": true,
|
||||
|
||||
"browser": true,
|
||||
"devel": true,
|
||||
"wsh": true,
|
||||
|
||||
"globals": {
|
||||
"require": false,
|
||||
"define": false,
|
||||
"DOMParser": false,
|
||||
"JSON": false,
|
||||
"Promise": false,
|
||||
"Symbol": false,
|
||||
"QUnit": false,
|
||||
"ajaxTest": false,
|
||||
"testIframe": false,
|
||||
"testIframeWithCallback": false,
|
||||
"iframeCallback": true,
|
||||
"createDashboardXML": false,
|
||||
"createXMLFragment": false,
|
||||
"moduleTeardown": false,
|
||||
"testFoo": false,
|
||||
"url": false,
|
||||
"t": false,
|
||||
"q": false,
|
||||
|
||||
"jQuery": true,
|
||||
"sinon": true,
|
||||
"amdDefined": true,
|
||||
"fireNative": true,
|
||||
"Globals": true,
|
||||
"hasPHP": true,
|
||||
"isLocal": true,
|
||||
"supportjQuery": true,
|
||||
"originaljQuery": true,
|
||||
"$": true,
|
||||
"original$": true,
|
||||
"baseURL": true,
|
||||
"externalHost": true
|
||||
}
|
||||
}
|
Binary file not shown.
Before Width: | Height: | Size: 693 B |
@ -1,5 +0,0 @@
|
||||
<?php
|
||||
$type = $_REQUEST['content-type'];
|
||||
header("Content-type: $type");
|
||||
echo $_REQUEST['response']
|
||||
?>
|
@ -1 +0,0 @@
|
||||
ok( "<?php echo $_SERVER['REQUEST_METHOD'] ?>" === "GET", "request method is <?php echo $_SERVER['REQUEST_METHOD'] ?>" );
|
@ -1 +0,0 @@
|
||||
<?php echo $_SERVER['REQUEST_METHOD'] ?>
|
@ -1,30 +0,0 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
|
||||
<title>onunload ajax requests (#14379)</title>
|
||||
<script src="../../jquery.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<form id="navigate" action="../iframe.html"></form>
|
||||
<script>
|
||||
jQuery( window ).on( "unload", function() {
|
||||
var ajaxStatus;
|
||||
jQuery.ajax({
|
||||
url: "../name.html",
|
||||
async: false,
|
||||
complete: function( xhr, status ) {
|
||||
ajaxStatus = status;
|
||||
}
|
||||
});
|
||||
parent.iframeCallback( ajaxStatus );
|
||||
});
|
||||
|
||||
jQuery(function() {
|
||||
setTimeout(function() {
|
||||
document.getElementById( "navigate" ).submit();
|
||||
}, 0 );
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -1,25 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<title>Attempt to block tests because of dangling XHR requests (IE)</title>
|
||||
<script src="../../jquery.js"></script>
|
||||
<script type="text/javascript">
|
||||
window.onunload = function() {};
|
||||
jQuery(function() {
|
||||
setTimeout(function() {
|
||||
var parent = window.parent;
|
||||
document.write("");
|
||||
parent.iframeCallback();
|
||||
}, 200 );
|
||||
var number = 50;
|
||||
while( number-- ) {
|
||||
jQuery.ajax("../name.php?wait=10");
|
||||
}
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- empty body -->
|
||||
</body>
|
||||
</html>
|
@ -1,4 +0,0 @@
|
||||
<?php header("Content-type: atom+xml") ?>
|
||||
<root>
|
||||
<element />
|
||||
</root>
|
@ -1 +0,0 @@
|
||||
undefined();
|
@ -1 +0,0 @@
|
||||
{bad: toTheBone;}
|
@ -1,10 +0,0 @@
|
||||
<script>
|
||||
<!--
|
||||
ok( true, "script within html comments executed" );
|
||||
-->
|
||||
</script>
|
||||
<script>
|
||||
<![CDATA[
|
||||
ok( true, "script within CDATA executed" );
|
||||
]]>
|
||||
</script>
|
@ -1,24 +0,0 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
|
||||
<title>alias-masked DOM properties (#14074)</title>
|
||||
<script>
|
||||
var errors = [];
|
||||
window.onerror = function( errorMessage, filePath, lineNumber ) {
|
||||
errors.push( errorMessage );
|
||||
};
|
||||
</script>
|
||||
<script src="../../jquery.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<form>
|
||||
<input type="text" id="nodeName"/>
|
||||
</form>
|
||||
<script>
|
||||
jQuery(function() {
|
||||
window.parent.iframeCallback( errors );
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -1,22 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
|
||||
<script>
|
||||
var cc_on = false,
|
||||
errors = [];
|
||||
/*@cc_on
|
||||
cc_on = true;
|
||||
@*/
|
||||
window.onerror = function( errorMessage, filePath, lineNumber ) {
|
||||
errors.push( errorMessage );
|
||||
};
|
||||
</script>
|
||||
<script src="../../jquery.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script>
|
||||
window.parent.iframeCallback( cc_on, errors, jQuery );
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -1,3 +0,0 @@
|
||||
<?php
|
||||
sleep(30);
|
||||
?>
|
@ -1,35 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<script src="../../jquery.js"></script>
|
||||
<script>var $j = jQuery.noConflict();</script>
|
||||
</head>
|
||||
<body>
|
||||
<iframe id="dont_return" src="dont_return.php"></iframe>
|
||||
<script>
|
||||
var timeoutId, $,
|
||||
timeoutFired = false;
|
||||
|
||||
setTimeout(function () {
|
||||
// Load another jQuery copy using the first one.
|
||||
$j.getScript( "../../../dist/jquery.js", function () {
|
||||
$j( "#dont_return" ).attr( "src", "about:blank" );
|
||||
|
||||
// document ready handled by the just-loaded jQuery copy.
|
||||
$(function () {
|
||||
clearTimeout( timeoutId );
|
||||
if ( !timeoutFired ) {
|
||||
window.parent.iframeCallback( true );
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
timeoutId = setTimeout(function () {
|
||||
timeoutFired = true;
|
||||
window.parent.iframeCallback( false );
|
||||
}, 10000);
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -1,24 +0,0 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8"/>
|
||||
<title>alias-masked DOM properties (#14074)</title>
|
||||
<script>
|
||||
var error = false;
|
||||
window.onready = function() { error = "Called window.onready"; };
|
||||
</script>
|
||||
<script src="../../jquery.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<form>
|
||||
<input type="text" id="nodeName"/>
|
||||
</form>
|
||||
<script>
|
||||
jQuery(function() {
|
||||
setTimeout( function() {
|
||||
window.parent.iframeCallback( error );
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -1,22 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<style>
|
||||
#test {
|
||||
-webkit-box-sizing: border-box;
|
||||
box-sizing: border-box;
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
padding: 10px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div id="test"></div>
|
||||
<script src="../../jquery.js"></script>
|
||||
<script>
|
||||
window.parent.iframeCallback( jQuery( "#test" ).css( 'width' ) );
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -1,11 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<dashboard>
|
||||
<locations class="foo">
|
||||
<location for="bar" checked="different">
|
||||
<infowindowtab>
|
||||
<tab title="Location"><![CDATA[blabla]]></tab>
|
||||
<tab title="Users"><![CDATA[blublu]]></tab>
|
||||
</infowindowtab>
|
||||
</location>
|
||||
</locations>
|
||||
</dashboard>
|
@ -1,16 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>IE11 onpageshow strangeness (#14894)</title>
|
||||
<script src="../../jquery.js"></script>
|
||||
<script>
|
||||
$(function(){
|
||||
window.parent.iframeCallback( $( "body" ).data().result );
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body x-what="test" data-result="ok" onload="x=1" onpageshow="x=1">
|
||||
Test for #14894
|
||||
</body>
|
||||
</html>
|
@ -1,17 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<style>
|
||||
body {
|
||||
width: 1000px;
|
||||
height: 1000px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
<script src="../../jquery.js"></script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
@ -1 +0,0 @@
|
||||
<?php echo file_get_contents('php://input'); ?>
|
@ -1 +0,0 @@
|
||||
<?php echo $_SERVER['QUERY_STRING']; ?>
|
@ -1,6 +0,0 @@
|
||||
<?php
|
||||
|
||||
header("HTTP/1.0 400 Bad Request");
|
||||
header("Content-Type: application/json");
|
||||
|
||||
echo '{ "code": 40, "message": "Bad Request" }';
|
@ -1,5 +0,0 @@
|
||||
<?php
|
||||
|
||||
header("HTTP/1.0 400 Bad Request");
|
||||
|
||||
echo "plain text message";
|
@ -1,24 +0,0 @@
|
||||
<?php
|
||||
error_reporting(0);
|
||||
|
||||
$ts = $_REQUEST['ts'];
|
||||
$etag = md5($ts);
|
||||
|
||||
$ifNoneMatch = isset($_SERVER['HTTP_IF_NONE_MATCH']) ? stripslashes($_SERVER['HTTP_IF_NONE_MATCH']) : "";
|
||||
preg_match('/"([^"]+)"/', $ifNoneMatch, $matches);
|
||||
$ifNoneMatch = isset($matches[1]) ? $matches[1] : false;
|
||||
|
||||
if ($ifNoneMatch == $etag) {
|
||||
header('HTTP/1.0 304 Not Modified');
|
||||
die; // stop processing
|
||||
}
|
||||
|
||||
header("Etag: W/\"" . $etag . "\"");
|
||||
|
||||
if ( $ifNoneMatch ) {
|
||||
echo "OK: " . $etag;
|
||||
} else {
|
||||
echo "FAIL";
|
||||
}
|
||||
|
||||
?>
|
@ -1,16 +0,0 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title>.focus() (activeElement access #13393)</title>
|
||||
|
||||
<script src="../../jquery.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<a href="#" id="frame-link"></a>
|
||||
<script>
|
||||
jQuery( "#frame-link" ).trigger( "focus" );
|
||||
window.parent.iframeCallback( true );
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -1,18 +0,0 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title>focusin event cross-frame (#14180)</title>
|
||||
|
||||
<script src="../../jquery.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<input type="text" id="frame-input" />
|
||||
<script>
|
||||
// Call parent when this frame is fully loaded, it will mess with #frame-input
|
||||
jQuery( window ).one( "load", function() {
|
||||
window.parent.iframeCallback( document );
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -1,23 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<title>Test case for gh-2100</title>
|
||||
<script src="../../jquery.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery( document ).ready(function () {
|
||||
window.parent.iframeCallback( jQuery("#container").length === 1 );
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- external resources that come before elements trick
|
||||
oldIE into thinking the dom is ready, but it's not...
|
||||
leaving this check here for future trailblazers to attempt
|
||||
fixing this...-->
|
||||
<script type="text/javascript" src="../longLoadScript.php?sleep=1"></script>
|
||||
<div id="container" style="height: 300px"></div>
|
||||
</body>
|
||||
</html>
|
@ -1,4 +0,0 @@
|
||||
<?php
|
||||
sleep((int)$_GET['sleep']);
|
||||
header('Content-type: text/javascript');
|
||||
?>
|
@ -1,20 +0,0 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<script src="../../jquery.js"></script>
|
||||
<script>
|
||||
function report( event ) {
|
||||
var payload = {
|
||||
event: event.type
|
||||
};
|
||||
return parent.postMessage( JSON.stringify(payload), "*" );
|
||||
}
|
||||
|
||||
jQuery( window ).on( "beforeunload", function( event ) {
|
||||
report( event );
|
||||
}).on( "load", function( event ) {
|
||||
setTimeout(function() {
|
||||
window.location.reload();
|
||||
}, 50);
|
||||
});
|
||||
</script>
|
||||
</html>
|
@ -1,17 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<title>Test case for jQuery ticket #11470</title>
|
||||
<script src="../../jquery.js"></script>
|
||||
<script type="text/javascript">
|
||||
jQuery.when( jQuery.ready ).done(function() {
|
||||
jQuery("body").append("<div>modifying DOM</div>");
|
||||
window.parent.iframeCallback( $("div").text() === "modifying DOM" );
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<!-- empty body -->
|
||||
</body>
|
||||
</html>
|
@ -1,23 +0,0 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||
<title>Test case for jQuery ticket #10067</title>
|
||||
<script src="../../jquery.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script type="text/javascript">
|
||||
jQuery( document ).ready(function () {
|
||||
window.parent.iframeCallback( jQuery('#container').length === 1 );
|
||||
});
|
||||
</script>
|
||||
|
||||
<!-- external resources that come before elements trick
|
||||
oldIE into thinking the dom is ready, but it's not...
|
||||
leaving this check here for future trailblazers to attempt
|
||||
fixing this...-->
|
||||
<script type="text/javascript" src="longLoadScript.php?sleep=1"></script>
|
||||
<div id="container" style="height: 300px"></div>
|
||||
</body>
|
||||
</html>
|
@ -1,18 +0,0 @@
|
||||
<!doctype html>
|
||||
<html>
|
||||
<script src="../../jquery.js"></script>
|
||||
<script>
|
||||
var called = false,
|
||||
error = false;
|
||||
|
||||
window.onerror = function() { error = true; };
|
||||
|
||||
jQuery( window ).on( "beforeunload", function( event ) {
|
||||
called = true;
|
||||
return "maybe";
|
||||
}).on( "load", function( event ) {
|
||||
$( window ).triggerHandler( "beforeunload" );
|
||||
window.parent.iframeCallback( called && !error );
|
||||
});
|
||||
</script>
|
||||
</html>
|
@ -1,23 +0,0 @@
|
||||
<?php
|
||||
|
||||
header( "Sample-Header: Hello World" );
|
||||
header( "Empty-Header: " );
|
||||
header( "Sample-Header2: Hello World 2" );
|
||||
|
||||
$headers = array();
|
||||
|
||||
foreach( $_SERVER as $key => $value ) {
|
||||
|
||||
$key = str_replace( "_" , "-" , substr( $key , 0 , 5 ) == "HTTP_" ? substr( $key , 5 ) : $key );
|
||||
$headers[ $key ] = $value;
|
||||
|
||||
}
|
||||
|
||||
foreach( explode( "_" , $_GET[ "keys" ] ) as $key ) {
|
||||
|
||||
// Only echo if key exists in the header
|
||||
if ( isset( $headers[ strtoupper( $key ) ] ) ) {
|
||||
echo "$key: " . @$headers[ strtoupper( $key ) ] . "\n";
|
||||
}
|
||||
|
||||
}
|
@ -1,20 +0,0 @@
|
||||
<?php
|
||||
error_reporting(0);
|
||||
|
||||
$ts = $_REQUEST['ts'];
|
||||
|
||||
$ifModifiedSince = isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) ? stripslashes($_SERVER['HTTP_IF_MODIFIED_SINCE']) : false;
|
||||
if ($ifModifiedSince == $ts) {
|
||||
header('HTTP/1.0 304 Not Modified');
|
||||
die; // stop processing
|
||||
}
|
||||
|
||||
header("Last-Modified: " . $ts);
|
||||
|
||||
if ( $ifModifiedSince ) {
|
||||
echo "OK: " . $ts;
|
||||
} else {
|
||||
echo "FAIL";
|
||||
}
|
||||
|
||||
?>
|
@ -1,8 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>iframe</title>
|
||||
</head>
|
||||
<body>
|
||||
<div><span>span text</span></div>
|
||||
</body>
|
||||
</html>
|
File diff suppressed because it is too large
Load Diff
@ -1,13 +0,0 @@
|
||||
<?php
|
||||
error_reporting(0);
|
||||
if ( $_REQUEST['header'] ) {
|
||||
header("Content-type: application/json");
|
||||
}
|
||||
|
||||
$json = $_REQUEST['json'];
|
||||
if($json) {
|
||||
echo '[ {"name": "John", "age": 21}, {"name": "Peter", "age": 25 } ]';
|
||||
} else {
|
||||
echo '{ "data": {"lang": "en", "length": 25} }';
|
||||
}
|
||||
?>
|
@ -1 +0,0 @@
|
||||
{ "data": {"lang": "en", "length": 25} }
|
@ -1,14 +0,0 @@
|
||||
<?php
|
||||
error_reporting(0);
|
||||
$callback = $_REQUEST['callback'];
|
||||
if ( ! $callback ) {
|
||||
$callback = explode("?",end(explode("/",$_SERVER['REQUEST_URI'])));
|
||||
$callback = $callback[0];
|
||||
}
|
||||
$json = $_REQUEST['json'];
|
||||
if($json) {
|
||||
echo $callback . '([ {"name": "John", "age": 21}, {"name": "Peter", "age": 25 } ])';
|
||||
} else {
|
||||
echo $callback . '({ "data": {"lang": "en", "length": 25} })';
|
||||
}
|
||||
?>
|
@ -1,36 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset=utf-8 />
|
||||
<title>body</title>
|
||||
</head>
|
||||
<body>
|
||||
<div id="qunit-fixture"></div>
|
||||
<script src="../../jquery.js"></script>
|
||||
<script>
|
||||
var script = document.getElementsByTagName( "script" )[ 0 ],
|
||||
div = document.createElement( "div" ),
|
||||
src = "http://" + window.parent.externalHost,
|
||||
success = true,
|
||||
error = "";
|
||||
|
||||
script.parentNode.appendChild( div );
|
||||
div.innerHTML = "<iframe name=\"test\" src=\"" + src + "\">";
|
||||
|
||||
jQuery(function() {
|
||||
try {
|
||||
jQuery( "<div>hello<div>world</div>!</div>" ).appendTo( "#qunit-fixture" );
|
||||
} catch( e ) {
|
||||
success = false;
|
||||
error = e;
|
||||
}
|
||||
|
||||
window.parent.iframeCallback({
|
||||
status: success,
|
||||
description: "buildFragment sets the context without throwing an exception" +
|
||||
( error ? ": " + error : "" )
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
@ -1 +0,0 @@
|
||||
ERROR <script type="text/javascript">ok( true, "name.html retrieved" );</script>
|
@ -1,24 +0,0 @@
|
||||
<?php
|
||||
error_reporting(0);
|
||||
$wait = $_REQUEST['wait'];
|
||||
if($wait) {
|
||||
sleep($wait);
|
||||
}
|
||||
$xml = $_REQUEST['xml'];
|
||||
if($xml) {
|
||||
header("Content-type: text/xml");
|
||||
$result = ($xml == "5-2") ? "3" : "?";
|
||||
echo "<math><calculation>$xml</calculation><result>$result</result></math>";
|
||||
die();
|
||||
}
|
||||
$name = $_REQUEST['name'];
|
||||
if($name == 'foo') {
|
||||
echo "bar";
|
||||
die();
|
||||
} else if($name == 'peter') {
|
||||
echo "pan";
|
||||
die();
|
||||
}
|
||||
|
||||
echo 'ERROR <script type="text/javascript">ok( true, "name.php executed" );</script>';
|
||||
?>
|
@ -1,5 +0,0 @@
|
||||
<?php
|
||||
|
||||
header('HTTP/1.0 204 No Content');
|
||||
|
||||
?>
|
@ -1,41 +0,0 @@
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
||||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
||||
<title>absolute</title>
|
||||
<style type="text/css" media="screen">
|
||||
body { margin: 1px; padding: 5px; }
|
||||
div.absolute { position: absolute; margin: 1px; border: 2px solid #000; padding: 5px; width: 100px; height: 100px; background: #fff; }
|
||||
#absolute-1 { top: 0; left: 0; }
|
||||
#absolute-1-1 { top: 1px; left: 1px; }
|
||||
#absolute-1-1-1 { top: 1px; left: 1px; }
|
||||
#absolute-2 { top: 19px; left: 19px; }
|
||||
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
||||
p.instructions { position: absolute; bottom: 0; }
|
||||
#positionTest { position: absolute; }
|
||||
</style>
|
||||
<script src="../../jquery.js"></script>
|
||||
<script type="text/javascript" charset="utf-8">
|
||||
jQuery(function($) {
|
||||
$(".absolute").click(function() {
|
||||
$("#marker").css( $(this).offset() );
|
||||
var pos = $(this).position();
|
||||
$(this).css({ top: pos.top, left: pos.left });
|
||||
return false;
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="absolute-1" class="absolute">absolute-1
|
||||
<div id="absolute-1-1" class="absolute">absolute-1-1
|
||||
<div id="absolute-1-1-1" class="absolute">absolute-1-1-1</div>
|
||||
</div>
|
||||
</div>
|
||||
<div id="absolute-2" class="absolute">absolute-2</div>
|
||||
<div id="positionTest">Has absolute position but no values set for the location ('auto').</div>
|
||||
<div id="marker"></div>
|
||||
<p class="instructions">Click the white box to move the marker to it. Clicking the box also changes the position to absolute (if not already) and sets the position according to the position method.</p>
|
||||
</body>
|
||||
</html>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user