diff options
Diffstat (limited to 'indenters/__TODO/example.js')
-rwxr-xr-x | indenters/__TODO/example.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indenters/__TODO/example.js b/indenters/__TODO/example.js new file mode 100755 index 0000000..a807cae --- /dev/null +++ b/indenters/__TODO/example.js @@ -0,0 +1,12 @@ +function decode() { +var jsdecoder = new JsDecoder();var jscolorizer = new JsColorizer();var code; +jsdecoder.s = document.getElementById("a1").value; +code = jsdecoder.decode(); + +if (document.all) { document.getElementById("a2").innerText = code; } +else { + code = code.replace(/&/g, "&"); code = code.replace(/</g, "<"); + code = code.replace(/>/g, ">"); jscolorizer.s = code; + code = jscolorizer.colorize(); document.getElementById("a2").innerHTML = code; +} +}
\ No newline at end of file |