aboutsummaryrefslogtreecommitdiffstats
path: root/root/sandbox/javascript
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2019-10-29 14:18:25 +0000
committers-ol <s-ol@users.noreply.github.com>2019-10-29 14:18:25 +0000
commit1e3b0a12060dce916b686921c94520202c4cb130 (patch)
tree064764fcb3b7daa25024b2565a64d48bae7d5d15 /root/sandbox/javascript
parentfix the glaring security vulnerability i just implemented (diff)
downloadmmm-1e3b0a12060dce916b686921c94520202c4cb130.tar.gz
mmm-1e3b0a12060dce916b686921c94520202c4cb130.zip
make security vulnerabilities optional, remove sandbox
Diffstat (limited to 'root/sandbox/javascript')
-rw-r--r--root/sandbox/javascript/description: text$markdown.md1
-rw-r--r--root/sandbox/javascript/text$javascript -> mmm$dom.js24
2 files changed, 0 insertions, 25 deletions
diff --git a/root/sandbox/javascript/description: text$markdown.md b/root/sandbox/javascript/description: text$markdown.md
deleted file mode 100644
index eb0ca7c..0000000
--- a/root/sandbox/javascript/description: text$markdown.md
+++ /dev/null
@@ -1 +0,0 @@
-an example of how to use JS to create (dynamic) DOM / mmmfs content
diff --git a/root/sandbox/javascript/text$javascript -> mmm$dom.js b/root/sandbox/javascript/text$javascript -> mmm$dom.js
deleted file mode 100644
index 58deb23..0000000
--- a/root/sandbox/javascript/text$javascript -> mmm$dom.js
+++ /dev/null
@@ -1,24 +0,0 @@
-// a little helper function for creating DOM elements
-const e = (elem, children) => {
- const node = document.createElement(elem);
-
- if (typeof children === 'string')
- node.innerText = children;
- else
- children.forEach(child => node.appendChild(child));
-
- return node;
-};
-
-/* creating the equivalent of the following HTML directly as DOM content:
- *
- * <article>
- * <h1>JavaScript</h1>
- * <p>...</p>
- * </article>
- */
-
-return e('article', [
- e('h1', 'JavaScript'),
- e('p', 'JavaScript is supported natively in the browser but is not currently pre-rendered on the server.'),
-]);