pathanimator/inbrowser/ts/init.ts

12 lines
264 B
TypeScript

/// <reference path="PathAnimator.ts" />
/**
* Main entry function
*/
/// create our class as soon as the document is loaded
document.addEventListener("readystatechange", function(event: Event) {
if (!window.pa) {
window.pa = new PathAnimator();
}
});