mirror of
https://github.com/jlengrand/webcomponentsjs.git
synced 2026-03-10 08:51:22 +00:00
11 lines
1.8 KiB
JavaScript
11 lines
1.8 KiB
JavaScript
(function(){'use strict';/**
|
|
* @license
|
|
* Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
|
|
* This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
|
|
* The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
|
|
* The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
|
|
* 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
|
|
*/(function(){window.HTMLImports=window.HTMLImports||{flags:{}};var a={};a.noOpts||location.search.slice(1).split('&').forEach(function(e){var g=e.split('='),h;g[0]&&(h=g[0].match(/wc-(.+)/))&&(a[h[1]]=g[1]||!0)});var b='html-imports.js',c=document.querySelector('script[src*="'+b+'"]').getAttribute('src'),d=c.slice(0,c.indexOf(b));['base.js','module.js','path.js','xhr.js','Loader.js','Observer.js','parser.js','importer.js','dynamic.js','boot.js'].forEach(function(e){document.write('<script src="'+d+e+'"></script>')}),window.HTMLImports.flags=a})(),function(a){'use strict';var b=a.flags.shadydom;b&&(window.ShadyDOM=window.ShadyDOM||{},ShadyDOM.force=b);var c=a.flags.register||a.flags.ce;c&&window.customElements&&(customElements.forcePolyfill=c)}(window.WebComponents),function(){'use strict';HTMLImports.whenReady(function(){requestAnimationFrame(function(){window.dispatchEvent(new CustomEvent('WebComponentsReady'))})})}(window.WebComponents),function(){var a=document.createElement('style');a.textContent='body {transition: opacity ease-in 0.2s; } \nbody[unresolved] {opacity: 0; display: block; overflow: hidden; position: relative; } \n';var b=document.querySelector('head');b.insertBefore(a,b.firstChild)}(window.WebComponents)})();
|
|
//# sourceMappingURL=webcomponents-hi.min.js.map
|