diff --git a/build.sh b/build.sh index 992c14c..40da2f5 100755 --- a/build.sh +++ b/build.sh @@ -1,3 +1,5 @@ #!/bin/bash -cat merger/core.js > inquirer-full.js -cat inquirer.js >>inquirer-full.js \ No newline at end of file +#cat merger/core.js > inquirer-full.js +#cat inquirer.js >>inquirer-full.js +curl -X POST -s --data-urlencode 'input@merger/core.js' https://javascript-minifier.com/raw > inquirer.min.js +curl -X POST -s --data-urlencode 'input@inquirer.js' https://javascript-minifier.com/raw >> inquirer.min.js \ No newline at end of file diff --git a/inquirer.js b/inquirer.js index 23eb190..cce7014 100644 --- a/inquirer.js +++ b/inquirer.js @@ -6,10 +6,21 @@ var formerOnError; var inq = this; + var inqapp; // Methods + function getApp() { + if (!inqapp) + inqapp = merger.app("inquirer", { + title: "inquirer", + + }); + return inqapp; + } + function show() { + getApp().show(); jsTK.desktop(); var w = jsTK.get("Werror"); if (!w) { diff --git a/inquirer.min.js b/inquirer.min.js new file mode 100644 index 0000000..c36502d --- /dev/null +++ b/inquirer.min.js @@ -0,0 +1 @@ +var merger=new function(){function t(){l.dsk||(l.dsk=document.createElement("div"),l.dsk.style.merge({position:"absolute",zIndex:510,top:0,left:0,width:"100%",height:"100%",fontFamily:"Verdana",fontSize:"10px",overflow:"hidden"}),l.bg=document.createElement("div"),l.bg.style.merge({backgroundColor:"gray",opacity:.3,position:"absolute",top:0,left:0,width:"100%",height:"100%"}),l.dsk.appendChild(l.bg),l.menu=document.createElement("div"),l.menu.style.merge({position:"absolute",zIndex:512,top:0,left:0,width:"100%",height:"21px",padding:"2px 9px 2px 9px",backgroundColor:"white",borderBottom:"1px solid black",boxSizing:"border-box"}),l.menu.sysMenu=document.createElement("img"),l.menu.sysMenu.style.width="16px",l.menu.sysMenu.style.height="16px",l.menu.sysMenu.src=d,l.menu.appendChild(l.menu.sysMenu),l.dsk.appendChild(l.menu)),document.body.contains(l.dsk)||document.body.appendChild(l.dsk)}function e(){document.body.contains(l.dsk)&&document.body.removeChild(l.dsk)}function o(t,e,o){o||(o=document.createElement("div")),o.setAttribute("id",t),o.setAttribute("name",t),o.style.position="absolute",o.setTop=function(t){e.top=t,this.style.top=t+"px"},o.setLeft=function(t){e.left=t,this.style.left=t+"px"},o.setWidth=function(t){e.width=t,this.style.width=t+"px"},o.setHeight=function(t){e.height=t,this.style.height=t+"px"},o.setVisible=function(t){this.style.display=t?"":"none"},o.setContent=function(t){for(var e=0;e