toloframework
Version:
Javascript/HTML/CSS compiler for Firefox OS or nodewebkit apps using modules in the nodejs style.
2 lines • 3.13 kB
JavaScript
require("showcase.icon",function(e,n,l){var t=function(){function n(){return t(l,arguments)}var l={en:{},fr:{}},t=e("$").intl;return n.all=l,n}();try{n.exports=function(){var n=e("dom"),l=e("tfw.view").Tag,t=e("tfw.binding.link"),a=e("tfw.view.icon"),s=e("tfw.view.textbox");return function(e){try{void 0===e&&(e={}),this.$elements={};var o=this,i=new l("SECTION"),r=new l("ARTICLE",["class"]),d=new a;n.add(r,d);var m=new l("ARTICLE",["class"]),c=new a;n.add(m,c);var u=new l("ARTICLE",["class"]),b=new a;n.add(u,b);var p=new l("ARTICLE",["class"]),w=new a;n.add(p,w);var y=new s({value:"home",label:"Icon's value",list:["android","bug","camera","cancel","center","close","code","delete","direction","down","down-double","edit","eraser","export","flag-jp","flag-fr","flag-it","flag-en","font","fullscreen","gear","gps","hand","home","image","import","improvement","left","left-double","link","location","logout","mail","map-layer","menu","minus","minus-o","minus-small","ok","plus","plus-o","plus-small","print","question","redo","refresh","right","right-double","search","select","unselect","share","show","speaker","star","tri-down","tri-left","tri-right","tri-up","twitter","undo","up","up-double","user","wait","zoom-in","zoom-out"]});this.$elements.text=y;var $=new s({value:"32px",label:"Icon's size"});this.$elements.size=$;var g=new s({value:"0",label:"Icon's pen 0"});this.$elements.pen0=g;var v=new s({value:"1",label:"Icon's pen 1"});this.$elements.pen1=v,n.add(i,r,m,u,p,y,$,g,v),Object.defineProperty(this,"$",{value:i.$,writable:!1,enumerable:!1,configurable:!1}),new t({A:{obj:o.$elements.text,name:"value"},B:{obj:d,name:"content",delay:333}}),new t({A:{obj:o.$elements.size,name:"value"},B:{obj:d,name:"size",delay:333}}),new t({A:{obj:o.$elements.text,name:"value"},B:{obj:c,name:"content",delay:333}}),new t({A:{obj:o.$elements.size,name:"value"},B:{obj:c,name:"size",delay:333}}),new t({A:{obj:o.$elements.text,name:"value"},B:{obj:b,name:"content",delay:333}}),new t({A:{obj:o.$elements.size,name:"value"},B:{obj:b,name:"size",delay:333}}),new t({A:{obj:o.$elements.text,name:"value"},B:{obj:w,name:"content",delay:333}}),new t({A:{obj:o.$elements.size,name:"value"},B:{obj:w,name:"size",delay:333}}),i.$.style.margin="0",i.$.style.padding="0",r.class="thm-bg0",r.$.style.display="inline-block",r.$.style.margin="2px",r.$.style.padding="4px",r.$.style.border="1px solid rgba(0,0,0,.5)",m.class="thm-bg1",m.$.style.display="inline-block",m.$.style.margin="2px",m.$.style.padding="4px",m.$.style.border="1px solid rgba(0,0,0,.5)",u.class="thm-bg2",u.$.style.display="inline-block",u.$.style.margin="2px",u.$.style.padding="4px",u.$.style.border="1px solid rgba(0,0,0,.5)",p.class="thm-bg3",p.$.style.display="inline-block",p.$.style.margin="2px",p.$.style.padding="4px",p.$.style.border="1px solid rgba(0,0,0,.5)",n.addClass(this,"view","custom")}catch(e){throw console.error("mod/showcase.icon.js",e),Error('Instantiation error in XJS of "mod/showcase.icon.js":\n'+e)}}}()}catch(e){throw Error('Definition error in XJS of "mod/showcase.icon.js"\n'+e)}n.exports._=t});
//# sourceMappingURL=showcase.icon.js.map