mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update components
This commit is contained in:
parent
76376601ab
commit
912bd57ca0
20 changed files with 233 additions and 243 deletions
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "iron-behaviors",
|
"name": "iron-behaviors",
|
||||||
"version": "1.0.12",
|
"version": "1.0.13",
|
||||||
"description": "Provides a set of behaviors for the iron elements",
|
"description": "Provides a set of behaviors for the iron elements",
|
||||||
"private": true,
|
"private": true,
|
||||||
"authors": [
|
"authors": [
|
||||||
|
@ -25,18 +25,18 @@
|
||||||
"iron-test-helpers": "polymerelements/iron-test-helpers#^1.0.0",
|
"iron-test-helpers": "polymerelements/iron-test-helpers#^1.0.0",
|
||||||
"iron-component-page": "polymerelements/iron-component-page#^1.0.0",
|
"iron-component-page": "polymerelements/iron-component-page#^1.0.0",
|
||||||
"test-fixture": "polymerelements/test-fixture#^1.0.0",
|
"test-fixture": "polymerelements/test-fixture#^1.0.0",
|
||||||
"web-component-tester": "polymer/web-component-tester#^3.4.0",
|
"web-component-tester": "^4.0.0",
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
},
|
},
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"homepage": "https://github.com/polymerelements/iron-behaviors",
|
"homepage": "https://github.com/PolymerElements/iron-behaviors",
|
||||||
"_release": "1.0.12",
|
"_release": "1.0.13",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.12",
|
"tag": "v1.0.13",
|
||||||
"commit": "657f526a2382a659cdf4e13be87ecc89261588a3"
|
"commit": "a7bc3428a6da2beed21987b3a8028206826a12bc"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/polymerelements/iron-behaviors.git",
|
"_source": "git://github.com/PolymerElements/iron-behaviors.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "polymerelements/iron-behaviors"
|
"_originalSource": "PolymerElements/iron-behaviors"
|
||||||
}
|
}
|
|
@ -1,22 +1,25 @@
|
||||||
language: node_js
|
language: node_js
|
||||||
sudo: false
|
sudo: false
|
||||||
before_script:
|
before_script:
|
||||||
- npm install bower
|
- npm install -g bower polylint web-component-tester
|
||||||
- npm install web-component-tester
|
|
||||||
- 'export PATH=$PWD/node_modules/.bin:$PATH'
|
|
||||||
- bower install
|
- bower install
|
||||||
|
- polylint
|
||||||
env:
|
env:
|
||||||
global:
|
global:
|
||||||
- secure: ZOqj2XVNVwfT74rHxg/ljcAsS6FnmDpRSsXbsy1Icv9DcLHrMlmyQ10gWBjE/YXYF0Uv4akQ1qqn0TJaKOtp9HZeH+P6OPAYk2vJbWD7qp52pPtIqEFomcsUyflt4IjfaXKuN4FMod7PSWVSGJ+DxSguJvZKILkrs5d/rJdFv3c=
|
- secure: ZOqj2XVNVwfT74rHxg/ljcAsS6FnmDpRSsXbsy1Icv9DcLHrMlmyQ10gWBjE/YXYF0Uv4akQ1qqn0TJaKOtp9HZeH+P6OPAYk2vJbWD7qp52pPtIqEFomcsUyflt4IjfaXKuN4FMod7PSWVSGJ+DxSguJvZKILkrs5d/rJdFv3c=
|
||||||
- secure: clkqemGQG16TXyAPkv9LBv6x3SbT3ZM0eo8LETx4uNKi3WzlwgXxZA9b5Sr5wYzxyxFFpnhDXW7CL4+UjYu1atGNeTW2TuSaYUPHtgu67OFDr8Jbw047p1XQb5enPSt9+YxrHKfjHBiJvWulJ8rCSQshU9Rhe0DC6NrFRPFgk0A=
|
- secure: clkqemGQG16TXyAPkv9LBv6x3SbT3ZM0eo8LETx4uNKi3WzlwgXxZA9b5Sr5wYzxyxFFpnhDXW7CL4+UjYu1atGNeTW2TuSaYUPHtgu67OFDr8Jbw047p1XQb5enPSt9+YxrHKfjHBiJvWulJ8rCSQshU9Rhe0DC6NrFRPFgk0A=
|
||||||
node_js: 4
|
- CXX=g++-4.8
|
||||||
|
node_js: stable
|
||||||
addons:
|
addons:
|
||||||
firefox: latest
|
firefox: latest
|
||||||
apt:
|
apt:
|
||||||
sources:
|
sources:
|
||||||
- google-chrome
|
- google-chrome
|
||||||
|
- ubuntu-toolchain-r-test
|
||||||
packages:
|
packages:
|
||||||
- google-chrome-stable
|
- google-chrome-stable
|
||||||
|
- g++-4.8
|
||||||
|
sauce_connect: true
|
||||||
script:
|
script:
|
||||||
- xvfb-run wct
|
- xvfb-run wct
|
||||||
- "if [ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ]; then wct -s 'default'; fi"
|
- "if [ \"${TRAVIS_PULL_REQUEST}\" = \"false\" ]; then wct -s 'default'; fi"
|
||||||
|
|
|
@ -5,6 +5,11 @@ https://github.com/PolymerElements/ContributionGuide/blob/master/CONTRIBUTING.md
|
||||||
|
|
||||||
If you edit that file, it will get updated everywhere else.
|
If you edit that file, it will get updated everywhere else.
|
||||||
If you edit this file, your changes will get overridden :)
|
If you edit this file, your changes will get overridden :)
|
||||||
|
|
||||||
|
You can however override the jsbin link with one that's customized to this
|
||||||
|
specific element:
|
||||||
|
|
||||||
|
jsbin=https://jsbin.com/cagaye/edit?html,output
|
||||||
-->
|
-->
|
||||||
# Polymer Elements
|
# Polymer Elements
|
||||||
## Guide for Contributors
|
## Guide for Contributors
|
||||||
|
@ -41,7 +46,7 @@ Polymer Elements are built in the open, and the Polymer authors eagerly encourag
|
||||||
3. Click the `paper-foo` element.
|
3. Click the `paper-foo` element.
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **A reduced test case that demonstrates the problem.** If possible, please include the test case as a JSBin. Start with this template to easily import and use relevant Polymer Elements: [http://jsbin.com/cagaye](http://jsbin.com/cagaye/edit?html,output).
|
2. **A reduced test case that demonstrates the problem.** If possible, please include the test case as a JSBin. Start with this template to easily import and use relevant Polymer Elements: [https://jsbin.com/cagaye/edit?html,output](https://jsbin.com/cagaye/edit?html,output).
|
||||||
|
|
||||||
3. **A list of browsers where the problem occurs.** This can be skipped if the problem is the same across all browsers.
|
3. **A list of browsers where the problem occurs.** This can be skipped if the problem is the same across all browsers.
|
||||||
|
|
||||||
|
@ -51,14 +56,14 @@ Polymer Elements are built in the open, and the Polymer authors eagerly encourag
|
||||||
|
|
||||||
When submitting pull requests, please provide:
|
When submitting pull requests, please provide:
|
||||||
|
|
||||||
1. **A reference to the corresponding issue** or issues that will be closed by the pull request. Please refer to these issues using the following syntax:
|
1. **A reference to the corresponding issue** or issues that will be closed by the pull request. Please refer to these issues in the pull request description using the following syntax:
|
||||||
|
|
||||||
```markdown
|
```markdown
|
||||||
(For a single issue)
|
(For a single issue)
|
||||||
Fixes #20
|
Fixes #20
|
||||||
|
|
||||||
(For multiple issues)
|
(For multiple issues)
|
||||||
Fixes #32, #40
|
Fixes #32, fixes #40
|
||||||
```
|
```
|
||||||
|
|
||||||
2. **A succinct description of the design** used to fix any related issues. For example:
|
2. **A succinct description of the design** used to fix any related issues. For example:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "iron-behaviors",
|
"name": "iron-behaviors",
|
||||||
"version": "1.0.12",
|
"version": "1.0.13",
|
||||||
"description": "Provides a set of behaviors for the iron elements",
|
"description": "Provides a set of behaviors for the iron elements",
|
||||||
"private": true,
|
"private": true,
|
||||||
"authors": [
|
"authors": [
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
"iron-test-helpers": "polymerelements/iron-test-helpers#^1.0.0",
|
"iron-test-helpers": "polymerelements/iron-test-helpers#^1.0.0",
|
||||||
"iron-component-page": "polymerelements/iron-component-page#^1.0.0",
|
"iron-component-page": "polymerelements/iron-component-page#^1.0.0",
|
||||||
"test-fixture": "polymerelements/test-fixture#^1.0.0",
|
"test-fixture": "polymerelements/test-fixture#^1.0.0",
|
||||||
"web-component-tester": "polymer/web-component-tester#^3.4.0",
|
"web-component-tester": "^4.0.0",
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
},
|
},
|
||||||
"ignore": []
|
"ignore": []
|
||||||
|
|
|
@ -89,6 +89,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||||
this._oldTabIndex = this.tabIndex;
|
this._oldTabIndex = this.tabIndex;
|
||||||
this.focused = false;
|
this.focused = false;
|
||||||
this.tabIndex = -1;
|
this.tabIndex = -1;
|
||||||
|
this.blur();
|
||||||
} else if (this._oldTabIndex !== undefined) {
|
} else if (this._oldTabIndex !== undefined) {
|
||||||
this.tabIndex = this._oldTabIndex;
|
this.tabIndex = this._oldTabIndex;
|
||||||
}
|
}
|
||||||
|
|
|
@ -77,12 +77,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||||
});
|
});
|
||||||
|
|
||||||
suite('when the focused state is disabled', function() {
|
suite('when the focused state is disabled', function() {
|
||||||
setup(function() {
|
|
||||||
focusTarget.disabled = true;
|
|
||||||
});
|
|
||||||
|
|
||||||
test('will not be focusable', function() {
|
test('will not be focusable', function() {
|
||||||
|
var blurSpy = sinon.spy(focusTarget, 'blur');
|
||||||
|
MockInteractions.focus(focusTarget);
|
||||||
|
focusTarget.disabled = true;
|
||||||
expect(focusTarget.getAttribute('tabindex')).to.be.eql('-1');
|
expect(focusTarget.getAttribute('tabindex')).to.be.eql('-1');
|
||||||
|
expect(blurSpy.called).to.be.eql(true);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "iron-menu-behavior",
|
"name": "iron-menu-behavior",
|
||||||
"version": "1.1.1",
|
"version": "1.1.2",
|
||||||
"description": "Provides accessible menu behavior",
|
"description": "Provides accessible menu behavior",
|
||||||
"authors": "The Polymer Authors",
|
"authors": "The Polymer Authors",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
@ -34,11 +34,11 @@
|
||||||
"web-component-tester": "^4.0.0",
|
"web-component-tester": "^4.0.0",
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
},
|
},
|
||||||
"_release": "1.1.1",
|
"_release": "1.1.2",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.1.1",
|
"tag": "v1.1.2",
|
||||||
"commit": "0fc2c95803badd8e8f50cbe7f5d3669d647e7229"
|
"commit": "8b09b6187b748499a0b8e9ddc789391d26e1d5d1"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/polymerelements/iron-menu-behavior.git",
|
"_source": "git://github.com/polymerelements/iron-menu-behavior.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "iron-menu-behavior",
|
"name": "iron-menu-behavior",
|
||||||
"version": "1.1.1",
|
"version": "1.1.2",
|
||||||
"description": "Provides accessible menu behavior",
|
"description": "Provides accessible menu behavior",
|
||||||
"authors": "The Polymer Authors",
|
"authors": "The Polymer Authors",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
|
|
|
@ -273,6 +273,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||||
_onUpKey: function(event) {
|
_onUpKey: function(event) {
|
||||||
// up and down arrows moves the focus
|
// up and down arrows moves the focus
|
||||||
this._focusPrevious();
|
this._focusPrevious();
|
||||||
|
event.detail.keyboardEvent.preventDefault();
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -282,6 +283,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||||
*/
|
*/
|
||||||
_onDownKey: function(event) {
|
_onDownKey: function(event) {
|
||||||
this._focusNext();
|
this._focusNext();
|
||||||
|
event.detail.keyboardEvent.preventDefault();
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -43,20 +43,22 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||||
return window.getComputedStyle(this)['direction'] === 'rtl';
|
return window.getComputedStyle(this)['direction'] === 'rtl';
|
||||||
},
|
},
|
||||||
|
|
||||||
_onLeftKey: function() {
|
_onLeftKey: function(event) {
|
||||||
if (this._isRTL) {
|
if (this._isRTL) {
|
||||||
this._focusNext();
|
this._focusNext();
|
||||||
} else {
|
} else {
|
||||||
this._focusPrevious();
|
this._focusPrevious();
|
||||||
}
|
}
|
||||||
|
event.detail.keyboardEvent.preventDefault();
|
||||||
},
|
},
|
||||||
|
|
||||||
_onRightKey: function() {
|
_onRightKey: function(event) {
|
||||||
if (this._isRTL) {
|
if (this._isRTL) {
|
||||||
this._focusPrevious();
|
this._focusPrevious();
|
||||||
} else {
|
} else {
|
||||||
this._focusNext();
|
this._focusNext();
|
||||||
}
|
}
|
||||||
|
event.detail.keyboardEvent.preventDefault();
|
||||||
},
|
},
|
||||||
|
|
||||||
_onKeydown: function(event) {
|
_onKeydown: function(event) {
|
||||||
|
|
|
@ -26,14 +26,14 @@
|
||||||
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
|
||||||
},
|
},
|
||||||
"main": "iron-meta.html",
|
"main": "iron-meta.html",
|
||||||
"homepage": "https://github.com/polymerelements/iron-meta",
|
"homepage": "https://github.com/PolymerElements/iron-meta",
|
||||||
"_release": "1.1.1",
|
"_release": "1.1.1",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.1.1",
|
"tag": "v1.1.1",
|
||||||
"commit": "e171ee234b482219c9514e6f9551df48ef48bd9f"
|
"commit": "e171ee234b482219c9514e6f9551df48ef48bd9f"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/polymerelements/iron-meta.git",
|
"_source": "git://github.com/PolymerElements/iron-meta.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "polymerelements/iron-meta"
|
"_originalSource": "PolymerElements/iron-meta"
|
||||||
}
|
}
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "iron-overlay-behavior",
|
"name": "iron-overlay-behavior",
|
||||||
"version": "1.3.2",
|
"version": "1.3.3",
|
||||||
"license": "http://polymer.github.io/LICENSE.txt",
|
"license": "http://polymer.github.io/LICENSE.txt",
|
||||||
"description": "Provides a behavior for making an element an overlay",
|
"description": "Provides a behavior for making an element an overlay",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
@ -25,6 +25,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
|
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
|
||||||
|
"iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0",
|
||||||
"iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0",
|
"iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0",
|
||||||
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0",
|
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0",
|
||||||
"paper-styles": "PolymerElements/paper-styles#^1.0.2",
|
"paper-styles": "PolymerElements/paper-styles#^1.0.2",
|
||||||
|
@ -33,11 +34,11 @@
|
||||||
},
|
},
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"homepage": "https://github.com/polymerelements/iron-overlay-behavior",
|
"homepage": "https://github.com/polymerelements/iron-overlay-behavior",
|
||||||
"_release": "1.3.2",
|
"_release": "1.3.3",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.3.2",
|
"tag": "v1.3.3",
|
||||||
"commit": "17d07bd2436f94af8de83b5f8b6444a194eb67a4"
|
"commit": "7279b3bedd0f0dd70dbfb3d7557d1f49c7432941"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/polymerelements/iron-overlay-behavior.git",
|
"_source": "git://github.com/polymerelements/iron-overlay-behavior.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "iron-overlay-behavior",
|
"name": "iron-overlay-behavior",
|
||||||
"version": "1.3.2",
|
"version": "1.3.3",
|
||||||
"license": "http://polymer.github.io/LICENSE.txt",
|
"license": "http://polymer.github.io/LICENSE.txt",
|
||||||
"description": "Provides a behavior for making an element an overlay",
|
"description": "Provides a behavior for making an element an overlay",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
@ -25,6 +25,7 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
|
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0",
|
||||||
|
"iron-demo-helpers": "PolymerElements/iron-demo-helpers#^1.0.0",
|
||||||
"iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0",
|
"iron-flex-layout": "PolymerElements/iron-flex-layout#^1.0.0",
|
||||||
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0",
|
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0",
|
||||||
"paper-styles": "PolymerElements/paper-styles#^1.0.2",
|
"paper-styles": "PolymerElements/paper-styles#^1.0.2",
|
||||||
|
|
|
@ -9,148 +9,143 @@ Code distributed by Google as part of the polymer project is also
|
||||||
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
|
||||||
-->
|
-->
|
||||||
<html>
|
<html>
|
||||||
<head>
|
|
||||||
|
|
||||||
<title>simple-overlay demo</title>
|
<head>
|
||||||
|
|
||||||
<meta charset="utf-8">
|
<title>simple-overlay demo</title>
|
||||||
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
||||||
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
|
|
||||||
|
|
||||||
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
|
<meta name="viewport" content="width=device-width, minimum-scale=1.0, initial-scale=1, user-scalable=yes">
|
||||||
|
|
||||||
<link rel="import" href="../../iron-flex-layout/iron-flex-layout.html">
|
<script src="../../webcomponentsjs/webcomponents-lite.js"></script>
|
||||||
<link rel="import" href="simple-overlay.html">
|
|
||||||
<link rel="import" href="../../paper-styles/demo-pages.html">
|
|
||||||
|
|
||||||
<style is="custom-style">
|
<link rel="import" href="../../iron-flex-layout/iron-flex-layout.html">
|
||||||
|
<link rel="import" href="simple-overlay.html">
|
||||||
|
<link rel="import" href="../../iron-demo-helpers/demo-snippet.html">
|
||||||
|
<link rel="import" href="../../iron-demo-helpers/demo-pages-shared-styles.html">
|
||||||
|
|
||||||
.with-margin {
|
<style is="custom-style" include="demo-pages-shared-styles">
|
||||||
margin: 24px 40px;
|
demo-snippet {
|
||||||
|
--demo-snippet-code: {
|
||||||
|
max-height: 250px;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
.full-height {
|
</head>
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.scrollable {
|
<body unresolved class="centered">
|
||||||
overflow: auto;
|
|
||||||
}
|
|
||||||
|
|
||||||
.vertical {
|
<h3>An element with <code>IronOverlayBehavior</code> can be opened, closed, toggled.</h3>
|
||||||
@apply(--layout-vertical);
|
<demo-snippet>
|
||||||
}
|
<template>
|
||||||
|
<button onclick="plain.open()">Plain overlay</button>
|
||||||
.flex {
|
<simple-overlay id="plain" tabindex=-1>
|
||||||
@apply(--layout-flex);
|
<h2>Hello world!</h2>
|
||||||
}
|
<p>This can be closed by pressing the ESC key too.</p>
|
||||||
</style>
|
<button onclick="plain.close()">Close</button>
|
||||||
|
|
||||||
</head>
|
|
||||||
<body onclick="clickHandler(event);">
|
|
||||||
|
|
||||||
<div class="vertical-section centered">
|
|
||||||
<button data-dialog="plain">plain</button>
|
|
||||||
|
|
||||||
<simple-overlay id="plain">
|
|
||||||
Hello world!
|
|
||||||
</simple-overlay>
|
</simple-overlay>
|
||||||
|
</template>
|
||||||
|
</demo-snippet>
|
||||||
|
|
||||||
<button data-dialog="scrolling">scrolling</button>
|
<h3>Use <code>with-backdrop</code> to add a backdrop to your overlay. Tabbing will be trapped within the overlay.</h3>
|
||||||
|
<demo-snippet>
|
||||||
<simple-overlay id="scrolling" class="with-margin scrollable">
|
<template>
|
||||||
<p>This dialog scrolls internally.</p>
|
<button onclick="backdrop.open()">Overlay with backdrop</button>
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
</simple-overlay>
|
|
||||||
|
|
||||||
<button data-dialog="scrolling-2">scrolling 2</button>
|
|
||||||
|
|
||||||
<simple-overlay id="scrolling-2" class="with-margin full-height vertical">
|
|
||||||
<p>This dialog has a scrolling child.</p>
|
|
||||||
<div class="flex scrollable">
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
|
||||||
</div>
|
|
||||||
</simple-overlay>
|
|
||||||
|
|
||||||
<button data-dialog="multiple">multiple</button>
|
|
||||||
|
|
||||||
<simple-overlay id="multiple">
|
|
||||||
<p>click to open another overlay</p>
|
|
||||||
<p><button data-dialog="multiple2">click</button></p>
|
|
||||||
</simple-overlay>
|
|
||||||
|
|
||||||
<simple-overlay id="multiple2">
|
|
||||||
Hi!
|
|
||||||
</simple-overlay>
|
|
||||||
|
|
||||||
<button data-dialog="backdrop">backdrop</button>
|
|
||||||
|
|
||||||
<simple-overlay id="backdrop" with-backdrop>
|
<simple-overlay id="backdrop" with-backdrop>
|
||||||
<p>Hello world!</p>
|
<p>Hello world!</p>
|
||||||
<button>button</button>
|
<button>Button</button>
|
||||||
<button>button</button>
|
<button onclick="backdrop.close()">Close</button>
|
||||||
<button>button</button>
|
|
||||||
</simple-overlay>
|
</simple-overlay>
|
||||||
|
</template>
|
||||||
|
</demo-snippet>
|
||||||
|
|
||||||
<button data-dialog="autofocus">autofocus</button>
|
<h3>The child with <code>autofocus</code> gets focused when opening the overlay.</h3>
|
||||||
|
<demo-snippet>
|
||||||
<simple-overlay id="autofocus">
|
<template>
|
||||||
|
<button onclick="withAutofocus.open()">Overlay with autofocus child</button>
|
||||||
|
<simple-overlay id="withAutofocus">
|
||||||
<p>Hello world!</p>
|
<p>Hello world!</p>
|
||||||
<button>cancel</button>
|
|
||||||
<button autofocus>autofocus</button>
|
<button autofocus>autofocus</button>
|
||||||
|
<button onclick="withAutofocus.close()">Close</button>
|
||||||
|
</simple-overlay>
|
||||||
|
</template>
|
||||||
|
</demo-snippet>
|
||||||
|
|
||||||
|
<h3>Multiple overlays can be opened.</h3>
|
||||||
|
<demo-snippet>
|
||||||
|
<template>
|
||||||
|
<button onclick="multiple.open()">Open first overlay</button>
|
||||||
|
<simple-overlay id="multiple" tabindex=-1>
|
||||||
|
<p>click to open another overlay</p>
|
||||||
|
<button onclick="multiple2.open()">Open second overlay</button>
|
||||||
|
<button onclick="multiple.close()">Close this</button>
|
||||||
|
</simple-overlay>
|
||||||
|
<simple-overlay id="multiple2" tabindex=-1>
|
||||||
|
<h2>Hi!</h2>
|
||||||
|
<button onclick="multiple2.close()">Close</button>
|
||||||
|
</simple-overlay>
|
||||||
|
</template>
|
||||||
|
</demo-snippet>
|
||||||
|
|
||||||
|
<h3>An element with <code>IronOverlayBehavior</code> can be scrollable or contain scrollable content.</h3>
|
||||||
|
<demo-snippet>
|
||||||
|
<template>
|
||||||
|
<style>
|
||||||
|
.with-margin {
|
||||||
|
margin: 24px 40px;
|
||||||
|
}
|
||||||
|
.scrollable {
|
||||||
|
max-height: 300px;
|
||||||
|
overflow: auto;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<button onclick="scrolling.open()">Scrolling overlay</button>
|
||||||
|
|
||||||
|
<simple-overlay id="scrolling" class="with-margin scrollable" tabindex=-1>
|
||||||
|
<h2>This dialog scrolls internally.</h2>
|
||||||
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
|
||||||
|
dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||||
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
|
||||||
|
dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||||
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
|
||||||
|
dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||||
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
|
||||||
|
dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||||
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
|
||||||
|
dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||||
|
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
|
||||||
|
dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||||
|
<button onclick="scrolling.close()">Close</button>
|
||||||
</simple-overlay>
|
</simple-overlay>
|
||||||
|
|
||||||
</div>
|
<button onclick="scrolling2.open()">Scrolling content</button>
|
||||||
|
|
||||||
<script>
|
<simple-overlay id="scrolling2" class="with-margin" tabindex=-1>
|
||||||
|
<h2>This dialog has a scrolling child.</h2>
|
||||||
|
<div class="scrollable">
|
||||||
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
|
||||||
|
dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||||
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
|
||||||
|
dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||||
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
|
||||||
|
dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||||
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
|
||||||
|
dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||||
|
<p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
|
||||||
|
dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||||
|
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure
|
||||||
|
dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
|
||||||
|
</div>
|
||||||
|
<p>
|
||||||
|
<button onclick="scrolling2.close()">Close</button>
|
||||||
|
</p>
|
||||||
|
|
||||||
function clickHandler(e) {
|
</simple-overlay>
|
||||||
if (!e.target.hasAttribute('data-dialog')) {
|
</template>
|
||||||
return;
|
</demo-snippet>
|
||||||
}
|
|
||||||
|
|
||||||
var id = e.target.getAttribute('data-dialog');
|
</body>
|
||||||
var dialog = document.getElementById(id);
|
|
||||||
if (dialog) {
|
|
||||||
dialog.open();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
</script>
|
|
||||||
|
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -179,9 +179,12 @@ context. You should place this element as a child of `<body>` whenever possible.
|
||||||
if (this._callOpenedWhenReady) {
|
if (this._callOpenedWhenReady) {
|
||||||
this._openedChanged();
|
this._openedChanged();
|
||||||
}
|
}
|
||||||
|
this._observer = Polymer.dom(this).observeNodes(this._onNodesChange);
|
||||||
},
|
},
|
||||||
|
|
||||||
detached: function() {
|
detached: function() {
|
||||||
|
Polymer.dom(this).unobserveNodes(this._observer);
|
||||||
|
this._observer = null;
|
||||||
this.opened = false;
|
this.opened = false;
|
||||||
this._manager.trackBackdrop(this);
|
this._manager.trackBackdrop(this);
|
||||||
this._manager.removeOverlay(this);
|
this._manager.removeOverlay(this);
|
||||||
|
@ -212,7 +215,7 @@ context. You should place this element as a child of `<body>` whenever possible.
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Cancels the overlay.
|
* Cancels the overlay.
|
||||||
* @param {?Event} event The original event
|
* @param {?Event} event The original event
|
||||||
*/
|
*/
|
||||||
cancel: function(event) {
|
cancel: function(event) {
|
||||||
|
@ -239,7 +242,6 @@ context. You should place this element as a child of `<body>` whenever possible.
|
||||||
this.removeAttribute('aria-hidden');
|
this.removeAttribute('aria-hidden');
|
||||||
} else {
|
} else {
|
||||||
this.setAttribute('aria-hidden', 'true');
|
this.setAttribute('aria-hidden', 'true');
|
||||||
Polymer.dom(this).unobserveNodes(this._observer);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// wait to call after ready only if we're initially open
|
// wait to call after ready only if we're initially open
|
||||||
|
@ -330,6 +332,8 @@ context. You should place this element as a child of `<body>` whenever possible.
|
||||||
|
|
||||||
this._manager.addOverlay(this);
|
this._manager.addOverlay(this);
|
||||||
|
|
||||||
|
// Needed to calculate the size of the overlay so that transitions on its size
|
||||||
|
// will have the correct starting points.
|
||||||
this._preparePositioning();
|
this._preparePositioning();
|
||||||
this.fit();
|
this.fit();
|
||||||
this._finishPositioning();
|
this._finishPositioning();
|
||||||
|
@ -362,23 +366,24 @@ context. You should place this element as a child of `<body>` whenever possible.
|
||||||
},
|
},
|
||||||
|
|
||||||
_finishRenderOpened: function() {
|
_finishRenderOpened: function() {
|
||||||
// focus the child node with [autofocus]
|
// This ensures the overlay is visible before we set the focus
|
||||||
|
// (by calling _onIronResize -> refit).
|
||||||
|
this.notifyResize();
|
||||||
|
// Focus the child node with [autofocus]
|
||||||
this._applyFocus();
|
this._applyFocus();
|
||||||
|
|
||||||
this._observer = Polymer.dom(this).observeNodes(this.notifyResize);
|
|
||||||
this.fire('iron-overlay-opened');
|
this.fire('iron-overlay-opened');
|
||||||
},
|
},
|
||||||
|
|
||||||
_finishRenderClosed: function() {
|
_finishRenderClosed: function() {
|
||||||
// hide the overlay and remove the backdrop
|
// Hide the overlay and remove the backdrop.
|
||||||
this.resetFit();
|
this.resetFit();
|
||||||
this.style.display = 'none';
|
this.style.display = 'none';
|
||||||
this._manager.removeOverlay(this);
|
this._manager.removeOverlay(this);
|
||||||
|
|
||||||
this._focusedChild = null;
|
|
||||||
this._applyFocus();
|
this._applyFocus();
|
||||||
|
|
||||||
this.notifyResize();
|
this.notifyResize();
|
||||||
|
|
||||||
this.fire('iron-overlay-closed', this.closingReason);
|
this.fire('iron-overlay-closed', this.closingReason);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -391,8 +396,9 @@ context. You should place this element as a child of `<body>` whenever possible.
|
||||||
_finishPositioning: function() {
|
_finishPositioning: function() {
|
||||||
this.style.display = 'none';
|
this.style.display = 'none';
|
||||||
this.style.transform = this.style.webkitTransform = '';
|
this.style.transform = this.style.webkitTransform = '';
|
||||||
// force layout to avoid application of transform
|
// Force layout layout to avoid application of transform.
|
||||||
/** @suppress {suspiciousCode} */ this.offsetWidth;
|
// Set offsetWidth to itself so that compilers won't remove it.
|
||||||
|
this.offsetWidth = this.offsetWidth;
|
||||||
this.style.transition = this.style.webkitTransition = '';
|
this.style.transition = this.style.webkitTransition = '';
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -403,6 +409,7 @@ context. You should place this element as a child of `<body>` whenever possible.
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this._focusNode.blur();
|
this._focusNode.blur();
|
||||||
|
this._focusedChild = null;
|
||||||
this._manager.focusOverlay();
|
this._manager.focusOverlay();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -444,6 +451,17 @@ context. You should place this element as a child of `<body>` whenever possible.
|
||||||
if (this.opened) {
|
if (this.opened) {
|
||||||
this.refit();
|
this.refit();
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @protected
|
||||||
|
* Will call notifyResize if overlay is opened.
|
||||||
|
* Can be overridden in order to avoid multiple observers on the same node.
|
||||||
|
*/
|
||||||
|
_onNodesChange: function() {
|
||||||
|
if (this.opened) {
|
||||||
|
this.notifyResize();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -134,16 +134,28 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||||
});
|
});
|
||||||
|
|
||||||
test('open() triggers iron-resize', function(done) {
|
test('open() triggers iron-resize', function(done) {
|
||||||
|
// Ignore the iron-resize on attached.
|
||||||
|
var callCount = -1;
|
||||||
// Ignore iron-resize triggered by window resize.
|
// Ignore iron-resize triggered by window resize.
|
||||||
var callCount = 0;
|
|
||||||
window.addEventListener('resize', function() { callCount--; }, true);
|
window.addEventListener('resize', function() { callCount--; }, true);
|
||||||
overlay.addEventListener('iron-resize', function() { callCount++; });
|
overlay.addEventListener('iron-resize', function() { callCount++; });
|
||||||
runAfterOpen(overlay, function() {
|
runAfterOpen(overlay, function() {
|
||||||
assert.equal(callCount, 1, 'iron-resize should be called once');
|
assert.equal(callCount, 1, 'iron-resize called once before iron-overlay-opened');
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
test('close() triggers iron-resize', function(done) {
|
||||||
|
runAfterOpen(overlay, function() {
|
||||||
|
var spy = sinon.stub();
|
||||||
|
overlay.addEventListener('iron-resize', spy);
|
||||||
|
runAfterClose(overlay, function() {
|
||||||
|
assert.equal(spy.callCount, 1, 'iron-resize called once before iron-overlay-closed');
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
test('closed overlay does not trigger iron-resize when its content changes', function(done) {
|
test('closed overlay does not trigger iron-resize when its content changes', function(done) {
|
||||||
// Ignore iron-resize triggered by window resize.
|
// Ignore iron-resize triggered by window resize.
|
||||||
var callCount = 0;
|
var callCount = 0;
|
||||||
|
@ -158,13 +170,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
|
||||||
|
|
||||||
test('open overlay triggers iron-resize when its content changes', function(done) {
|
test('open overlay triggers iron-resize when its content changes', function(done) {
|
||||||
runAfterOpen(overlay, function() {
|
runAfterOpen(overlay, function() {
|
||||||
// Ignore iron-resize triggered by window resize.
|
var spy = sinon.stub();
|
||||||
var callCount = 0;
|
overlay.addEventListener('iron-resize', spy);
|
||||||
window.addEventListener('resize', function() { callCount--; }, true);
|
|
||||||
overlay.addEventListener('iron-resize', function() { callCount++; });
|
|
||||||
Polymer.dom(overlay).appendChild(document.createElement('div'));
|
Polymer.dom(overlay).appendChild(document.createElement('div'));
|
||||||
overlay.async(function() {
|
overlay.async(function() {
|
||||||
assert.equal(callCount, 1, 'iron-resize should be called once');
|
assert.equal(spy.callCount, 1, 'iron-resize should be called once');
|
||||||
done();
|
done();
|
||||||
}, 10);
|
}, 10);
|
||||||
});
|
});
|
||||||
|
|
|
@ -45,7 +45,7 @@
|
||||||
"tag": "v1.0.11",
|
"tag": "v1.0.11",
|
||||||
"commit": "e3c1ab0c72905b58fb4d9adc2921ea73b5c085a5"
|
"commit": "e3c1ab0c72905b58fb4d9adc2921ea73b5c085a5"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/PolymerElements/paper-behaviors.git",
|
"_source": "git://github.com/polymerelements/paper-behaviors.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "PolymerElements/paper-behaviors"
|
"_originalSource": "polymerelements/paper-behaviors"
|
||||||
}
|
}
|
|
@ -36,14 +36,14 @@
|
||||||
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0"
|
"iron-component-page": "PolymerElements/iron-component-page#^1.0.0"
|
||||||
},
|
},
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"homepage": "https://github.com/polymerelements/paper-icon-button",
|
"homepage": "https://github.com/PolymerElements/paper-icon-button",
|
||||||
"_release": "1.0.6",
|
"_release": "1.0.6",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.6",
|
"tag": "v1.0.6",
|
||||||
"commit": "35347d81939093cd2abe2783ac1b17fa57b7b303"
|
"commit": "35347d81939093cd2abe2783ac1b17fa57b7b303"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/polymerelements/paper-icon-button.git",
|
"_source": "git://github.com/PolymerElements/paper-icon-button.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "polymerelements/paper-icon-button"
|
"_originalSource": "PolymerElements/paper-icon-button"
|
||||||
}
|
}
|
|
@ -32,14 +32,14 @@
|
||||||
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0"
|
"iron-test-helpers": "PolymerElements/iron-test-helpers#^1.0.0"
|
||||||
},
|
},
|
||||||
"ignore": [],
|
"ignore": [],
|
||||||
"homepage": "https://github.com/PolymerElements/paper-ripple",
|
"homepage": "https://github.com/polymerelements/paper-ripple",
|
||||||
"_release": "1.0.5",
|
"_release": "1.0.5",
|
||||||
"_resolution": {
|
"_resolution": {
|
||||||
"type": "version",
|
"type": "version",
|
||||||
"tag": "v1.0.5",
|
"tag": "v1.0.5",
|
||||||
"commit": "d72e7a9a8ab518b901ed18dde492df3b87a93be5"
|
"commit": "d72e7a9a8ab518b901ed18dde492df3b87a93be5"
|
||||||
},
|
},
|
||||||
"_source": "git://github.com/PolymerElements/paper-ripple.git",
|
"_source": "git://github.com/polymerelements/paper-ripple.git",
|
||||||
"_target": "^1.0.0",
|
"_target": "^1.0.0",
|
||||||
"_originalSource": "PolymerElements/paper-ripple"
|
"_originalSource": "polymerelements/paper-ripple"
|
||||||
}
|
}
|
|
@ -7,97 +7,45 @@
|
||||||
var profile = {};
|
var profile = {};
|
||||||
|
|
||||||
profile.MaxStreamingBitrate = bitrateSetting;
|
profile.MaxStreamingBitrate = bitrateSetting;
|
||||||
profile.MaxStaticBitrate = 40000000;
|
profile.MaxStaticBitrate = 100000000;
|
||||||
profile.MusicStreamingTranscodingBitrate = Math.min(bitrateSetting, 192000);
|
profile.MusicStreamingTranscodingBitrate = 192000;
|
||||||
|
|
||||||
profile.DirectPlayProfiles = [];
|
profile.DirectPlayProfiles = [];
|
||||||
|
|
||||||
profile.DirectPlayProfiles.push({
|
profile.DirectPlayProfiles.push({
|
||||||
Container: 'mkv,mov,mp4,m4v,wmv',
|
Container: 'm4v,3gp,ts,mpegts,mov,xvid,vob,mkv,wmv,asf,ogm,ogv,m2v,avi,mpg,mpeg,mp4,webm,wtv,dvr-ms',
|
||||||
Type: 'Video'
|
Type: 'Video'
|
||||||
});
|
});
|
||||||
|
|
||||||
profile.DirectPlayProfiles.push({
|
profile.DirectPlayProfiles.push({
|
||||||
Container: 'aac,mp3,flac,wma',
|
Container: 'aac,mp3,mpa,wav,wma,mp2,ogg,oga,webma,ape,opus,flac',
|
||||||
Type: 'Audio'
|
Type: 'Audio'
|
||||||
});
|
});
|
||||||
|
|
||||||
profile.TranscodingProfiles = [];
|
profile.TranscodingProfiles = [];
|
||||||
|
|
||||||
profile.TranscodingProfiles.push({
|
profile.TranscodingProfiles.push({
|
||||||
Container: 'ts',
|
Container: 'mkv',
|
||||||
Type: 'Video',
|
Type: 'Video',
|
||||||
AudioCodec: 'aac',
|
AudioCodec: 'aac,mp3,ac3',
|
||||||
VideoCodec: 'h264',
|
VideoCodec: 'h264',
|
||||||
Context: 'Streaming',
|
Context: 'Streaming'
|
||||||
Protocol: 'hls'
|
|
||||||
});
|
});
|
||||||
|
|
||||||
profile.TranscodingProfiles.push({
|
profile.TranscodingProfiles.push({
|
||||||
Container: 'aac',
|
Container: 'mp3',
|
||||||
Type: 'Audio',
|
Type: 'Audio',
|
||||||
AudioCodec: 'aac',
|
AudioCodec: 'mp3',
|
||||||
Context: 'Streaming',
|
Context: 'Streaming',
|
||||||
Protocol: 'hls'
|
Protocol: 'http'
|
||||||
});
|
});
|
||||||
|
|
||||||
profile.ContainerProfiles = [];
|
profile.ContainerProfiles = [];
|
||||||
|
|
||||||
var audioConditions = [];
|
|
||||||
|
|
||||||
var maxAudioChannels = '6';
|
|
||||||
|
|
||||||
audioConditions.push({
|
|
||||||
Condition: 'LessThanEqual',
|
|
||||||
Property: 'AudioChannels',
|
|
||||||
Value: maxAudioChannels
|
|
||||||
});
|
|
||||||
|
|
||||||
profile.CodecProfiles = [];
|
profile.CodecProfiles = [];
|
||||||
profile.CodecProfiles.push({
|
|
||||||
Type: 'Audio',
|
|
||||||
Conditions: audioConditions
|
|
||||||
});
|
|
||||||
|
|
||||||
profile.CodecProfiles.push({
|
|
||||||
Type: 'VideoAudio',
|
|
||||||
Codec: 'mp3',
|
|
||||||
Conditions: [{
|
|
||||||
Condition: 'LessThanEqual',
|
|
||||||
Property: 'AudioChannels',
|
|
||||||
Value: maxAudioChannels
|
|
||||||
}]
|
|
||||||
});
|
|
||||||
|
|
||||||
profile.CodecProfiles.push({
|
|
||||||
Type: 'VideoAudio',
|
|
||||||
Codec: 'aac',
|
|
||||||
Conditions: [
|
|
||||||
{
|
|
||||||
Condition: 'LessThanEqual',
|
|
||||||
Property: 'AudioChannels',
|
|
||||||
Value: maxAudioChannels
|
|
||||||
}
|
|
||||||
]
|
|
||||||
});
|
|
||||||
|
|
||||||
profile.CodecProfiles.push({
|
|
||||||
Type: 'Video',
|
|
||||||
Codec: 'h264',
|
|
||||||
Conditions: [
|
|
||||||
{
|
|
||||||
Condition: 'EqualsAny',
|
|
||||||
Property: 'VideoProfile',
|
|
||||||
Value: 'high|main|baseline|constrained baseline'
|
|
||||||
},
|
|
||||||
{
|
|
||||||
Condition: 'LessThanEqual',
|
|
||||||
Property: 'VideoLevel',
|
|
||||||
Value: '50'
|
|
||||||
}]
|
|
||||||
});
|
|
||||||
|
|
||||||
// Subtitle profiles
|
// Subtitle profiles
|
||||||
|
// External vtt or burn in
|
||||||
profile.SubtitleProfiles = [];
|
profile.SubtitleProfiles = [];
|
||||||
profile.SubtitleProfiles.push({
|
profile.SubtitleProfiles.push({
|
||||||
Format: 'srt',
|
Format: 'srt',
|
||||||
|
@ -139,6 +87,10 @@
|
||||||
Format: 'idx',
|
Format: 'idx',
|
||||||
Method: 'Embed'
|
Method: 'Embed'
|
||||||
});
|
});
|
||||||
|
profile.SubtitleProfiles.push({
|
||||||
|
Format: 'smi',
|
||||||
|
Method: 'Embed'
|
||||||
|
});
|
||||||
|
|
||||||
profile.ResponseProfiles = [];
|
profile.ResponseProfiles = [];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue