JSFiddle - React, Tailwind, and code Playground

by xber9

HTML

<!DOCTYPE html>
<!--
    NOTES:
    1. All tokens are represented by '$' sign in the template.
    2. You can write your code only wherever mentioned.
    3. All occurrences of existing tokens will be replaced by their appropriate values.
    4. Blank lines will be removed automatically.
    5. Remove unnecessary comments before creating your template.
-->
<html>
<head>
<meta charset="UTF-8">
<meta name="authoring-tool" content="Adobe_Animate_CC">
<title>3</title>
<!-- write your code here -->
<script src="https://code.createjs.com/createjs-2015.11.26.min.js"></script>
<script src="3.js"></script>
<script>
var canvas, stage, exportRoot, anim_container, dom_overlay_container, fnStartAnimation;
function init() {
    canvas = document.getElementById("canvas");
    anim_container = document.getElementById("animation_container");
    dom_overlay_container = document.getElementById("dom_overlay_container");
    var comp=AdobeAn.getComposition("65C65D0DCD45AC4B84C44760FFE9AFB2");
    var lib=comp.getLibrary();
    var loader = new createjs.LoadQueue(false);
    loader.addEventListener("fileload", function(evt){handleFileLoad(evt,comp)});
    loader.addEventListener("complete", function(evt){handleComplete(evt,comp)});
    var lib=comp.getLibrary();
    loader.loadManifest(lib.properties.manifest);
}
function handleFileLoad(evt, comp) {
    var images=comp.getImages();    
    if (evt && (evt.item.type == "image")) { images[evt.item.id] = evt.result; }    
}
function handleComplete(evt,comp) {
    //This function is always called, irrespective of the content. You can use the variable "stage" after it is created in token create_stage.
    var lib=comp.getLibrary();
    var ss=comp.getSpriteSheet();
    var queue = evt.target;
    var ssMetadata = lib.ssMetadata;
    for(i=0; i<ssMetadata.length; i++) {
        ss[ssMetadata[i].name] = new createjs.SpriteSheet( {"images": [queue.getResult(ssMetadata[i].name)], "frames": ssMetadata[i].frames} )
    }
    exportRoot = new...

JavaScript

//содержимое "3.js

(function (cjs, an) {

var p; // shortcut to reference prototypes
var lib={};var ss={};var img={};
lib.ssMetadata = [
        {name:"3_atlas_", frames: [[0,0,1593,1594]]},
        {name:"3_atlas_2", frames: [[0,0,1583,1583]]},
        {name:"3_atlas_3", frames: [[802,0,201,280],[0,0,800,800]]}
];

// symbols:


(lib.butonfon = function() {
    this.initialize(ss["3_atlas_3"]);
    this.gotoAndStop(0);
}).prototype = p = new cjs.Sprite();


(lib.CachedTexturedBitmap_1 = function() {
    this.initialize(img.CachedTexturedBitmap_1);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,2474,2903);

(lib.CachedTexturedBitmap_4 = function() {
    this.initialize(ss["3_atlas_2"]);
    this.gotoAndStop(0);
}).prototype = p = new cjs.Sprite();


(lib.CachedTexturedBitmap_7 = function() {
    this.initialize(ss["3_atlas_"]);
    this.gotoAndStop(0);
}).prototype = p = new cjs.Sprite();


(lib.koin = function() {
    this.initialize(ss["3_atlas_3"]);
    this.gotoAndStop(1);
}).prototype = p = new cjs.Sprite();
// helper functions:

function mc_symbol_clone() {
    var clone = this._cloneProps(new this.constructor(this.mode, this.startPosition, this.loop));
    clone.gotoAndStop(this.currentFrame);
    clone.paused = this.paused;
    clone.framerate = this.framerate;
    return clone;
}

function getMCSymbolPrototype(symbol, nominalBounds, frameBounds) {
    var prototype = cjs.extend(symbol, cjs.MovieClip);
    prototype.clone = mc_symbol_clone;
    prototype.nominalBounds = nominalBounds;
    prototype.frameBounds = frameBounds;
    return prototype;
    }

(lib.blinckAnim_koin = function(mode,startPosition,loop) {
    this.initialize(mode,startPosition,loop,{});

    // koin
    this.instance = new lib.koin();
    this.instance.parent = this;

    this.instance_1 = new lib.CachedTexturedBitmap_4();
    this.instance_1.parent = this;
    this.instance_1.setTransform(3,3,0.5,0.5);

  ...