document.write(''); document.writeln(''); document.write(''); document.writeln(''); document.write(''); document.writeln(''); document.write(''); document.writeln(''); document.write(''); document.writeln(''); document.write(''); document.writeln(''); document.write('nova-motors-300x250<\/title>'); document.writeln(''); document.write('<!-- write your code here -->'); document.writeln(''); document.write('<script src="https:\/\/s0.2mdn.net\/ads\/studio\/cached_libs\/createjs_2019.11.15_min.js"><\/script>'); document.writeln(''); document.write('<script src="https:\/\/ads.nova-motors.de\/affiliate\/Banner\/HTML5\/Motorroller\/nova-motors-motorroller-300x250\/nova-motors-300x250.js"><\/script>'); document.writeln(''); document.write('<script>'); document.writeln(''); document.write('var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation;'); document.writeln(''); document.write('function init() {'); document.writeln(''); document.write(' canvas = document.getElementById("canvas");'); document.writeln(''); document.write(' anim_container = document.getElementById("animation_container");'); document.writeln(''); document.write(' dom_overlay_container = document.getElementById("dom_overlay_container");'); document.writeln(''); document.write(' var comp=AdobeAn.getComposition("ECF6D72E3B94D74EBBDCE8C0BC8227C5");'); document.writeln(''); document.write(' var lib=comp.getLibrary();'); document.writeln(''); document.write(' var loader = new createjs.LoadQueue(false);'); document.writeln(''); document.write(' loader.addEventListener("fileload", function(evt){handleFileLoad(evt,comp)});'); document.writeln(''); document.write(' loader.addEventListener("complete", function(evt){handleComplete(evt,comp)});'); document.writeln(''); document.write(' var lib=comp.getLibrary();'); document.writeln(''); document.write(' loader.loadManifest(lib.properties.manifest);'); document.writeln(''); document.write('}'); document.writeln(''); document.write('function handleFileLoad(evt, comp) {'); document.writeln(''); document.write(' var images=comp.getImages();'); document.writeln(''); document.write(' if (evt && (evt.item.type == "image")) { images[evt.item.id] = evt.result; }'); document.writeln(''); document.write('}'); document.writeln(''); document.write('function handleComplete(evt,comp) {'); document.writeln(''); document.write(' \/\/This function is always called, irrespective of the content. You can use the variable "stage" after it is created in token create_stage.'); document.writeln(''); document.write(' var lib=comp.getLibrary();'); document.writeln(''); document.write(' var ss=comp.getSpriteSheet();'); document.writeln(''); document.write(' var queue = evt.target;'); document.writeln(''); document.write(' var ssMetadata = lib.ssMetadata;'); document.writeln(''); document.write(' for(i=0; i<ssMetadata.length; i++) {'); document.writeln(''); document.write(' ss[ssMetadata[i].name] = new createjs.SpriteSheet( {"images": [queue.getResult(ssMetadata[i].name)], "frames": ssMetadata[i].frames} )'); document.writeln(''); document.write(' }'); document.writeln(''); document.write(' exportRoot = new lib.novamotors300x250_motorroller();'); document.writeln(''); document.write(' stage = new lib.Stage(canvas);'); document.writeln(''); document.write(' \/\/Registers the "tick" event listener.'); document.writeln(''); document.write(' fnStartAnimation = function() {'); document.writeln(''); document.write(' stage.addChild(exportRoot);'); document.writeln(''); document.write(' createjs.Ticker.framerate = lib.properties.fps;'); document.writeln(''); document.write(' createjs.Ticker.addEventListener("tick", stage);'); document.writeln(''); document.write(' }'); document.writeln(''); document.write(' \/\/Code to support hidpi screens and responsive scaling.'); document.writeln(''); document.write(' AdobeAn.makeResponsive(false,\'both\',false,1,[canvas,anim_container,dom_overlay_container]);'); document.writeln(''); document.write(' AdobeAn.compositionLoaded(lib.properties.id);'); document.writeln(''); document.write(' fnStartAnimation();'); document.writeln(''); document.write('}'); document.writeln(''); document.write('<\/script>'); document.writeln(''); document.write('<!-- write your code here -->'); document.writeln(''); document.write('<\/head>'); document.writeln(''); document.write('<body onload="init();" style="margin:0px;">'); document.writeln(''); document.write(' <div id="animation_container" style="background-color:rgba(255, 255, 255, 1.00); width:300px; height:250px">'); document.writeln(''); document.write(' <a href="https:\/\/www.awin1.com\/awclick.php?gid=397402&mid=20355&awinaffid=535881&linkid=2716165&clickref=&p=https%3A%2F%2Fwww.nova-motors.de%2Fmotorroller">'); document.writeln(''); document.write(' <canvas id="canvas" width="300" height="250" style="position: absolute; display: block; background-color:rgba(255, 255, 255, 1.00);"><\/canvas>'); document.writeln(''); document.write(' <\/a>'); document.writeln(''); document.write(' <div id="dom_overlay_container" style="pointer-events:none; overflow:hidden; width:300px; height:250px; position: absolute; left: 0px; top: 0px; display: block;">'); document.writeln(''); document.write(' <\/div>'); document.writeln(''); document.write(' <\/div>'); document.writeln(''); document.write('<\/body>'); document.writeln(''); document.write('<\/html>');