summaryrefslogtreecommitdiffstats
path: root/indenters/__TODO/example.js
diff options
context:
space:
mode:
Diffstat (limited to 'indenters/__TODO/example.js')
-rwxr-xr-xindenters/__TODO/example.js12
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, "&amp;"); code = code.replace(/</g, "&lt;");
+ code = code.replace(/>/g, "&gt;"); jscolorizer.s = code;
+ code = jscolorizer.colorize(); document.getElementById("a2").innerHTML = code;
+}
+} \ No newline at end of file