Sixtest Wiki:API3/Interface

window.TWAPI.addExt("Interface"); window.TWAPI.Interface.addUI({	/* Defaults & settings */	"UI_Config": {		"allowDuplicates": false	},	/* Groupings */	"Container": {		"element": "div"	},	"Extend": { // Right-hand box		"element": "div",		"parent": "Container",		"style": { "backgroundColor": "#E0E0E0", "borderColor": "#C1C1C1", "borderStyle": "solid", "borderWidth": "1px", "cssFloat": "right", "margin": "0 0 0 1.2em", "padding": "0.2em 0.6em", "width": "8em" },		"properties": { "innerHTML": "Script execution dialog." }	},	"Content": { // Left-hand box		"element": "div",		"parent": "Container",		"style": { "backgroundColor": "#E0E0E0", "borderColor": "#C1C1C1", "borderStyle": "solid", "borderWidth": "1px", "margin": "0 10.2em 0 0", "padding": "0.2em 0.6em" }	},

/* Log */ "Log_Clear": { "element": "div", "parent": "Content", "style": { "clear": "both" } },	"Log": { "element": "div", "parent": "Container" },	"Log_Title": { "element": "h2", "parent": "Log", "style": { "border": "none", "color": "#3A3A3A", "margin": "0.5em 0 0", "padding": "0 0 0 0.1em", "textAlign": "center" }, "properties": { "innerHTML": "Log" } },	"Log_Content": { "element": "div", "parent": "Log", "style": { "borderColor": "#9D9D9D", "borderStyle": "solid", "borderWidth": "1px 1px 1px 5px", "fontSize": "80%", "height": "6.6em", "lineHeight": "95%", "overflowX": "hidden", "padding": "0.1em 0 0.1em 0.5em" }, "properties": { "innerHTML": "Script will log here." }	},	/* SS [relocate it] */ "SS_Search": { "maxChildren": 0, "element": "input", "parent": "Container_Left", "style": { "border": "1px inset", "margin": "auto", "textAlign": "center", "width": "14em" }, "properties": { "value": "Search" } },	"SS_Suggest": { "maxChildren": 1, "element": "div", "parent": "Container_Left", "style": { }, "properties": { } } });