Files
DiceCloud/rpg-docs/public/bower_components/web-animations-next/target-loader.js
2014-11-26 10:18:35 +00:00

14 lines
495 B
JavaScript

(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>');
});
})();