Added Polymer
This commit is contained in:
13
rpg-docs/public/bower_components/web-animations-next/target-loader.js
vendored
Normal file
13
rpg-docs/public/bower_components/web-animations-next/target-loader.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
(function() {
|
||||
var target = webAnimationsTargetConfig.defaultTarget;
|
||||
if (typeof webAnimationsSourceTarget != 'undefined')
|
||||
target = webAnimationsSourceTarget;
|
||||
|
||||
// Native implementation detection.
|
||||
|
||||
var scripts = document.getElementsByTagName('script');
|
||||
var location = scripts[scripts.length - 1].src.replace(/[^\/]+$/, '');
|
||||
webAnimationsTargetConfig[target].src.forEach(function(sourceFile) {
|
||||
document.write('<script src="' + location + sourceFile + '"></script>');
|
||||
});
|
||||
})();
|
||||
Reference in New Issue
Block a user