forked from coderfin/typescript
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.min.js
More file actions
1 lines (1 loc) · 1.09 KB
/
app.min.js
File metadata and controls
1 lines (1 loc) · 1.09 KB
1
define(["require","exports","polymorphism/Animalia","hanoi/Hanoi","collections/dynamiclinkedlist/MagazineRack"],function(n,t,i,r,u){function s(){var n,t,i;console.log("\n\nSTART POLYMORPHISM EXAMPLE"),n=[],n.push(new f.Types.Dog),t=new f.Types.Dog("wan-wan"),t.commonName="Japanese dog",t.imageUri="//upload.wikimedia.org/wikipedia/commons/thumb/7/78/Akita_inu.jpeg/220px-Akita_inu.jpeg",n.push(t),n.push(new f.Types.Cat),n.push(new f.Types.Lion),n.push(new f.Types.Penguin),n.forEach(function(n){var t=document.createElement("section");t.innerHTML='<img src="'+n.imageUri+'" alt="'+n.species+'" /><p>'+n.talk()+"<\/p>",document.getElementById("animals").appendChild(t)}),console.log("END POLYMORPHISM EXAMPLE"),console.log("\n\nSTART HANOI EXAMPLE"),i=new e.Hanoi(4),i.solve(),console.log("END HANOI EXAMPLE"),console.log("\n\nSTART DYNAMIC LINKED LIST EXAMPLE"),o.MagazineRack.main(),console.log("END DYNAMIC LINKED LIST EXAMPLE"),console.log("\n\nSTART DEFINITIONS EXAMPLE"),_.each([3,2,3,5,6,7],function(n){console.log("Definition Example: ",n)}),console.log("END DEFINITIONS EXAMPLE")}var f=i,e=r,o=u;t.main=s})