Best JavaScript code snippet using redwood
xconfig.js
Source:xconfig.js
1/** 2This file is used by the MODx TinyMCE plugin to pass additional parameters to TinyMCE for processing.3*/45var tinymce_valid_elements = ''6+'a[accesskey|charset|class|coords|dir<ltr?rtl|href|hreflang|id|lang|name'7 +'|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup'8 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rel|rev'9 +'|shape<circle?default?poly?rect|style|tabindex|title|target|type],'10+'abbr[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'11 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'12 +'|title],'13+'acronym[class|dir<ltr?rtl|id|id|lang|onclick|ondblclick|onkeydown|onkeypress'14 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'15 +'|title],'16+'address[class|align|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'17 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'18 +'|onmouseup|style|title],'19+'applet[align<bottom?left?middle?right?top|alt|archive|class|code|codebase'20 +'|height|hspace|id|name|object|style|title|vspace|width],'21+'area[accesskey|alt|class|coords|dir<ltr?rtl|href|id|lang|nohref<nohref'22 +'|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup'23 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup'24 +'|shape<circle?default?poly?rect|style|tabindex|title|target],'25+'article[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'26 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'27 +'|title],'28+'aside[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'29 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'30 +'|title],'31+'audio[autoplay|class|controls|dir<ltr?rtl|id|lang|loop|onclick|ondblclick|onkeydown|onkeypress'32 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|preload|src|style'33 +'|title],'34+'base[href|target],'35+'basefont[color|face|id|size],'36+'bdo[class|dir<ltr?rtl|id|lang|style|title],'37+'big[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'38 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'39 +'|title],'40+'blockquote[dir|style|cite|class|dir<ltr?rtl|id|lang|onclick|ondblclick'41 +'|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout'42 +'|onmouseover|onmouseup|style|title],'43+'body[alink|background|bgcolor|class|dir<ltr?rtl|id|lang|link|onclick'44 +'|ondblclick|onkeydown|onkeypress|onkeyup|onload|onmousedown|onmousemove'45 +'|onmouseout|onmouseover|onmouseup|onunload|style|title|text|vlink],'46+'br[class|clear<all?left?none?right|id|style|title],'47+'button[accesskey|class|dir<ltr?rtl|disabled<disabled|id|lang|name|onblur'48 +'|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup|onmousedown'49 +'|onmousemove|onmouseout|onmouseover|onmouseup|style|tabindex|title|type'50 +'|value],'51+'canvas[class|dir<ltr?rtl|height|id|lang|onclick|ondblclick|onkeydown|onkeypress'52 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'53 +'|title|width],'54+'caption[align<bottom?left?right?top|class|dir<ltr?rtl|id|lang|onclick'55 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'56 +'|onmouseout|onmouseover|onmouseup|style|title],'57+'center[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'58 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'59 +'|title],'60+'cite[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'61 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'62 +'|title],'63+'code[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'64 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'65 +'|title],'66+'col[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id'67 +'|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown'68 +'|onmousemove|onmouseout|onmouseover|onmouseup|span|style|title'69 +'|valign<baseline?bottom?middle?top|width],'70+'colgroup[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl'71 +'|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown'72 +'|onmousemove|onmouseout|onmouseover|onmouseup|span|style|title'73 +'|valign<baseline?bottom?middle?top|width],'74+'command[class|dir<ltr?rtl|disabled|icon|id|label|lang|onclick|ondblclick|onkeydown|onkeypress'75 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'76 +'|title|type],'77+'datalist[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'78 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'79 +'|title],'80+'dd[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup'81 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],'82+'del[cite|class|datetime|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'83 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'84 +'|onmouseup|style|title],'85+'details[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'86 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|open|style'87 +'|title],'88+'dfn[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'89 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'90 +'|title],'91+'dir[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'92 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'93 +'|onmouseup|style|title],'94+'div[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'95 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'96 +'|onmouseout|onmouseover|onmouseup|style|title],'97+'dl[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'98 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'99 +'|onmouseup|style|title],'100+'dt[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup'101 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],'102+'em/i[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'103 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'104 +'|title],'105+'embed[class|dir<ltr?rtl|height|id|lang|onclick|ondblclick|onkeydown|onkeypress'106 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|src|style'107 +'|title|type|width],'108+'fieldset[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'109 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'110 +'|title],'111+'figcaption[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'112 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'113 +'|title],'114+'figure[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'115 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'116 +'|title],'117+'footer[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'118 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'119 +'|title],'120+'font[class|color|dir<ltr?rtl|face|id|lang|size|style|title],'121+'form[accept|accept-charset|action|class|dir<ltr?rtl|enctype|id|lang'122 +'|method<get?post|name|onclick|ondblclick|onkeydown|onkeypress|onkeyup'123 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onreset|onsubmit'124 +'|style|title|target],'125+'frame[class|frameborder|id|longdesc|marginheight|marginwidth|name'126 +'|noresize<noresize|scrolling<auto?no?yes|src|style|title],'127+'frameset[class|cols|id|onload|onunload|rows|style|title],'128+'h1[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'129 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'130 +'|onmouseout|onmouseover|onmouseup|style|title],'131+'h2[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'132 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'133 +'|onmouseout|onmouseover|onmouseup|style|title],'134+'h3[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'135 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'136 +'|onmouseout|onmouseover|onmouseup|style|title],'137+'h4[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'138 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'139 +'|onmouseout|onmouseover|onmouseup|style|title],'140+'h5[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'141 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'142 +'|onmouseout|onmouseover|onmouseup|style|title],'143+'h6[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'144 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'145 +'|onmouseout|onmouseover|onmouseup|style|title],'146+'head[dir<ltr?rtl|lang|profile],'147+'header[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'148 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'149 +'|title],'150+'hgroup[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'151 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'152 +'|title],'153+'hr[align<center?left?right|class|dir<ltr?rtl|id|lang|noshade<noshade|onclick'154 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'155 +'|onmouseout|onmouseover|onmouseup|size|style|title|width],'156+'html[dir<ltr?rtl|lang|version],'157+'iframe[align<bottom?left?middle?right?top|class|frameborder|height|id'158 +'|longdesc|marginheight|marginwidth|name|scrolling<auto?no?yes|src|style'159 +'|title|width],'160+'img[align<bottom?left?middle?right?top|alt|border|class|dir<ltr?rtl|height'161 +'|hspace|id|ismap<ismap|lang|longdesc|name|onclick|ondblclick|onkeydown'162 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'163 +'|onmouseup|src|style|title|usemap|vspace|width],'164+'input[accept|accesskey|align<bottom?left?middle?right?top|alt|autocomplete|autofocus'165 +'|checked<checked|class|dir<ltr?rtl|disabled<disabled|form|id|ismap<ismap|lang|list'166 +'|max|maxlength|min|name|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress'167 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onselect'168 +'|pattern|placeholder|readonly<readonly|required<required|size|src|style|tabindex|title'169 +'|type<button?checkbox?file?hidden?image?password?radio?reset?submit?text'170 +'?datetime?datetime-local?date?month?time?week?number?range?email?url?search?tel?color'171 +'|usemap|value],'172+'ins[cite|class|datetime|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'173 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'174 +'|onmouseup|style|title],'175+'isindex[class|dir<ltr?rtl|id|lang|prompt|style|title],'176+'kbd[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'177 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'178 +'|title],'179+'keygen[autofocus|challenge|class|dir<ltr?rtl|disabled<disabled|form|id|keytype|lang|onclick|ondblclick|onkeydown|onkeypress'180 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'181 +'|title],'182+'label[accesskey|class|dir<ltr?rtl|for|id|lang|onblur|onclick|ondblclick'183 +'|onfocus|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout'184 +'|onmouseover|onmouseup|style|title],'185+'legend[align<bottom?left?right?top|accesskey|class|dir<ltr?rtl|id|lang'186 +'|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'187 +'|onmouseout|onmouseover|onmouseup|style|title],'188+'li[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup'189 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title|type'190 +'|value],'191+'link[charset|class|dir<ltr?rtl|href|hreflang|id|lang|media|onclick'192 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'193 +'|onmouseout|onmouseover|onmouseup|rel|rev|style|title|target|type],'194+'map[class|dir<ltr?rtl|id|lang|name|onclick|ondblclick|onkeydown|onkeypress'195 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'196 +'|title],'197+'mark[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'198 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'199 +'|title],'200+'menu[class|compact<compact|dir<ltr?rtl|id|label|lang|onclick|ondblclick|onkeydown'201 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'202 +'|onmouseup|style|title|type],'203+'meta[content|dir<ltr?rtl|http-equiv|lang|name|scheme],'204+'meter[class|dir<ltr?rtl|high|id|lang|low|max|min|onclick|ondblclick|onkeydown|onkeypress'205 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|optimum|style'206 +'|title|value],'207+'nav[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'208 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'209 +'|title],'210+'noframes[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'211 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'212 +'|title],'213+'noscript[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'214 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'215 +'|title],'216+'object[align<bottom?left?middle?right?top|archive|border|class|classid'217 +'|codebase|codetype|data|declare|dir<ltr?rtl|height|hspace|id|lang|name'218 +'|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'219 +'|onmouseout|onmouseover|onmouseup|standby|style|tabindex|title|type|usemap'220 +'|vspace|width],'221+'ol[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'222 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'223 +'|onmouseup|start|style|title|type],'224+'optgroup[class|dir<ltr?rtl|disabled<disabled|id|label|lang|onclick'225 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'226 +'|onmouseout|onmouseover|onmouseup|style|title],'227+'option[class|dir<ltr?rtl|disabled<disabled|id|label|lang|onclick|ondblclick'228 +'|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout'229 +'|onmouseover|onmouseup|selected<selected|style|title|value],'230+'output[class|dir<ltr?rtl|for|form|id|lang|name|onclick|ondblclick|onkeydown|onkeypress'231 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'232 +'|title],'233+'p[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick'234 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'235 +'|onmouseout|onmouseover|onmouseup|style|title],'236+'param[id|name|type|value|valuetype<DATA?OBJECT?REF],'237+'pre/listing/plaintext/xmp[align|class|dir<ltr?rtl|id|lang|onclick|ondblclick'238 +'|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout'239 +'|onmouseover|onmouseup|style|title|width],'240+'progress[class|dir<ltr?rtl|id|lang|max|onclick|ondblclick|onkeydown|onkeypress'241 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'242 +'|title|value],'243+'q[cite|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'244 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'245 +'|title],'246+'rp[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'247 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'248 +'|title],'249+'rt[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'250 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'251 +'|title],'252+'ruby[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'253 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'254 +'|title],'255+'s[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup'256 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],'257+'samp[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'258 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'259 +'|title],'260+'script[charset|defer|language|src|type],'261+'section[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'262 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'263 +'|title],'264+'select[class|dir<ltr?rtl|disabled<disabled|id|lang|multiple<multiple|name'265 +'|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup'266 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|size|style'267 +'|tabindex|title],'268+'small[class|dir<ltr?rtl|id|lang|media|onclick|ondblclick|onkeydown|onkeypress'269 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'270 +'|title],'271+'source[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'272 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|src|style'273 +'|title|type],'274+'span[align<center?justify?left?right|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'275 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'276 +'|onmouseup|style|title],'277+'strike[class|class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'278 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'279 +'|onmouseup|style|title],'280+'strong/b[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'281 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'282 +'|title],'283+'style[dir<ltr?rtl|lang|media|title|type],'284+'sub[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'285 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'286 +'|title],'287+'summary[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'288 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|open|style'289 +'|title],'290+'sup[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'291 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'292 +'|title],'293+'table[align<center?left?right|bgcolor|border|cellpadding|cellspacing|class'294 +'|dir<ltr?rtl|frame|height|id|lang|onclick|ondblclick|onkeydown|onkeypress'295 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|rules'296 +'|style|summary|title|width],'297+'tbody[align<center?char?justify?left?right|char|class|charoff|dir<ltr?rtl|id'298 +'|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown'299 +'|onmousemove|onmouseout|onmouseover|onmouseup|style|title'300 +'|valign<baseline?bottom?middle?top],'301+'td[abbr|align<center?char?justify?left?right|axis|bgcolor|char|charoff|class'302 +'|colspan|dir<ltr?rtl|headers|height|id|lang|nowrap<nowrap|onclick'303 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'304 +'|onmouseout|onmouseover|onmouseup|rowspan|scope<col?colgroup?row?rowgroup'305 +'|style|title|valign<baseline?bottom?middle?top|width],'306+'textarea[accesskey|class|cols|dir<ltr?rtl|disabled<disabled|id|lang|name'307 +'|onblur|onclick|ondblclick|onfocus|onkeydown|onkeypress|onkeyup'308 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|onselect'309 +'|readonly<readonly|rows|style|tabindex|title],'310+'tfoot[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id'311 +'|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown'312 +'|onmousemove|onmouseout|onmouseover|onmouseup|style|title'313 +'|valign<baseline?bottom?middle?top],'314+'th[abbr|align<center?char?justify?left?right|axis|bgcolor|char|charoff|class'315 +'|colspan|dir<ltr?rtl|headers|height|id|lang|nowrap<nowrap|onclick'316 +'|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown|onmousemove'317 +'|onmouseout|onmouseover|onmouseup|rowspan|scope<col?colgroup?row?rowgroup'318 +'|style|title|valign<baseline?bottom?middle?top|width],'319+'thead[align<center?char?justify?left?right|char|charoff|class|dir<ltr?rtl|id'320 +'|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup|onmousedown'321 +'|onmousemove|onmouseout|onmouseover|onmouseup|style|title'322 +'|valign<baseline?bottom?middle?top],'323+'time[class|datetime|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'324 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|pubdate|style'325 +'|title],'326+'title[dir<ltr?rtl|lang],'327+'tr[abbr|align<center?char?justify?left?right|bgcolor|char|charoff|class'328 +'|rowspan|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'329 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'330 +'|title|valign<baseline?bottom?middle?top],'331+'tt[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup'332 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],'333+'u[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress|onkeyup'334 +'|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style|title],'335+'ul[class|compact<compact|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown'336 +'|onkeypress|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover'337 +'|onmouseup|style|title|type],'338+'var[class|dir<ltr?rtl|height|id|lang|onclick|ondblclick|onkeydown|onkeypress'339 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style],'340+'video[autoplay|class|controls|dir<ltr?rtl|id|lang|loop|onclick|ondblclick|onkeydown|onkeypress'341 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|preload|poster|src|style'342 +'|title|width],'343+'wbr[class|dir<ltr?rtl|id|lang|onclick|ondblclick|onkeydown|onkeypress'344 +'|onkeyup|onmousedown|onmousemove|onmouseout|onmouseover|onmouseup|style'345 +'|title]'346var tinymce_extended_valid_elements = "";
...
commands.js
Source:commands.js
...3 return (4 <div5 className="command paint paint-red"6 onMouseDown={evt =>7 onMouseDown({x: evt.clientX, y: evt.clientY}, "paint-red")8 }9 />10 );11};12const Green = ({onMouseDown}) => {13 return (14 <div15 className="command paint paint-green"16 onMouseDown={evt =>17 onMouseDown({x: evt.clientX, y: evt.clientY}, "paint-green")18 }19 />20 );21};22const Blue = ({onMouseDown}) => {23 return (24 <div25 className="command paint paint-blue"26 onMouseDown={evt =>27 onMouseDown({x: evt.clientX, y: evt.clientY}, "paint-blue")28 }29 />30 );31};32const ColorCommands = ({colors, onMouseDown}) => {33 if (colors === 1) {34 return (35 <Fragment>36 <Red onMouseDown={onMouseDown} />37 <div className="divider" />38 </Fragment>39 );40 }41 if (colors === 2) {42 return (43 <Fragment>44 <Green onMouseDown={onMouseDown} />45 <div className="divider" />46 </Fragment>47 );48 }49 if (colors === 3) {50 return (51 <Fragment>52 <Red onMouseDown={onMouseDown} />53 <Green onMouseDown={onMouseDown} />54 <div className="divider" />55 </Fragment>56 );57 }58 if (colors === 4) {59 return (60 <Fragment>61 <Blue onMouseDown={onMouseDown} /> <div className="divider" />62 </Fragment>63 );64 }65 if (colors === 5) {66 return (67 <Fragment>68 <Red onMouseDown={onMouseDown} />69 <Blue onMouseDown={onMouseDown} /> <div className="divider" />70 </Fragment>71 );72 }73 if (colors === 6) {74 return (75 <Fragment>76 <Green onMouseDown={onMouseDown} />77 <Blue onMouseDown={onMouseDown} /> <div className="divider" />78 </Fragment>79 );80 }81 if (colors === 7) {82 return (83 <Fragment>84 <Red onMouseDown={onMouseDown} />85 <Green onMouseDown={onMouseDown} />86 <Blue onMouseDown={onMouseDown} /> <div className="divider" />87 </Fragment>88 );89 }90 return null;91};92const Commands = ({SubLengths, AllowedCommands, dragging, onMouseDown}) => {93 return (94 <div className={`commands-area ${dragging ? "dragging" : ""}`}>95 <div96 className="command forward"97 onMouseDown={evt =>98 onMouseDown({x: evt.clientX, y: evt.clientY}, "forward", "")99 }100 />101 <div102 className="command left"103 onMouseDown={evt =>104 onMouseDown({x: evt.clientX, y: evt.clientY}, "left", "")105 }106 />107 <div108 className="command right"109 onMouseDown={evt =>110 onMouseDown({x: evt.clientX, y: evt.clientY}, "right", "")111 }112 />113 <div className="divider" />114 {SubLengths.map(115 (s, i) =>116 parseInt(s, 10) > 0 && (117 <div118 key={`sublength-${i}`}119 className={`command f${i + 1}`}120 onMouseDown={evt =>121 onMouseDown({x: evt.clientX, y: evt.clientY}, `f${i + 1}`)122 }123 />124 ),125 )}126 <div className="divider" />127 <ColorCommands128 colors={parseInt(AllowedCommands, 10)}129 onMouseDown={onMouseDown}130 />131 <div132 className="command color clear"133 onMouseDown={evt =>134 onMouseDown({x: evt.clientX, y: evt.clientY}, null, "clear")135 }136 />137 <div138 className="command color red"139 onMouseDown={evt =>140 onMouseDown({x: evt.clientX, y: evt.clientY}, null, "red")141 }142 />143 <div144 className="command color green"145 onMouseDown={evt =>146 onMouseDown({x: evt.clientX, y: evt.clientY}, null, "green")147 }148 />149 <div150 className="command color blue"151 onMouseDown={evt =>152 onMouseDown({x: evt.clientX, y: evt.clientY}, null, "blue")153 }154 />155 </div>156 );157};...
Using AI Code Generation
1var redwood = require('redwood');2var canvas = redwood.canvas;3var circle = redwood.circle;4var rect = redwood.rect;5var line = redwood.line;6var text = redwood.text;7var image = redwood.image;8var group = redwood.group;9var path = redwood.path;10var star = redwood.star;11var polygon = redwood.polygon;12var ellipse = redwood.ellipse;13var mouse = redwood.mouse;14var touch = redwood.touch;15var key = redwood.key;16var audio = redwood.audio;17var video = redwood.video;18var math = redwood.math;19var color = redwood.color;20var console = redwood.console;21var data = redwood.data;22var timer = redwood.timer;23var network = redwood.network;24var file = redwood.file;25var physics = redwood.physics;26var device = redwood.device;27var app = redwood.app;28var screen = redwood.screen;29var deviceOrientation = redwood.deviceOrientation;30var deviceMotion = redwood.deviceMotion;31var camera = redwood.camera;32var compass = redwood.compass;33var geolocation = redwood.geolocation;34var bluetooth = redwood.bluetooth;35var deviceInfo = redwood.deviceInfo;36var deviceStorage = redwood.deviceStorage;37var accelerometer = redwood.accelerometer;38var gyroscope = redwood.gyroscope;39var magnetometer = redwood.magnetometer;40var pedometer = redwood.pedometer;41var proximity = redwood.proximity;42var light = redwood.light;43var vibration = redwood.vibration;44var clipboard = redwood.clipboard;45var barcodeScanner = redwood.barcodeScanner;46var speechRecognition = redwood.speechRecognition;47var speechSynthesis = redwood.speechSynthesis;48var share = redwood.share;49var networkStatus = redwood.networkStatus;50var batteryStatus = redwood.batteryStatus;51var backgroundGeolocation = redwood.backgroundGeolocation;52var backgroundFetch = redwood.backgroundFetch;53var backgroundSync = redwood.backgroundSync;54var pushNotifications = redwood.pushNotifications;55var localNotifications = redwood.localNotifications;56var deviceSettings = redwood.deviceSettings;57var devicePermissions = redwood.devicePermissions;58var deviceAccessibility = redwood.deviceAccessibility;59var deviceNFC = redwood.deviceNFC;60var deviceBluetooth = redwood.deviceBluetooth;
Using AI Code Generation
1redwood.onMouseDown(function(x, y) {2 redwood.log("You clicked on " + x + ", " + y);3});4redwood.onMouseDown(function(x, y) {5 redwood.log("You clicked on " + x + ", " + y);6});7redwood.onMouseDown(function(x, y) {8 redwood.log("You clicked on " + x + ", " + y);9});10redwood.onMouseDown(function(x, y) {11 redwood.log("You clicked on " + x + ", " + y);12});13redwood.onMouseDown(function(x, y) {14 redwood.log("You clicked on " + x + ", " + y);15});16redwood.onMouseDown(function(x, y) {17 redwood.log("You clicked on " + x + ", " + y);18});19redwood.onMouseDown(function(x, y) {20 redwood.log("You clicked on " + x + ", " + y);21});22redwood.onMouseDown(function(x, y) {23 redwood.log("You clicked on " + x + ", " + y);24});25redwood.onMouseDown(function(x, y) {26 redwood.log("You clicked on " + x + ", " + y);27});28redwood.onMouseDown(function(x, y) {29 redwood.log("You clicked on " + x + ", " + y);30});31redwood.onMouseDown(function(x, y) {32 redwood.log("You clicked on " + x + ", "
Using AI Code Generation
1var canvas = document.getElementById("myCanvas");2var context = canvas.getContext("2d");3var rect = {};4var mouseDown = false;5canvas.addEventListener('mousedown', function(e) {6 mouseDown = true;7 rect.startX = e.pageX - this.offsetLeft;8 rect.startY = e.pageY - this.offsetTop;9}, false);10canvas.addEventListener('mouseup', function() {11 mouseDown = false;12}, false);13canvas.addEventListener('mousemove', function(e) {14 if(mouseDown) {15 rect.w = (e.pageX - this.offsetLeft) - rect.startX;16 rect.h = (e.pageY - this.offsetTop) - rect.startY ;17 context.clearRect(0,0,canvas.width, canvas.height);18 context.strokeRect(rect.startX, rect.startY, rect.w, rect.h);19 }20}, false);
Using AI Code Generation
1var redwood = require("redwood");2var app = redwood.app();3var win = redwood.win();4win.onMouseDown(function(e) {5 console.log("mouseDown x: " + e.x + " y: " + e.y);6});7app.run();8### redwood.app()9### redwood.win()10### app.run()11### app.quit()12### app.onQuit(callback)13### win.onMouseDown(callback)14### win.onMouseUp(callback)15### win.onMouseMove(callback)16### win.onMouseDrag(callback)17### win.onMouseEnter(callback)18### win.onMouseLeave(callback)19### win.onKeyDown(callback)20### win.onKeyUp(callback)21### win.onResize(callback)22### win.onPaint(callback)23### win.onClose(callback)24### win.show()25### win.hide()26### win.close()27### win.setTitle(title)28### win.setSize(width, height)29### win.setResizable(resizable)30### win.setMinSize(width, height)31### win.setMaxSize(width, height)32### win.setFullscreen(fullscreen)33### win.setAlwaysOnTop(alwaysOnTop)34### win.setTransparent(transparent)35### win.setOpacity(opacity)36### win.setIgnoreMouseEvents(ignoreMouseEvents)37### win.setHasShadow(hasShadow)38### win.setCenter(center)39### win.setFrameless(frameless)
Using AI Code Generation
1var rect = new Rectangle(10, 10, 100, 100);2rect.fillColor = 'black';3function onMouseDown(event) {4 rect.position = event.point;5}6var rect = new Rectangle(10, 10, 100, 100);7rect.fillColor = 'black';8function onMouseDrag(event) {9 rect.position = event.point;10}11var rect = new Rectangle(10, 10, 100, 100);12rect.fillColor = 'black';13function onMouseUp(event) {14 rect.position = event.point;15}16var rect = new Rectangle(10, 10, 100, 100);17rect.fillColor = 'black';18function onMouseMove(event) {19 rect.position = event.point;20}21var rect = new Rectangle(10, 10, 100, 100);22rect.fillColor = 'black';23function onMouseEnter(event) {24 rect.position = event.point;25}26var rect = new Rectangle(10, 10, 100, 100);27rect.fillColor = 'black';28function onMouseLeave(event) {29 rect.position = event.point;30}31var rect = new Rectangle(10, 10, 100, 100);32rect.fillColor = 'black';33function onMouseMove(event) {
Using AI Code Generation
1var x = 0;2var y = 0;3var redwood = new Redwood();4redwood.onMouseDown = function(event) {5 x = event.clientX;6 y = event.clientY;7 var newRedwood = new Redwood();8 newRedwood.setPosition(x, y);9 newRedwood.setSize(50, 50);10 newRedwood.setColor("green");11 newRedwood.setOpacity(0.5);12 newRedwood.draw();13}14redwood.start();
Using AI Code Generation
1var redwood = require('redwood');2var canvas = redwood.canvas();3var mouse = redwood.mouse(canvas);4var rectangle = redwood.rectangle(100, 100, 200, 200);5rectangle.fillColor('red');6rectangle.strokeColor('black');7rectangle.strokeWidth(2);8mouse.onMouseDown(function() {9 rectangle.visible(true);10});11mouse.onMouseUp(function() {12 rectangle.visible(false);13});
Using AI Code Generation
1 var x = redwood.mouseX;2 var y = redwood.mouseY;3 redwood.addText(x, y, "Hello!");4};5 var x = redwood.mouseX;6 var y = redwood.mouseY;7 redwood.addText(x, y, "Hello!");8};9 var x = redwood.mouseX;10 var y = redwood.mouseY;11 redwood.addText(x, y, "Hello!");12};13 var x = redwood.mouseX;14 var y = redwood.mouseY;15 redwood.addText(x, y, "Hello!");16};17 var x = redwood.mouseX;18 var y = redwood.mouseY;19 redwood.addText(x, y, "Hello!");20};
Using AI Code Generation
1function onMouseDown(event) {2 console.log(event.point);3}4function onMouseDrag(event) {5 console.log(event.point);6}7function onMouseUp(event) {8 console.log(event.point);9}10function onMouseMove(event) {11 console.log(event.point);12}13function onFrame(event) {14 console.log(event.point);15}16function onKeyDown(event) {17 console.log(event.key);18}19function onKeyUp(event) {20 console.log(event.key);21}
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!